/* Bronomics 2.0 look: "Daytime" and "After Hours". Loaded after styles.css and studio.css.
   theme.js always sets <html data-theme="light|dark"> (Auto picks by the clock), so every rule here starts
   with :root[data-theme] and wins over the older rules of the same shape. The bahi-khata soul stays
   (ticket-stub rows, stamps, the handshake and khata icons); the heavy ink borders go. */

/* ---------- Colours and type ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #FBF4E8; --card: #FFFFFF; --card-soft: #FFFFFF; --rule: #EFE3CC; --line: #E8DCC6;
  --ink: #1C1B18; --ink-soft: #6E675C; --margin: #E0C99C;
  --marigold: #F5A524; --marigold-soft: #FDE7C2; --gold-text: #8A4B00;
  --peacock: #0B6B4D; --peacock-soft: #D7F2E6; --peacock-dark: #0B5A41; --ledger-red: #B8381F;
  --btn-bg: #1C1B18; --btn-fg: #FBF4E8; --accent-fg: #1C1B18; --hero-bg: #F5A524; --hero-fg: #1C1B18;
  --raise: 0 1px 0 #E8DCC6, 0 8px 22px rgba(70, 45, 10, 0.06);
  --nav-bg: #FFFFFF; --nav-fg: #6E675C;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141519; --card: #1E2026; --card-soft: #1E2026; --rule: #2A2C33; --line: #2A2C33;
  --ink: #EDEAE3; --ink-soft: #A9A59C; --margin: #3A3C44;
  --marigold: #F2A23A; --marigold-soft: #3A2E1C; --gold-text: #F2B866;
  --peacock: #7BD3B0; --peacock-soft: rgba(123, 211, 176, 0.12); --peacock-dark: #7BD3B0; --ledger-red: #F08A76;
  --btn-bg: #F2A23A; --btn-fg: #1A1408; --accent-fg: #1A1408; --hero-bg: #1E2026; --hero-fg: #EDEAE3;
  --raise: 0 0 0 1px #2A2C33;
  --nav-bg: #1E2026; --nav-fg: #A9A59C;
}
: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] body { font-family: var(--body); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
:root[data-theme] .ledger { background-image: none; background-color: var(--paper); }
:root[data-theme] h1, :root[data-theme] h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
:root[data-theme] .app h1 { font-size: 28px; }
:root[data-theme] .eyebrow { color: var(--gold-text); letter-spacing: 0.1em; }
/* v2.2.7: the "What to do next" card is a light card in the Day look, so its text uses the ink colour
   (it kept the old cream text and was invisible on white since v2.0). */
:root[data-theme] .next-step, :root[data-theme] .next-step .next-text { color: var(--ink); }
:root[data-theme] :focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
:root[data-theme] a { color: var(--peacock); }

/* ---------- Buttons and fields ---------- */
:root[data-theme] button, :root[data-theme] .button {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: none; font-weight: 600;
}
:root[data-theme] button.primary, :root[data-theme] .button.primary, :root[data-theme] .fab, :root[data-theme] button.dark {
  background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; box-shadow: none; font-weight: 700;
}
:root[data-theme] button.gold, :root[data-theme] .roast-actions .primary.gold { background: var(--marigold); color: var(--accent-fg); border-color: transparent; }
:root[data-theme] button.secondary { border: 1.5px dashed var(--margin); background: transparent; }
:root[data-theme] button.ghost { background: transparent; }
:root[data-theme] button.danger { color: var(--ledger-red); border-color: currentColor; background: transparent; }
:root[data-theme] button:disabled { border-style: solid; opacity: 0.5; }
:root[data-theme] input, :root[data-theme] select, :root[data-theme] textarea {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
}
:root[data-theme] input:focus, :root[data-theme] select:focus, :root[data-theme] textarea:focus { border-color: var(--marigold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 30%, transparent); }
:root[data-theme] input[aria-invalid="true"] { border-color: var(--ledger-red); }
:root[data-theme] .seg, :root[data-theme] .tabs { border: 0; background: color-mix(in srgb, var(--ink) 7%, var(--paper)); padding: 4px; gap: 4px; border-radius: 14px; }
:root[data-theme] .seg button, :root[data-theme] .tabs button { border: 0; border-radius: 11px; background: transparent; }
:root[data-theme] .seg button[aria-pressed="true"], :root[data-theme] .tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); }
:root[data-theme] .levels button[aria-pressed="true"], :root[data-theme] .chars button[aria-pressed="true"],
:root[data-theme] .money-chips button[aria-pressed="true"] { background: var(--marigold); color: var(--accent-fg); border-color: transparent; box-shadow: none; }
:root[data-theme] .money-sym { border: 0; background: var(--marigold); color: var(--accent-fg); }

/* ---------- Cards ---------- */
:root[data-theme] .card, :root[data-theme] .nudge, :root[data-theme] .react-card, :root[data-theme] .balance-card,
:root[data-theme] details, :root[data-theme] .how, :root[data-theme] .share-card, :root[data-theme] .money-row,
:root[data-theme] .entry, :root[data-theme] .next-step, :root[data-theme] .whats-new, :root[data-theme] .tour-replay,
:root[data-theme] .reminders-here, :root[data-theme] .your-data, :root[data-theme] .bro-settings, :root[data-theme] .pay-settings {
  border: 0; box-shadow: var(--raise); background: var(--card); border-radius: 18px;
}
:root[data-theme] .bro-settings, :root[data-theme] .pay-settings, :root[data-theme] .reminders-here, :root[data-theme] .your-data { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
:root[data-theme] .entry.done { background: var(--peacock-soft); box-shadow: none; }
:root[data-theme] .empty { border: 1.5px dashed var(--margin); border-radius: 16px; }
:root[data-theme] .stamp { background: transparent; border-width: 1.5px; border-radius: 999px; padding: 2px 8px; letter-spacing: 0.05em; }
:root[data-theme] .nudge.conscience, :root[data-theme] .send-panel, :root[data-theme] .nudge.money-check {
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: none;
}
:root[data-theme] .nudge.conscience .nudge-tag, :root[data-theme] .nudge.money-check .nudge-tag { color: inherit; opacity: 0.75; }
:root[data-theme] .nudge.claim-nudge { box-shadow: 0 0 0 1.5px var(--peacock); }
:root[data-theme] .nudge.claim-nudge .nudge-tag { color: var(--peacock); }
:root[data-theme] .nudge-line { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
:root[data-theme] .new-pill { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--peacock); background: var(--peacock-soft); padding: 3px 8px; border-radius: 999px; }

/* Khata hero: the "sun" card by day, a glowing card by night. */
:root[data-theme] .scale-card { border: 0; border-radius: 24px; background: var(--hero-bg); color: var(--hero-fg); box-shadow: none; position: relative; overflow: hidden; }
:root[data-theme="light"] .scale-card::before { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, 0.22); pointer-events: none; }
:root[data-theme="dark"] .scale-card { box-shadow: 0 0 0 1px #2A2C33; background: radial-gradient(120% 90% at 85% -10%, rgba(242, 162, 58, 0.18), transparent 60%), #1E2026; }
:root[data-theme="light"] .scale-card .t-label.in, :root[data-theme="light"] .scale-card .t-label.out { color: #3A2A08; }
:root[data-theme] .scale-line { border-top: 2px dashed color-mix(in srgb, currentColor 22%, transparent); }
:root[data-theme] .t-num, :root[data-theme] .big-num, :root[data-theme] .row-amt, :root[data-theme] .entry-amt { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }

/* Friend rows: ticket stubs, the amount torn off on the right. */
:root[data-theme] .row { border: 0; background: var(--card); box-shadow: var(--raise); border-radius: 16px; min-height: 72px; padding: 10px 12px; }
:root[data-theme] .row-end { align-self: stretch; justify-content: center; padding-left: 12px; border-left: 2px dashed var(--line); }
:root[data-theme] .row[aria-current="true"] { box-shadow: 0 0 0 2px var(--marigold); }
:root[data-theme] .avatar { border: 0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12); }
:root[data-theme] .slot { border: 0; background: color-mix(in srgb, var(--ink) 12%, transparent); }
:root[data-theme] .slot.on { background: var(--marigold); }
:root[data-theme] .fab { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* Logo stamp keeps its tilt, minus the heavy outline. */
:root[data-theme] .logo { border-width: 1.5px; }
:root[data-theme="dark"] .logo { color: #EDEAE3; background: #1E2026; border-color: #3A3C44; }

/* ---------- Top bar: day/night switch and Settings ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -6px 0 16px; } /* v2.2.9: room under the Desi mode switch so it never touches the logo */
:root[data-theme] .topbar button { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme] .top-look { width: 40px; padding: 0; justify-content: center; }
/* v2.2.9: Desi mode switch (Hinglish Bro and desi words; English is the default) */
:root[data-theme] .top-desi { margin-right: auto; gap: 8px; }
.top-desi .desi-knob { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line, #3A3C44); transition: background .2s; }
.top-desi .desi-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.top-desi[aria-checked="true"] .desi-knob { background: var(--gold, #F2A23A); }
.top-desi[aria-checked="true"] .desi-knob::after { transform: translateX(14px); }
@media (prefers-reduced-motion: reduce) { .top-desi .desi-knob, .top-desi .desi-knob::after { transition: none; } }
:root[data-theme="light"] .top-sun, :root[data-theme="dark"] .top-moon { display: none; }
body:has(#view-settings:not([hidden])) .top-settings { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }

/* ---------- Bottom bar: five tabs, original icons ---------- */
:root[data-theme] .bottom-nav {
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px; gap: 2px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 476px; margin: 0 auto;
  background: var(--nav-bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
:root[data-theme] .bottom-nav button { color: var(--nav-fg); border: 0; background: transparent; border-radius: 16px; font-size: 10.5px; font-weight: 600; gap: 2px; min-height: 58px; }
:root[data-theme] .bottom-nav button[aria-current="page"] { background: var(--marigold); color: var(--accent-fg); font-weight: 700; }
:root[data-theme] .app { padding-bottom: 116px; }
:root[data-theme] .toast { background: var(--btn-bg); color: var(--btn-fg); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1000px) {
  :root[data-theme] .bottom-nav { left: 12px; right: auto; top: 12px; bottom: 12px; margin: 0; max-width: none; width: 104px; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 22px 8px; }
  :root[data-theme] .bottom-nav button { min-height: 76px; width: 86px; font-size: 12px; }
  :root[data-theme] .app { padding-bottom: 28px; }
}

/* ---------- Dialogs ---------- */
:root[data-theme] dialog { color: var(--ink); }
:root[data-theme] dialog::backdrop { background: rgba(10, 10, 12, 0.55); }
:root[data-theme] .roast-card { border: 0; background: #141519; color: #EDEAE3; box-shadow: 0 0 0 1px #2A2C33; }

@media (prefers-reduced-motion: reduce) { :root[data-theme] * { scroll-behavior: auto; } }

/* Generated: every older card, chip and button with a heavy ink outline gets the soft 2.0 edge. */
:root[data-theme] #view-add,
:root[data-theme] #view-friend,
:root[data-theme] #view-gang,
:root[data-theme] #view-gexp,
:root[data-theme] #view-settings .bro-settings,
:root[data-theme] #view-settings .reminders-here,
:root[data-theme] #view-settings .your-data,
:root[data-theme] .auto-card,
:root[data-theme] .balance-card,
:root[data-theme] .button,
:root[data-theme] .card,
:root[data-theme] .claim-card,
:root[data-theme] .desk-empty,
:root[data-theme] .entry,
:root[data-theme] .fab,
:root[data-theme] .friend .bubble,
:root[data-theme] .friend button.laugh,
:root[data-theme] .gang-ask,
:root[data-theme] .gang-card,
:root[data-theme] .gang-dot,
:root[data-theme] .gang-how,
:root[data-theme] .gang-icon,
:root[data-theme] .gang-rules,
:root[data-theme] .gang-tabs,
:root[data-theme] .gangs-head button,
:root[data-theme] .guide-card,
:root[data-theme] .how,
:root[data-theme] .install-tip,
:root[data-theme] .money-chips button[aria-pressed="true"],
:root[data-theme] .money-row,
:root[data-theme] .nudge,
:root[data-theme] .nudge.checkin,
:root[data-theme] .nudge.conscience,
:root[data-theme] .nudge.money-check,
:root[data-theme] .nudge.try-card,
:root[data-theme] .plan-row.mine,
:root[data-theme] .policy-summary,
:root[data-theme] .promise-chips li,
:root[data-theme] .react-card,
:root[data-theme] .reminders-here,
:root[data-theme] .scale-card,
:root[data-theme] .seg,
:root[data-theme] .settings-block .bro-settings,
:root[data-theme] .settings-block .reminders-here,
:root[data-theme] .settings-block .your-data,
:root[data-theme] .share-card,
:root[data-theme] .split-sum .split-each,
:root[data-theme] .studio-after,
:root[data-theme] .studio-compose,
:root[data-theme] .studio-compose textarea,
:root[data-theme] .studio-pill,
:root[data-theme] .studio-send-big,
:root[data-theme] .studio-send-me,
:root[data-theme] .studio-send-part,
:root[data-theme] .studio-snd,
:root[data-theme] .studio-vcard.on,
:root[data-theme] .tabs,
:root[data-theme] .tour-card,
:root[data-theme] .tour-dots i.on,
:root[data-theme] .tour-go,
:root[data-theme] .tour-replay,
:root[data-theme] .whats-new,
:root[data-theme] a.button.preview-link,
:root[data-theme] button,
:root[data-theme] details,
:root[data-theme] input,
:root[data-theme] select {
  border-color: var(--line) !important; box-shadow: none;
}
:root[data-theme] #view-settings .bro-settings, :root[data-theme] #view-settings .reminders-here, :root[data-theme] #view-settings .your-data,
:root[data-theme] #view-settings .pay-settings { border: 0 !important; box-shadow: var(--raise) !important; background: var(--card); border-radius: 20px; padding: 16px; }
:root[data-theme] #view-settings .pay-settings { display: flex; flex-direction: column; gap: 12px; }
:root[data-theme] #view-settings h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
:root[data-theme] .nudge.try-card { background: var(--marigold-soft); color: var(--ink); }
:root[data-theme="dark"] .nudge.try-card { background: #2A2318; }
:root[data-theme] .auto-card { border: 0; box-shadow: var(--raise); }
/* The raised cards of the 2.0 look (after the generated block, so they keep their soft shadow). */
:root[data-theme][data-theme] .card, :root[data-theme][data-theme] .nudge, :root[data-theme][data-theme] .react-card, :root[data-theme][data-theme] .balance-card,
:root[data-theme][data-theme] .how, :root[data-theme][data-theme] .share-card, :root[data-theme][data-theme] .money-row, :root[data-theme][data-theme] .entry,
:root[data-theme][data-theme] .guide-card, :root[data-theme][data-theme] .gang-card, :root[data-theme][data-theme] .studio-compose, :root[data-theme][data-theme] .auto-card { box-shadow: var(--raise); border: 0; }
:root[data-theme][data-theme] .nudge.claim-nudge { box-shadow: 0 0 0 1.5px var(--peacock); }
:root[data-theme][data-theme] .nudge.conscience, :root[data-theme][data-theme] .nudge.money-check, :root[data-theme][data-theme] .entry.done { box-shadow: none; }
:root[data-theme="dark"][data-theme] .scale-card { box-shadow: 0 0 0 1px #2A2C33; }

/* ---------- v2.1 fixes ---------- */
/* What's new was drawn for a dark card (cream text); on the new white/graphite card the text takes the page ink. */
:root[data-theme] .whats-new, :root[data-theme] .whats-new .home-h2 { color: var(--ink); }
:root[data-theme] .whats-new .news-text { color: var(--ink-soft); opacity: 1; }
:root[data-theme] .whats-new .eyebrow.gold { color: var(--gold-text); }
:root[data-theme] .whats-new::before { opacity: 0.6; }
/* Feedback slip: a link, so it picked up the green link colour. It's a calm card now in both looks. */
:root[data-theme] a.feedback-slip { background: var(--card); color: var(--ink); border: 0; box-shadow: var(--raise); }
:root[data-theme] .feedback-slip b { color: var(--ink); }
:root[data-theme] .feedback-slip .fs-mail { color: var(--gold-text); }
/* Other cards drawn for dark backgrounds keep cream text on a dark card in both looks. */
:root[data-theme] .gang-banner, :root[data-theme] .invite-card { background: #1C1B18; color: #F3EAD3; border-color: transparent; }
:root[data-theme="dark"] .gang-banner, :root[data-theme="dark"] .invite-card { background: #1E2026; box-shadow: 0 0 0 1px #2A2C33; }

/* The stamp logo and tagline closing each main page. */
.page-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 0 6px; text-align: center; }
.page-foot .tag { font-size: 12.5px; color: var(--ink-soft); }
/* v2.2.6: logo centred (the older .logo rule pushed it left), full tagline, Privacy and Terms links */
.page-foot .logo, :root[data-theme] .page-foot .logo { align-self: center; }
.page-foot .foot-links { font-size: 13px; color: var(--ink-soft); }
.page-foot .foot-links a { text-underline-offset: 3px; } /* v2.2.13: the normal link colour, same as the Settings footer */
:root[data-theme] .page-foot .logo { font-size: 20px; }
.page-foot { grid-column: 1 / -1; }
/* Settings: "You" sits above "Quick Bro"; both cards look the same. */
:root[data-theme] #view-settings .you-settings { border: 0; box-shadow: var(--raise); background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#view-settings .you-settings h3 { font-family: var(--display); font-size: 20px; margin: 0; line-height: 1.15; }
/* Quick Bro (classic, no AI) vs Bro Studio (AI): small labels so nobody mixes them up. */
.kind-pill { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.kind-pill.classic { color: var(--ink-soft); border: 1px solid var(--line, #E0D3BB); }
.kind-pill.ai { color: #1C1B18; background: var(--marigold, #F5A524); }
.studio-title { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- v2.2: the footer logo gets room to breathe above its words ---------- */
:root[data-theme] .page-foot .logo, .page-foot .logo { margin-bottom: 10px; }
.brand-foot .wordmark.logo { margin-bottom: 10px; }

/* ---------- v2.2 Explore mode: the mint bar and "Ready to start your own khata?" ---------- */
.demo-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #7BD3B0; color: #0D2A20; font-family: var(--body, 'Inter', system-ui, sans-serif); }
.demo-bar[hidden] { display: none; }
.demo-bar p { margin: 0; font-size: 13px; line-height: 1.3; }
.demo-bar b { font-weight: 700; }
:root[data-theme] .demo-bar .demo-start, .demo-bar .demo-start { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  background: #0D2A20; color: #EAFBF3; font-weight: 700; font-size: 12px; text-decoration: none; }
.demo-dlg .share-card { display: flex; flex-direction: column; gap: 10px; }
.demo-dlg h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.demo-dlg-kicker { margin: 0; }
.demo-dlg-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.demo-dlg-actions > * { min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
:root[data-theme] .demo-dlg-actions a.primary { background: var(--btn-bg); color: var(--btn-fg); }
:root[data-theme] .demo-dlg-actions button { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

/* v2.2.9: GDP line on the Monthly roast */
.roast-gdp { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(242, 162, 58, .16); font-weight: 700; font-size: 14px; line-height: 1.4; }

/* v2.2.12: subtle outlines: a thin gold border on "What's new", a clearer border on the promise pills
   (!important because the shared themed-border rule above uses it) */
:root[data-theme] section.whats-new { border-width: 1.5px; border-style: solid; border-color: color-mix(in srgb, var(--marigold) 60%, transparent) !important; }
:root[data-theme] ul.promise-chips li { border-width: 1.5px; border-style: solid; border-color: color-mix(in srgb, var(--marigold) 60%, transparent) !important; } /* v2.2.14: gold, like What's new */

/* v2.2.14: What's new: one calm gold dot per item instead of four different emojis */
.news-list li { grid-template-columns: 14px 1fr; gap: 10px; }
.news-mark { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--marigold); display: block; }

/* v2.2.14: the first-open Welcome is one small card at a time, not five big ones */
#guideDlg .share-card { gap: 8px; padding: 16px 16px 14px; }
#guideDlg h2 { font-size: 20px; margin: 0; }
#guideDlg .guide-cards.in-dialog { margin: 2px 0 0; }
#guideDlg .guide-card { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; min-height: 108px; }
#guideDlg .guide-card .g-art svg { width: 56px; }
#guideDlg .guide-card h3 { font-size: 16px; }
#guideDlg .guide-card p { font-size: 13.5px; }
#guideDlg .guide-dots { display: flex; flex-direction: row; justify-content: center; gap: 6px; margin: 2px 0; }
#guideDlg .guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: #E3D3AE; display: block; }
#guideDlg .guide-dots i.on { width: 18px; border-radius: 4px; background: var(--marigold); }
#guideDlg .roast-actions { flex-direction: column; gap: 6px; }
#guideDlg .roast-actions button { flex: none; width: 100%; }
#guideDlg .roast-actions #guideSkip { background: none; border: none; box-shadow: none; min-height: 30px; padding: 0; font-size: 14px; color: var(--ink-soft); }

/* v2.2.14: the walkthrough cards a little smaller */
.tour-card { padding: 11px 12px 10px 70px; border-radius: 18px; }
.tour-bro { width: 52px; left: 9px; top: 10px; }
.tour-card h3 { font-size: 17px; }
.tour-card p { font-size: 13.5px; }
.tour-row { margin-top: 8px; }
.tour-skip, .tour-go { min-height: 36px; font-size: 13.5px; }

/* v2.2.14: "Who we are" sits in a card with the same thin gold outline as What's new */
:root[data-theme] .home-about { margin-top: 18px; padding: 14px 16px 12px; border-radius: 22px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--marigold) 60%, transparent); }
:root[data-theme] .home-about .home-h2 { margin-top: 0; }
:root[data-theme] .home-about .home-links { margin-bottom: 0; }

/* v2.2.15: the update pop-up is small: little art, titles only, about the size of the Welcome */
#newsDlg .share-card { gap: 8px; padding: 16px 16px 14px; }
#newsDlg .news-stage .svg-box svg { width: 44px; }
#newsDlg .news-stage .svg-box:nth-child(2) svg { width: 58px; }
#newsDlg h2 { font-size: 20px; margin: 0; }
#newsDlg .eyebrow { margin: 0; }
#newsDlg .news-list { gap: 6px; }
#newsDlg .news-list b { font-size: 14.5px; }
#newsDlg .news-mark { margin-top: 6px; }
#newsDlg .news-more { margin: 0; font-size: 12.5px; }

/* v2.2.15: Bro Studio "How it works" a little smaller */
#studioHowDlg .share-card { gap: 8px; padding: 16px 16px 14px; }
#studioHowDlg .studio-how-art .svg-box svg { width: 70px; }
#studioHowDlg h2 { font-size: 19px; margin: 0; }
#studioHowDlg #studioHowText { font-size: 14px; margin: 0; }

/* v2.2.17: Get paid back: the boxes for your money first, the rest under "More ways to get paid" */
:root[data-theme] details.pay-more, details.pay-more { margin-top: 4px; padding: 0; border: 0 !important; background: none; box-shadow: none !important; }
.pay-more > summary { cursor: pointer; font-weight: 700; color: var(--gold-text, #8A5A00); padding: 6px 0; }
.pay-more .fields { margin-top: 6px; }
.pay-more input { box-sizing: border-box; width: 100%; }

/* v2.2.18: Bro Studio: share for fun and save, next to the money send; My scenes */
.studio-more-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.studio-more-row button { min-height: 46px; border-radius: 14px; font-weight: 800; font-size: 15px; background: var(--card); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--marigold) 60%, transparent) !important; box-shadow: none; }
.studio-more-row button[aria-pressed="true"] { background: color-mix(in srgb, var(--marigold) 18%, var(--card)); }
.studio-more-note { margin: 6px 2px 0; font-size: 12.5px; }
.studio-mine { margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--marigold) 60%, transparent); }
.studio-mine-title { margin: 0; font-size: 18px; }
.studio-mine #sMineCount { margin: 2px 0 6px; font-size: 12.5px; }
.studio-mine-card { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.studio-mine-card:first-child { border-top: 0; }
.studio-mine-card .studio-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.studio-mine-body b { display: block; font-size: 14.5px; line-height: 1.25; }
.studio-mine-body .meta { font-size: 12.5px; }
.studio-mine-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.studio-mine-acts button { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; box-shadow: none; }
.studio-mine-acts button.gold { background: var(--marigold); color: #1B1A17; border-color: var(--marigold); }

/* ---------- v2.2.20: Desi mode, day/night and Settings at the top on desktop; one gold outline on every box ---------- */
/* An older rule paints most borders grey with !important, so these use !important too (and a doubled [data-theme] to win). */
:root[data-theme] { --gold-line: color-mix(in srgb, #F2A23A 60%, transparent); }
@media (min-width: 1000px) {
  .app > .topbar { grid-row: 1; grid-column: 1 / -1; margin: 0 0 18px; }
  .app > .view, .app > .desk-empty { grid-row: 2; }
}
/* Big boxes */
:root[data-theme][data-theme] :is(.guide-card, .next-step, .feedback-slip, .share-card, .scale-card, .tabs, .row, .roast-card,
  .balance-card, .entry, details.phone, details.link-details, .studio-compose, .studio-vcard, .gang-card, .gang-how, .gang-ask,
  ol.how, article.card, .card, .claim-card, .you-settings, .bro-settings, .react-card, .money-row, .pay-settings, .reminders-here,
  .your-data, .auto-card, .seg, .send-panel, nav.bottom-nav, .studio-after) { border: 1.5px solid var(--gold-line) !important; box-shadow: none !important; }
:root[data-theme][data-theme] :is(.empty, .gang-empty, .more-chars, .desk-empty) { border: 1.5px dashed var(--gold-line) !important; box-shadow: none !important; }
@media (min-width: 1000px) {
  :root[data-theme][data-theme] :is(#view-friend, #view-add, #view-gang, #view-gexp) { border: 1.5px solid var(--gold-line) !important; box-shadow: none !important; }
}
/* Small boxes: top bar, buttons, fields, chips, character and drama picks. Filled gold buttons, Delete and the tab rail keep their look. */
:root[data-theme][data-theme] :is(.app, dialog) :is(button, a.button, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):not(.primary, .gold, .fab, .danger, .row, .tour-replay),
:root[data-theme][data-theme] .tabs button:not([aria-selected="true"]), :root[data-theme][data-theme] .seg button { border-color: var(--gold-line) !important; border-style: solid !important; }
:root[data-theme][data-theme] :is(.tabs, .seg) button { border-width: 0 !important; }
:root[data-theme][data-theme] #view-settings :is(.you-settings, .bro-settings, .pay-settings, .reminders-here, .your-data) { border: 1.5px solid var(--gold-line) !important; box-shadow: none !important; }
/* v2.2.20: the rest of the boxes (Send pop-up, gang page, move and install pop-ups). Same gold, same 1.5px. */
:root[data-theme][data-theme] :is(.studio-send-part, .studio-send-me, details.studio-send-new, .gang-tabs, .gang-banner, .pro-card, .move-first, .move-code) { border: 1.5px solid var(--gold-line) !important; box-shadow: none !important; }
:root[data-theme][data-theme] :is(.app, dialog) li { border-color: var(--gold-line) !important; }
/* v2.2.24: Bro Studio's tab shows a clapperboard ("cut!") instead of Bro's face. */
.bottom-nav .ico-clap { width: 30px; height: 30px; }
/* v2.2.24 Voice Bro: the floating Bro, his sheet, and "Choose your Bro". Same gold line, same fonts. */
.vx-fab { position: fixed; right: 12px; bottom: calc(106px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 70px; height: 70px; padding: 0; border-radius: 50%; background: var(--card); border: 1.5px solid var(--gold-line); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer; }
.vx-fab .svg-box, .vx-fab svg { width: 58px; height: 58px; }
.vx-fab:active { transform: scale(.96); }
.vx-mic { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: #F2A23A; display: grid; place-items: center; font-size: 13px; border: 2px solid var(--paper); }
.vx-tip { position: fixed; right: 12px; bottom: calc(178px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #F2A23A; color: #1A1408; border: 1.5px solid var(--gold-line); font: inherit; font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
@media (min-width: 1000px) { .vx-fab { bottom: 28px; right: 28px; } .vx-tip { bottom: 108px; right: 28px; } }
.vx-shade { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 61; }
.vx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; max-height: 86vh; overflow: auto; background: var(--card); border-top: 1.5px solid var(--gold-line); border-radius: 22px 22px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--ink); }
@media (min-width: 1000px) { .vx-sheet { left: auto; right: 28px; bottom: 28px; width: 410px; border: 1.5px solid var(--gold-line); border-radius: 22px; } }
.vx-top { display: flex; align-items: center; gap: 12px; }
.vx-top .svg-box, .vx-top svg { width: 66px; height: 66px; flex: none; }
.vx-say { font-weight: 800; font-size: 17px; margin: 0; line-height: 1.3; }
.vx-sub { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 0; }
.vx-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 48px; margin: 14px 0 4px; }
.vx-wave i { display: block; width: 6px; border-radius: 9px; background: #F2A23A; }
.vx-wave.live i { animation: vx-bar .9s ease-in-out infinite alternate; transform-origin: center; }
.vx-wave:not(.live) i { opacity: .45; animation: vx-bar 1.6s ease-in-out infinite alternate; }
@keyframes vx-bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .vx-wave i { animation: none !important; } }
.vx-time { text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-soft); margin: 0 0 12px; font-size: 13px; }
.vx-left { text-align: center; color: var(--ink-soft); font-size: 12px; margin: 10px 0 0; }
.vx-btns { display: flex; gap: 10px; margin-top: 12px; }
.vx-btns button { flex: 1; min-height: 48px; border-radius: 14px; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; }
.vx-card { border: 1.5px solid var(--gold-line); border-radius: 16px; padding: 14px; margin: 14px 0 4px; }
.vx-k { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.vx-v { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 2px 0 0; overflow-wrap: anywhere; }
.vx-v.vx-idea { font-size: 19px; line-height: 1.3; }
.vx-row { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.vx-row b { font-weight: 800; text-align: right; }
.vx-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.vx-input { width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 14px; border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.vx-typeit { display: block; margin: 12px auto 0; font: inherit; font-size: 13.5px; }
/* "Choose your Bro" */
dialog.vx-pick { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; inset: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
dialog.vx-pick::backdrop { background: var(--paper); }
.vx-pick h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0 0 4px; text-align: center; }
.vx-pick p.s { color: var(--ink-soft); margin: 0 0 20px; text-align: center; font-size: 14.5px; max-width: 330px; }
.vx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 10px; margin-bottom: 22px; }
@media (min-width: 1000px) { .vx-grid { grid-template-columns: repeat(3, 150px); gap: 12px; } }
.vx-tile { border-radius: 18px; padding: 12px 6px 10px; text-align: center; background: var(--card); color: var(--ink); position: relative; font: inherit; cursor: pointer; }
.vx-tile .svg-box, .vx-tile svg { width: 86px; height: 86px; margin: 0 auto; }
.vx-tile b { display: block; font-size: 17px; margin-top: 4px; }
.vx-tile span { font-size: 12px; color: var(--ink-soft); }
.vx-tile.on { background: color-mix(in srgb, #F2A23A 14%, var(--card)); }
.vx-tile.on::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: #F2A23A; color: #1A1408; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.vx-go { width: 100%; max-width: 330px; min-height: 52px; border-radius: 16px; font-weight: 800; font-size: 17px; font-family: inherit; cursor: pointer; }
.vx-skip { margin-top: 12px; font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
/* the app's older button rules win otherwise: one gold line, gold for the main button */
:root[data-theme][data-theme] :is(.vx-sheet, .vx-pick) button, :root[data-theme][data-theme] .vx-input { border: 1.5px solid var(--gold-line) !important; background: transparent !important; color: var(--ink) !important; box-shadow: none !important; }
:root[data-theme][data-theme] :is(.vx-sheet button.vx-yes, .vx-pick button.vx-go), :root[data-theme][data-theme] .vx-chips button.on { background: #F2A23A !important; color: #1A1408 !important; border-color: var(--gold-line) !important; }
:root[data-theme][data-theme] .vx-pick button.vx-tile { background: var(--card) !important; }
:root[data-theme][data-theme] .vx-pick button.vx-tile.on { background: color-mix(in srgb, #F2A23A 14%, var(--card)) !important; }
:root[data-theme][data-theme] :is(.vx-pick button.vx-skip, .vx-sheet button.vx-typeit) { border: 0 !important; background: none !important; color: var(--ink-soft) !important; }
:root[data-theme][data-theme] .vx-chips button { min-height: 34px; padding: 0 12px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
:root[data-theme][data-theme] button.vx-fab { width: 62px !important; height: 62px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 1.5px solid var(--gold-line) !important; background: var(--card) !important; box-shadow: 0 6px 18px rgba(0,0,0,.35) !important; }
:root[data-theme][data-theme] button.vx-fab .svg-box, :root[data-theme][data-theme] button.vx-fab svg { width: 52px; height: 52px; }
:root[data-theme][data-theme] button.vx-tip { min-height: 0 !important; padding: 6px 10px !important; border-radius: 12px !important; background: #F2A23A !important; color: #1A1408 !important; border: 1.5px solid var(--gold-line) !important; box-shadow: 0 4px 12px rgba(0,0,0,.25) !important; font-size: 13px !important; }
.vx-fab { touch-action: none; user-select: none; -webkit-user-select: none; }
.vx-fab.dragging { cursor: grabbing; transform: scale(1.08); }
.vx-langs { justify-content: center; margin: 0 0 4px; }
.vx-wrong { margin-top: 10px; }
