/* Task 91: v10 seller pages in the homepage visual language.
   Page CSS only; shared form-component CSS belongs to forms.css
   (Task 89) after the merge. v9 tokens, no new colours. */

:root {
  --ink: #102A33;
  --muted: #56707A;
  --line: #E2EAEE;
  --bg: #F3F8FA;
  --card: #FFFFFF;
  --accent: #0F766E;
  --accent-ink: #115E59;
  --accent-soft: #E6FAF6;
  --accent-bright: #14B8A6;
  --blue: #0369A1;
  --blue-soft: #E8F4FD;
  --sky: #38BDF8;
  --sky-pale: #7DD3FC;
  --teal-glow: #5EEAD4;
}

/* ---- Page header block (breadcrumb stays in base.html) ---- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 4px 0 28px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 6px;
}
.page-title {
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.page-sub { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 60ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-actions .inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.page-actions .inline-form .field { margin: 0; }
@media (max-width: 899.98px) {
  .page-title { font-size: 26px; }
  .page-head { margin-bottom: 22px; }
  .page-actions { width: 100%; }
  .page-actions .pill { flex: 1 1 auto; justify-content: center; min-height: var(--tap); }
}

/* ---- Homepage-style sections on seller pages ---- */
.ssec { margin: 56px 0; }
.ssec:first-child { margin-top: 0; }
@media (max-width: 899.98px) {
  .ssec { margin: 40px 0; }
}
.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  align-items: stretch;
}
/* Soft rounded square for section/stat object icons. */
.ic-sq {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  flex: none;
}

/* ---- Seller chips: one row, sideways scroll on phones, accent pick ---- */
body.is-seller .chip.is-active,
body.is-seller .chip.on {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}
body.is-seller .chip.is-active small,
body.is-seller .chip.on small { color: #fff; }
@media (max-width: 899.98px) {
  body.is-seller .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
}

/* ---- Sticky primary-action bar (phones; lifted above the bottom nav) ----
   Seller scope only (:where keeps zero specificity, so the cascade on
   seller pages is unchanged): forms.css owns the shared component, and
   these rules must not restyle customer pages or setup forms. */
:where(body.is-seller) .action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
}
:where(body.is-seller) .action-bar .pill,
:where(body.is-seller) .action-bar .btn { min-height: var(--tap); }
:where(body.is-seller) .action-bar form { display: flex; }
:where(body.is-seller) .action-bar form .pill,
:where(body.is-seller) .action-bar form .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 999.98px) {
  :where(body.is-seller) .action-bar {
    position: sticky;
    bottom: 0;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(41, 45, 52, 0.12);
    margin: 20px -16px -16px;
  }
  :where(body.is-seller) .action-bar .pill,
  :where(body.is-seller) .action-bar .btn { flex: 1 1 auto; justify-content: center; }
  :where(body.is-seller) .action-bar form { flex: 1 1 auto; }
  body:has(.bnav) .action-bar {
    bottom: calc(var(--bnav-h) + 8px);
    z-index: 8;
  }
  :where(body.is-seller):has(.bnav) .content:has(.action-bar) { padding-bottom: 230px; }
  :where(body.is-seller) .content:has(.action-bar) { padding-bottom: 140px; }
}

/* ---- v10 form pieces used on seller pages (see forms.css after merge) ----
   Seller scope only (:where keeps zero specificity): customer pages use
   public.css, setup forms use the shared forms.css rules directly. */
:where(body.is-seller) .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin: 16px 0;
}
:where(body.is-seller) .form-card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
:where(body.is-seller) .form-card-sub { margin: 0 0 12px; }
:where(body.is-seller) .field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 6px;
}
:where(body.is-seller) .field-label .req { color: var(--red); }
:where(body.is-seller) .field-input {
  width: 100%;
  min-height: var(--tap);
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
}
:where(body.is-seller) .field-input[aria-invalid="true"] { border-color: var(--red); }
:where(body.is-seller) .field-hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
:where(body.is-seller) .field-error { color: var(--red); font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
:where(body.is-seller) .toast {
  background: var(--chrome);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow-card);
}
:where(body.is-seller) .more {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0;
}
:where(body.is-seller) .more-body { padding-top: 8px; }

/* ---- Today page: homepage rhythm around the kept Task 61 states ---- */
.today-wrap .step-card { margin: 56px 0; }
@media (max-width: 899.98px) {
  .today-wrap .step-card { margin: 40px 0; }
}
.today-wrap .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.grp-more { text-align: right; margin: 10px 0 0; }
@media (min-width: 1000px) {
  /* The same primary already sits in .page-actions: no mirror bar. */
  .today-bar, .phone-bar { display: none; }
}

/* ---- Check (review) page: progress header + one clean card at a time ---- */
.review-progress { margin: 0 0 4px; }
.review-card .question { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 1000px) {
  .review-progress { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ---- Small-screen guards: no page-level sideways scroll at 320px ---- */
@media (max-width: 399.98px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-cta .pill.big,
  .bill-cta .pill.big { flex: 1 1 100%; justify-content: center; }
  .sticky-bar.bill-bar { flex-wrap: wrap; }
}
/* Bill pay bar on phones: total on its own line, pay buttons share
   rows and wrap their labels; every target stays 44px+. */
@media (max-width: 480px) {
  .sticky-bar.bill-bar .sticky-total {
    flex: 1 1 100%;
    text-align: center;
  }
  .sticky-bar.bill-bar form,
  .sticky-bar.bill-bar > a.pill { flex: 1 1 140px; min-width: 0; }
  .sticky-bar.bill-bar .pill { width: 100%; min-height: 44px; font-size: 14px; }
  .band .gcards, .choice, .contact-grid, .tiles-four {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.bill-layout,
.live-columns,
.today-wrap .with-side { min-width: 0; }
.close-table input[type="number"] { max-width: 84px; }

/* Task 150: the Settings language switch (the strip row hides on
   phones, so the switch lives here and in the profile menu). Full
   44px targets at every width. */
.set-lang {
  display: flex;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  flex-wrap: wrap;
}
.set-lang button {
  min-height: 44px;
  min-width: 64px;
  justify-content: center;
  font-size: 14px;
  padding: 8px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
}
.set-lang button.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: none;
}

/* Task 150: on phones the action bar docks directly above the bottom
   nav (no 8px gap) with tighter padding, so header + bar + nav stay
   within 25% of a 740px screen. The ≤999px padding-bottom rules above
   still keep content clear of both bars. */
@media (max-width: 700px) {
  :where(body.is-seller) .action-bar { padding: 8px 12px; }
  :where(body.is-seller) .action-bar .pill,
  :where(body.is-seller) .action-bar .btn { min-height: 44px; }
  body:has(.bnav) .action-bar { bottom: var(--bnav-h); }
}
