/* ============================================================================
   Volunteer Tracker — design system (v4, light mode only)
   "Soft hospice SaaS + subtle MortonApps DNA" pass: warm cream canvas, deep
   teal product identity, muted rust accent, tiny hints of MortonApps navy in
   gradients and details. Calm and lightweight — not dark, not cyber, not
   overly corporate. Structured app shell (contained main column, pill nav,
   page headers, KPI strips, layered card depth) + document-grade print intact.
   Token-based: change the :root custom properties, the app follows.

   Contrast notes (all checked ≥ 4.5:1 for text):
     --vc-accent  #B64932 on white          ≈ 5.3:1  (TEXT-SAFE rust; the
       decorative rust #C24A2E + soft tint #F8E7DE are NON-TEXT — rails,
       motifs, fills)
     --vc-primary #0F766E on white          ≈ 4.8:1  (on cream ≈ 5.1:1)
     #fff on --vc-primary                   ≈ 4.8:1 (button gradient darker)
     --vc-text-soft #61736B on cream        ≈ 4.7:1
   ============================================================================ */

:root {
  /* color tokens */
  --vc-primary: #0F766E;        /* deep teal — primary actions, links, accents */
  --vc-primary-dark: #0B5F58;   /* dark teal — hover / dark text-on-soft */
  --vc-primary-soft: #E2F0ED;   /* teal tint — pills, fills, hovers */
  --vc-green: #2F7D63;          /* hospice green — supporting (bar fills) */
  --vc-navy: #102A43;           /* MortonApps navy — gradients + details only */
  --vc-accent: #B64932;         /* muted rust — TEXT-SAFE accent (wordmark) */
  --vc-accent-deco: #C24A2E;    /* MortonApps rust — DECORATIVE ONLY (rails), never text */
  --vc-accent-bright: #C24A2E;  /* rust — DECORATIVE ONLY (motifs), never text */
  --vc-accent-soft: #F8E7DE;    /* soft rust tint — rare highlight fills, never text */
  --vc-bg: #F8F5EE;             /* warm cream page canvas */
  --vc-surface: #FFFFFF;        /* card surface */
  --vc-surface-muted: #F3EFE7;  /* warm alternate surface — table header bands */
  --vc-border: #E3DDD2;         /* warm sand border */
  --vc-row-hover: #F8F5EE;      /* table row hover wash (page-canvas cream) */
  --vc-text: #17231F;
  --vc-text-soft: #61736B;
  --vc-danger: #B3473D;         /* SEMANTIC only — destructive/error, never decorative */
  --vc-danger-soft: #F8ECEA;
  --vc-ok: #0F766E;

  /* shape + depth — soft radii, layered low-contrast shadows */
  --vc-radius: 18px;
  --vc-radius-sm: 10px;
  --vc-shadow: 0 1px 2px rgba(28, 39, 35, .04), 0 16px 40px rgba(28, 39, 35, .07);
  --vc-shadow-lift: 0 2px 4px rgba(28, 39, 35, .06), 0 22px 48px rgba(28, 39, 35, .1);
  --vc-shadow-panel: 0 1px 3px rgba(28, 39, 35, .05), 0 20px 48px rgba(28, 39, 35, .09);
  --vc-card-grad: linear-gradient(180deg, var(--vc-surface), #FFFFFF);

  /* shell metrics — sticky table headers offset below the sticky nav */
  --vc-nav-h: 68px;

  /* type — generous base for non-technical users; confident display face
     for the wordmark + headings */
  --vc-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --vc-display: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--vc-font);
  background: var(--vc-bg);
  color: var(--vc-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App shell pages (app.html) get a sticky-footer column so the tiny
   MortonApps line sits at the true bottom of the scroll. Login + landing
   keep their own layout + the original .vc-footer treatment. */
body.vc-app { min-height: 100vh; display: flex; flex-direction: column; }
body.vc-app .vc-main { flex: 1; width: 100%; }

h1, h2, h3 { font-family: var(--vc-display); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
a { color: var(--vc-primary); }

/* ---- two-tone wordmark (MortonApps family signature) -------------------- */
.wordmark {
  font-family: var(--vc-display);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark .wm-a { color: var(--vc-primary); }
.wordmark .wm-b { color: var(--vc-accent); }

/* ---- top nav (taller frosted bar, soft pill links) ----------------------- */
.vc-nav {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 221, 210, .65);
  padding: .75rem 1.75rem;
  position: sticky; top: 0; z-index: 50;
}
.vc-nav .wordmark {
  font-size: 1.12rem; padding: .35rem 1.1rem .35rem 0; margin-right: .6rem;
  white-space: nowrap;
}
.vc-nav a.nav-link {
  text-decoration: none; color: var(--vc-text-soft);
  padding: .42rem .95rem; font-weight: 600;
  border-radius: 999px;
  transition: color .12s, background-color .12s;
}
.vc-nav a.nav-link:hover { color: var(--vc-primary-dark); background: rgba(23, 35, 31, .05); }
.vc-nav a.nav-link.active { color: var(--vc-primary-dark); background: var(--vc-primary-soft); font-weight: 700; }
.vc-nav .spacer { flex: 1; }

/* workspace chip on the right — avatar dot (agency initial) + name text.
   #who keeps its id contract (app.js sets textContent); ui.js mirrors the
   first letter into #who-avatar and toggles .has-text on the chip. */
.vc-nav .who {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--vc-text); font-size: .85rem; font-weight: 600;
  background: #fff;
  border: 1px solid var(--vc-border);
  border-radius: 999px;
  padding: .26rem .95rem .26rem .3rem; margin-right: .45rem;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(28, 39, 35, .04);
  transition: border-color .12s, box-shadow .12s;
}
.vc-nav .who:hover { border-color: #D5CEC0; box-shadow: 0 2px 8px rgba(28, 39, 35, .08); }
.vc-nav .who:not(.has-text) { display: none; }
.who-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
  color: #fff;
  font-family: var(--vc-display); font-size: .72rem; font-weight: 800;
  user-select: none;
}
.who-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* quiet utility links at the far right (change password / sign out) */
.vc-nav .nav-util {
  font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--vc-text-soft);
  background: none; border: none; cursor: pointer;
  text-decoration: none;
  padding: .35rem .7rem; border-radius: 999px;
  transition: color .12s, background-color .12s;
}
.vc-nav .nav-util:hover { color: var(--vc-primary-dark); background: rgba(23, 35, 31, .05); }

/* small screens: let the nav wrap, drop the who-pill, scroll wide tables */
@media (max-width: 760px) {
  .vc-nav { flex-wrap: wrap; padding: .5rem 1rem; }
  .vc-nav .who { display: none; }
  .vc-nav a.nav-link { padding: .35rem .7rem; }
  table.vc-table { display: block; overflow-x: auto; }
}

/* ---- layout ------------------------------------------------------------ */
.vc-main { max-width: 1280px; margin: 0 auto; padding: 34px 32px 64px; }
@media (max-width: 760px) { .vc-main { padding: 22px 16px 52px; } }

/* subtle page transition on route change (app.js swaps one child into #view) */
#view > * { animation: vc-page-in .22s ease-out; }
@keyframes vc-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* tiny muted line at the true bottom of the scroll (app shell only) */
.app-foot {
  text-align: center;
  color: var(--vc-text-soft);
  font-size: .78rem;
  padding: 1rem 1rem 1.4rem;
}
.app-foot a {
  color: var(--vc-text-soft);
  text-decoration: underline;
  text-decoration-color: var(--vc-border);
  text-underline-offset: 3px;
}
.app-foot a:hover { color: var(--vc-primary-dark); }

/* ---- page header (UI.pageHeader) ----------------------------------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.25rem; flex-wrap: wrap;
  margin: 0 0 1.35rem;
}
.page-head h1 { margin: 0; font-size: 1.95rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.page-desc { margin: .35rem 0 0; color: var(--vc-text-soft); font-size: .92rem; max-width: 60ch; }
.page-head-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* in-page section header — clearly below page titles, above table labels */
.section-head {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  font-family: var(--vc-display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--vc-text);
  margin: 0 0 .7rem;
}
.section-head .muted { font-family: var(--vc-font); font-size: .85rem; font-weight: 600; }

/* ---- KPI strip (UI.kpiStrip) — Tier 2 surface ------------------------------ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .9rem;
  margin: 0 0 1.35rem;
}
.kpi-card {
  background: var(--vc-card-grad);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  box-shadow: var(--vc-shadow);
  padding: .85rem 1.1rem .8rem;
  min-width: 0;
}
.kpi-label {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--vc-text-soft);
}
.kpi-val {
  font-family: var(--vc-display);
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--vc-primary-dark);
  margin-top: .08rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* supporting row under the number: sub-text + optional trend chip */
.kpi-foot { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: .12rem; min-width: 0; }
.kpi-sub { font-size: .8rem; color: var(--vc-text-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kpi-trend {
  display: inline-flex; align-items: center; gap: .15rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  border-radius: 99px; padding: .06rem .5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi-trend--up   { background: #D7EAE6; color: var(--vc-primary-dark); }
.kpi-trend--flat { background: #ECE7DB; color: #5C5648; }
.kpi-trend--down { background: var(--vc-accent-soft); color: var(--vc-accent); } /* muted rust, NOT danger red */

/* ---- surface tiers ---------------------------------------------------------
   .panel          Tier 1 — page-level container: larger radius, stronger (still
                   soft) shadow, more padding. .panel--feature adds the
                   teal→rust→navy top accent line (same gradient as .card-rail).
   .card           Tier 2 — the workhorse (unchanged contract, tightened pad).
   .card--utility  Tier 3 — flatter quick-action block, smaller radius,
                   stronger hover lift. Use ONLY on actionable/clickable cards.
   --------------------------------------------------------------------------- */
.panel {
  background: var(--vc-card-grad);
  border: 1px solid var(--vc-border);
  border-radius: 22px;
  box-shadow: var(--vc-shadow-panel);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.3rem;
}
/* overflow: clip (NOT hidden) — hidden would turn the panel into the
   scrollport and break .vc-table--sticky headers inside it */
.panel--feature { position: relative; overflow: clip; }
.panel--feature::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--vc-primary) 0%, var(--vc-primary) 46%, var(--vc-accent-deco) 64%, var(--vc-navy) 100%);
}

.card {
  background: var(--vc-card-grad);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  padding: 1.3rem 1.45rem;
  margin-bottom: 1.2rem;
}
.card-sub { margin: -.25rem 0 1rem; color: var(--vc-text-soft); font-size: .92rem; }

.card--utility {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 39, 35, .05);
  padding: 1rem 1.15rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card--utility:hover {
  transform: translateY(-2px);
  box-shadow: var(--vc-shadow-lift);
  border-color: var(--vc-primary);
}

/* 4px top rail gradient — KEY FORM CARDS ONLY (Add Hours, login card).
   teal → rust → navy: the MortonApps family signature, decorative colors
   only (never text). */
.card-rail { position: relative; overflow: clip; }   /* clip, not hidden — keeps position:sticky working inside */
.card-rail::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--vc-primary) 0%, var(--vc-primary) 46%, var(--vc-accent-deco) 64%, var(--vc-navy) 100%);
}

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* ---- quiet MortonApps footer (landing + login keep this) ------------------ */
.vc-footer {
  text-align: center;
  color: var(--vc-text-soft);
  font-size: .85rem;
  padding: 1.25rem 1rem 1.5rem;
}
.vc-footer a {
  color: var(--vc-text-soft);
  text-decoration: underline;
  text-decoration-color: var(--vc-border);
  text-underline-offset: 3px;
}
.vc-footer a:hover { color: var(--vc-primary-dark); }

/* ---- forms ------------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field { margin-bottom: .9rem; }
.hint { font-size: .82rem; color: var(--vc-text-soft); margin-top: .3rem; line-height: 1.4; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="tel"], input[type="search"], input[type="time"],
select, textarea {
  width: 100%;
  font: inherit;
  color: var(--vc-text);
  background: #fff;
  border: 1.5px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
  padding: .6rem .75rem;           /* big touch targets */
  min-height: 2.75rem;             /* ≈ 47px standard control height */
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15, 118, 110, .30);   /* calm teal focus ring */
  outline-offset: 1px;
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, .08);
}
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .45);
  outline-offset: 2px;
  border-color: var(--vc-primary);
}

/* inline validation state — pair with a .hint set to the error message */
.input-invalid,
input.input-invalid:focus, select.input-invalid:focus, textarea.input-invalid:focus {
  border-color: var(--vc-danger);
  box-shadow: 0 0 0 4px rgba(179, 71, 61, .12);
}
.input-invalid:focus { outline-color: rgba(179, 71, 61, .30); }
.hint-invalid { color: var(--vc-danger); font-weight: 600; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

fieldset.areas-pick { border: 1.5px solid var(--vc-border); border-radius: var(--vc-radius-sm); padding: .5rem .75rem; }
fieldset.areas-pick legend { font-weight: 600; font-size: .92rem; padding: 0 .25rem; }
fieldset.areas-pick label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: .25rem 1rem .25rem 0; }
fieldset.areas-pick input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--vc-primary); }

/* ---- soft amber notice box (UI.privacyNotice) ----------------------------- */
.notice-soft {
  display: flex; gap: .65rem; align-items: flex-start;
  background: #FCF4E2;
  border: 1px solid #EBDCB4;
  border-radius: 12px;
  padding: .7rem .95rem;
  color: #6B4E13;                /* amber-safe text, ≥ 4.5:1 on #FCF4E2 */
  font-size: .9rem; line-height: 1.45;
  margin: .25rem 0 1.1rem;
}
.notice-soft strong { color: inherit; }
.notice-soft .notice-icon { flex: 0 0 auto; margin-top: .12rem; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  font: inherit; font-weight: 600;
  border-radius: var(--vc-radius-sm);
  border: 1.5px solid transparent;
  padding: .62rem 1.2rem;
  min-height: 2.75rem;
  cursor: pointer;
  background: var(--vc-primary-soft);     /* primary-quiet — the default */
  color: var(--vc-primary-dark);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s, color .12s, filter .12s;
}
.btn:hover { filter: brightness(.98); transform: translateY(-1px); box-shadow: var(--vc-shadow); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn-primary {
  background: linear-gradient(180deg, #137C72 0%, #0B625B 100%);
  color: #fff;
  border: 1px solid rgba(8, 77, 71, .35);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .20), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #0F756B 0%, #0A5750 100%);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:active { transform: translateY(1px) scale(.99); box-shadow: 0 4px 10px rgba(15, 118, 110, .18), inset 0 1px 0 rgba(255, 255, 255, .12); }
/* secondary — white with a border */
.btn-ghost { background: #fff; border-color: var(--vc-border); color: var(--vc-text); }
.btn-ghost:hover { color: var(--vc-primary-dark); border-color: var(--vc-primary); background: #fff; filter: none; }
.btn-danger { background: var(--vc-danger-soft); color: var(--vc-danger); }
.btn-danger-solid { background: var(--vc-danger); color: #fff; }
.btn-danger-solid:hover { filter: brightness(.92); }
/* text-only action that reads as a link (e.g. the hours form's entry-mode
   toggle) — no chrome, so it never competes with the real buttons */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .9rem;
  color: var(--vc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--vc-primary-dark); }
/* subdued destructive row action — muted text until hover reveals intent */
.btn-subtle { background: transparent; color: var(--vc-text-soft); }
.btn-subtle:hover { background: var(--vc-danger-soft); color: var(--vc-danger); filter: none; }
.btn-sm { padding: .3rem .7rem; min-height: 2.1rem; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
/* .btn sets display:inline-flex, which would defeat the hidden attribute —
   restore it (e.g. the profile timeline's "Show more" when fully loaded). */
.btn[hidden] { display: none; }

/* filter chips (Recent Entries quick filters) */
.chip {
  font: inherit; font-size: .86rem; font-weight: 600;
  border: 1.5px solid var(--vc-border);
  background: transparent; color: var(--vc-text-soft);
  border-radius: 999px;
  padding: .28rem .85rem; min-height: 2rem;
  cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s;
}
.chip:hover { color: var(--vc-primary-dark); border-color: var(--vc-primary); }
.chip.active { background: var(--vc-primary-soft); border-color: var(--vc-primary-soft); color: var(--vc-primary-dark); }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.filter-row select { width: auto; min-height: 2.1rem; padding: .25rem 1.8rem .25rem .6rem; font-size: .88rem; }

/* ---- tables ------------------------------------------------------------- */
table.vc-table { width: 100%; border-collapse: collapse; }
.vc-table th, .vc-table td { text-align: left; padding: .85rem .85rem; vertical-align: middle; }
.vc-table td { border-bottom: 1px solid var(--vc-border); }
.vc-table th {
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--vc-primary-dark);
  background: var(--vc-surface-muted);         /* warm alternate band, not hard lines */
  border-bottom: none;
  padding-top: .55rem; padding-bottom: .55rem;
}
.vc-table thead tr th:first-child { border-radius: var(--vc-radius-sm) 0 0 var(--vc-radius-sm); }
.vc-table thead tr th:last-child  { border-radius: 0 var(--vc-radius-sm) var(--vc-radius-sm) 0; }
.vc-table th.sortable { cursor: pointer; user-select: none; }
.vc-table th.sortable:hover { color: var(--vc-primary); }
.vc-table tbody tr { transition: background-color .1s; }
.vc-table tbody tr:hover { background: var(--vc-row-hover); }
.vc-table td .row-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.vc-table td input, .vc-table td select { min-height: 2.2rem; padding: .25rem .4rem; }

/* sticky header: sticks below the app nav in normal page flow; inside an
   overflow container set --vc-sticky-top: 0 on the wrapper.
   border-collapse: separate is REQUIRED — Chromium mis-lays-out sticky th
   under border-collapse: collapse (header overlaps row 1). */
table.vc-table--sticky { border-collapse: separate; border-spacing: 0; }
.vc-table--sticky thead th { position: sticky; top: var(--vc-sticky-top, var(--vc-nav-h)); z-index: 5; }

/* column alignment utilities (apply to BOTH th and td) */
.vc-table .col-actions { text-align: right; width: 1%; white-space: nowrap; }
.vc-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
/* the bare .right utility (specificity 0,1,0) loses to `.vc-table th/td
   { text-align: left }` (0,1,1) — re-assert it for the numeric columns that
   use it (report tables, profile Hours-by-Year/timeline, Areas entries) */
.vc-table th.right, .vc-table td.right { text-align: right; }

/* ---- status pill system ----------------------------------------------------
   One .pill class + tone modifiers. .badge / .badge.active / .badge.inactive
   remain as live aliases — existing view markup keeps working unchanged. */
.pill, .badge { display: inline-block; padding: .14rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill--active,  .badge.active   { background: #D7EAE6; color: var(--vc-primary-dark); }   /* soft teal */
.pill--neutral, .badge.inactive { background: #ECE7DB; color: #5C5648; }                  /* warm stone */
.pill--pending  { background: #FCF4E2; color: #6B4E13; }                                  /* soft amber */
.pill--muted    { background: #EFEDE8; color: var(--vc-text-soft); }                      /* quiet gray */
.pill--danger   { background: var(--vc-danger-soft); color: var(--vc-danger); }           /* sparingly */

.empty { color: var(--vc-text-soft); text-align: center; padding: 2.4rem 1rem; }

/* ---- empty states (UI.emptyState) ----------------------------------------- */
.empty-state { text-align: center; padding: 2.6rem 1.25rem 2.4rem; }
.empty-state-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--vc-primary-soft); color: var(--vc-primary);
  margin-bottom: .65rem;
}
.empty-state-icon svg { display: block; }
.empty-state-title { font-family: var(--vc-display); font-size: 1.08rem; font-weight: 700; color: var(--vc-text); }
.empty-state-body { margin: .3rem auto 0; max-width: 46ch; color: var(--vc-text-soft); font-size: .92rem; line-height: 1.5; }
.empty-state-cta { margin-top: 1rem; }

/* ---- loading skeletons (UI.skeletonRows) ----------------------------------- */
.skeleton {
  display: block;
  height: .9rem; border-radius: 6px;
  background: linear-gradient(90deg, #EFEBE2 25%, #F7F4ED 45%, #EFEBE2 65%);
  background-size: 200% 100%;
  animation: vc-shimmer 1.3s linear infinite;
}
@keyframes vc-shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }
.skeleton-line { width: 100%; max-width: 11rem; }
.skeleton-row td:nth-child(even) .skeleton-line { max-width: 7rem; }

/* ---- row overflow menu (UI.rowMenu) ---------------------------------------- */
.row-menu { display: inline-flex; }
.row-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  background: transparent; border: none; border-radius: 8px;
  color: var(--vc-text-soft); cursor: pointer;
  transition: background-color .12s, color .12s;
}
.row-menu-btn:hover, .row-menu-btn[aria-expanded="true"] { background: var(--vc-surface-muted); color: var(--vc-primary-dark); }
.row-menu-pop {
  position: fixed; z-index: 130;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  box-shadow: var(--vc-shadow-lift);
  padding: .3rem;
  animation: vc-pop-in .12s ease-out;
}
@keyframes vc-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.row-menu-item {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--vc-text);
  background: none; border: none; border-radius: 8px;
  padding: .45rem .7rem; cursor: pointer;
  transition: background-color .1s, color .1s;
}
.row-menu-item:hover, .row-menu-item:focus-visible { background: var(--vc-row-hover); color: var(--vc-primary-dark); outline: none; }
/* destructive item: muted rust at rest, true danger red only on hover/focus */
.row-menu-item.danger { color: var(--vc-accent); }
.row-menu-item.danger:hover, .row-menu-item.danger:focus-visible { background: var(--vc-danger-soft); color: var(--vc-danger); }
.row-menu-item:disabled { opacity: .5; cursor: not-allowed; background: none; color: var(--vc-text-soft); }

/* ---- modal (slide-over on wide screens) --------------------------------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23, 35, 31, .38);
  display: flex; justify-content: flex-end;
}
.modal-panel {
  background: var(--vc-surface);
  width: min(560px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 1.6rem 3rem;
  box-shadow: -8px 0 30px rgba(23, 35, 31, .15);
  animation: vc-slide-in .18s ease-out;
}
@keyframes vc-slide-in { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-foot { display: flex; gap: .75rem; margin-top: 1.25rem; }

/* ---- soft confirmation dialog (UI.confirm) -------------------------------- */
.confirm-scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(23, 35, 31, .38);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.confirm-box {
  background: var(--vc-card-grad);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow-lift);
  width: 100%; max-width: 440px;
  padding: 1.4rem 1.5rem 1.3rem;
  animation: vc-confirm-in .15s ease-out;
}
@keyframes vc-confirm-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm-box h2 { font-size: 1.12rem; margin-bottom: .35rem; }
.confirm-msg { margin: 0; color: var(--vc-text-soft); font-size: .95rem; }
.confirm-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ---- command palette (UI.commandPalette, Ctrl/Cmd+K) -----------------------
   Own .cmdk-* namespace — shares the scrim color with .modal-scrim but is a
   separate layer (z 150: over slide-overs at 100 + confirms at 140, under
   toasts at 200). */

/* nav trigger — quiet .nav-util sibling: magnifier + a tiny kbd chip */
.cmdk-nav-btn { display: inline-flex; align-items: center; gap: .45rem; }
.cmdk-nav-btn svg { display: block; flex: 0 0 auto; }
.cmdk-kbd {
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--vc-text-soft);
  background: var(--vc-surface-muted);
  border: 1px solid var(--vc-border);
  border-radius: 6px;
  padding: .04rem .4rem;
  white-space: nowrap;
  transition: color .12s;
}
.cmdk-nav-btn:hover .cmdk-kbd { color: var(--vc-primary-dark); }
@media (max-width: 760px) { .cmdk-kbd { display: none; } }

.cmdk-scrim {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(23, 35, 31, .38);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 18vh 1rem 1.5rem;
}
.cmdk-panel {
  width: 100%; max-width: 560px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  box-shadow: var(--vc-shadow-lift);
  overflow: hidden;
  animation: vc-cmdk-in .16s ease-out;
}
@keyframes vc-cmdk-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

.cmdk-input-wrap { position: relative; }
.cmdk-search-icon {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  color: var(--vc-text-soft); pointer-events: none;
}
input.cmdk-input {
  width: 100%;
  border: none; border-radius: 0;
  min-height: 3.3rem;
  padding: .85rem 1.1rem .85rem 2.75rem;
  font-size: 1rem;
  background: #fff;
}
input.cmdk-input:focus { outline: none; box-shadow: none; border: none; }

.cmdk-list {
  max-height: 352px; overflow-y: auto;
  border-top: 1px solid var(--vc-border);
  padding: .4rem;
}
.cmdk-group-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--vc-text-soft);
  padding: .5rem .65rem .25rem;
}
.cmdk-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .52rem .65rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600; font-size: .95rem;
  color: var(--vc-text);
}
/* single JS-driven highlight (keyboard + mousemove share it) — no :hover rule,
   so the keyboard cursor and the pointer never show two highlights at once */
.cmdk-item.cmdk-active { background: var(--vc-primary-soft); color: var(--vc-primary-dark); }
.cmdk-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item-code { font-size: .8rem; font-weight: 600; color: var(--vc-text-soft); white-space: nowrap; }
.cmdk-item-hint, .cmdk-item .pill { margin-left: auto; flex: 0 0 auto; }
.cmdk-item-hint { font-size: .78rem; font-weight: 600; color: var(--vc-text-soft); white-space: nowrap; }
.cmdk-note { padding: .55rem .65rem .7rem; color: var(--vc-text-soft); font-size: .9rem; }
.cmdk-foot {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--vc-border);
  background: var(--vc-surface-muted);
  padding: .45rem .9rem;
  font-size: .76rem; font-weight: 600; color: var(--vc-text-soft);
}

/* ---- combobox (volunteer quick-pick on Hours) ---------------------------- */
.combo { position: relative; }
.combo .combo-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1.5px solid var(--vc-border);
  border-radius: var(--vc-radius-sm); box-shadow: var(--vc-shadow-lift);
  max-height: 280px; overflow-y: auto; margin: .2rem 0 0; padding: .25rem; list-style: none;
}
.combo .combo-list li { padding: .5rem .6rem; border-radius: 7px; cursor: pointer; }
.combo .combo-list li .sub { font-size: .8rem; color: var(--vc-text-soft); }
.combo .combo-list li:hover, .combo .combo-list li[aria-selected="true"] { background: var(--vc-primary-soft); }

/* ---- toasts + saved flash ------------------------------------------------ */
#vc-toasts { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--vc-text); color: #fff;
  border-radius: var(--vc-radius-sm); padding: .6rem 1.1rem;
  box-shadow: var(--vc-shadow-lift); font-weight: 600;
  animation: vc-toast-in .15s ease-out;
}
.toast.error { background: var(--vc-danger); }
@keyframes vc-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.saved-flash { color: var(--vc-ok); font-weight: 700; opacity: 0; transition: opacity .25s; }
.saved-flash.show { opacity: 1; }

/* ---- login + landing pages ------------------------------------------------ */
/* Layered ambient canvas: soft teal / navy / rust glows over a warm cream
   vertical wash, plus a barely-there navy dot texture (the ::before layer). */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 1.5rem;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(15, 118, 110, .10), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(16, 42, 67, .07), transparent 32%),
    radial-gradient(circle at 22% 86%, rgba(194, 74, 46, .055), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, #f6f1e8 100%);
}
.login-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16, 42, 67, .035) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* faint leaf-line motifs — corner ornamentation only (decorative; aria-hidden).
   Inline stroke opacities are .10–.16; ×.3 here ≈ 3–5% effective. */
.login-motif {
  position: absolute; pointer-events: none; z-index: 0;
  width: 380px; height: 380px;
  right: -110px; top: -110px;
  opacity: .3;
}
.login-motif.motif-b {
  width: 340px; height: 340px;
  left: -120px; right: auto; top: auto; bottom: -120px;
  transform: rotate(160deg);
}
@media (max-width: 760px) { .login-motif { display: none; } }
/* frosted card floating on the ambient canvas */
.login-card {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--vc-border);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(23, 35, 31, .10), 0 2px 8px rgba(23, 35, 31, .05);
  overflow: hidden;
  padding: 2.1rem 2rem 1.7rem;
}
.login-card .wordmark { display: block; text-align: center; font-size: 28px; margin-bottom: .25rem; }
.login-card .tagline { text-align: center; color: var(--vc-text-soft); font-size: .92rem; margin: 0 0 1.5rem; }
.login-card .btn { width: 100%; }
.login-wrap .vc-footer { position: relative; z-index: 1; padding-bottom: 0; }

/* ---- MortonApps product-family badge pill --------------------------------- */
.ma-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--vc-border);
  color: var(--vc-text-soft);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(23, 35, 31, .05);
  transition: color .12s, border-color .12s, background-color .12s;
}
.ma-badge:hover { color: var(--vc-primary-dark); border-color: #D5CEC0; background: rgba(255, 255, 255, .85); }
.ma-badge .ma-dot { display: inline-flex; flex: 0 0 auto; }
.form-error { background: var(--vc-danger-soft); color: var(--vc-danger); border-radius: var(--vc-radius-sm); padding: .55rem .8rem; margin-bottom: .9rem; font-weight: 600; display: none; }
.form-error.show { display: block; }

/* utility */
.muted { color: var(--vc-text-soft); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: 1rem; }

/* ---- CSV import button group -------------------------------------------- */
.import-group { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.import-label { cursor: pointer; }
.import-label:hover { filter: brightness(.97); }

/* ---- Import results modal body ------------------------------------------- */
.import-result { padding-top: .25rem; }
.import-created {
  font-size: 1.1rem; font-weight: 600; color: var(--vc-ok);
  margin: 0 0 .75rem;
}
.import-errors { margin-top: .75rem; }
.import-errors-hd {
  font-weight: 600; font-size: .92rem; color: var(--vc-danger);
  margin: 0 0 .4rem;
}
.import-errors-list {
  margin: 0; padding: 0 0 0 1.2rem;
  max-height: 320px; overflow-y: auto;
  font-size: .9rem; color: var(--vc-text);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
  padding: .6rem .75rem;
  background: var(--vc-bg);
  list-style: disc;
}
.import-errors-list li { margin-bottom: .3rem; line-height: 1.4; }
.import-errors-list li:last-child { margin-bottom: 0; }

/* ---- Settings view -------------------------------------------------------- */
.settings-section-hd { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.settings-section-hd h2 { margin: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.settings-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .settings-grid { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: flex-start; gap: .6rem; }
.check-row input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--vc-primary); }
.check-row label { font-weight: 600; margin: 0; }
.check-row .hint { margin-top: .1rem; }
.email-test-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-top: .25rem; }
.email-test-row .grow { flex: 1; min-width: 220px; }
.test-result { font-weight: 600; font-size: .92rem; margin-top: .6rem; display: none; border-radius: var(--vc-radius-sm); padding: .55rem .8rem; }
.test-result.show { display: block; }
.test-result.ok { background: var(--vc-primary-soft); color: var(--vc-primary-dark); }
.test-result.err { background: var(--vc-danger-soft); color: var(--vc-danger); }

/* ---- Dashboard ------------------------------------------------------------ */
.dash-cols {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 1.2rem; align-items: start;
}
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.dash-cols .card { margin-bottom: 1.2rem; }
.dash-cols .card:last-child { margin-bottom: 0; }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .9rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--vc-border);
}
.activity-list li:last-child { border-bottom: none; }
.activity-list .act-main { min-width: 0; }
.activity-list .act-name { font-weight: 600; }
.activity-list .act-date { color: var(--vc-text-soft); font-size: .88rem; white-space: nowrap; }

.bar-row { margin-bottom: .85rem; }
.bar-row:last-child { margin-bottom: .15rem; }
.bar-meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; }
.bar-meta .bar-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-meta .bar-hrs { color: var(--vc-text-soft); white-space: nowrap; }
.bar-track { height: 8px; border-radius: 99px; background: var(--vc-surface-muted); margin-top: .32rem; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--vc-primary), var(--vc-green)); min-width: 6px; }

.quick-actions { display: grid; gap: .55rem; }
.qa-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .62rem .85rem;
  border: 1.5px solid var(--vc-border);
  border-radius: 12px;
  text-decoration: none; color: var(--vc-text); font-weight: 600;
  transition: border-color .12s, background-color .12s;
}
.qa-link:hover { border-color: var(--vc-primary); background: var(--vc-primary-soft); color: var(--vc-primary-dark); }
.qa-link .qa-icon { color: var(--vc-primary); display: inline-flex; flex: 0 0 auto; }
.qa-link .qa-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--vc-text-soft); }

/* friendly first-steps card for brand-new tenants */
.first-steps ol { margin: .25rem 0 0; padding-left: 1.3rem; }
.first-steps li { margin-bottom: .45rem; }

/* ---- Reports view --------------------------------------------------------- */

/* Launcher tiles grid */
.reports-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: .25rem;
}
.rpt-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  background: var(--vc-card-grad);
  border: 1.5px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  padding: 1.4rem 1.5rem 1.35rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rpt-card:hover, .rpt-card:focus {
  border-color: var(--vc-primary);
  box-shadow: var(--vc-shadow-lift);
  transform: translateY(-2px);
  outline: none;
}
.rpt-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
  margin-bottom: .3rem;
}
.rpt-icon svg { display: block; }
.rpt-card-title {
  font-family: var(--vc-display);
  font-weight: 700; font-size: 1.08rem;
  color: var(--vc-primary-dark);
}
.rpt-card-desc  { font-size: .92rem; color: var(--vc-text); line-height: 1.45; }
.rpt-card-best  { font-size: .84rem; color: var(--vc-text-soft); margin-top: .1rem; }
.rpt-card-best strong { color: var(--vc-accent); font-weight: 700; }   /* text-safe rust */
.rpt-card .rpt-generate { margin-top: .9rem; }

/* Back bar */
.rpt-back {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .9rem;
}
.rpt-back-label { font-weight: 600; color: var(--vc-text-soft); font-size: .92rem; }

/* Preset chips */
.rpt-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .25rem; }
.rpt-preset.active {
  background: var(--vc-primary); color: #fff;
  border-color: var(--vc-primary);
}

/* Area block: allow page break between areas in print, not inside a row */
.rpt-area-block { break-inside: avoid-page; }
.rpt-area-name  { margin-bottom: .75rem; color: var(--vc-primary-dark); }

/* Subtotal + grand total rows */
.rpt-subtotal td { background: var(--vc-surface-muted); font-style: italic; }
.rpt-grand-total  { border-top: 2px solid var(--vc-primary); }
.rpt-grand-row td { font-size: 1.03rem; }

/* Stat tiles (individual volunteer report) */
.rpt-tiles {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-bottom: 1.4rem;
}
.rpt-tile {
  background: var(--vc-card-grad);
  border: 1.5px solid var(--vc-border);
  border-radius: 16px;
  box-shadow: var(--vc-shadow);
  padding: .9rem 1.4rem;
  min-width: 120px; text-align: center;
}
.rpt-tile-val   { font-family: var(--vc-display); font-size: 1.7rem; font-weight: 800; color: var(--vc-primary-dark); }
.rpt-tile-label { font-size: .82rem; color: var(--vc-text-soft); margin-top: .2rem; }

/* Profile table (individual) */
.rpt-profile th {
  font-weight: 600; font-size: .88rem; color: var(--vc-text-soft);
  text-align: right; padding-right: 1rem; white-space: nowrap;
  width: 11rem; text-transform: none; letter-spacing: 0;
  background: none; border-radius: 0 !important;
}
.rpt-profile td { text-align: left; }

/* Action buttons below the report */
.rpt-actions {
  display: flex; gap: .75rem; margin: .75rem 0 1.5rem;
}

/* ---- Per-agency logo (Feature: branding) ---------------------------------- */
/* Nav: the logo takes the wordmark position; the two-tone wordmark stays
   beside it, smaller — product identity without competing with the agency. */
.vc-nav .wordmark { display: inline-flex; align-items: center; gap: .55rem; }
.nav-logo { display: block; max-height: 34px; max-width: 160px; width: auto; border-radius: 6px; }
.nav-logo[hidden] { display: none; }
.vc-nav .wordmark.has-logo { font-size: .9rem; opacity: .92; }

/* Settings → Agency logo uploader */
.logo-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.logo-preview {
  display: flex; align-items: center; gap: .6rem;
  min-width: 140px; min-height: 56px;
  border: 1.5px dashed var(--vc-border);
  border-radius: var(--vc-radius-sm);
  padding: .45rem .75rem;
  background: #fff;
}
.logo-preview img { display: block; max-height: 48px; max-width: 220px; width: auto; }
.logo-pending {
  font-size: .76rem; font-weight: 700; letter-spacing: .03em;
  color: #6B4E13; background: #FCF4E2; border: 1px solid #EBDCB4;
  border-radius: 99px; padding: .1rem .55rem; white-space: nowrap;
}
.logo-actions { display: flex; gap: .5rem; align-items: center; }

/* Printed report header logo (audit-binder hardcopy) */
.rpt-print-logo { display: block; max-height: 60px; max-width: 240px; width: auto; margin-bottom: .45rem; }

/* ---- Volunteer profile page ------------------------------------------------ */
.vol-link { color: var(--vc-text); font-weight: 600; text-decoration: none; }
.vol-link:hover { color: var(--vc-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.profile-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.profile-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--vc-border);
  align-items: baseline;
}
.profile-row:last-child { border-bottom: none; }
.profile-label { font-size: .88rem; font-weight: 600; color: var(--vc-text-soft); }
.profile-val { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .profile-row { grid-template-columns: 1fr; gap: .1rem; } }

/* ---- Hour-entry audit trail annotations ------------------------------------ */
/* tiny muted "edited" tag in the Hours recent-entries table */
.audit-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--vc-text-soft);
  background: var(--vc-surface-muted);
  border-radius: 99px; padding: .08rem .5rem;
  vertical-align: middle; white-space: nowrap;
}

/* timeline sub-line: "edited by … · Jun 10" (click expands before→after) */
.audit-note-row td { padding-top: 0 !important; border-bottom: 1px solid var(--vc-border); }
.audit-note {
  font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--vc-text-soft);
  background: none; border: none; padding: .05rem 0 .35rem; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.audit-note:hover { color: var(--vc-primary-dark); }
.audit-detail {
  margin: .15rem 0 .6rem;
  border-left: 3px solid var(--vc-border);
  padding: .35rem 0 .35rem .85rem;
  font-size: .86rem;
}
.audit-events { list-style: none; margin: 0; padding: 0; }
.audit-events > li { margin-bottom: .4rem; }
.audit-events > li:last-child { margin-bottom: 0; }
.audit-ev-hd { font-weight: 600; color: var(--vc-text-soft); }
.audit-diffs { list-style: none; margin: .15rem 0 0; padding: 0 0 0 .9rem; }
.audit-diffs li { margin-bottom: .1rem; }
.audit-diffs s { color: var(--vc-text-soft); }

/* ---- Import review screen (two-step CSV import) ----------------------------- */
.import-summary { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.imp-chip {
  display: inline-flex; align-items: center;
  font-size: .88rem; font-weight: 700;
  border-radius: 99px; padding: .25rem .85rem;
}
.imp-chip.imp-create { background: #D7EAE6; color: var(--vc-primary-dark); }
.imp-chip.imp-skip { background: #ECE7DB; color: #5C5648; }
.import-review-hd { font-weight: 600; font-size: .92rem; margin: 0 0 .4rem; }
.import-preview-wrap {
  max-height: 300px; overflow-y: auto;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
  margin-bottom: .9rem;
}
.import-preview th { position: sticky; top: 0; }
.import-preview td, .import-preview th { padding: .45rem .6rem; font-size: .88rem; }

/* Print-only header — hidden on screen */
.rpt-header.print-only { display: none; }
.rpt-print-org   { font-weight: 700; font-size: 1.1rem; }
.rpt-print-title { font-size: 1.4rem; font-weight: 700; margin: .2rem 0; }
.rpt-print-params{ font-size: .9rem; color: #444; }
.rpt-print-gen   { font-size: .8rem; color: #666; margin-top: .15rem; }

/* ---- @media print ---------------------------------------------------------
   Reports must stay black-on-white DOCUMENT-GRADE — do not soften print.
   The new shell chrome (nav pills, page-header actions, KPI strips, filter
   chips, notices, footers) must never leak into a printed report. */
@media print {
  /* Hide app chrome, config controls, action buttons, toasts */
  .vc-nav,
  .vc-footer,
  .app-foot,
  .page-head-actions,
  .kpi-strip,
  .filter-row,
  .notice-soft,
  #vc-toasts,
  #vc-modal-root,
  .confirm-scrim,
  .cmdk-scrim,
  .rpt-back,
  .rpt-presets,
  #rpt-custom-range,
  .rpt-actions,
  .login-motif,
  .row-menu,
  .row-menu-pop,
  .skeleton,
  .empty-state-cta,
  .no-print        { display: none !important; }

  /* Show the print-only report header */
  .rpt-header.print-only { display: block; margin-bottom: 1.25rem; }

  /* Remove config card when printing */
  .card:has(#rpt-run), .card:has(#rpt-status), .card:has(#rpt-vol-sel) { display: none; }

  /* White page, black text */
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  body.vc-app { display: block; }
  .vc-main { max-width: 100% !important; padding: 0 !important; }

  /* Page header: keep the title as a document heading, drop the chrome */
  .page-head { margin-bottom: .75rem; }
  .page-head h1 { color: #000 !important; font-size: 16pt; }
  .page-desc { display: none !important; }

  /* Clean table borders for print */
  table.vc-table { border-collapse: collapse; width: 100%; }
  .vc-table th, .vc-table td {
    border: 1px solid #bbb !important;
    padding: .3rem .5rem !important;
    color: #000 !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .vc-table th {
    background: #f0f0f0 !important;
    font-size: 9pt !important;
  }
  /* Repeat table header on each page */
  thead { display: table-header-group; }
  /* Never break inside a row; allow breaks between area groups */
  tr { break-inside: avoid; }
  .rpt-area-block { break-inside: avoid-page; margin-bottom: .75rem; }
  .rpt-grand-total { break-inside: avoid; }

  /* Subtotal row: light grey on print */
  .rpt-subtotal td { background: #f5f5f5 !important; }

  /* Stat tiles: inline on print */
  .rpt-tiles { display: flex; gap: .5rem; flex-wrap: wrap; }
  .rpt-tile  { border: 1px solid #bbb !important; box-shadow: none !important; padding: .4rem .7rem; background: #fff !important; }
  .rpt-tile-val   { font-size: 1.2rem; color: #000 !important; }
  .rpt-tile-label { font-size: 8pt; color: #444 !important; }

  /* Profile table */
  .rpt-profile th { color: #333 !important; }

  /* Cards + panels: no shadow, no radius, no gradient/rail on print */
  .card, .panel { box-shadow: none !important; border: 1px solid #ccc !important; border-radius: 0 !important;
          background: #fff !important;
          padding: .5rem .75rem !important; margin-bottom: .5rem !important; }
  .card-rail::before, .panel--feature::before { display: none !important; }

  /* Keep badge/pill text visible */
  .pill, .badge   { background: none !important; color: #000 !important; }
  .badge.inactive, .pill--neutral, .pill--muted { color: #555 !important; }

  /* No motion artifacts on print */
  #view > * { animation: none !important; }
}

/* ---- reduced motion ---------------------------------------------------------
   All decorative animation/transition added in the polish pass respects the
   user's OS preference. */
@media (prefers-reduced-motion: reduce) {
  #view > *,
  .skeleton,
  .row-menu-pop,
  .modal-panel,
  .confirm-box,
  .cmdk-panel,
  .toast { animation: none !important; }
  .btn, .btn:hover, .btn:active,
  .card--utility, .card--utility:hover,
  .rpt-card, .rpt-card:hover { transition: none !important; transform: none !important; }
}
