/*
 * volgendeweek — minimal stylesheet for the htmx/Alpine progressive-reveal flow.
 *
 * No build step. Plain CSS, one file, served straight off disk by FastAPI's
 * StaticFiles. Design tokens drive the brand: swap the :root block to retheme.
 * Light + dark modes both defined here.
 */

:root {
  color-scheme: light dark;          /* tells the browser native controls to match the OS theme */
  --bg:              #f3f4f2;        /* off-white page surface */
  --card-bg:         #ffffff;        /* white card/form surface */
  --ink:             #1a1c1b;        /* primary text */
  --muted:           #6b7a73;        /* secondary / muted text */
  --border:          #d0d8d3;        /* neutral border */
  --accent:          #0F6E56;        /* brand teal */
  --accent-ink:      #ffffff;
  --accent-tint:     #E1F5EE;        /* kicker/chip selected bg */
  --accent-tint-ink: #04342C;        /* text on accent-tint */
  --error-bg:        #fbeaea;
  --error-ink:       #9c2f2f;
  --radius:          12px;           /* card */
  --radius-sm:       8px;            /* inputs, buttons */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:              #141615;
    --card-bg:         #1e201e;
    --ink:             #deeada;
    --muted:           #8fa497;
    --border:          #2c3330;
    --accent:          #28a37a;       /* brighter teal for dark-bg legibility */
    --accent-ink:      #ffffff;
    --accent-tint:     #0b2820;
    --accent-tint-ink: #8de0c1;
    --error-bg:        #2d1414;
    --error-ink:       #f87171;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; margin-top: 0; }
h3 { font-size: 1rem; }

p { margin: .4rem 0; }

a { color: var(--accent); }

.muted { color: var(--muted); }

code {
  background: rgba(0, 0, 0, .06);
  border-radius: 4px;
  padding: .1em .3em;
  font-size: .9em;
}

/* ── Layout shells ─────────────────────────────────────────────────────── */

.app-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 .75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.week-title { color: var(--muted); margin: 0; }

#flow { display: block; }

/* ── Cards (the growing #flow) ─────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 1.25rem 1.5rem;
  transition: opacity .2s ease;
}

/* The visitor landing input card follows the brief's narrower ~460 px layout. */
.card[data-card="visitor-input"] {
  max-width: 460px;
  border-width: 0.5px;
}

.card--current  { border-color: var(--accent); }
.card--loading  { border-color: var(--accent); }
.card--done     { opacity: .65; }
.card--upcoming { opacity: .4; pointer-events: none; }

/* ── Forms ─────────────────────────────────────────────────────────────── */

form { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }

label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; width: 100%; }

input[type="email"],
input[type="number"],
input[type="password"],
input[type="text"],
select,
textarea {
  font: inherit;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--ink);
  width: 100%;
  resize: vertical;
}

input:focus, select:focus, textarea:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

button:hover  { filter: brightness(1.07); }
button:active { filter: brightness(.95); }
button:disabled { opacity: .5; cursor: not-allowed; filter: none; }

button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

/* An <a> that should look like a primary <button> — for actions that must be
   a real navigation (e.g. kicking off an OAuth redirect), not a form post. */
.button-link {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}
.button-link:hover { filter: brightness(1.07); }

.hint { color: var(--muted); font-size: .92em; }

/* ── First-day picker (radio cards) ────────────────────────────────────── */

.daypicker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

.daypicker__day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  position: relative;
  padding: .85rem .5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  cursor: pointer;
  font-weight: 400;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.daypicker__day:hover { transform: translateY(-1px); border-color: var(--accent); }

/* The native radio drives state but isn't shown — the label is the card. */
.daypicker__day input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.daypicker__weekday {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
}
.daypicker__day-num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.daypicker__month   { font-size: .8rem; color: var(--muted); }

.daypicker__day:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card-bg));
}
.daypicker__day:has(input:checked) .daypicker__weekday,
.daypicker__day:has(input:checked) .daypicker__day-num,
.daypicker__day:has(input:checked) .daypicker__month {
  color: var(--accent);
}

.daypicker__day:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.error {
  background: var(--error-bg);
  color: var(--error-ink);
  border-radius: 8px;
  padding: .6rem .8rem;
  font-weight: 600;
}

.summary { font-style: italic; }
.summary-list { margin: .25rem 0 0; padding-left: 1.2rem; }

/* ── Spinners ──────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: vw-spin .7s linear infinite;
}
.spinner--lg { width: 2rem; height: 2rem; border-width: 3px; color: var(--accent); margin-top: .5rem; }

@keyframes vw-spin { to { transform: rotate(360deg); } }

/* htmx toggles `.htmx-request` on the element carrying `hx-indicator` (or
   its target) while a request is in flight — `.htmx-indicator` elements
   stay invisible-but-laid-out until then, so the button doesn't jump. */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

.hint--busy { display: flex; align-items: center; gap: .5rem; }

/* ── Week-row lists (proposal preview) ─────────────────────────────────── */

.week-rows { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.week-row { display: flex; gap: .75rem; padding: .4rem .6rem; border-radius: 8px; background: rgba(0,0,0,.025); }
.week-row .day   { font-weight: 600; min-width: 11rem; }
.week-row .date  { font-weight: 400; color: var(--muted); }
.week-row--free .label { color: var(--muted); font-style: italic; }

.proposal-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-top: .75rem; }
.proposal-actions form { flex: 1 1 240px; }
.refine-form textarea { min-height: 4.5rem; }

/* ── Staple checkbox matrix ────────────────────────────────────────────── */

.staples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem .75rem;
  margin: .5rem 0;
}
.staples-toggle { grid-column: 1 / -1; justify-self: start; margin-bottom: .15rem; }
.staple {
  display: flex; flex-direction: row; align-items: center; gap: .5rem;
  font-weight: 400;
  background: rgba(0,0,0,.025);
  border-radius: 8px;
  padding: .5rem .65rem;
}
.staple input { width: auto; }

/* ── Kitchen-appliance toggle cards ────────────────────────────────────── */

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem .75rem;
  margin: .5rem 0;
}
.appliance-toggle { grid-column: 1 / -1; justify-self: start; margin-bottom: .15rem; }
.appliance-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  background: rgba(0,0,0,.025);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: .65rem .75rem;
  transition: background .12s, border-color .12s;
  user-select: none;
}
.appliance-card input[type="checkbox"] {
  /* Visually hidden but still participates in form submission and is
     keyboard-accessible. :has() on the label handles the checked state. */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.appliance-card:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  font-weight: 600;
}
.appliance-card:hover {
  background: color-mix(in srgb, var(--accent) 8%, rgba(0,0,0,.025));
}

/* ── Output: meals + grocery list ──────────────────────────────────────── */

.output-meals { display: flex; flex-direction: column; gap: 1rem; margin: .5rem 0 1.25rem; }
.meal { border-top: 1px solid var(--border); padding-top: .75rem; }
.meal:first-child { border-top: none; padding-top: 0; }
.meal h3 { margin-bottom: .25rem; }
.meal .date { color: var(--muted); font-weight: 400; }
.meal .source { font-size: .9em; }
.meal .recipe { margin: .35rem 0; }
.meal pre { white-space: pre-wrap; font: inherit; margin: .35rem 0 0; }
.meal details { margin-top: .35rem; }
.meal summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.meal--free h3 { color: var(--muted); font-weight: 500; }

.grocery-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: .5rem 0 1.25rem; }
.grocery-category ul { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.grocery-category li { display: flex; gap: .4rem; align-items: baseline; }
.grocery-category .qty { color: var(--muted); min-width: 5.5rem; font-variant-numeric: tabular-nums; }
.grocery-category .article { margin-left: auto; font-variant-numeric: tabular-nums; }

.calendar-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.calendar-actions form { display: contents; }

/* ── Header actions (greeting / profile / logout) ──────────────────────── */

.header-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.header-actions .greeting { color: var(--muted); }
.header-actions .logout { display: inline; }

/* ── Profile / settings page ───────────────────────────────────────────── */

.profile { max-width: 720px; margin: 0 auto; }
.profile .card { margin-bottom: 1rem; }

.notice {
  max-width: 720px;
  margin: 0 auto 1rem;
  background: #e7f1e8;
  color: #2f6d3b;
  border-radius: 8px;
  padding: .6rem .8rem;
  font-weight: 600;
}

input:disabled {
  background: rgba(0, 0, 0, .04);
  color: var(--muted);
  cursor: not-allowed;
}

/* ── Integrations (profile page) ───────────────────────────────────────── */

.integration {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem 1rem;
}
.integration + .integration { margin-top: .85rem; }
.integration-head { display: flex; flex-direction: row; align-items: center; gap: .6rem; }
.integration-head h3 { margin: 0; }
.integration form { margin-top: .65rem; width: 100%; }
.integration .integration-disconnect { margin-top: .85rem; }

.integration-reconnect { width: 100%; margin-top: .65rem; }
.integration-reconnect summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}
.integration-reconnect form { margin-top: .5rem; }

.badge {
  font-size: .78rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  color: var(--muted);
}
.badge--ok { background: #e7f1e8; color: #2f6d3b; }

/* ── Family-members editor (profile page) ──────────────────────────────── */

fieldset.family {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0;
  padding: .85rem 1rem 1rem;
}
fieldset.family legend { font-weight: 600; padding: 0 .35rem; }

.family-rows { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 .75rem; width: 100%; }
.family-row { display: flex; flex-direction: row; align-items: center; gap: .5rem; width: 100%; }
.family-row .family-name { flex: 1 1 auto; }
.family-row .family-year { flex: 0 0 9rem; }
.family-row .link-button { flex: 0 0 auto; white-space: nowrap; }

/* ── Fixed-items editor (profile page) ─────────────────────────────────── */

fieldset.fixed-items,
fieldset.profile-staples {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0;
  padding: .85rem 1rem 1rem;
}
fieldset.fixed-items legend,
fieldset.profile-staples legend { font-weight: 600; padding: 0 .35rem; }

.fixed-item-rows,
.profile-staple-rows { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 .75rem; width: 100%; }
.fixed-item-row,
.profile-staple-row { display: flex; flex-direction: row; align-items: center; gap: .5rem; width: 100%; }
.fixed-item-row .fixed-item-name { flex: 1 1 auto; }
.fixed-item-row .fixed-item-qty { flex: 0 0 9rem; }
.profile-staple-row .profile-staple-product { flex: 1 1 auto; }
.profile-staple-row .profile-staple-qty { flex: 0 0 7rem; }
.profile-staple-row .profile-staple-unit { flex: 0 0 8rem; }
.fixed-item-row .link-button,
.profile-staple-row .link-button { flex: 0 0 auto; white-space: nowrap; }

/* ── Auth pages (setup / login) ────────────────────────────────────────── */

.auth { display: flex; justify-content: center; padding-top: 3.5rem; }
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 26rem;
}
.auth-intro { color: var(--muted); }
.auth-links { margin-top: 1rem; font-size: .92em; color: var(--muted); }
.auth-links p { margin: .2rem 0; }

/* ── volgendeweek visitor landing ──────────────────────────────────────────── */

/* Narrow centred shell for the nav, hero, and footer motif.
   The #visitor-flow cards live outside this div and use their own max-widths. */
.vw-page {
  max-width: 500px;
  margin: 0 auto;
}

/* Top nav row */
.vw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1.5rem;
}

.vw-wordmark {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.vw-wordmark .vw-accent,
.vw-accent { color: var(--accent); }

.vw-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language toggle */
.vw-lang {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
}
.vw-lang-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.vw-lang-btn--active { color: var(--accent); font-weight: 500; }
.vw-lang-btn:hover   { color: var(--accent); }
.vw-lang-sep { color: var(--border); user-select: none; }

.vw-login {
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
}
.vw-login:hover { color: var(--ink); }

/* Hero text (kicker pill + H1 + subhead) */
.vw-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.vw-kicker {
  display: inline-block;
  font-size: .75rem;
  background: var(--accent-tint);
  color: var(--accent-tint-ink);
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .875rem;
}

.vw-h1 {
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 .5rem;
  color: var(--ink);
}

.vw-sub {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer motif */
.vw-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.vw-flow-actions {
  max-width: 720px;
  margin: 0 auto .75rem;
  text-align: right;
}

/* ── Planner card components (visitor input) ───────────────────────────────── */

/* Override the default form flex so the planner card's children stretch full width. */
.card[data-card="visitor-input"] form {
  align-items: stretch;
  gap: 0;
}

.vw-section-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 .625rem;
}
.vw-optional {
  font-weight: 400;
  color: var(--muted);
}

/* Steppers (adults / kids counts) */
.vw-stepper-rows {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.125rem;
}
.vw-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vw-stepper-name {
  font-size: .875rem;
  color: var(--ink);
}
.vw-stepper {
  display: flex;
  align-items: center;
  gap: .625rem;
}
.vw-stp {
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: border-color .12s;
}
.vw-stp:hover { border-color: var(--muted); }
.vw-stp:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.vw-count {
  min-width: 1.125rem;
  text-align: center;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
}

/* Day pills */
.vw-daypills {
  display: flex;
  gap: .375rem;
  border: 0;
  margin: 0 0 1.125rem;
  padding: 0;
}
.vw-daypill {
  flex: 1;
  display: block;
  position: relative;
}
.vw-daypill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.vw-daypill__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .5rem .15rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.vw-daypill__abbr {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .7rem;
  font-weight: 600;
}
.vw-daypill__num {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}
.vw-daypill__mon {
  font-size: .68rem;
}
.vw-daypill:hover .vw-daypill__card { border-color: var(--muted); }
.vw-daypill:has(input:checked) .vw-daypill__card {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.vw-daypill:has(input:focus-visible) .vw-daypill__card {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Preference chips */
.vw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.vw-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .4375rem .8125rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 400;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  user-select: none;
}
.vw-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.vw-chip:has(input:checked) {
  background: var(--accent-tint);
  color: var(--accent-tint-ink);
  border-color: var(--accent);
}
.vw-chip:hover { border-color: var(--muted); }
.vw-chip:has(input:checked):hover { border-color: var(--accent); }
.vw-chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Primary CTA button */
.vw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: .8125rem;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter .15s;
  margin-bottom: .625rem;
}
.vw-cta:hover   { filter: brightness(1.08); }
.vw-cta:focus   { outline: 2px solid var(--accent); outline-offset: 2px; }
.vw-cta:disabled { opacity: .6; cursor: not-allowed; filter: none; }

.vw-reassurance {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
}

/* ── Visitor dial toggles ───────────────────────────────────────────────────── */

.dials { display: flex; flex-wrap: wrap; gap: .5rem; }

.dial-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 400;
  cursor: pointer;
  background: rgba(0,0,0,.025);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .35rem .8rem;
  transition: background .12s, border-color .12s;
  user-select: none;
}
.dial-toggle:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  font-weight: 600;
}
.dial-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.dial-btn {
  font: inherit;
  font-weight: 400;
  background: rgba(0,0,0,.025);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .35rem .8rem;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  color: var(--ink);
}
.dial-btn:hover { border-color: var(--accent); }
.dial-btn--active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  font-weight: 600;
}

/* ── Upgrade prompt ─────────────────────────────────────────────────────────── */

.upgrade-prompt {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 5%, var(--card-bg));
}
.upgrade-prompt__pitch { margin: 0 0 .75rem; font-weight: 600; }
.upgrade-prompt__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.upgrade-prompt__sub { color: var(--muted); font-size: .9em; }

/* ── Visitor list actions ────────────────────────────────────────────────────── */

.list-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0 1rem; }

/* ── Build/version badge ───────────────────────────────────────────────────
 * Fixed in the bottom-right corner of every page (see _base.html). Small and
 * low-contrast so it never competes with the content, and click-through
 * (pointer-events:none) so it can't get in the way of anything beneath it.
 * Tinted amber off production so a Preview/dev build is obvious at a glance.
 */
.version-badge {
  position: fixed;
  bottom: .5rem;
  right: .6rem;
  z-index: 1000;
  pointer-events: none;
  font-size: .7rem;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-variant-numeric: tabular-nums;
}

/* Non-production builds stand out so nobody mistakes preview/dev for the real
 * thing. Production keeps the quiet default above. */
.version-badge--preview,
.version-badge--dev {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
