/* ==========================================================================
   Rowyn's Services — site stylesheet
   Ported from the approved design mockup (mockup/css/site.css), which stays
   frozen as the reference; this file is the one the real pages use.

   Colors are tokens so the real build can keep TrashCanMan's admin-editable
   per-mode primary/secondary colors: Site Settings just rewrites
   --primary / --secondary for each mode.
   ========================================================================== */

:root {
  --primary: #ff6b1a;          /* R-Force orange */
  --primary-strong: #ff8a3d;
  --secondary: #2bb8ff;        /* Strike / Techno lightning blue */
  --hero-green: #4cc36a;       /* Trashcan / Canyon green */
  --warn: #ffb020;
  --on-warn: #241600;          /* text on a --warn background */
  --danger: #ff4d5e;

  --bg: #0d1016;
  --bg-2: #131823;
  --surface: #171d2a;
  --surface-2: #1e2636;
  --border: #2a3448;
  --text: #eef2fa;
  --text-dim: #9aa6bd;
  --on-primary: #1a0c02;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(255, 107, 26, .35), 0 8px 28px rgba(255, 107, 26, .35);

  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --primary: #f25c05;
  --primary-strong: #ff7a1f;
  --secondary: #0a8fd6;
  --hero-green: #2f9e4f;
  --warn: #b45309;             /* darker amber: readable on white */
  --on-warn: #ffffff;
  --bg: #f5f6fa;
  --bg-2: #eceef5;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --border: #dfe3ee;
  --text: #121826;
  --text-dim: #5b667d;
  --on-primary: #ffffff;
  --shadow: 0 10px 30px rgba(18, 24, 38, .10);
  color-scheme: light;
}

/* No choice saved yet? Follow the device's light/dark setting. The toggle
   sets data-theme, which then wins in both directions. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --primary: #f25c05;
    --primary-strong: #ff7a1f;
    --secondary: #0a8fd6;
    --hero-green: #2f9e4f;
    --warn: #b45309;
    --on-warn: #ffffff;
    --bg: #f5f6fa;
    --bg-2: #eceef5;
    --surface: #ffffff;
    --surface-2: #f3f5fa;
    --border: #dfe3ee;
    --text: #121826;
    --text-dim: #5b667d;
    --on-primary: #ffffff;
    --shadow: 0 10px 30px rgba(18, 24, 38, .10);
    color-scheme: light;
}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; transform: skewX(-20deg); }
.dim { color: var(--text-dim); }

/* Comic halftone dots, used sparingly behind heroes */
.halftone {
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 45%, transparent) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
}

/* ---------- Buttons ------------------------------------------------------
   Slanted "power" edge via clip-path, lift + glow on hover. Keyboard focus
   gets a real outline, not just the glow. */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font: 700 .98rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; border: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: var(--on-primary);
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--primary) 45%, transparent));
}
.btn-primary:hover { filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--primary) 65%, transparent)) brightness(1.06); }
.btn-ghost {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 22%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.btn-sm { padding: 9px 16px; font-size: .85rem; --cut: 8px; }
.btn-blue { background: linear-gradient(135deg, #5fd0ff, var(--secondary)); color: #03131d; }
.btn-green { background: linear-gradient(135deg, #7be08f, var(--hero-green)); color: #04150a; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Public nav -------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-nav .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary) 55%, transparent), var(--surface-2));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 60%, transparent);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-dim);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* Mobile: links collapse into a slide-down sheet */
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 12px 16px 20px; background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s ease;
  }
  .site-nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav-actions .btn { display: none; }
}

/* ---------- Home hero --------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 62%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 14px 0 18px; }
.hero h1 .hl {
  color: var(--primary);
  text-shadow: 0 0 28px color-mix(in srgb, var(--primary) 50%, transparent);
}
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 34em; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-green); box-shadow: 0 0 10px var(--hero-green); }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art .burst {
  position: absolute; inset: 8% 6% 4%;
  clip-path: polygon(50% 0, 61% 18%, 82% 8%, 78% 30%, 100% 36%, 83% 52%, 98% 70%, 76% 72%, 78% 95%, 58% 82%, 46% 100%, 38% 80%, 16% 92%, 20% 70%, 0 62%, 18% 48%, 4% 28%, 26% 26%, 24% 4%, 42% 18%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 34%, var(--surface)), var(--surface-2));
  opacity: .9;
}
.hero-art .burst.halftone { opacity: .55; inset: 12% 10% 8%; transform: rotate(8deg); background-color: transparent; }
.hero-art .main {
  position: absolute; inset: 0 0 0 10%; width: 90%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
  animation: hover-float 6s ease-in-out infinite;
}
.hero-art .sidekick {
  position: absolute; left: -2%; bottom: 2%; width: 34%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
  animation: hover-float 6s ease-in-out -3s infinite;
}
/* Sits under the hero (not on top of it) -- any hero Rowyn picks stays uncovered. */
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-side .hero-art { width: 100%; }
.slot-badge {
  position: relative; z-index: 2; text-align: center;
  padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: .85rem;
}
.slot-badge strong { display: block; font-size: 1.05rem; color: var(--text); }
.slot-badge span { color: var(--text-dim); }
@keyframes hover-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .main, .hero-art .sidekick { animation: none; } }

@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .hero-side .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ---------- Sections ---------------------------------------------------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 0; }
.section-head p { color: var(--text-dim); max-width: 32em; margin: 0; }
.section-head .mini-hero { width: 110px; flex: none; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: start; } .section-head .mini-hero { display: none; } }

/* Service "trading cards" */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }
.svc-card {
  --accent: var(--primary);
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  display: grid; grid-template-columns: 1fr 42%; gap: 12px; min-height: 340px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.svc-card.green { --accent: var(--hero-green); }
.svc-card.blue { --accent: var(--secondary); }
.svc-card .tag {
  display: inline-block; padding: 5px 10px; border-radius: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}
.svc-card h3 { font-size: 1.7rem; margin: 14px 0 8px; }
.svc-card p { color: var(--text-dim); margin: 0 0 18px; }
.svc-card .price { font-family: var(--font-display); font-size: 2.2rem; }
.svc-card .price small { font-family: var(--font-body); font-size: .9rem; color: var(--text-dim); }
.svc-card .days { display: flex; gap: 6px; margin: 16px 0 22px; }
.day {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-dim);
}
.day.on { background: var(--accent); color: #07120a; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.svc-card .art { position: relative; align-self: end; }
.svc-card .art img { width: 100%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); transition: transform .25s ease; }
.svc-card:hover .art img { transform: scale(1.04) rotate(-1.5deg); }
@media (max-width: 520px) { .svc-card { grid-template-columns: 1fr; } .svc-card .art { max-width: 200px; justify-self: end; margin-top: -40px; } }

/* Public Heroes page (Shane, 2026-10-05): plain at rest; on hover (or
   keyboard focus) the card fills with the hero's color and lights up like a
   plan card -- spinning glow ring, shine sweep, twinkling stars, hero hops. */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 22px; }
/* A grown hero may poke into the side gutter, but never makes the page scroll sideways. */
body:has(main.heroes-page) { overflow-x: clip; } /* clip, not hidden: the sticky menu keeps working */
.hero-card { --c: var(--primary); --c2: #ffb347; position: relative; isolation: isolate; border-radius: 22px; padding: 28px;
  display: grid; grid-template-columns: 1fr 42%; gap: 12px; min-height: 300px; outline: none;
  border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hero-card.blue { --c: var(--secondary); --c2: #7fe0ff; }
.hero-card.green { --c: var(--hero-green); --c2: #a6f28c; }
.hero-card::before { content: ""; position: absolute; inset: -3px; z-index: -3; border-radius: 25px; opacity: 0;
  background: conic-gradient(from var(--plan-spin, 0deg), var(--c), var(--c2), transparent 40%, var(--c) 60%, var(--c2), var(--c));
  transition: opacity .3s ease; animation: plan-spin 3s linear infinite; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 22px; background: var(--surface); }
.hero-card .shine, .hero-card .sparkles { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; pointer-events: none; z-index: -1; }
.hero-card .shine { opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%), linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #0d1016)); }
.hero-card .shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); transform: translateX(-120%); }
.hero-card .sparkles i { position: absolute; width: 10px; height: 10px; opacity: 0; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hero-card .sparkles i:nth-child(1) { top: 12%; left: 70%; }
.hero-card .sparkles i:nth-child(2) { top: 58%; left: 62%; width: 7px; height: 7px; animation-delay: .4s; }
.hero-card .sparkles i:nth-child(3) { top: 30%; left: 6%; width: 8px; height: 8px; animation-delay: .8s; }
.hero-card .sparkles i:nth-child(4) { top: 86%; left: 40%; width: 6px; height: 6px; animation-delay: 1.1s; }
.hero-card .sparkles i:nth-child(5) { top: 8%; left: 42%; width: 6px; height: 6px; animation-delay: .6s; }
.hero-card h2 { font-size: 1.7rem; margin: 0 0 10px; color: var(--c); transition: color .25s ease; }
.hero-card p { color: var(--text-dim); margin: 0 0 18px; transition: color .25s ease; }
.hero-card .hero-job { font-size: .92rem; margin: 0; }
.hero-card .hero-job a { color: var(--c); font-weight: 700; }
.hero-card > div:not(.shine):not(.sparkles):not(.art) { position: relative; z-index: 2; } /* the words stay on top of him */
/* ...on a soft dark shade that fades in with the color, so they're easy to
   read where he passes behind them. */
.hero-card > div:not(.shine):not(.sparkles):not(.art)::before { content: ""; position: absolute; inset: -14px -18px; z-index: -1; border-radius: 16px; opacity: 0;
  background: radial-gradient(120% 110% at 30% 40%, rgba(8, 10, 16, .62), rgba(8, 10, 16, .38) 60%, transparent 100%); filter: blur(14px); transition: opacity .3s ease; }
.hero-card:is(:hover, :focus-within, :focus-visible) > div:not(.shine):not(.sparkles):not(.art)::before { opacity: 1; }
.hero-card .art { align-self: end; position: relative; z-index: 1; }
.hero-card .art img { width: 100%; transform-origin: 85% 100%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4));
  transition: transform .35s cubic-bezier(.2,1.6,.4,1), filter .35s ease; }
.hero-card:hover, .hero-card:focus-within, .hero-card:focus-visible { transform: translateY(-6px) scale(1.02); border-color: transparent;
  box-shadow: 0 22px 44px -14px color-mix(in srgb, var(--c) 85%, transparent); }
.hero-card:is(:hover, :focus-within, :focus-visible)::before, .hero-card:is(:hover, :focus-within, :focus-visible) .shine { opacity: 1; }
.hero-card:is(:hover, :focus-within, :focus-visible) .shine::before { animation: plan-sweep 1.1s ease; }
.hero-card:is(:hover, :focus-within, :focus-visible) .sparkles i { animation: plan-twinkle 1.6s ease-in-out infinite; }
/* He grows 40% from his feet and lifts off the card: past its edge, with a
   deeper, softer shadow underneath (Shane, 2026-10-05). */
.hero-card:is(:hover, :focus-within, :focus-visible) .art img { transform: rotate(-4deg) translateY(-24px) scale(1.4);
  filter: drop-shadow(0 34px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in srgb, var(--c2) 45%, transparent)); }
.hero-card:is(:hover, :focus-within, :focus-visible) :is(h2, p, .hero-job, .hero-job a) { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 0 10px rgba(0,0,0,.45); }
@media (max-width: 520px) {
  .hero-card { grid-template-columns: 1fr; } .hero-card .art { max-width: 200px; justify-self: end; }
  /* Stacked under the story on a phone: a smaller pop that stays below the words. */
  .hero-card:is(:hover, :focus-within, :focus-visible) .art img { transform: rotate(-4deg) translateY(-4px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-card *, .hero-card::before { animation: none !important; transition: none !important; }
  .hero-card:hover, .hero-card:focus-within, .hero-card:focus-visible, .hero-card:hover .art img { transform: none; }
}
/* Admin Heroes page: the picture beside its story. */
.hero-edit { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.hero-edit-art { width: 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.hero-edit textarea { width: 100%; }
@media (max-width: 600px) { .hero-edit { grid-template-columns: 1fr; } .hero-edit-art { max-width: 120px; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 24px 24px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: end;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--on-primary);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: var(--primary); margin-bottom: 14px; grid-column: 1 / -1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.step img { width: 96px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }

/* Pricing */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); }
.price-table td.amt { font-family: var(--font-display); font-size: 1.2rem; }
.best { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--hero-green) 20%, transparent); color: var(--hero-green); margin-left: 8px; }
.placeholder-note { font-size: .82rem; color: var(--warn); margin-top: 12px; }

/* Reviews -- "trading cards" like the services: each card takes an accent
   (orange / blue / green, in turn) that colors its border, glow, quote mark
   and its lacrosse player (a silhouette recolored by mask). */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  --accent: var(--primary);
  position: relative; overflow: hidden; margin: 0; padding: 26px 26px 26px; border-radius: 22px;
  display: flex; flex-direction: column; min-height: 260px;
  background:
    radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 50%);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 25%, transparent) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.review.blue { --accent: var(--secondary); }
.review.green { --accent: var(--hero-green); }
.review::before {
  content: "\201C"; position: absolute; top: -18px; right: 18px; z-index: 0;
  font-family: Georgia, "Times New Roman", serif; font-size: 7.5rem; line-height: 1; color: var(--accent); opacity: .22; pointer-events: none;
}
.review > * { position: relative; z-index: 1; }
.review .stars { color: var(--warn); letter-spacing: 3px; font-size: 1.15rem; text-shadow: 0 0 12px color-mix(in srgb, var(--warn) 45%, transparent); }
.review blockquote { margin: 14px 0 22px; font-size: 1.05rem; line-height: 1.55; max-width: 92%; }
.review cite { margin-top: auto; }
.review cite { font-style: normal; font-weight: 800; font-size: .95rem; display: block; max-width: 58%; }
.review cite span { display: block; font-weight: 500; font-size: .85rem; color: var(--text-dim); margin-top: 2px; }
.review .verified {
  display: inline-block; margin-top: 10px; padding: 4px 9px; border-radius: 8px; width: max-content;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}
.review .fig {
  position: absolute; z-index: 0; right: -4px; bottom: -4px; width: 40%; max-width: 135px; aspect-ratio: 1.15;
  background-color: color-mix(in srgb, var(--accent) 62%, transparent);
  -webkit-mask: var(--m) no-repeat right bottom / contain; mask: var(--m) no-repeat right bottom / contain;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: transform .25s ease;
  transform-origin: right bottom;
}
.review:hover .fig { transform: scale(1.06) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .review, .review .fig { transition: none; } .review:hover, .review:hover .fig { transform: none; } }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; border-radius: 28px; padding: 48px;
  background: linear-gradient(120deg, var(--primary) 0%, #ff9a4d 55%, #ffc27a 100%);
  color: #1a0c02; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 24px;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26, 12, 2, .16) 1.3px, transparent 1.5px); background-size: 12px 12px;
  -webkit-mask: linear-gradient(90deg, transparent 30%, #000); mask: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.cta-banner p { margin: 0 0 22px; font-size: 1.08rem; max-width: 30em; }
.cta-banner img { position: relative; z-index: 1; margin: -60px 0 -70px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.cta-banner .btn-dark { background: #16110d; color: #fff; }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; padding: 32px 24px; } .cta-banner img { max-width: 200px; margin: 0 auto -50px; } }

/* Footer: staff login lives here, not in the main nav */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--border); margin-top: 80px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.staff-link { font-size: .82rem; color: var(--text-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.staff-link:hover { opacity: 1; color: var(--text); }

/* ---------- Login ------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
  position: relative; overflow: hidden; display: grid; place-items: end center; padding: 40px;
  background:
    repeating-linear-gradient(115deg, transparent 0 38px, color-mix(in srgb, var(--primary) 7%, transparent) 38px 40px),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%),
    var(--bg-2);
}
.login-art img { width: min(480px, 88%); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); position: relative; }
.login-art .caption { position: absolute; top: 40px; left: 40px; right: 40px; }
.login-art .caption h2 { font-size: 2.2rem; margin-top: 12px; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(400px, 100%); }
.login-card h1 { font-size: 2rem; margin-bottom: 6px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 13px 14px; border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.login-card .btn { width: 100%; margin-top: 6px; }
.back-link { display: inline-flex; gap: 6px; margin-top: 22px; font-size: .9rem; color: var(--text-dim); text-decoration: none; }
/* Phones/tablets: the words on the left, a smaller hero on the right, side
   by side -- the caption can't sit on top of the art. */
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 0; padding: 20px 20px 0; }
  .login-art .caption { position: static; }
  .login-art .caption h2 { font-size: 1.5rem; }
  .login-art img { width: 150px; align-self: end; }
}
@media (max-width: 380px) { .login-art img { width: 120px; } .login-art .caption h2 { font-size: 1.3rem; } }

/* ---------- Admin shell ------------------------------------------------- */
.admin { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
}
.sidebar .brand { padding: 4px 8px 16px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.nav-item.active {
  color: var(--text); background: color-mix(in srgb, var(--primary) 16%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-item .count {
  margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; text-align: center;
  font-size: .72rem; font-weight: 800; background: var(--warn); color: var(--on-warn);
}
.nav-item .count.danger { background: var(--danger); color: #fff; }

/* Collapsible nav groups: <details>/<summary> with the lacrosse-stick
   disclosure icon (crossed = closed, side-by-side = open). mask-image +
   background-color so it recolors with the theme automatically. */
.nav-group summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--text); }
.nav-group summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 6px; }
.lax-toggle {
  width: 20px; height: 18px; flex: none; background-color: currentColor;
  -webkit-mask: url("../img/icons/icon-disclosure-closed.png") no-repeat center / contain;
          mask: url("../img/icons/icon-disclosure-closed.png") no-repeat center / contain;
  transition: transform .2s ease;
}
details[open] > summary .lax-toggle {
  -webkit-mask-image: url("../img/icons/icon-disclosure-open.png");
          mask-image: url("../img/icons/icon-disclosure-open.png");
  background-color: var(--primary);
}
.nav-group .items { display: grid; gap: 2px; }

.sidebar-hero {
  margin-top: auto; position: relative; padding: 16px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 26%, var(--surface)), var(--surface));
  border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 72px; align-items: end; gap: 6px;
}
.sidebar-hero strong { display: block; font-size: .92rem; }
.sidebar-hero span { font-size: .8rem; color: var(--text-dim); }
.sidebar-hero img { width: 72px; margin: -10px -6px -16px 0; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 28px;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 1; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.search input { all: unset; flex: 1; min-width: 0; color: var(--text); font-size: .92rem; }
.search kbd { font: 600 .72rem var(--font-body); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border); }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip b { font-size: .88rem; display: block; line-height: 1.1; }
.user-chip small { font-size: .72rem; color: var(--text-dim); }
/* The name chip opens a small account menu (a <details>, so it works
   without JavaScript; app.js closes it on an outside click or Escape). */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: var(--primary); }
.user-menu > summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.user-chip .caret { width: 14px; height: 14px; color: var(--text-dim); transition: transform .15s ease; }
.user-menu[open] .caret { transform: rotate(180deg); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.user-menu .menu a { padding: 9px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; }
.user-menu .menu a:hover, .user-menu .menu a[aria-current] { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.content { padding: 28px; display: grid; gap: 24px; }

.drawer-btn { display: none; }
.drawer-btn span { font-size: .85rem; font-weight: 700; }
/* Phone top bar: the page you are on, and a badge that goes to the Dashboard. */
.topbar-home, .topbar-title { display: none; }
.topbar-home { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 60%, transparent); }
.topbar-home img { width: 100%; height: 100%; object-fit: cover; }
.topbar-title { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrim { display: none; }
@media (max-width: 980px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
  .admin.drawer-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .admin.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
  .drawer-btn { display: flex; align-items: center; gap: 6px; width: auto; padding: 0 12px; }
  .topbar-home { display: block; }
  .topbar-title { display: block; }
  .topbar { padding: 0 16px; }
  .search kbd, .user-chip div { display: none; }
  .topbar { gap: 10px; }
  .topbar .spacer { display: none; }
  .user-chip { padding: 4px; }
  .content { padding: 18px 16px; }
}
@media (max-width: 380px) { .topbar-home { display: none; } }

/* Greeting banner */
.greet {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 32px;
  background:
    repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, .04) 30px 32px),
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 40%, var(--surface)) 0%, var(--surface) 70%);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 16px;
}
.greet h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 8px 0; }
.greet p { margin: 0 0 18px; color: var(--text-dim); }
.greet .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.greet img { margin: -40px -10px -60px 0; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); }
@media (max-width: 640px) { .greet { grid-template-columns: 1fr 110px; padding: 22px; } .greet img { margin: -10px -14px -30px 0; } }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat {
  --accent: var(--primary);
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
.stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.stat::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.stat.blue { --accent: var(--secondary); }
.stat.green { --accent: var(--hero-green); }
.stat.warn { --accent: var(--warn); }
.stat .label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--text-dim); }
.stat .label .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.stat .label .ic svg { width: 17px; height: 17px; }
.stat .value { font-family: var(--font-display); font-size: 2.1rem; margin: 12px 0 4px; }
.stat .delta { font-size: .8rem; color: var(--text-dim); }
.stat .delta b { color: var(--hero-green); }
.stat.warn .delta b { color: var(--warn); }
.stat .ghost {
  position: absolute; right: -10px; bottom: -14px; width: 92px; opacity: .16;
  filter: grayscale(1) brightness(1.6); pointer-events: none;
}
:root[data-theme="light"] .stat .ghost { filter: grayscale(1); opacity: .12; }

/* Panels */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1180px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-head a { font-size: .85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
/* A whole panel that folds up: <details class="panel collapsible"> with the
   panel head as its <summary> and the lacrosse-stick toggle on the right. */
.panel.collapsible > summary { list-style: none; cursor: pointer; user-select: none; }
.panel.collapsible > summary::-webkit-details-marker { display: none; }
.panel.collapsible > summary:hover h2 { color: var(--primary); }
.panel.collapsible > summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: -2px; border-radius: var(--radius); }
.panel.collapsible:not([open]) > summary { border-bottom: 0; }
/* A staff member's Activity: recent logins and what they did. */
.activity .sub-head { margin: 0 0 8px; }
.activity .sub-head:not(:first-child) { margin-top: 22px; }
.activity-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.activity-list .nowrap { margin-right: 6px; }
/* Type-to-filter box in a panel head (data-filter-rows). */
.filter-box { width: min(280px, 100%); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .85rem; }
.filter-box:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
.panel-body { padding: 8px 12px 14px; }

.job {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 8px; border-radius: 12px;
}
.job + .job { border-top: 1px dashed var(--border); }
.job:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.job time { font-family: var(--font-display); font-size: 1rem; text-align: center; }
.job time small { display: block; font-family: var(--font-body); font-size: .7rem; color: var(--text-dim); }
.job .who b { display: block; font-size: .95rem; }
.job .who span { font-size: .82rem; color: var(--text-dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.pill.cans { background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.pill.clean { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); }
.pill.done { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-dim); }
.job.completed { opacity: .6; }
.job.completed .who b { text-decoration: line-through; text-decoration-color: var(--hero-green); }

/* Unscheduled queue */
.req { display: grid; gap: 8px; padding: 14px 10px; border-radius: 12px; }
.req + .req { border-top: 1px dashed var(--border); }
.req .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.req b { font-size: .95rem; }
.req .age { font-size: .75rem; font-weight: 700; color: var(--warn); }
.req.needs-slot { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.req:not(.needs-slot) .age { color: var(--text-dim); font-weight: 600; }
.due-week { margin-top: 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.due-week:first-of-type { margin-top: 4px; }
.due-week.urgent { color: var(--warn); }
.req .windows { display: flex; flex-wrap: wrap; gap: 6px; }
.req .windows span { font-size: .75rem; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
/* "Put it on my calendar" under a run nobody has time for (includes/my_schedule.php) */
.self-book { border-top: 1px dashed var(--border); padding-top: 8px; }
.self-book > summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--primary); width: max-content; }
.self-book form { display: grid; gap: 8px; margin-top: 8px; }
.self-book form p { margin: 0; }
.self-book-when { display: flex; gap: 8px; flex-wrap: wrap; }
.self-book-when > * { flex: 1 1 130px; }
.req .asked { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.req .asked span { padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.my-day { display: grid; gap: 2px; margin: 6px 0 0; font-size: .8rem; color: var(--text-dim); }
.my-day:empty { display: none; }
.my-day .clash-msg { color: var(--danger); margin-bottom: 2px; }
.my-day .job-line { padding-left: 10px; }
.self-book input.is-clash { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
/* A column of checkboxes with sentence labels ("Email me about", "Ask staff") */
.check-list { display: grid; gap: 10px; margin: 0 0 10px; }
.check-list .check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.check-list .check input { margin-top: 3px; flex: none; }
.panel-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.inline-form { display: inline; margin: 0; }

/* Capacity meters */
.cap { padding: 12px 8px; }
.cap + .cap { border-top: 1px dashed var(--border); }
.cap .row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.cap .row span { color: var(--text-dim); }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hero-green), var(--secondary)); }
.meter.full i { background: linear-gradient(90deg, var(--warn), var(--danger)); }

/* Anchored confirm popover (replaces native confirm(); plan guardrail) */
.pop {
  position: absolute; z-index: 80; width: 250px; padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pop p { margin: 0 0 12px; font-size: .88rem; }
.pop .row { display: flex; gap: 8px; justify-content: flex-end; }
.pop::before {
  content: ""; position: absolute; top: -7px; right: 26px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface-2); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.pop.above::before { top: auto; bottom: -7px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* "Ninja dash" on Mark done: Ninja streaks across right-to-left, the slash
   follows him (same direction), then the halves fall apart. */
.ninja-dash {
  position: absolute; z-index: 90; left: 0; width: 68px; height: 68px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(18px 0 0 color-mix(in srgb, var(--primary) 35%, transparent)) drop-shadow(36px 0 0 color-mix(in srgb, var(--primary) 15%, transparent));
  animation: ninja-dash .3s cubic-bezier(.6, 0, .4, 1) forwards;
}
@keyframes ninja-dash {
  from { transform: translateX(var(--from)) skewX(12deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { transform: translateX(var(--to)) skewX(12deg); opacity: 0; }
}
.slice { position: relative; display: inline-block; flex: none; }
.slice .half { position: absolute; inset: 0; }
.slice .half .btn { width: 100%; height: 100%; pointer-events: none; }
.slice .half.a { clip-path: polygon(0 0, 100% 0, 100% 25%, 0 75%); animation: chop-a .55s .3s cubic-bezier(.5, 0, .9, .6) forwards; }
.slice .half.b { clip-path: polygon(0 75%, 100% 25%, 100% 100%, 0 100%); animation: chop-b .55s .3s cubic-bezier(.5, 0, .9, .6) forwards; }
.slice .slash {
  position: absolute; left: -14%; width: 128%; top: calc(50% - 1.5px); height: 3px; border-radius: 3px;
  background: #fff; box-shadow: 0 0 10px #fff, 0 0 22px var(--primary), 0 0 36px var(--primary);
  /* Rotate about the center so the line lies exactly on the cut (which passes
     through the button's center); the sweep is a clip reveal, right to left,
     trailing the Ninja. */
  transform: rotate(var(--ang)); transform-origin: center;
  clip-path: inset(0 0 0 100%);
  animation: chop-slash .14s .1s ease-out forwards, chop-fade .25s .34s ease-in forwards;
}
@keyframes chop-slash { to { clip-path: inset(0 0 0 0); } }
@keyframes chop-fade { to { opacity: 0; } }
@keyframes chop-a { to { transform: translate(-14px, -24px) rotate(-18deg); opacity: 0; } }
@keyframes chop-b { to { transform: translate(16px, 28px) rotate(14deg); opacity: 0; } }
.pop-in { animation: pop-in .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }

/* "Lasso" on Put it on my calendar: Ranger Outlaw pops up, throws his rope
   around the waiting job, it tightens, then he reels it in and rides off. */
:root { --rope: #d9b26a; --rope-dark: #a87a3f; }
.lasso-ranger {
  position: absolute; z-index: 90; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  animation: lasso-ranger 1.1s ease-out forwards;
}
@keyframes lasso-ranger {
  0% { transform: scale(.3) rotate(-12deg); opacity: 0; }
  16% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  24% { transform: scale(1) rotate(0); }
  78% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(80px) rotate(8deg); opacity: 0; }
}
.lasso-rope {
  position: absolute; z-index: 89; height: 4px; margin-top: -2px; border-radius: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--rope) 0 7px, var(--rope-dark) 7px 10px);
  transform-origin: right center;
  clip-path: inset(0 0 0 100%); /* thrown from his end, right to left */
  animation: lasso-throw .18s .2s ease-out forwards, lasso-reel .4s .6s ease-in forwards;
}
@keyframes lasso-throw { to { clip-path: inset(0 0 0 0); } }
@keyframes lasso-reel { to { transform: scaleX(0); } }
.req.lassoed { animation: lasso-tighten .22s .36s ease-out forwards, lasso-yank .4s .6s cubic-bezier(.6, 0, .9, .5) forwards; }
@keyframes lasso-tighten {
  from { outline: 3px solid var(--rope); outline-offset: 16px; }
  to { outline: 3px solid var(--rope); outline-offset: 2px; }
}
@keyframes lasso-yank { to { transform: translateX(var(--yank)) scale(.08); opacity: 0; } }

/* ---------- Real-page components (not in the mockup) ------------------- */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 0; }
.page-head p { margin: 4px 0 0; color: var(--text-dim); }
.back-link-inline { font-size: .88rem; color: var(--text-dim); text-decoration: none; }
.back-link-inline:hover { color: var(--text); }

/* Anchored flash messages -- rendered in the section that produced them */
.alert { padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin: 0 0 14px; border: 1px solid; }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--text); }
.alert-success { background: color-mix(in srgb, var(--hero-green) 12%, transparent); border-color: color-mix(in srgb, var(--hero-green) 45%, transparent); color: var(--text); }
.alert-error::before { content: "⚠ "; color: var(--danger); }
.alert-success::before { content: "✓ "; color: var(--hero-green); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.table a { color: var(--primary); font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.empty { padding: 28px 16px; text-align: center; color: var(--text-dim); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.field textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 13px 14px; border-radius: 12px; }
.field .hint { font-size: .8rem; color: var(--text-dim); font-weight: 400; }
.check-group { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 14px; margin: 0 0 18px; }
.check-group legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.check-group .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.check-group label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem;
}
.check-group input { accent-color: var(--primary); }
.check-group label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel-body.pad { padding: 18px 20px 20px; }

.btn-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--text); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 55%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 26%, transparent); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-on { background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.badge-off { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-dim); }
.badge-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }

/* Sidebar footer: who's logged in, password, log out */
.sidebar-user { display: grid; gap: 2px; padding: 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.sidebar-user b { font-size: .9rem; }
.sidebar-user small { font-size: .75rem; color: var(--text-dim); }
.sidebar-user .links { display: flex; gap: 12px; margin-top: 8px; font-size: .82rem; }
.sidebar-user .links a { color: var(--text-dim); text-decoration: none; }
.sidebar-user .links a:hover { color: var(--text); }
.sidebar-hero { margin-top: auto; }
/* Inputs fill their column instead of sizing to their longest option text */
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.form-grid > * { min-width: 0; }

/* Inline role editor on the Staff page */
.role-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.role-form label {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem;
}
.role-form label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.role-form label:has(input:disabled) { cursor: not-allowed; opacity: .75; }
.role-form input { accent-color: var(--primary); margin: 0; }

/* Disabled buttons (e.g. Save before anything changed): dimmed, no lift */
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

/* ---------- My availability (week view, Edit week, review) -------------
   Ported from the approved mockup (mockup/css/availability.css). */
/* Week header: title + week nav + toolbar */
.week-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav .range { font-family: var(--font-display); font-size: 1.15rem; margin-right: 6px; }
.week-nav a { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--text-dim); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.week-nav a:hover { color: var(--text); }
.week-nav a.current { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
/* Week pills: jump straight to any other week that has time set. */
.week-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.week-pills .lbl { font-size: .75rem; font-weight: 600; color: var(--text-dim); margin-right: 2px; }
.week-pills a { font-size: .78rem; font-weight: 800; min-width: 34px; text-align: center; text-decoration: none; padding: 4px 9px; border-radius: 999px;
  color: var(--hero-green); background: color-mix(in srgb, var(--hero-green) 16%, transparent); border: 1px solid color-mix(in srgb, var(--hero-green) 35%, transparent); }
.week-pills a:hover { background: color-mix(in srgb, var(--hero-green) 28%, transparent); }
.week-pills a.behind { color: var(--text-dim); background: var(--surface); border-color: var(--border); }
.week-pills .here { color: var(--primary); font-size: .8rem; padding: 0 2px; }
.week-pills .here.empty { color: var(--text-dim); opacity: .5; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .sep { width: 1px; height: 26px; background: var(--border); margin: 0 4px; }

/* Warning banner (Cans needs both days, etc.) */
.notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
}
.notice .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); font-weight: 800; }
.notice p { margin: 0; font-size: .92rem; }
.notice p b { color: var(--text); }
.notice.danger { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.notice.danger .ic { background: color-mix(in srgb, var(--danger) 22%, transparent); color: var(--danger); }
.dash-notices { display: grid; gap: 10px; }
.greet .overview-note { font-size: .82rem; color: var(--text-dim); margin-top: -4px; }
.outlook { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.outlook-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--hero-green); }
.outlook-item span { font-size: .85rem; color: var(--text-dim); }
.outlook-item.none { border-left-color: var(--danger); }
.outlook-item.none span { color: var(--danger); font-weight: 600; }
.outlook-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; }
.outlook-line .none b { color: var(--danger); }

/* Missed-job follow-up alerts (dashboard) */
.badge-danger { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.missed-alert { border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); }
.missed-alert + .missed-alert { margin-top: 12px; }
.missed-alert .top a { color: inherit; }
.contact-line { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .88rem; }
.contact-line .mono { font-family: ui-monospace, Consolas, monospace; user-select: all; }
.hint-line { margin: 0; font-size: .85rem; color: var(--danger); font-weight: 600; }
.check-group.compact { margin: 0 0 10px; padding: 8px 12px 10px; }
.check-group .legend { font-weight: 600; font-size: .85rem; }
.inline-check { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0 0 12px; font-size: .9rem; }
.inline-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.inline-check .hint { font-size: .8rem; color: var(--text-dim); }

/* The week: 7 day columns, stacking on small screens */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .week { grid-template-columns: 1fr; } }
.wday {
  display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 14px 12px 12px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.wday.today { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent); }
.wday.past { opacity: .55; }
.wday.warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--border)); }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.day-head b { font-family: var(--font-display); font-size: 1rem; }
.day-head span { font-size: .78rem; color: var(--text-dim); }
.day-head .tag-today { font-size: .66rem; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; border-radius: 6px; background: var(--primary); color: var(--on-primary); }

.slot-card {
  --accent: var(--secondary);
  position: relative; padding: 10px 10px 10px 13px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.slot-card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.slot-card.cans { --accent: var(--hero-green); }
.slot-card.any { --accent: var(--primary); }
.slot-card .time { font-weight: 700; font-size: .88rem; }
.slot-card .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.chip-svc { font-size: .68rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; }
.chip-svc.cans { background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.chip-svc.clean { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); }
.chip-svc.any { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.slot-card .meter { height: 6px; }
.slot-card .meta { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-dim); margin-top: 6px; }
.slot-card .meta b { color: var(--text); font-weight: 700; }
.wday .empty-day { flex: 1; display: grid; place-items: center; text-align: center; font-size: .8rem; color: var(--text-dim); border: 1px dashed var(--border); border-radius: 12px; padding: 12px 6px; }
.wday .warn-note { font-size: .74rem; color: var(--warn); font-weight: 600; }
.wday .add {
  margin-top: auto; font: 600 .8rem var(--font-body); color: var(--text-dim); cursor: pointer;
  padding: 8px; border-radius: 10px; border: 1px dashed var(--border); background: transparent;
}
.wday .add:hover { color: var(--text); border-color: var(--primary); }

/* Edit week: one row per day, slots inline */
.edit-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.edit-row:first-child { border-top: 0; }
.edit-row .d b { font-family: var(--font-display); display: block; }
.edit-row .d span { font-size: .8rem; color: var(--text-dim); }
.slots { display: grid; gap: 8px; }
.slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slot input[type="time"] {
  font: inherit; font-size: .9rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 10px; width: 132px;
}
.slot .to { color: var(--text-dim); font-size: .85rem; }
.slot .svc-pick { display: flex; gap: 6px; }
.slot .svc-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; cursor: pointer; }
.slot .svc-pick label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.slot .svc-pick input { accent-color: var(--primary); margin: 0; }
.slot .remove { font-size: .8rem; color: var(--text-dim); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.slot .booked-lock { font-size: .75rem; color: var(--warn); font-weight: 600; }
.slot .err { flex-basis: 100%; font-size: .78rem; color: var(--danger); font-weight: 600; }
.add-slot { justify-self: start; font: 600 .8rem var(--font-body); color: var(--primary); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.edit-row .none { font-size: .85rem; color: var(--text-dim); }
@media (max-width: 700px) { .edit-row { grid-template-columns: 1fr; gap: 8px; } }

/* Apply-template / duplicate preview: per-day compare */
.compare { display: grid; grid-template-columns: 110px 1fr 1fr 170px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); font-size: .88rem; }
.compare.head { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); border-top: 0; }
.compare .d b { font-family: var(--font-display); }
.compare .same { color: var(--text-dim); }
.compare .choice { display: flex; gap: 6px; }
.compare .choice label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: .8rem; cursor: pointer; }
.compare .choice label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.compare .choice input { accent-color: var(--primary); margin: 0; }
.compare.new { background: color-mix(in srgb, var(--hero-green) 6%, transparent); }
.compare .auto { font-size: .78rem; font-weight: 700; color: var(--hero-green); }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } .compare.head { display: none; } }

/* Availability templates (mockup/availability.html screen 5) */
.compare .choice { flex-wrap: wrap; }
.compare .slot-lines { display: grid; gap: 2px; }
.apply-picker { display: flex; gap: 6px; align-items: center; margin: 0; }
.apply-picker select { max-width: 240px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tpl { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.tpl-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.tpl-head b { font-size: 1rem; }
.tpl-head small { display: block; font-size: .78rem; color: var(--text-dim); margin-top: 2px; }
.tpl-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tpl-days span { text-align: center; font-size: .7rem; font-weight: 800; padding: 6px 0; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-dim); }
.tpl-days span.on { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }
.tpl ul { margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--text-dim); display: grid; gap: 3px; }
.tpl ul b { color: var(--text); font-weight: 600; display: inline-block; width: 34px; }
.tpl .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tpl .actions form { margin: 0; }
.badge-shared { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); }

/* Booked-job conflict */
.job-conflict { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); }
.job-conflict b { display: block; }
.job-conflict span { font-size: .84rem; color: var(--text-dim); }


.page-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 10px; }
.wday .add { text-align: center; text-decoration: none; }
.slot label.remove { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.slot label.remove:has(input:checked) { color: var(--danger); font-weight: 700; }
.slot .hint { font-size: .78rem; color: var(--text-dim); }
.slots .alert { margin: 0; }
.edit-row.has-error { background: color-mix(in srgb, var(--danger) 6%, transparent); }
.job-conflict .choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.job-conflict .choice label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: .8rem; cursor: pointer; }
.job-conflict .choice label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.job-conflict .choice input { accent-color: var(--primary); margin: 0; }
.job-conflict .hint { font-size: .8rem; color: var(--text-dim); }

.chip-svc.off { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); text-decoration: line-through; }

/* Small layout helpers (instead of inline styles) */
.sub { margin: 6px 0 0; }
.small { font-size: .85rem; }
.sub-head { font-size: 1rem; }
.sub-block { margin: 0 0 14px; }
.gap-top { margin-top: 14px; }
.nowrap { white-space: nowrap; }
.panel-foot, .review-foot { border-top: 1px solid var(--border); }
.review-foot p { margin: 0 0 14px; font-size: .88rem; }
.panel-alerts { padding: 10px 8px 0; }
.job-conflict.flush { padding-left: 0; padding-right: 0; }
.login-brand { margin-bottom: 28px; }
.login-sub { margin: 0 0 22px; }

/* Hidden means hidden, whatever display a class gives the element (the
   Services mockup showed a grid box ignoring its hidden attribute). */
[hidden] { display: none !important; }

/* ---------- Services & prices (admin-services.php; mockup/services.html) --- */
.page-intro { margin: -6px 0 18px; max-width: 70ch; color: var(--text-dim); }
.svc { margin-bottom: 16px; }
.svc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 16px 18px; }
.svc > summary::-webkit-details-marker { display: none; }
.svc-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-name h2 { margin: 0; font-size: 1.15rem; }
.svc-meta { grid-column: 1 / -1; font-size: .86rem; color: var(--text-dim); }
.svc-meta b { color: var(--text); font-weight: 600; }
.svc-open-hint { font-size: .8rem; color: var(--text-dim); }
.svc[open] .svc-open-hint { display: none; }
.svc-section { padding: 16px 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.svc-section h3 { margin: 0; font-size: 1rem; }
.svc-section .field { margin-bottom: 0; }
.helper { margin: 0; font-size: .86rem; color: var(--text-dim); max-width: 75ch; }
.helper b { color: var(--text); }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: .86rem; background: color-mix(in srgb, var(--secondary) 10%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent); }
.visit-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(90px, 120px) 32px; gap: 10px; align-items: end; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.visit-row + .visit-row { margin-top: 8px; }
.visit-row.locked { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(90px, 120px); }
.visit-row.locked .hint { display: block; font-size: .78rem; color: var(--text-dim); margin-bottom: 4px; }
.visit-row .remove-visit { background: none; border: 0; color: var(--danger); font-weight: 700; cursor: pointer; padding: 12px 4px; }
.add-visit { justify-self: start; background: none; border: 1px dashed var(--border); color: var(--primary); font-weight: 700; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.price-table td, .price-table th { vertical-align: middle; }
.price-table .money-cell { white-space: nowrap; }
.price-table input[type="text"] {
  width: 110px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 10px; outline: none;
}
.price-table input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.price-table input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.price-table tr.off td:not(:first-child) { opacity: .45; }
.old-price-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.old-price-row a { color: inherit; }
.old-price-row .was { color: var(--text-dim); text-decoration: line-through; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
@media (max-width: 700px) {
  .visit-row { grid-template-columns: 1fr 1fr; }
  .visit-row.locked { grid-template-columns: 1fr 1fr; }
}
.extras-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.extras-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.price-table input.count-input { width: 70px; }
.extras-line { font-size: .85rem; color: var(--text-dim); }
.count-edit { margin-top: 4px; text-align: left; }
.count-edit summary { cursor: pointer; font-size: .8rem; color: var(--primary); font-weight: 600; }
.count-edit form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .85rem; }
.count-edit input[type="number"] { width: 70px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 6px 8px; border-radius: 8px; }

/* Payments + customer numbers (client page) */
.cust-no {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 8px;
  font: 700 .95rem var(--font-body); letter-spacing: .04em;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
}
p.hint { margin: 0 0 12px; font-size: .85rem; color: var(--text-dim); }
p.hint b { color: var(--text); }
.table td.credit { color: var(--hero-green); }

/* Staff dashboard: last night's run, one quiet line at the bottom */
.nightly-summary { margin: 0; font-size: .8rem; color: var(--text-dim); text-align: center; }

/* ---------- Public sign-up + map (signup.php; mockup/signup.html) -------- */
.site-nav .nav-actions { margin-left: auto; }
.nav-login { font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; }
.nav-login:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.pub-head { padding: 44px 0 24px; }
.pub-head .container { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.pub-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 12px 0 8px; }
.pub-head p { color: var(--text-dim); margin: 0; max-width: 36em; }
.pub-head img { width: 150px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); }
@media (max-width: 700px) { .pub-head img { display: none; } }
main.pub-page { padding-bottom: 20px; }

.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); min-height: 380px; }
.map-box .map { position: absolute; inset: 0; }
.map-box.tall { min-height: 520px; }
.map-box.mini { min-height: 0; height: 210px; align-self: start; }
.map-hint {
  position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; font-size: .82rem; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.maplibregl-ctrl-attrib { font-size: 11px; }
.map-pin { width: 30px; height: 40px; cursor: grab; }
.map-pin::before {
  content: ""; position: absolute; left: 3px; top: 0; width: 24px; height: 24px;
  background: var(--primary); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.map-pin::after { content: ""; position: absolute; left: 12px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.map-pin.out::before { background: #8a94a8; }
.map-pin.dot { width: 14px; height: 14px; cursor: default; }
.map-pin.dot::before { left: 0; top: 0; width: 14px; height: 14px; border-width: 2px; border-radius: 50%; transform: none; }
.map-pin.dot::after { display: none; }
.map-pin.dot.waitlist::before { background: var(--warn); }

.status { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; margin-top: 12px; }
.status::before { font-size: 1.1rem; line-height: 1.2; }
.status.in { background: color-mix(in srgb, var(--hero-green) 14%, transparent); color: var(--hero-green); }
.status.in::before { content: "\2713"; }
.status.out { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.status.out::before { content: "\2715"; }
.status.idle { background: var(--surface-2); color: var(--text-dim); }
.status.idle::before { content: "\1F4CD"; }
.status small { display: block; font-weight: 500; color: var(--text-dim); margin-top: 2px; }
.addr-row { display: flex; gap: 10px; }
.addr-row input { flex: 1; min-width: 0; }
.addr-row .btn { flex: none; }

.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.signup-grid > * { min-width: 0; }
.signup-grid .map-col { position: sticky; top: 92px; }
@media (max-width: 960px) { .signup-grid { grid-template-columns: 1fr; } .signup-grid .map-col { position: static; } }
.form-step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.form-step h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 14px; }
.form-step h2 .n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 1rem; flex: none; }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2f { grid-template-columns: 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .9rem; }
.choice-row input { accent-color: var(--primary); }
.choice-row label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.svc-pick { --accent: var(--primary); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: var(--surface-2); }
.svc-pick:nth-of-type(3n+1) { --accent: var(--hero-green); }
.svc-pick:nth-of-type(3n+2) { --accent: var(--secondary); }
.svc-pick:has(.freq input:checked:not([value="0"])) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.svc-pick > b { display: block; font-size: 1.05rem; }
.svc-pick > p { margin: 2px 0 12px; font-size: .85rem; color: var(--text-dim); }
.freq { display: grid; gap: 8px; }
.freq label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.freq label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.freq label.none { color: var(--text-dim); }
.freq input { accent-color: var(--accent); }
.freq .amt { font-family: var(--font-display); }
.fine { font-size: .85rem; color: var(--text-dim); }
.submit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.field-error { margin: 6px 0 0; font-size: .85rem; font-weight: 600; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 13px 14px; border-radius: 12px; min-height: 100px; resize: vertical; }
.done-card { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; padding: 36px; border-radius: 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--hero-green) 20%, var(--surface)), var(--surface) 60%); border: 1px solid var(--border); }
.done-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.done-card ol { color: var(--text-dim); padding-left: 20px; }
.done-card ol li { margin-bottom: 6px; }
.done-card ol b { color: var(--text); }
.done-card img { filter: drop-shadow(0 16px 26px rgba(0,0,0,.4)); }
@media (max-width: 760px) { .done-card { grid-template-columns: 1fr; padding: 24px; } .done-card img { max-width: 160px; } }

/* ---------- Staff: New sign-ups + Waitlist (mockup/admin-signups.html) ---- */
.signup-card { display: grid; grid-template-columns: 1fr 240px; gap: 20px; padding: 20px; }
.signup-card + .signup-card { border-top: 1px solid var(--border); }
@media (max-width: 900px) { .signup-card { grid-template-columns: 1fr; } }
.signup-card h3 { font-size: 1.15rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 800; }
.signup-card .sub { font-size: .85rem; color: var(--text-dim); margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .9rem; margin: 0 0 14px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.room { display: flex; gap: 8px; align-items: start; font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; }
.room.ok { background: color-mix(in srgb, var(--hero-green) 12%, transparent); color: var(--hero-green); }
.room.none { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.card-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.card-acts form { margin: 0; }
.wait-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 8px; }
.wait-row + .wait-row { border-top: 1px dashed var(--border); }
.wait-row b { display: block; }
.wait-row span { font-size: .84rem; color: var(--text-dim); }
.tag-out, .tag-full { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.tag-out { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag-client { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-left: 6px; background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); vertical-align: middle; }
.tag-full { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--text-dim); padding: 10px 4px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .l-area { background: var(--primary); border-radius: 3px; }
.legend .l-wait { background: var(--warn); }

/* ---------- Staff: Service area (admin-service-area.php) ----------------- */
.legend .l-old { border: 2px dashed #8a94a8; border-radius: 3px; background: none; }
.legend .l-client { background: var(--secondary); }
.legend .l-warn { background: var(--danger); }
.map-pin.dot.client::before { background: var(--secondary); }
.map-pin.dot.warn::before { background: var(--danger); }
.steps-list { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: .9rem; }
.steps-list li { margin-bottom: 6px; }
.steps-list b { color: var(--text); }
.plain-list { margin: 8px 0; padding-left: 20px; }
.align-handle { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.45); cursor: grab; }
.align-handle.middle { width: 24px; height: 24px; background: var(--primary); border-color: #fff; cursor: move; }

/* ---------- Public: Service area page (service-area.php) ------------------ */
.neighbors { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.neighbors b { color: var(--primary); font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }

/* ---------- Client portal (portal.php; mockup/portal.html) --------------- */
.portal { display: grid; gap: 24px; padding: 28px 0 40px; }
.portal .greet { grid-template-columns: 1fr 160px; }
.portal-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.portal-grid > * { min-width: 0; }
@media (max-width: 960px) { .portal-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 24px; }
.visit { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 8px; }
.visit + .visit { border-top: 1px dashed var(--border); }
.visit time { font-family: var(--font-display); text-align: center; line-height: 1.1; }
.visit time small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--text-dim); }
.visit .what b { display: block; }
.visit .what span { font-size: .85rem; color: var(--text-dim); }
.mysvc { padding: 14px 8px; }
.mysvc + .mysvc { border-top: 1px dashed var(--border); }
.mysvc b { display: block; font-size: 1.02rem; }
.mysvc .meta { font-size: .85rem; color: var(--text-dim); margin-top: 2px; }
.pill.paused { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.active { background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger td { padding: 10px 8px; border-top: 1px dashed var(--border); }
.ledger tr:first-child td { border-top: 0; }
.ledger td.amt { text-align: right; font-weight: 700; white-space: nowrap; }
.ledger td.credit { color: var(--hero-green); }
.ledger small { display: block; color: var(--text-dim); }
.balance { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 8px 6px; margin-top: 6px; border-top: 2px solid var(--border); }
.balance b { font-family: var(--font-display); font-size: 1.6rem; }
.portal .fine { margin: 6px 8px 0; }
.help-card { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: end; padding: 20px; border-radius: var(--radius); background: linear-gradient(150deg, color-mix(in srgb, var(--secondary) 18%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.help-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.help-card p { margin: 0 0 10px; font-size: .9rem; color: var(--text-dim); }
.help-card a { font-weight: 700; color: var(--text); text-decoration: none; display: block; overflow-wrap: anywhere; }
.help-card img { width: 90px; margin-bottom: -20px; }
.readonly { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border); color: var(--text-dim); font-size: .92rem; }
.readonly b { color: var(--text); display: block; }
details.more { border-top: 1px solid var(--border); }
details.more summary { cursor: pointer; padding: 14px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; color: var(--primary); font-size: 1.2rem; line-height: 1; }
details.more[open] summary::after { content: "\2013"; }
details.more .inner { padding: 0 20px 18px; }
.cust-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.cust-box span { font-size: .85rem; color: var(--text-dim); }
.cust-box b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .04em; color: var(--primary); }
.cust-box .btn { margin-left: auto; }
.pay-row { display: grid; grid-template-columns: 1fr 140px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px dashed var(--border); }
.pay-row.first { padding: 16px; margin-top: 14px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.pay-row b { display: block; font-size: 1.05rem; }
.pay-row > div > span { display: block; font-size: .88rem; color: var(--text-dim); margin-top: 2px; }
.pay-row .btn { display: inline-flex; }
.qr { width: 140px; height: 140px; padding: 4px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr img, .qr canvas { width: 132px !important; height: 132px !important; object-fit: contain; }
@media (max-width: 480px) { .pay-row { grid-template-columns: 1fr; } }

/* ---------- Settings: Ways to pay ---------------------------------------- */
.tip-box { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; background: color-mix(in srgb, var(--hero-green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hero-green) 40%, transparent); }
.tip-box b:first-child { color: var(--hero-green); }
.pay-set { padding: 14px 0; border-top: 1px dashed var(--border); }
.pay-set.recommended { padding: 14px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--primary) 6%, transparent); margin-bottom: 6px; }
.pay-set-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pay-set .field { margin-bottom: 10px; }
.qr-thumb { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; vertical-align: middle; margin-right: 8px; }

/* Portal: service buttons (Pause / Resume / Cancel) */
.mysvc .card-acts { margin-top: 10px; }
.btn-quiet { background: transparent; color: var(--text-dim); box-shadow: inset 0 0 0 1px var(--border); }
.btn-quiet:hover { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }

/* ---------- Public home page + menu extras (index.php; mockup/home.html) -- */
html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 80px; }
.nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--primary) 16%, transparent); box-shadow: inset 0 -2px 0 var(--primary); }
.nav-links .sheet-only { display: none; }
@media (max-width: 1100px) { .nav-links a { padding: 10px 10px; font-size: .9rem; } }
@media (max-width: 860px) {
  .nav-links .sheet-only { display: block; }
  .nav-links .sheet-only .btn { display: flex; margin-top: 8px; }
  .nav-actions .nav-login { display: none; }
}
/* Back to top: arrow on the middle of the left edge (computers), a pill at
   the bottom that shows while scrolling up (phones). */
.to-top {
  position: fixed; left: 14px; top: 50%; z-index: 40;
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border); cursor: pointer;
  display: grid; place-items: center; color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
  opacity: 0; transform: translate(-12px, -50%); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.to-top:hover { transform: translate(0, calc(-50% - 2px)); }
.to-top:focus-visible, .to-top-pill:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; }
.to-top-pill {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; display: none;
  align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--on-primary) 20%, transparent);
  font: 700 .92rem var(--font-body); color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 45%, transparent);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top-pill svg { width: 18px; height: 18px; }
.to-top-pill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 860px) { .to-top { display: none; } .to-top-pill { display: inline-flex; } }

.area-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.area-strip > * { min-width: 0; }
.area-strip h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 14px; }
.area-strip .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 860px) { .area-strip { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-card h3 { font-size: 1.3rem; margin-top: 10px; }
.contact-lines { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.contact-lines a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines span { display: block; font-size: .8rem; color: var(--text-dim); }
.see-all { display: inline-flex; margin-top: 22px; font-weight: 700; color: var(--primary); text-decoration: none; }
.svc-card .price small.from { margin-right: 4px; }
a.slot-badge { text-decoration: none; color: inherit; }

/* House pins from the address list (Service area + sign-up maps) */
.map-pin.dot.house { width: 10px; height: 10px; }
.map-pin.dot.house::before { width: 10px; height: 10px; background: #fff; border: 2px solid var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.map-pin.dot.house.picked::before { background: var(--primary); }
.legend .l-house { background: #fff; border: 2px solid var(--primary); }
.house-changes { margin: 0 0 14px; }
.house-changes details { margin: 4px 0; }
.house-changes summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.house-changes ul { margin: 6px 0 8px 18px; font-size: .88rem; }
/* Services & prices: pick the hero for the home-page card. */
.hero-pick { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.hero-opt { --accent: var(--primary); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font-size: .72rem; text-align: center; }
.hero-opt.green { --accent: var(--hero-green); }
.hero-opt.blue { --accent: var(--secondary); }
.hero-opt img { width: 56px; height: 56px; object-fit: contain; }
.hero-opt.none { justify-content: center; font-weight: 600; min-height: 84px; }
.hero-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hero-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-opt span { border-bottom: 3px solid var(--accent); line-height: 1.3; }
.hero-opt.none span { border-bottom: 0; }
.review .ellipsis { display: none; }
.review.clamped .ellipsis { display: inline; }
.review.clamped .more-text { display: none; }
.review .more-btn {
  align-self: flex-start; margin: -12px 0 16px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--accent);
}
.review .more-btn:hover { text-decoration: underline; }
.review .rv-reply { margin: -6px 0 18px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; background: color-mix(in srgb, var(--accent) 12%, transparent); border-left: 3px solid var(--accent); }
.review .rv-reply b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.review .earlier { margin-top: 12px; max-width: 62%; font-size: .88rem; }
.review .earlier[open] { max-width: 100%; margin-bottom: 110px; }
.review .earlier summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.review .earlier .old { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.review .earlier .old .stars { font-size: .85rem; }
.review .earlier .old small { display: block; color: var(--text-dim); }
.review .earlier .old-reply { display: block; margin-top: 4px; color: var(--text-dim); }

/* ---------- Reviews: staff page (admin-reviews.php) ---------- */
.rv-tabs { display: flex; gap: 6px; padding: 0 20px 14px; flex-wrap: wrap; }
.rv-tabs a { border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .85rem; text-decoration: none; }
.rv-tabs a.on { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--text); border-color: var(--primary); }
.rv-tabs .count { background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .75rem; margin-left: 2px; }
.rule-box { margin: 0 20px 16px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; line-height: 1.5; background: color-mix(in srgb, var(--secondary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--secondary) 40%, var(--border)); }
.rv-card { margin: 0 20px 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.rv-card.late { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); }
.rv-card blockquote { margin: 8px 0 10px; font-size: 1.02rem; }
.rv-card .stars, .my-review .stars { color: var(--warn); letter-spacing: 2px; }
.rv-card .sub { font-size: .85rem; color: var(--text-dim); }
.rv-card .waited { font-size: .85rem; font-weight: 700; color: var(--warn); margin-bottom: 8px; }
.rv-card .honest { margin-top: 10px; font-size: .85rem; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--hero-green) 14%, transparent); color: var(--hero-green); font-weight: 600; display: inline-block; }
.rv-card .reply-label { display: block; margin-top: 12px; font-weight: 700; font-size: .88rem; }
.rv-card textarea, .review-form textarea { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); resize: vertical; }
.rv-card .reply { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 0 8px 8px 0; font-size: .9rem; }
.rv-card .why { margin-top: 10px; color: var(--warn); font-weight: 600; font-size: .88rem; }
.rv-card .card-acts { align-items: flex-start; }
.dont-show { margin-top: 10px; }
.dont-show summary { list-style: none; display: inline-flex; }
.dont-show summary::-webkit-details-marker { display: none; }
.dont-show .reasons { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); display: grid; gap: 6px; font-size: .9rem; max-width: 560px; }
.dont-show .reasons p { margin: 0; }
.card-acts .dont-show { margin-top: 0; }

/* ---------- Reviews: the client's account (portal.php #review) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.star-pick { border: 0; padding: 0; margin: 0 0 10px; }
.star-pick legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.star-pick .stars-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 2.1rem; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--text) 22%, transparent); padding: 2px; transition: color .1s ease; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--warn); text-shadow: 0 0 12px color-mix(in srgb, var(--warn) 45%, transparent); }
.star-pick input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.review-form textarea { width: 100%; box-sizing: border-box; }
.review-form .counter { text-align: right; font-size: .8rem; color: var(--text-dim); margin: 4px 0 6px; }
.my-review { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.my-review p { margin: 4px 0; }
.my-review .my-reply { font-size: .9rem; color: var(--text-dim); }
.my-review .st-wait { color: var(--warn); font-weight: 700; }
.my-review .st-ok { color: var(--hero-green); font-weight: 700; }
.my-review .st-off { color: var(--text-dim); font-weight: 700; }

/* ---------- Testing (admin-testing.php, test site only) ----------
   The Rowyn's Launch Check look: a progress bar per tester, a card per
   scenario with a colored left edge for its state, Works / Issue / Skip. */
.tst { display: grid; gap: 18px; max-width: 900px; }
.tst-back { margin: 0; font-size: .9rem; }
.tst-intro { max-width: 64ch; }
.tst-section { display: grid; gap: 10px; }
.tst-section > h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin: 6px 0 0; }
.tst-section > p { margin: 0; }
.tst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; }
.tst-card.ready { border-color: var(--hero-green); }
.tst-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tst-card-head h3 { margin: 0; font-size: 1.1rem; }
.tst-card-head h3 a { color: var(--text); text-decoration: none; }
.tst-stat { font-size: .88rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tst-warn { color: var(--warn); }
.tst-person { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.tst-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tst-meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tst-meter span { display: block; height: 100%; background: var(--hero-green); border-radius: 99px; }
.tst-count { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .tst-person { grid-template-columns: 1fr auto; } .tst-meter { grid-column: 1 / -1; order: 3; } }
.tag-rowyn { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); vertical-align: middle; }
.tst-ready { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.tst-ready-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tst-ready-row form { margin: 0; }
.tst-done { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tst-copy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tst-copy-text { width: 100%; min-height: 120px; font: .82rem/1.4 ui-monospace, Consolas, monospace; }
.tst-testers { display: grid; gap: 6px; }
.tst-tester-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.tst-rowyn-pick { font-size: .85rem; color: var(--text-dim); white-space: nowrap; }
.tst-handover { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tst-bar { position: sticky; top: 0; z-index: 4; background: var(--bg); padding-block: 10px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.tst-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tst-filters button { font: 600 .82rem var(--font-body); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; }
.tst-filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tst-item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.tst-item.green { border-left-color: var(--hero-green); }
.tst-item.has-issue { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.tst-item-head { display: grid; gap: 6px; }
.tst-item h3 { margin: 0; font-size: 1rem; }
.tst-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tst-tag { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); }
.tst-tag.tst-retry { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); }
.tst-steps { margin: 0; padding-left: 22px; display: grid; gap: 3px; }
.tst-expect { margin: 0; font-size: .92rem; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.tst-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .86rem; color: var(--text-dim); }
.tst-others .st-pass b { color: var(--hero-green); }
.tst-others .st-issue b { color: var(--warn); }
.tst-others .st-retry b { color: var(--secondary); }
.tst-note-text { color: var(--text); }
.tst-others-note { margin: 0; font-size: .9rem; }
.tst-mine { display: grid; gap: 6px; }
.tst-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tst-buttons button { font: 700 .82rem var(--font-body); padding: 7px 12px; min-height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.tst-buttons button:focus-visible, .tst-filters button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tst-buttons button[aria-pressed="true"].tst-b-pass { background: var(--hero-green); border-color: var(--hero-green); color: #fff; }
.tst-buttons button[aria-pressed="true"].tst-b-issue { background: var(--warn); border-color: var(--warn); color: var(--on-warn); }
.tst-buttons button[aria-pressed="true"].tst-b-skip { background: var(--text-dim); border-color: var(--text-dim); color: var(--surface); }
.tst-mine textarea, .tst-section textarea[data-round-note] { width: 100%; box-sizing: border-box; font: .9rem/1.4 var(--font-body); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; resize: vertical; }
.tst-saved { font-size: .78rem; color: var(--hero-green); }
.tst-saved.bad { color: var(--warn); font-weight: 600; }

/* The Testing link burns hotter the more is waiting for you to try
   (testing_fire_level): 1 a warm glow, 2 a flickering flame, 3 on fire,
   4 red hot and shaking, 5 about to blow -- sparks and all. */
.nav-item.testing-due { position: relative; }
.nav-item.testing-due .fire-count { background: var(--primary); color: #fff; }
.nav-item.fire-1 { animation: fire-glow 2.8s ease-in-out infinite; --fire: var(--primary); --glow: 14px; }
.nav-item.fire-2 { animation: fire-glow 1.8s ease-in-out infinite; --fire: #ff5a1f; --glow: 20px; }
.nav-item.fire-3 { animation: fire-glow 1.2s ease-in-out infinite; --fire: #ff4318; --glow: 26px;
  background: linear-gradient(90deg, color-mix(in srgb, #ff4318 22%, transparent), transparent 80%); }
.nav-item.fire-4 { animation: fire-glow .8s ease-in-out infinite; --fire: #ff2a10; --glow: 32px;
  background: linear-gradient(90deg, color-mix(in srgb, #ff2a10 32%, transparent), color-mix(in srgb, #ff8a00 10%, transparent)); }
.nav-item.fire-5 { animation: fire-glow .5s ease-in-out infinite; --fire: #ff1a00; --glow: 40px;
  background: linear-gradient(90deg, color-mix(in srgb, #ff1a00 40%, transparent), color-mix(in srgb, #ffb000 16%, transparent)); }
@keyframes fire-glow {
  0%, 100% { box-shadow: 0 0 calc(var(--glow) * .3) 0 color-mix(in srgb, var(--fire) 30%, transparent); }
  50% { box-shadow: 0 0 var(--glow) 2px color-mix(in srgb, var(--fire) 70%, transparent); }
}
/* The badge becomes a flame from 10 up, flickering faster as it grows. */
.nav-item:is(.fire-2, .fire-3, .fire-4, .fire-5) .fire-count {
  background: linear-gradient(0deg, #ff1a00, #ff6a00 55%, #ffc400);
  box-shadow: 0 0 10px 2px color-mix(in srgb, #ff6a00 70%, transparent);
  animation: flame-flicker .9s steps(2, jump-none) infinite;
}
.nav-item.fire-3 .fire-count { animation-duration: .55s; }
.nav-item.fire-4 .fire-count { animation: flame-flicker .4s steps(2, jump-none) infinite, fire-shake 2.4s ease-in-out infinite; }
.nav-item.fire-5 .fire-count { animation: flame-flicker .25s steps(2, jump-none) infinite, fire-shake .9s ease-in-out infinite; }
@keyframes flame-flicker {
  0% { filter: brightness(1); transform: translateY(0) scale(1); }
  50% { filter: brightness(1.25) saturate(1.2); transform: translateY(-1px) scale(1.06); }
  100% { filter: brightness(.95); transform: translateY(0) scale(1); }
}
@keyframes fire-shake {
  0%, 80%, 100% { translate: 0 0; rotate: 0deg; }
  84% { translate: -2px 0; rotate: -6deg; }
  88% { translate: 2px -1px; rotate: 6deg; }
  92% { translate: -2px 1px; rotate: -4deg; }
  96% { translate: 1px 0; rotate: 3deg; }
}
/* 60+: sparks burst off the badge every couple of seconds. */
.nav-item.fire-5::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 #ffc400, 0 0 #ff6a00, 0 0 #fff3b0, 0 0 #ff1a00, 0 0 #ffc400, 0 0 #ff6a00;
  animation: fire-sparks 2s ease-out infinite;
}
@keyframes fire-sparks {
  0%, 60% { opacity: 0; box-shadow: 0 0 #ffc400, 0 0 #ff6a00, 0 0 #fff3b0, 0 0 #ff1a00, 0 0 #ffc400, 0 0 #ff6a00; }
  65% { opacity: 1; }
  100% { opacity: 0; box-shadow: -18px -16px #ffc400, 14px -20px #ff6a00, 22px 4px #fff3b0, -22px 8px #ff1a00, 4px 22px #ffc400, -6px -26px #ff6a00; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-item.testing-due, .nav-item.testing-due .fire-count, .nav-item.fire-5::after { animation: none; }
  .nav-item.testing-due { box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 60%, transparent); }
}
.tst-rowyn-status { margin: 0; font-size: .88rem; font-weight: 700; color: var(--primary); }
.tst-rowyn-status.st-pass { color: var(--hero-green); }
.tst-rowyn-status.st-issue { color: var(--warn); }
.row-flash td { padding-top: 0; }
.row-flash .alert { margin: 0; white-space: normal; }

/* ---------- Payments (admin-payments.php) ---------- */
.pay-table td { vertical-align: top; }
.pay-table input[type="number"] { width: 7.5em; }
.pay-table input[type="date"] { width: 10.5em; }
.pay-table select { min-width: 8em; }
.pay-amount { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-hint { flex-basis: 100%; }
.pay-table tr.filled td { background: color-mix(in srgb, var(--hero-green) 8%, transparent); }
.pay-table tr.has-error td { background: color-mix(in srgb, var(--warn) 9%, transparent); }
.pay-error { margin: 6px 0 0; font-size: .82rem; white-space: normal; }
.pay-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); }

/* Employee pay: percent boxes (Services & prices, Settings, a pay page's raises). */
.field.narrow { max-width: 340px; }
.pct-input { display: inline-flex; align-items: center; gap: 6px; }
.pct-input input { width: 90px; }
.table input.count-input { width: 70px; }
/* Staff page: "Auto-fill picks" (scheduling priority), under the services. */
.priority-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.priority-form label { font-size: 12px; color: var(--text-dim); }
.priority-form select { width: auto; }

/* Show password -- the ninja mask (assets/js/app.js). The slit is closed
   while hidden; tapping opens it to two eyes and a ring runs down over the
   3 seconds before it hides again. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--text-dim); }
.pw-toggle:hover { color: var(--text); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pw-ninja { width: 100%; height: 100%; display: block; overflow: visible; }
.pw-hood, .pw-tail { fill: currentColor; }
.pw-tail { stroke: currentColor; stroke-width: .6; stroke-linejoin: round; }
.pw-slit { fill: #0d1016; /* dark in both themes, so the white eyes always show */ transform-box: fill-box; transform-origin: center; transform: scaleY(.18); transition: transform .18s ease; }
.pw-eyes { transform-box: fill-box; transform-origin: center; transform: scaleY(0); transition: transform .18s ease .05s; }
.pw-eye { fill: #fff; }
.pw-pupil { fill: #121826; }
.pw-ring-track, .pw-ring { fill: none; stroke-width: 2; }
.pw-ring-track { stroke: transparent; }
.pw-ring { stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; opacity: 0; }
.pw-shown .pw-toggle { color: var(--text); }
.pw-shown .pw-slit { transform: scaleY(1); }
.pw-shown .pw-eyes { transform: scaleY(1); }
.pw-shown .pw-ring-track { stroke: var(--border); }
.pw-shown .pw-ring { opacity: 1; animation: pw-countdown 3s linear forwards; }
@keyframes pw-countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@media (prefers-reduced-motion: reduce) {
  .pw-slit, .pw-eyes { transition: none; }
  .pw-shown .pw-ring { animation: none; stroke-dashoffset: 0; }
}

/* Plans on the sign-up page (signup.php). */
.plan-picks { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-picks-head { margin: 0 0 4px; }
.plan-pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.plan-pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.plan-pick input { margin-top: 4px; accent-color: var(--primary); }
.plan-body { display: grid; gap: 3px; }
.plan-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-save { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--hero-green) 20%, transparent); color: var(--hero-green); }
.plan-desc { color: var(--text-dim); font-size: 14px; }
.plan-line { font-size: 14px; }
.plan-line s { color: var(--text-dim); }
/* Plans on the home page pricing (index.php). */
.plans-head { margin: 28px 0 12px; }
.plan-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.plan-card .plan-desc, .plan-card .plan-line { margin: 0; }
.plan-card .btn { justify-self: start; margin-top: 6px; }

/* The availability code (admin-availability.php): who's editing whose calendar. */
.code-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.code-banner .inline-form { display: inline; margin: 0; }
.check-line { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }
.check-line input { accent-color: var(--primary); width: 16px; height: 16px; }
/* My profile: the availability code explanation. */
.code-explain { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.code-explain p { margin: 0 0 6px; }
.code-explain b { color: var(--text); }
.code-explain ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 3px; }
/* Schedule: Move a booked visit (includes/move_visit.php). */
.job .move-visit { grid-column: 1 / -1; margin-top: 6px; }
.job .move-visit summary { display: inline-flex; list-style: none; cursor: pointer; }
.job .move-visit summary::-webkit-details-marker { display: none; }
.job .move-visit form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); max-width: 520px; }
.job .move-visit select, .job .move-visit input[type="time"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.job .move-visit .move-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.job .move-visit .btn { justify-self: start; }

/* Portal: Change time on a visit (includes/client_reschedule.php). */
.portal .visit .change-time { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--primary); }
.portal .visit .reschedule { margin-top: 8px; display: grid; gap: 6px; }
.portal .visit .reschedule form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.portal .visit .reschedule select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
/* Services & prices: Move up / Move down above each plan. */
.plan-order { display: flex; justify-content: flex-end; gap: 6px; margin: 14px 0 -8px; }
.plan-order form { margin: 0; }

/* Home page plan cards (index.php): bright hero cards in the hero's color,
   with a glow ring that spins on hover, a shine sweep and twinkling stars
   (Shane picked mockup/plan-cards.html B + A's ring, 2026-09-29). */
.plan-hero-card { --c: var(--primary); --c2: #ffb347; position: relative; isolation: isolate; overflow: visible; border-radius: var(--radius);
  padding: 22px 118px 20px 20px; min-height: 240px; display: grid; gap: 8px; align-content: start; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%), linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #0d1016));
  transition: transform .25s ease, box-shadow .25s ease; }
.plan-hero-card.blue { --c: var(--secondary); --c2: #7fe0ff; }
.plan-hero-card.green { --c: var(--hero-green); --c2: #a6f28c; }
.plan-hero-card::before { content: ""; position: absolute; inset: -3px; z-index: -3; border-radius: calc(var(--radius) + 3px); opacity: 0;
  background: conic-gradient(from var(--plan-spin, 0deg), var(--c), var(--c2), transparent 40%, var(--c) 60%, var(--c2), var(--c));
  transition: opacity .3s ease; animation: plan-spin 3s linear infinite; }
.plan-hero-card::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: var(--radius); background: inherit; }
/* The hero sits behind the words (above the card's color); a faint shadow keeps them readable over it. */
.plan-hero-card > :not(.hero):not(.shine):not(.sparkles) { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.plan-hero-card:hover, .plan-hero-card:focus-within { transform: translateY(-6px) scale(1.02); box-shadow: 0 22px 44px -14px color-mix(in srgb, var(--c) 85%, transparent); }
.plan-hero-card:hover::before, .plan-hero-card:focus-within::before { opacity: 1; }
.plan-hero-card .hero { position: absolute; right: -10px; bottom: -8px; width: 150px; transform: rotate(6deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); transition: transform .35s cubic-bezier(.2,1.6,.4,1); pointer-events: none; z-index: -1; }
.plan-hero-card:hover .hero { transform: rotate(-4deg) translateY(-14px) scale(1.08); }
.plan-hero-card .shine, .plan-hero-card .sparkles { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; pointer-events: none; z-index: -1; }
.plan-hero-card .shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); transform: translateX(-120%); }
.plan-hero-card:hover .shine::before { animation: plan-sweep 1.1s ease; }
.plan-hero-card .sparkles i { position: absolute; width: 10px; height: 10px; opacity: 0; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.plan-hero-card:hover .sparkles i { animation: plan-twinkle 1.6s ease-in-out infinite; }
.plan-hero-card .sparkles i:nth-child(1) { top: 12%; left: 70%; }
.plan-hero-card .sparkles i:nth-child(2) { top: 58%; left: 62%; width: 7px; height: 7px; animation-delay: .4s; }
.plan-hero-card .sparkles i:nth-child(3) { top: 30%; left: 6%; width: 8px; height: 8px; animation-delay: .8s; }
.plan-hero-card .sparkles i:nth-child(4) { top: 86%; left: 40%; width: 6px; height: 6px; animation-delay: 1.1s; }
.plan-hero-card .sparkles i:nth-child(5) { top: 8%; left: 42%; width: 6px; height: 6px; animation-delay: .6s; }
.plan-hero-card h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.plan-hero-card .plan-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-hero-card .plan-save { background: #fff; color: #0d1016; }
.plan-hero-card .plan-desc, .plan-hero-card .plan-line s { color: rgba(255,255,255,.85); }
.plan-hero-card .plan-desc, .plan-hero-card .plan-line { margin: 0; }
.plan-hero-card .plan-year { justify-self: start; margin: 2px 0 0; padding: 3px 10px; border-radius: 8px; background: rgba(0,0,0,.24); font-weight: 800; font-size: 14px; }
.plan-hero-card .plan-cta { text-shadow: none; justify-self: start; margin-top: 6px; padding: 10px 18px; border-radius: 10px; background: #fff; color: #0d1016; font-weight: 800; text-decoration: none; transform: skew(-8deg); }
.plan-hero-card .plan-cta span { display: inline-block; transform: skew(8deg); }
.plan-hero-card .plan-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@property --plan-spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes plan-spin { to { --plan-spin: 360deg; } }
@keyframes plan-sweep { to { transform: translateX(120%); } }
@keyframes plan-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (max-width: 420px) { .plan-hero-card { padding-right: 20px; padding-bottom: 120px; } .plan-hero-card .hero { width: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .plan-hero-card, .plan-hero-card *, .plan-hero-card::before { animation: none !important; transition: none !important; }
  .plan-hero-card:hover { transform: none; }
}

/* Coming soon (includes/coming_soon.php): the Opening soon form, and the
   reminder staff see at the top of the public site while it's on. */
.coming-soon .soon-form { display: grid; gap: 12px; margin-top: 18px; max-width: 560px; }
.coming-soon .soon-head { margin: 0; }
.coming-soon .soon-fields { display: grid; gap: 10px; }
.coming-soon .soon-form .btn { justify-self: start; }
.coming-soon .soon-done { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--hero-green) 18%, transparent); border: 1px solid color-mix(in srgb, var(--hero-green) 50%, transparent); max-width: 560px; }
.soon-staff-banner { position: relative; z-index: 60; padding: 8px 16px; text-align: center; font-size: 14px; background: var(--warn); color: var(--on-warn); }
.soon-staff-banner a { color: inherit; font-weight: 700; }

/* A staff member's page (admin-staff-member.php) */
.section-title { font-family: var(--font-display); font-size: 1.15rem; margin: 28px 0 12px; }
.account-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.account-row + .account-row { margin-top: 14px; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-tags .tag { font-size: .78rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); }

/* Schedule: scheduled jobs grouped by week; later weeks folded */
.week-group + .week-group { border-top: 1px solid var(--border); }
.week-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px; cursor: pointer; list-style: none; }
.week-group > summary::-webkit-details-marker { display: none; }
.week-group > summary::before { content: '▸'; color: var(--text-dim); margin-right: 8px; transition: transform .15s; }
.week-group[open] > summary::before { transform: rotate(90deg); }
.week-group .week-title { flex: 1; font-family: var(--font-display); font-size: .95rem; }

/* Supplies */
.alert-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text); }
.alert-warn::before { content: "⏰ "; }
.table tr.has-error td { background: color-mix(in srgb, var(--warn) 9%, transparent); }
.svc-supplies .supply-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.svc-supplies .supply-line .field { margin: 0; }
.svc-supplies .supply-line input[type="text"] { width: 90px; }
.earns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.earns .earn-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); font-size: .88rem; }
.earns .earn-card b.keep { color: var(--hero-green); }
.earns .earn-card b.keep.neg { color: var(--danger); }

/* ---------- Hero Vault (admin-hero-vault.php; Shane + Rowyn 2026-10-06, mockup/hero-vault.html) ---------- */
.hv-page { --vault-glow: rgba(43,184,255,.18); }
:root[data-theme="light"] .hv-page { --vault-glow: rgba(10,143,214,.12); }
.nav-item .vault-count { background: linear-gradient(135deg, var(--secondary), var(--hero-green)); color: #fff; animation: hv-pop 1s ease-in-out infinite alternate; }

.hv-head { position: relative; margin: 0 0 22px; padding: 40px 28px 30px; border-radius: 24px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--vault-glow), transparent 65%), linear-gradient(180deg, var(--bg-2), var(--surface)); border: 1px solid var(--border); }
.hv-head::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 58px, color-mix(in srgb, var(--secondary) 14%, transparent) 59px 60px),
              repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--secondary) 10%, transparent) 0 2deg, transparent 2deg 15deg);
  mask: radial-gradient(circle, #000 20%, transparent 70%); animation: hv-spin 120s linear infinite; }
@keyframes hv-spin { to { rotate: 360deg; } }
.hv-stars { position: absolute; inset: 0; pointer-events: none; }
.hv-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; animation: hv-twinkle 4s ease-in-out infinite; }
:root[data-theme="light"] .hv-stars i { background: var(--secondary); }
@keyframes hv-twinkle { 50% { opacity: .9; } }
.hv-head > * { position: relative; }
.hv-eyebrow { font-family: var(--font-display); letter-spacing: .14em; font-size: 13px; color: var(--secondary); text-transform: uppercase; }
.hv-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 7vw, 64px); margin: 6px 0 8px; letter-spacing: .03em;
  background: linear-gradient(180deg, #fff 30%, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(43,184,255,.45)); }
:root[data-theme="light"] .hv-head h1 { background: linear-gradient(180deg, #0a3a66, var(--secondary)); -webkit-background-clip: text; background-clip: text; filter: none; }
.hv-head p { color: var(--text-dim); max-width: 620px; margin: 0 auto 22px; }
.hv-tally { display: inline-flex; align-items: center; gap: 16px; padding: 12px 22px 12px 14px; border-radius: 999px; text-align: left;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.hv-ring { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 15px;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(var(--secondary) calc(var(--p) * 1%), var(--border) 0); }
.hv-tally b { font-family: var(--font-display); font-weight: 400; font-size: 20px; display: block; }
.hv-tally span { color: var(--text-dim); font-size: 13px; }
.hv-head-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.hv-head-actions form { margin: 0; }
.hv-chip { font: 600 13px var(--font-body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.hv-chip[aria-pressed="false"] { opacity: .7; }

.hv-title { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 30px 0 6px; }
.hv-sub { color: var(--text-dim); margin: 0 0 16px; font-size: 14px; }

/* Cards */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hv-card { --c: var(--secondary); position: relative; border-radius: 20px; padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--border);
  isolation: isolate; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s, opacity .3s, filter .3s; }
.hv-card.green { --c: var(--hero-green); } .hv-card.blue { --c: var(--secondary); } .hv-card.orange { --c: var(--primary); }
.hv-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.hv-stage { position: relative; height: 250px; display: grid; place-items: end center; margin: -4px -4px 12px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 85%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--bg-2); }
.hv-stage img { height: 236px; width: auto; max-width: 100%; object-fit: contain; position: relative; z-index: 1; transition: filter .9s ease, transform .4s; }
.hv-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 4px; }
.hv-story { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0 0 12px; flex: 1; }
.hv-hint { font-style: italic; }
.hv-goal { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hv-goal small { font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.hv-bar { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.hv-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c), color-mix(in srgb, var(--c) 60%, #fff));
  background-size: 200% 100%; animation: hv-flow 2.5s linear infinite; box-shadow: 0 0 12px var(--c); }
@keyframes hv-flow { to { background-position: -200% 0; } }

/* Locked: a silhouette with a rim of the hero's color */
.hv-card.locked .hv-stage img { filter: brightness(0) drop-shadow(0 0 1px var(--c)) drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); opacity: .9; }
:root[data-theme="light"] .hv-card.locked .hv-stage img { filter: brightness(0) opacity(.75) drop-shadow(0 0 8px var(--c)); }
.hv-unknown { letter-spacing: .25em; color: var(--text-dim); }
.hv-lock { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); }
.hv-lock svg { width: 18px; height: 18px; stroke: var(--c); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.hv-card.locked:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.hv-card.locked:hover .hv-stage img { transform: scale(1.04); }
.hv-card.locked:hover .hv-lock { animation: hv-jiggle .5s; }
@keyframes hv-jiggle { 20%, 60% { rotate: -12deg; } 40%, 80% { rotate: 12deg; } }

/* Ready: goal hit, waiting for the reveal */
.hv-card.ready { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent); animation: hv-beckon 1.8s ease-in-out infinite; }
@keyframes hv-beckon { 50% { box-shadow: 0 0 0 2px var(--c), 0 0 50px color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-3px); } }
.hv-card.ready .hv-stage img { filter: brightness(0) drop-shadow(0 0 2px #fff) drop-shadow(0 0 16px var(--c)); }
.hv-card.ready form { margin: 12px 0 0; }
.hv-reveal-btn { width: 100%; font: 400 17px var(--font-display); letter-spacing: .06em; padding: 12px; border-radius: 12px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 50%, transparent); }
.hv-tag { position: absolute; top: 12px; left: 12px; z-index: 3; font: 400 12px var(--font-display); letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: var(--c); color: #fff; animation: hv-pop 1s ease-in-out infinite alternate; }
@keyframes hv-pop { to { scale: 1.12; } }

/* Free. Hover: the hero bursts out of the card, nearly twice the size (assets/js/hero-vault.js
   lowers him when there's no room above, so he's never cut off). */
.hv-card.unlocked { --s: 1.85; --lift: .10; --dy: 0px; border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.hv-card.unlocked h3 { color: var(--c); }
.hv-card.unlocked .hv-stage img { transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2,1.5,.4,1), filter .45s; }
.hv-card.unlocked:hover { z-index: 20; transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 35%, transparent); }
.hv-card.unlocked:hover .hv-stage img { z-index: 5; transform: translateY(calc(var(--lift) * -100% + var(--dy))) scale(var(--s)) rotate(-4deg);
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)) drop-shadow(0 0 30px color-mix(in srgb, var(--c) 80%, transparent)); }
.hv-grid:has(.hv-card.unlocked:hover) .hv-card:not(:hover) { opacity: .45; filter: saturate(.6); }
.hv-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); translate: -120% 0; }
.hv-card.unlocked:hover .hv-shine { animation: hv-sweep 1s ease; }
@keyframes hv-sweep { to { translate: 120% 0; } }
.hv-earned { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--c); padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent); align-self: flex-start; }

/* Request a hero */
.hv-request { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.hv-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.hv-forge::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 25%, transparent), transparent 70%); }
.hv-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0 0 4px; }
.hv-why { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.hv-swatches { border: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hv-swatches legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.hv-swatches label { --c: var(--primary); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: 14px; }
.hv-swatches label.green { --c: var(--hero-green); } .hv-swatches label.blue { --c: var(--secondary); }
.hv-swatches input { accent-color: var(--c); margin: 0; width: auto; }
.hv-swatches label:has(input:checked) { border-color: var(--c); }
.hv-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.hv-send { position: relative; z-index: 1; font: 400 17px var(--font-display); letter-spacing: .05em; padding: 12px 22px; border-radius: 12px; border: 0; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #c2410c); box-shadow: 0 6px 20px rgba(255,107,26,.4); }
.hv-req { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.hv-req:first-of-type { border-top: 0; }
.hv-req b { font-size: 15px; }
.hv-req small, .hv-req .hv-power, .hv-req .hv-note, .hv-owner { grid-column: 1 / -1; }
.hv-req small { color: var(--text-dim); }
.hv-power { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }
.hv-note { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border-left: 3px solid var(--secondary); }
.hv-status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; align-self: start; white-space: nowrap; }
.hv-status a { color: inherit; }
.hv-status.s-sent, .hv-status.s-no { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.hv-status.s-working { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.hv-status.s-vault { background: color-mix(in srgb, var(--hero-green) 18%, transparent); color: var(--hero-green); }
.hv-owner { margin: 8px 0 0; font-size: 12px; color: var(--text-dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hv-owner select, .hv-owner input { font: inherit; padding: 5px 8px; border-radius: 8px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); min-width: 0; }
.hv-owner input { flex: 1 1 140px; }
.hv-owner input[type="number"] { flex: 0 0 64px; width: 64px; }

/* Seasons, peeks and gifts (2026-10-09) */
.hv-season { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--text-dim); margin: -2px 0 8px; }
.hv-card.asleep .hv-stage img { filter: grayscale(.9) brightness(.75); opacity: .7; }
.hv-card.asleep h3 { color: var(--text-dim); }
.hv-card.back { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 40%, transparent); }
.hv-card.locked.peeked .hv-stage img { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); opacity: 1; }
:root[data-theme="light"] .hv-card.locked.peeked .hv-stage img { filter: drop-shadow(0 0 8px var(--c)); }
.hv-card.locked.peeked h3 { color: var(--c); }
.hv-tag-peek { animation: none; }
.hv-card form:has(.hv-peek-btn) { margin: 12px 0 0; }
.hv-peek-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; margin: 0 0 18px;
  border: 1px dashed var(--border); border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.hv-peek-bar p { margin: 0; }
.hv-peek-bar .hv-owner { margin: 0; }
/* R-Party's color: Rowyn picks green, blue or orange */
.hv-party-color { align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; color: var(--text-dim); }
.hv-party-color .hv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; }
.hv-party-color .hv-chip[aria-pressed="false"] { opacity: .65; }
.hv-party-color .hv-chip[aria-pressed="true"] { border-color: var(--c); }
.hv-party-color .green { --c: var(--hero-green); } .hv-party-color .blue { --c: var(--secondary); } .hv-party-color .orange { --c: var(--primary); }
.hv-party-color .hv-dot { width: 10px; height: 10px; }
/* Request a hero: In the vault! / Not this time fold away */
.hv-done { margin-top: 12px; }
.hv-done > summary { display: inline-block; list-style: none; }
.hv-done > summary::-webkit-details-marker { display: none; }
.hv-done[open] > summary { margin-bottom: 8px; }
/* Settings -> Hero seasons */
.season-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.season-row > div { flex: 1 1 220px; display: flex; flex-direction: column; }
.season-row label { font-size: 13px; color: var(--text-dim); }
.season-row input[type="number"] { width: 64px; font: inherit; padding: 5px 8px; border-radius: 8px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); }

/* The vault door: 1st visit, then every 10th; Replay any time */
.hv-door { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; perspective: 1800px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1d2a40, #05070b 70%); transition: opacity .7s; }
.hv-door[hidden] { display: none; }
/* The video door (Shane's login first): the clip fills the screen in place of the drawn door */
.hv-door-video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b1020; }
.hv-door.has-video .hv-door-video { display: block; }
.hv-door.has-video .hv-door-face, .hv-door.has-video .hv-door-light { display: none; }
.hv-door.has-video .hv-door-tap, .hv-door.has-video .hv-door-skip { z-index: 1; }
.hv-door.gone { opacity: 0; pointer-events: none; }
.hv-door-light { position: absolute; width: min(84vmin, 560px); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0%, #bfe9ff 25%, rgba(43,184,255,.6) 50%, transparent 72%); transition: transform 1.8s cubic-bezier(.5,0,.2,1), opacity .6s; }
.hv-door.open .hv-door-light { opacity: 1; transform: scale(4); }
.hv-door-face { position: relative; width: min(84vmin, 560px); aspect-ratio: 1; border-radius: 50%; transform-origin: 0% 50%; transition: transform 1.7s cubic-bezier(.6,0,.25,1);
  background: radial-gradient(circle at 35% 28%, #6b7c95, #2c3749 42%, #151b27 78%);
  box-shadow: 0 0 0 14px #1a2130, 0 0 0 20px #46546e, 0 0 0 24px #10151f, 0 40px 90px rgba(0,0,0,.85), inset 0 0 0 12px rgba(255,255,255,.05), inset 0 -30px 70px rgba(0,0,0,.6); }
.hv-door-face::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 3px solid rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 0 0 2px rgba(0,0,0,.35); }
.hv-door.open .hv-door-face { transform: rotateY(-108deg); }
.hv-bolt { position: absolute; width: 6%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; transition: scale .35s, opacity .35s;
  background: radial-gradient(circle at 35% 30%, #d5deea, #6f7e94 55%, #2a3346); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.hv-door.unbolted .hv-bolt { scale: .3; opacity: .35; }
.hv-wheel { position: absolute; left: 50%; top: 52%; width: 52%; aspect-ratio: 1; translate: -50% -50%; transition: rotate 1.5s cubic-bezier(.5,0,.3,1); }
.hv-door.turning .hv-wheel { rotate: 720deg; }
.hv-spoke { position: absolute; left: 0; top: 50%; width: 100%; height: 9%; margin-top: -4.5%; border-radius: 999px;
  background: linear-gradient(180deg, #c8d2df, #6d7b90 60%, #3b4558); box-shadow: 0 4px 8px rgba(0,0,0,.6); }
.hv-spoke::before, .hv-spoke::after { content: ""; position: absolute; top: 50%; height: 190%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb37a, #ff6b1a 50%, #8a3200); box-shadow: 0 0 12px rgba(255,107,26,.7); }
.hv-spoke::before { left: -6%; } .hv-spoke::after { right: -6%; }
.hv-hub { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a475d, #151b27); box-shadow: 0 0 0 5px #6d7b90, 0 0 0 9px #222b3b, 0 0 30px rgba(43,184,255,.5);
  font: 400 clamp(28px, 8vmin, 52px) var(--font-display); color: #2bb8ff; text-shadow: 0 0 14px #2bb8ff; }
.hv-door-label { position: absolute; left: 0; right: 0; top: 13%; text-align: center; font: 400 clamp(14px, 3.6vmin, 24px) var(--font-display); letter-spacing: .3em;
  color: #9fb3cd; text-shadow: 0 -1px 0 rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15); }
.hv-door-tap { position: absolute; bottom: max(5vh, 24px); font: 400 18px var(--font-display); letter-spacing: .12em; color: #fff; padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(43,184,255,.6); background: rgba(43,184,255,.15); box-shadow: 0 0 30px rgba(43,184,255,.35); animation: hv-pop 1s ease-in-out infinite alternate; }
.hv-door.turning .hv-door-tap, .hv-door.turning .hv-door-skip { opacity: 0; transition: opacity .3s; }
.hv-door-skip { position: absolute; top: 16px; right: 16px; font: 600 13px var(--font-body); color: #9aa6bd; background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* The full-screen reveal */
.hv-rv { --c: var(--secondary); position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s; background: rgba(4,6,10,.95); }
.hv-rv.green { --c: var(--hero-green); } .hv-rv.blue { --c: var(--secondary); } .hv-rv.orange { --c: var(--primary); }
.hv-rv.on { opacity: 1; pointer-events: auto; }
.hv-rv-rays { position: absolute; left: 50%; top: 45%; width: 240vmax; height: 240vmax; translate: -50% -50%; opacity: 0; transition: opacity .5s;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 55%, transparent) 0 5deg, transparent 5deg 15deg);
  mask: radial-gradient(circle, #000 4%, transparent 32%); animation: hv-spin 25s linear infinite; }
.hv-rv-glow { position: absolute; left: 50%; top: 45%; width: 90vmin; height: 90vmin; translate: -50% -50%; border-radius: 50%; opacity: .25; transition: opacity .6s, scale .6s;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 80%, transparent), transparent 65%); }
.hv-rv.freed .hv-rv-rays { opacity: 1; } .hv-rv.freed .hv-rv-glow { opacity: .9; scale: 1.3; }
.hv-rv-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; }
.hv-rv.freed .hv-rv-inner { animation: hv-shake .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes hv-shake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 0; } 30%, 50%, 70% { translate: -7px 0; } 40%, 60% { translate: 7px 0; } }
.hv-rv-big { height: min(58vh, 600px); width: auto; max-width: 92vw; object-fit: contain; transform: scale(.15); filter: brightness(0) drop-shadow(0 0 3px #fff) drop-shadow(0 0 30px var(--c)); }
.hv-rv.on .hv-rv-big { animation: hv-grow 1.6s cubic-bezier(.4,0,.6,1) forwards, hv-quiver .07s linear infinite; }
@keyframes hv-grow { to { transform: scale(.85); } }
@keyframes hv-quiver { 50% { translate: 2px -1px; } }
.hv-rv.freed .hv-rv-big { animation: hv-popin 1s cubic-bezier(.2,1.7,.4,1) forwards; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)) drop-shadow(0 0 40px color-mix(in srgb, var(--c) 80%, transparent)); }
@keyframes hv-popin { from { transform: scale(.85); } 40% { transform: scale(1.15); } to { transform: scale(1); } }
.hv-rv-kicker { font: 400 clamp(14px, 2.4vw, 20px) var(--font-display); letter-spacing: .35em; color: var(--c); opacity: 0; margin-top: 6px; text-shadow: 0 0 16px var(--c); }
.hv-rv-name { font: 400 clamp(54px, 12vw, 130px) var(--font-display); line-height: 1; color: #fff; opacity: 0;
  text-shadow: 0 0 40px var(--c), 0 6px 0 color-mix(in srgb, var(--c) 55%, #000), 0 12px 30px rgba(0,0,0,.7); }
.hv-rv-why { color: #c9d3e4; max-width: 520px; margin: 10px 0 18px; opacity: 0; }
.hv-rv-ok { font: 400 20px var(--font-display); letter-spacing: .08em; padding: 14px 34px; border-radius: 14px; border: 0; color: #fff; cursor: pointer; opacity: 0;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); box-shadow: 0 8px 30px color-mix(in srgb, var(--c) 60%, transparent); }
.hv-rv.freed .hv-rv-kicker { animation: hv-fadeup .5s .3s forwards; }
.hv-rv.freed .hv-rv-name { animation: hv-slam .6s .45s cubic-bezier(.2,1.5,.4,1) forwards; }
.hv-rv.freed .hv-rv-why { animation: hv-fadeup .5s 1s forwards; }
.hv-rv.freed .hv-rv-ok { animation: hv-fadeup .5s 1.5s forwards; }
@keyframes hv-fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hv-slam { from { opacity: 0; transform: scale(3); } to { opacity: 1; transform: none; } }
.hv-whiteout { position: fixed; inset: 0; z-index: 160; background: #fff; opacity: 0; pointer-events: none; }
.hv-whiteout.go { animation: hv-flash 1s ease-out; }
@keyframes hv-flash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
.hv-confetti { position: fixed; z-index: 170; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }

@media (max-width: 820px) { .hv-request { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .hv-head { padding: 30px 16px 24px; }
  .hv-tally { padding: 10px 16px 10px 10px; gap: 12px; }
  .hv-stage { height: 220px; } .hv-stage img { height: 206px; }
  .hv-card.unlocked { --s: 1.35; --lift: .06; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-page *, .hv-page *::before, .hv-head::before, .nav-item .vault-count { animation: none !important; transition: none !important; }
}

/* ---------- Promo video (includes/promo.php): Watch button + pop-up, and the /video/ share page ---------- */
.promo-dialog { width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; background: #05070b; color: #fff; overflow: visible; }
.promo-dialog::backdrop { background: rgba(4, 6, 10, .82); backdrop-filter: blur(4px); }
.promo-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px 18px 0 0; background: #000; }
.promo-dialog form { margin: 0; }
.promo-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  font: 700 26px/1 Inter, system-ui, sans-serif; color: #10131a; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.promo-share { margin: 0; padding: 12px 16px; font-size: .9rem; color: #c9d3e4; text-align: center; }
.promo-share a { color: #8fdcff; }
.soon-watch { margin: 4px 0 22px; }
.promo-page { text-align: center; padding-bottom: 48px; }
.promo-page h1 { margin: 8px 0 18px; }
.promo-player { display: block; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: var(--shadow); }
.promo-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
/* Original | 2.0 (AI-animated) -- only for whoever may see both (includes/promo.php) */
.promo-versions { display: inline-flex; gap: 4px; margin: 0 auto 16px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); }
.promo-versions a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 700; font-size: .9rem; }
.promo-versions a[aria-current] { background: var(--primary); color: #fff; }
/* Settings -> Promo video 2.0, Shane's login only */
.promo-v2-box { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 12px; }
.promo-v2-box .panel-head { padding: 0 0 6px; border: 0; }
.promo-v2-box h3 { margin: 0; font-size: 1rem; }
.promo-v2-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.promo-v2-buttons form { margin: 0; }
@media (max-width: 520px) { .promo-close { top: -10px; right: -6px; } }
