/* Tech portal look: matches the team dashboard (dashboard.bfdelaware.com, ~/bfd-dashboard/site/dist/app.css):
   Benjamin Franklin blue + yellow, One Hour yellow + charcoal + red, Barlow Semi Condensed headings, white tiles with a colored top edge. */
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/bsc-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/bsc-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/bsc-800.woff2) format("woff2"); }

:root {
  --blue: #0067A6; --blue-dk: #00558A; --yellow: #EAB010;
  --oh-yellow: #FACC0D; --oh-red: #D21F3C; --oh-char: #1B1B1B;
  --bg: #F2F4F6; --card: #FFFFFF; --ink: #161616; --muted: #5B636B; --line: #DDE2E6; --soft: #F6F8FA;
  --green: #2E8B57; --red: #D21F3C; --warn: #B8860B;
  --okbg: #DFF3E5; --warnbg: #FFF4CC; --badbg: #FDE3E7;
  --edge: var(--yellow);
  --radius: 8px;
  --head: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121517; --card: #1B1F24; --ink: #F2F3F4; --muted: #A9B0B7; --line: #343A41; --soft: #22272E;
    --okbg: #163A22; --warnbg: #3A3214; --badbg: #3B171E;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5rem; }
h2 { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #5DB3E8; } }

/* header: brand row + tab strip, both on the Benjamin Franklin blue */
.top { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.top .bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px 6px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { display: block; width: auto; }
.brand .lg-bfp { height: 38px; }
.brand .lg-oh { height: 32px; }
.brand .name { font: 800 18px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .35); white-space: nowrap; }
.top .spacer { flex: 1; }
.top .who { font: 600 13px/1 var(--body); background: rgba(255, 255, 255, .14); color: #fff; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.top .who a { color: #fff; }
.top .reload { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.top .reload:hover { background: rgba(255, 255, 255, .24); }
.top .reload svg { width: 16px; height: 16px; }
.top .reload.busy svg { animation: reload-spin .8s linear infinite; }
@keyframes reload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .top .reload.busy svg { animation: none; } }
nav.tabs { display: flex; overflow-x: auto; padding: 0 8px; max-width: 1240px; margin: 0 auto; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { flex: none; color: #fff; text-decoration: none; font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px; height: 42px; display: flex; align-items: center; border-bottom: 4px solid transparent; opacity: .85; }
nav.tabs a:hover { opacity: 1; }
nav.tabs a.on { border-bottom-color: var(--yellow); opacity: 1; }
/* second row under a grouped tab (Time Off, HR & Policies, Team): darker blue strip, pill buttons */
nav.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; background: var(--blue-dk); }
nav.subtabs[hidden] { display: none; }
nav.subtabs::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { nav.subtabs { padding-left: calc((100% - 1240px) / 2 + 16px); } }
nav.subtabs a { flex: none; color: #fff; text-decoration: none; font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
nav.subtabs a:hover { background: rgba(255, 255, 255, .2); }
nav.subtabs a.on { background: var(--yellow); color: #1B1B1B; }
@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand .lg-bfp { height: 30px; }
  .brand .lg-oh { height: 25px; }
  .brand .name { display: none; }
  .top .who #role-label, .top .who .sep { display: none; }
  nav.tabs a { padding: 0 9px; font-size: 13px; letter-spacing: .03em; }
}

main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 60px; }
section.page { display: none; }
section.page.on { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--edge); border-radius: var(--radius); padding: 16px 18px 18px; min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card .more { font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.pill, .chip { display: inline-block; font: 700 11px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.pill.open, .chip.bad { background: var(--badbg); border-color: transparent; color: var(--red); }
.pill.answered, .pill.paid { background: var(--okbg); border-color: transparent; color: var(--green); }
.pill.proposed, .chip.warn { background: var(--warnbg); border-color: transparent; color: var(--warn); }
.pill.event { background: var(--blue); border-color: var(--blue); color: #fff; }
.note { background: var(--warnbg); border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; font-size: 14px; }

/* home hero band (like the dashboard's team band) */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 20px 22px 22px; margin-bottom: 14px; }
.hero .eyebrow { display: inline-block; background: var(--yellow); color: #1B1B1B; font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; border-radius: 4px; margin-bottom: 10px; }
.hero h1 { font: 800 34px/1.05 var(--head); text-transform: uppercase; letter-spacing: .01em; position: relative; }
.hero p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 60ch; position: relative; }
.hero .quote { position: relative; margin: 10px 0 12px; padding: 2px 0 2px 14px; border-left: 4px solid var(--yellow); max-width: 62ch; font: 600 19px/1.35 var(--head); color: #fff; }
.hero .quote cite { display: block; margin-top: 4px; font: 800 13px/1.2 var(--head); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.hero .quote cite::before { content: "— "; }
.hero .hero-ben { position: absolute; right: 18px; bottom: 0; height: 150px; width: auto; opacity: .95; pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; position: relative; max-width: calc(100% - 130px); }
.stat { background: var(--card); color: var(--muted); border-top: 6px solid var(--yellow); border-radius: 6px; padding: 10px 14px 12px; font: 700 12px/1.3 var(--head); text-transform: uppercase; letter-spacing: .07em; }
.stat b { display: block; color: var(--ink); font: 800 26px/1.1 var(--head); letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
@media (max-width: 640px) { .hero .hero-ben { height: 92px; right: 10px; top: 14px; bottom: auto; } .hero h1 { font-size: 28px; padding-right: 80px; } .hero .quote { font-size: 17px; } .stats { max-width: none; grid-template-columns: 1fr 1fr; } }

/* review rotator: all reviews share one grid cell, so the box is as tall as the tallest and never jumps */
.rotator { display: grid; }
.review { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.review.on { opacity: 1; pointer-events: auto; }
.review .shot { display: block; width: 100%; max-width: 520px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px 0; margin-bottom: 8px; }
.review blockquote { margin: 6px 0 10px; font-size: 1.05rem; line-height: 1.5; }
.review .stars { color: var(--yellow); letter-spacing: 2px; }
.review .meta { font-size: 13px; color: var(--muted); }
.review .tech { font-weight: 700; color: var(--ink); }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.dots button.on { background: var(--yellow); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .when { flex: none; width: 52px; text-align: center; border-radius: 6px; background: var(--blue); color: #fff; padding: 5px 0 6px; line-height: 1; }
.list .when b { display: block; font: 800 22px/1 var(--head); }
.list .when small { display: block; color: var(--yellow); font: 800 11px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.list .grow { flex: 1; min-width: 0; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
p.empty { padding: 30px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.icon { font-size: 1.25rem; flex: none; }

/* forms + buttons */
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 90px; resize: vertical; }
/* iPhone date boxes have a built-in width that pushed "Last day off" past the edge of the card (iPhone review, Oct 31) */
input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; min-height: 42px; display: block; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
label { display: block; font: 700 12px/1.2 var(--head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 12px 0 5px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--blue); border-radius: 6px; padding: 9px 14px; min-height: 38px; font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-dk); }
.btn.primary { background: var(--blue); }
.btn.gold { background: var(--yellow); border-color: var(--yellow); color: #1B1B1B; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); font-size: 13px; padding: 7px 11px; min-height: 34px; }
.btn.ghost:hover { border-color: var(--blue); }
.btn:disabled { opacity: .6; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1; min-width: 140px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 9px 14px; min-height: 38px; font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
/* Suggestion Box "Who gets it?" has 4 choices: one row on wide screens, 2 by 2 on a phone so it stays inside the card */
#idea-to { display: grid; grid-template-columns: repeat(4, auto); }
@media (max-width: 560px) { #idea-to { grid-template-columns: 1fr 1fr; } }
.seg button[data-t="hvac"][aria-pressed="true"] { background: var(--oh-yellow); color: var(--oh-char); }
.seg .n { display: inline-block; min-width: 1.4em; padding: 2px 5px; margin-left: 4px; border-radius: 999px; background: rgba(127, 127, 127, .18); font-size: 12px; }

/* faq */
.faq { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; background: var(--card); }
.faq:has(.pill.open) { border-left-color: var(--red); }
.faq:has(.pill.answered) { border-left-color: var(--green); }
.faq .q { font-weight: 700; font-size: 16px; }
.faq .a { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); white-space: pre-wrap; }
.faq .by { font-size: 13px; color: var(--muted); }
.faq .admin { margin-top: 10px; }
.filters { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.filters button { border: 1.5px solid var(--line); background: var(--card); color: var(--muted); border-radius: 6px; padding: 8px 12px; cursor: pointer; font: 800 13px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; }
.filters button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* hr */
.hr-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hr-nav a { text-decoration: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 12px; font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.hr-nav a:hover { border-color: var(--blue); }
.benefit { display: flex; flex-direction: column; }
.benefit .big { font-size: 2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details.policy { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); margin-bottom: 10px; }
details.policy summary { cursor: pointer; padding: 14px 16px; font: 800 17px/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; list-style: none; display: flex; gap: 10px; align-items: center; }
details.policy summary::-webkit-details-marker { display: none; }
details.policy summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.4rem; }
details.policy[open] summary::after { content: "–"; }
details.policy .body { padding: 0 16px 16px; }
details.policy .body h3 { font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 700 11px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; background: var(--soft); }
.table-wrap { overflow-x: auto; }
ol, ul { padding-left: 1.2rem; }

/* install schedule */
.inst-day { margin-bottom: 16px; }
.inst-day h3 { font-size: 15px; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.inst-day h3 .n { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.inst { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-left: 6px solid var(--blue); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
body[data-trade="hvac"] .inst { border-left-color: var(--oh-red); }
.inst .i-time { font: 800 17px/1.1 var(--head); }
.inst .i-time small { display: block; font: 600 12px/1.2 var(--body); color: var(--muted); margin-top: 3px; }
.inst .i-main { min-width: 0; }
.inst .i-main b { font-size: 16px; }
.inst .i-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.inst .i-techs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.chip.tech { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 12px; }
body[data-trade="hvac"] .chip.tech { background: var(--oh-yellow); border-color: var(--oh-yellow); color: var(--oh-char); }
/* installer open time: a big band at the top of the install schedule (blue for BFP, charcoal + yellow for One Hour) */
.crew { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 18px 20px 20px; margin: 4px 0 18px; }
body[data-trade="hvac"] .crew { background: var(--oh-char); border-top: 6px solid var(--oh-red); }
.crew .eyebrow { display: inline-block; background: var(--yellow); color: #1B1B1B; font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; border-radius: 4px; }
body[data-trade="hvac"] .crew .eyebrow { background: var(--oh-yellow); }
.crew h3 { color: #fff; font-size: 24px; margin: 10px 0 8px; }
.crew-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.crew-next b { font: 800 30px/1.1 var(--head); }
.crew-hrs { background: var(--yellow); color: #1B1B1B; font: 800 18px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; padding: 7px 11px; border-radius: 6px; }
body[data-trade="hvac"] .crew-hrs { background: var(--oh-yellow); }
.crew-sum { margin: 10px 0 14px; opacity: .92; }
.crew-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crew-day { background: var(--card); color: var(--ink); border-top: 6px solid var(--yellow); border-radius: 6px; padding: 10px 12px 12px; }
body[data-trade="hvac"] .crew-day { border-top-color: var(--oh-yellow); }
.crew-day.full { border-top-color: var(--oh-red); }
.cd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.cd-head span { color: var(--green); font-size: 14px; white-space: nowrap; }
.crew-day.full .cd-head span { color: var(--red); }
.cd-shift { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.cd-win { font: 700 15px/1.3 var(--head); padding: 5px 0; border-top: 1px solid var(--line); }
.cd-win small { color: var(--muted); font: 600 12px/1 var(--body); }
.cd-win.none { color: var(--red); }
.crew-none { margin: 4px 0 0; font-size: 16px; }
@media (max-width: 640px) { .crew-days { grid-template-columns: 1fr; } .crew-next b { font-size: 24px; } .crew h3 { font-size: 20px; } }
@media (max-width: 560px) { .inst { grid-template-columns: 62px 1fr; } .inst .i-techs { grid-column: 2; justify-content: flex-start; } }

/* map */
.map-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
#map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; margin: 0 0 8px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.zip-check { display: flex; gap: 8px; margin-bottom: 10px; }
.zip-check input { max-width: 240px; }
.zip-result { font-weight: 700; margin-bottom: 10px; min-height: 1.5em; }

/* team */
.progress { height: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.road td:first-child { font-weight: 700; white-space: nowrap; }
.road .lvl { font-size: 12px; color: var(--muted); }
.roster input { padding: 6px 8px; min-width: 90px; }
.roster td { padding: 4px; }

/* sign-in page */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--blue); }
.login { width: 100%; max-width: 400px; background: var(--card); border-radius: var(--radius); padding: 0 26px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); border-top: 8px solid var(--yellow); overflow: hidden; }
.login-logos { display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--blue-dk); margin: 0 -26px 18px; padding: 16px 20px; }
.login-logos img { height: 40px; width: auto; display: block; }
.login-logos img + img { height: 34px; }
.login h1 { font: 800 30px/1.05 var(--head); text-transform: uppercase; margin: 0 0 4px; }
.login .err { color: var(--red); font-weight: 700; min-height: 1.4em; margin-top: 8px; font-size: 14px; }
.login .err[hidden] { display: none; }
/* v35 sign-in card (signin.js): full-width buttons, and the "Send a new code" / "Pick another name" links */
.login #signin .btn { width: 100%; justify-content: center; margin-top: 10px; }
.login #signin select, .login #signin input { width: 100%; box-sizing: border-box; }
.login .linkbtn { display: block; margin: 10px auto 0; padding: 6px 4px; background: none; border: 0; color: var(--blue); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: underline; cursor: pointer; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px; font-weight: 700; opacity: 0; transition: opacity .2s; z-index: 2000; pointer-events: none; }
.toast.on { opacity: 1; }
.admin-only { display: none; }
body.is-admin .admin-only { display: block; }
body.is-admin span.admin-only, body.is-admin button.admin-only { display: inline-flex; }

/* who to call */
.who li { align-items: flex-start; }
.who small { margin-left: 6px; font: 700 11px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.who .topics { font-size: 14px; color: var(--muted); margin-top: 3px; }
.who-btns { display: flex; gap: 6px; flex: none; }
.who-btns .btn { padding: 8px 12px; min-height: 36px; font-size: 13px; text-decoration: none; }

/* recent install photos */
.inst-photo { margin: 0; }
.inst-photo .frame { position: relative; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.inst-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inst-photo .tag { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.inst-photo .tag span { background: var(--yellow); color: #1B1B1B; font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 6px 9px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.inst-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.inst-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.inst-nav .btn { padding: 4px 14px; font-size: 18px; line-height: 1; }
.inst-count { font-size: 13px; color: var(--muted); min-width: 52px; text-align: center; }

/* day-off requests */
.pill.pending { background: var(--warnbg); border-color: transparent; color: var(--warn); }
.pill.approved { background: var(--okbg); border-color: transparent; color: var(--green); }
.pill.denied { background: var(--badbg); border-color: transparent; color: var(--red); }
label.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 600 15px/1.2 var(--body, inherit); color: var(--ink); margin: 14px 0 2px; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 0; }
.off-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* one-time "who are you?" picker for phones signed in before names were required */
.pick-wrap { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0, 40, 70, .75); }
.pick-wrap[hidden] { display: none; }
.login.pick { padding-top: 22px; }

/* birthday: the signed-in tech's own birthday */
.hero .bday { position: relative; margin: 10px 0 4px; padding: 10px 14px; border-radius: 8px; background: var(--yellow); color: #1B1B1B; font: 800 20px/1.2 var(--head); text-transform: uppercase; letter-spacing: .02em; max-width: 640px; }
.hero .bday small { display: block; font: 600 14px/1.4 var(--body, inherit); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 3000; }

/* hidden always wins over display rules like .row { display: flex } */
[hidden] { display: none !important; }

/* This day in history, under the quote on the home page (Nick, Oct 31) */
.hero .history { position: relative; margin: 0 0 14px; max-width: 70ch; }
.hero .history .eyebrow { display: block; margin-bottom: 4px; }
/* one event at a time: all share one grid cell (box as tall as the tallest, no jumping) and fade in turn */
.hero .history ul { list-style: none; margin: 0; padding: 0; display: grid; }
.hero .history li { grid-area: 1 / 1; display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.92); opacity: 0; transition: opacity .6s ease; }
.hero .history li.on { opacity: 1; }
.hero .history li b { flex: 0 0 3.2em; font: 800 15px/1.4 var(--head); color: var(--yellow); }
.hero .history .more { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--yellow); font-weight: 700; }

/* Weather, games and countdown in the hero (Nick, Oct 31). Phones and thin windows: everything stacks, Ben up top.
   Wide (over 900px): greeting on the left, 7-day rain and next games on the right, and the countdown as one strip
   across the bottom with Ben standing at its right end, so neither side is left with a big empty patch. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.hero-main { min-width: 0; }
.hero-main .stats { max-width: none; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.hero-side { position: relative; display: grid; gap: 12px; }
.side-box { background: rgba(0, 0, 0, .18); border-radius: 8px; padding: 12px 12px 10px; }
.side-box .eyebrow { margin-bottom: 8px; }
.side-box .sub { display: block; font-size: 12px; color: rgba(255, 255, 255, .75); margin: -2px 0 8px; }
.wx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.wx-day { padding: 6px 2px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.wx-day .d { font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; }
.wx-day .i { font-size: 20px; line-height: 1.3; }
.wx-day .t { font-size: 11px; line-height: 1.25; color: rgba(255, 255, 255, .75); }
.wx-day .t b { font-size: 13px; color: #fff; }
.wx-day .r { margin-top: 3px; font: 800 14px/1.1 var(--head); }
.wx-day .r small { display: block; font: 600 11px/1.2 var(--body); color: rgba(255, 255, 255, .7); }
.wx-day.wet { background: rgba(234, 176, 16, .22); }
.wx-day.wet .r { color: var(--yellow); }
.wx-total { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .9); }
.game { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.game + .game { border-top: 1px solid rgba(255, 255, 255, .15); }
.game .logos { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.game img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.game .info { min-width: 0; font-size: 13px; line-height: 1.3; }
.game .info b { display: block; font: 800 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.game .live { color: var(--yellow); font-weight: 800; }
@media (max-width: 900px) {
  .hero .hero-ben { height: 92px; right: 10px; top: 14px; bottom: auto; }
  .hero h1 { padding-right: 80px; }
}
/* Tablet width: weather across the top, then games and the countdown side by side */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #wx { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "main wx" "main games" "count count"; column-gap: 22px; row-gap: 12px; }
  .hero-main { grid-area: main; }
  .hero-side { display: contents; }
  #wx { grid-area: wx; }
  #games { grid-area: games; }
  #countdown { grid-area: count; margin-right: 130px; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; column-gap: 16px; padding: 10px 14px; }
  #countdown .eyebrow { margin: 0; }
  #countdown .count { padding: 2px 0 2px 16px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .15); }
  .hero .hero-ben { height: 92px; right: 18px; }
}
.count { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.count + .count { border-top: 1px solid rgba(255, 255, 255, .15); }
.count .ci { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.count .cn { flex: 1; min-width: 0; font-size: 12px; color: rgba(255, 255, 255, .75); line-height: 1.3; }
.count .cn b { display: block; font: 800 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.count .cd { font: 800 26px/1 var(--head); color: var(--yellow); text-align: right; }
.count .cd small { display: block; font: 700 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .75); }

/* Holidays page: one tile per day with an emoji, tinted by season; the next day off is the big blue one (Nick, Oct 31). */
.hdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hday { --tint: var(--soft); position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; min-width: 0; }
.hday.fall { --tint: #FFF1E2; } .hday.xmas { --tint: #E8F6EC; } .hday.party { --tint: #F4ECFF; }
.hday.usa { --tint: #EAF2FB; } .hday.work { --tint: #FFF7DC; } .hday.spring { --tint: #ECF8F3; }
@media (prefers-color-scheme: dark) {
  .hday.fall { --tint: #2D241B; } .hday.xmas { --tint: #1B2A20; } .hday.party { --tint: #261F30; }
  .hday.usa { --tint: #1A2430; } .hday.work { --tint: #2C2817; } .hday.spring { --tint: #1A2A25; }
}
.hday-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hday-icon { font-size: 40px; line-height: 1; }
.hday-name { font: 800 19px/1.15 var(--head); text-transform: uppercase; letter-spacing: .02em; margin-top: 4px; }
.hday-date { font-size: 14px; color: var(--muted); }
.hday-count { margin-top: auto; padding-top: 6px; font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hday-count b { font: 800 26px/1 var(--head); color: var(--blue); letter-spacing: 0; }
.hday-note { font-size: 13px; }
.hday .btn { align-self: flex-start; margin-top: 8px; }
.hday.next { grid-column: span 2; background: var(--blue); border-color: var(--blue); border-top: 6px solid var(--yellow); color: #fff; padding: 16px 18px 18px; }
.hday.next .hday-icon { font-size: 56px; }
.hday.next .hday-name { font-size: 26px; }
.hday.next .hday-date, .hday.next .hday-count, .hday.next .hday-note { color: rgba(255, 255, 255, .85); }
.hday.next .hday-count b { color: var(--yellow); font-size: 40px; }
.hday-up { align-self: flex-start; background: var(--yellow); color: #1B1B1B; font: 800 11px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; padding: 5px 8px; border-radius: 4px; margin-top: 6px; }
@media (max-width: 460px) { .hday.next { grid-column: auto; } }
.hday-tips { list-style: none; padding: 0; }
.hday-tips li { margin: 0 0 10px; }

/* Submit a referral (Nick, Oct 31) */
.ref-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 50%; }

/* Office announcements, top of home (Oct 31) */
[hidden] { display: none !important; }
#announce:not(:empty) { display: grid; gap: 10px; margin-bottom: 16px; }
.announce { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.announce.alert { border-left-color: var(--red); background: var(--badbg); }
.announce.good { border-left-color: var(--green); background: var(--okbg); }
.announce b { font: 800 19px/1.2 var(--head); }
.announce p { margin: 4px 0 6px; }
.announce small { color: var(--muted); }
.ann-icon { font-size: 26px; line-height: 1; }
.announce .grow { flex: 1; min-width: 0; }
.ann-new { justify-self: start; }
#ann-form { margin-bottom: 16px; }

/* Truck & parts photos */
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.photo-add { cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.photo-pick .thumbs { margin-top: 0; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.thumb { position: relative; }
.thumb.busy img { opacity: .45; }
.thumb.busy::after { content: "…"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 20px var(--head); }
.thumb button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--card); font-size: 15px; line-height: 1; cursor: pointer; }
.pre { white-space: pre-line; }
#truck-tabs { margin-bottom: 14px; }

/* Suggestion box */
.anon-note { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--okbg); font-size: 14px; }
.anon-note ul { margin: 6px 0; padding-left: 18px; }
.anon-note li { margin: 3px 0; }
.anon-note summary { margin-top: 4px; color: var(--blue); font-weight: 700; cursor: pointer; }

/* New-hire checklist + policy views */
.ob h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ob-list { list-style: none; margin: 0; padding: 0; }
.ob-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.ob-list li:first-child { border-top: 0; }
.ob-list label.check { align-items: flex-start; margin: 0; }
.ob-list label.check input { margin-top: 2px; flex: none; }
.ob-list.plain li::before { content: "☐ "; color: var(--muted); }
small.ok { color: var(--green); font-weight: 700; }
.views-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.views-pick label { margin: 0; }
.views-pick select { width: auto; }
.tscroll { overflow-x: auto; }
table.views { width: 100%; border-collapse: collapse; font-size: 14px; }
table.views th { text-align: left; font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 6px; border-bottom: 2px solid var(--line); }
table.views td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.views tr.never td { color: var(--muted); font-style: italic; }

/* Who picked up a request (Oct 31) */
small.ack { color: var(--green); font-weight: 700; }
small.wait { color: var(--warn); font-weight: 600; }

/* Ask Ben (Oct 31): round button bottom-right on every page; a card on desktop, a bottom sheet on phones */
.ben-dock { position: fixed; right: 16px; bottom: 16px; z-index: 1500; }
.ben-dock[hidden] { display: none; }
.ben-fab { display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 800 15px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); cursor: pointer; }
.ben-fab:hover { background: var(--blue-dk); }
.ben-fab img { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); object-fit: cover; }
body.ben-on .ben-dock { display: none; }
/* the × that hides Ben (Nick, Oct 31): sits on the button's top-left corner, big enough to hit with a thumb */
.ben-hide { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--oh-char); color: #fff; font: 700 12px/1 var(--body); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.ben-hide::after { content: ""; position: absolute; inset: -9px; } /* bigger tap area */
.ben-hide:hover { background: var(--oh-red); }
.ben { position: fixed; right: 16px; bottom: 16px; z-index: 1600; width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 12px; border-top: 4px solid var(--yellow); box-shadow: 0 10px 34px rgba(0, 0, 0, .3); overflow: hidden; }
.ben[hidden] { display: none; }
.ben header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--blue); color: #fff; }
.ben header img { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); object-fit: cover; }
.ben header b { display: block; font: 800 18px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.ben header small { color: rgba(255, 255, 255, .85); }
.ben header .grow { flex: 1; min-width: 0; }
.ben-x { border: 0; background: none; color: #fff; font-size: 20px; width: 40px; height: 40px; cursor: pointer; border-radius: 6px; }
.ben-x:hover { background: rgba(255, 255, 255, .15); }
.ben-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.ben-log { overscroll-behavior: contain; }
.ben-log > :first-child { margin-top: auto; } /* messages sit at the bottom, next to the box you type in */
.ben-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ben-msg p { margin: 0; }
.ben-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ben-msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ben-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ben-links .btn { text-decoration: none; }
.ben-links button.btn { white-space: normal; text-align: left; }
.ben-send { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ben-send b { display: block; }
.ben-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.ben-form input { flex: 1; min-width: 0; font: 16px var(--body); padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ben-form input:focus { outline: none; border-color: var(--blue); }
.ben-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ben-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ben-dot 1s infinite ease-in-out; }
.ben-dots i:nth-child(2) { animation-delay: .15s; } .ben-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ben-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 640px) {
  .ben-dock { right: 12px; bottom: 12px; }
  .ben-fab { padding-right: 14px; font-size: 14px; }
  .ben-fab img { width: 38px; height: 38px; }
  /* once you scroll, Ben shrinks to just his face so he covers less of the page */
  body.scrolled .ben-fab { padding: 4px; }
  body.scrolled .ben-fab span { display: none; }
  .ben { right: 0; bottom: 0; width: 100%; max-width: none; height: 82vh; height: 82dvh; border-radius: 14px 14px 0 0; }
  .ben-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
/* keep the last bit of each page clear of the Ask Ben button */
body { padding-bottom: 72px; }

/* Home on phones (iPhone review, Oct 31): quick links under the greeting; number tiles and the countdown hidden
   (the cards below repeat them); rain and games sit in their own blue box under the cards (#hero-extra, placeSide). */
.quick { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.quick a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; font: 800 14px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.quick a span { font-size: 18px; }
.quick a:hover { background: var(--yellow); color: #1B1B1B; }
.hero-extra { margin: 16px 0 0; padding: 14px; }
@media (max-width: 640px) {
  .quick { display: grid; grid-template-columns: 1fr 1fr; }
  .quick a { padding: 12px 10px; font-size: 13px; }
  .hero .stats, #countdown { display: none; }
  .hero .quote { margin: 8px 0 10px; }
  .hero .history { margin-bottom: 12px; }
  .hero .history .more { display: none; }
  .hero-side { display: none; }
}

/* Holidays and benefits on phones (iPhone review, Oct 31): the next day off keeps its big blue tile; the rest, and each
   benefit, become one short row (emoji on the left) instead of a tall card, so a whole list fits on a screen. */
@media (max-width: 640px) {
  .hdays { grid-template-columns: 1fr; gap: 8px; }
  .hday.next { padding: 14px 16px 16px; }
  .hday.next .hday-icon { font-size: 44px; }
  .hday.next .hday-count b { font-size: 34px; }
  .hday:not(.next) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name pill" "icon date count"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 10px 12px; }
  .hday:not(.next) .hday-top { display: contents; }
  .hday:not(.next) .hday-icon { grid-area: icon; font-size: 30px; }
  .hday:not(.next) .pill { grid-area: pill; justify-self: end; }
  .hday:not(.next) .hday-name { grid-area: name; margin: 0; font-size: 17px; }
  .hday:not(.next) .hday-date { grid-area: date; font-size: 13px; }
  .hday:not(.next) .hday-count { grid-area: count; margin: 0; padding: 0; justify-self: end; }
  .hday:not(.next) .hday-count b { font-size: 20px; }
  .hday:not(.next) .hday-note, .hday:not(.next) .btn { grid-column: 1 / -1; }
  #page-hr .g3 { gap: 8px; }
  .benefit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title pill" "icon text text"; column-gap: 12px; align-items: center; padding: 12px 14px; }
  .benefit .big { grid-area: icon; font-size: 28px; align-self: start; }
  .benefit h3 { grid-area: title; margin: 0; }
  .benefit .pill { grid-area: pill; }
  .benefit p { grid-area: text; margin: 2px 0 0 !important; font-size: 14px; }
}

/* Training > Selling */
.sell-big { border-top-color: var(--blue); }
.sell-big p { margin: 6px 0 0; }
.sell-steps li, .sell-rules li { margin: 7px 0; }
details.sell summary { text-transform: none; letter-spacing: 0; }
details.sell summary .pill { flex: none; }
details.sell summary .pill { font-size: 10px; }
details.sell h4 { margin: 14px 0 4px; font: 800 12px/1.2 var(--head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
details.sell .means { margin-top: 0; }
.say { margin: 6px 0 10px; padding: 8px 12px; border-left: 4px solid var(--yellow); border-radius: 6px; background: var(--soft); font: 600 16px/1.4 var(--head); }
.dont { margin: 14px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--warnbg); }

/* Google reviews by week (renderReviewChart in app.js). Ben blue and One Hour red, lighter steps in dark mode; both pairs checked
   for color-blind separation and contrast against the card. */
.rv-card { margin-bottom: 14px; --rv-bfp: #0067A6; --rv-oh: #D21F3C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-card { --rv-bfp: #3D9BDB; --rv-oh: #F0566F; } }
.rv-card h3 { flex-wrap: wrap; }
.rv-legend { margin-left: auto; display: flex; gap: 14px; font: 600 13px/1.2 var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.rv-key { display: inline-flex; align-items: center; gap: 6px; }
.rv-key i { width: 16px; height: 4px; border-radius: 2px; background: var(--rv-bfp); }
.rv-key.oh i { background: var(--rv-oh); }
.rv-chart { position: relative; margin-top: 4px; }
.rv-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rv-grid { stroke: var(--line); stroke-width: 1; }
.rv-grid.base { stroke: var(--muted); stroke-opacity: .5; }
.rv-sep { stroke: var(--muted); stroke-opacity: .5; }
.rv-ax { fill: var(--muted); font: 12px var(--body); }
.rv-mon { fill: var(--ink); font: 700 14px var(--head); letter-spacing: .03em; }
.rv-area { stroke: none; }
.rv-area.bfp { fill: var(--rv-bfp); fill-opacity: .18; }
.rv-area.oh { fill: var(--rv-oh); fill-opacity: .16; }
.rv-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.rv-line.bfp { stroke: var(--rv-bfp); }
.rv-line.oh { stroke: var(--rv-oh); }
.rv-badge circle { fill: #fff; stroke-width: 2.5; }
.rv-badge.bfp circle { stroke: var(--rv-bfp); }
.rv-badge.oh circle { stroke: var(--rv-oh); }
.rv-num { fill: var(--ink); font: 800 17px var(--head); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 3px; }
.rv-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.rv-dot { stroke: var(--card); stroke-width: 2; }
.rv-dot.bfp { fill: var(--rv-bfp); }
.rv-dot.oh { fill: var(--rv-oh); }
.rv-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.rv-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px; font-size: 13px; line-height: 1.5; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); white-space: nowrap; display: grid; }
.rv-tip[hidden] { display: none; }
.rv-table summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 6px; }
.rv-table > div { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; margin-top: 8px; }
.rv-table table { border-collapse: collapse; font-size: 13px; }
.rv-table th, .rv-table td { padding: 3px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.rv-table th:first-child, .rv-table td:first-child { text-align: left; }
.rv-table .hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; }

/* Nick's maintenance banner on Home (v37, loadMaint in app.js): red when something is due, yellow when only coming up. */
#maint { margin-bottom: 12px; }
.maint-bar { display: block; padding: 12px 16px; border-radius: 8px; color: #fff; background: #D21F3C; text-decoration: none; line-height: 1.4; }
.maint-bar.soon { background: #8A6A00; }
.maint-bar b { font: 800 18px/1.2 var(--head); margin-right: 6px; }
.maint-bar u { white-space: nowrap; }

/* Policy sign-off */
.signoff { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.signoff small { flex: 1 1 220px; }
/* Nick, Nov 6: "make the button bigger that says Signed" (thread --467). Full width on a phone, big text, easy to tap. */
.signoff .btn[data-sign] { flex: 1 1 100%; justify-content: center; min-height: 60px; padding: 16px 28px; font-size: 22px; border-radius: 10px; }
@media (min-width: 700px) { .signoff .btn[data-sign] { flex: 0 0 auto; min-width: 280px; } }
.sig-name { font: italic 28px/1.1 "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; color: var(--blue); }
/* How-To Library */
.howto-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.howto-bar input { flex: 1 1 240px; max-width: 420px; }
.howto-bar .seg button { padding: 9px 11px; font-size: 13px; }
details.howto { background: var(--card); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
details.howto summary { padding: 11px 14px; cursor: pointer; font: 700 16px/1.3 var(--head); }
details.howto .body { padding: 0 14px 12px; overflow-wrap: anywhere; }
.howto-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.howto-admin small { flex: 1 1 auto; }
.ben-no { display: block; margin-top: 6px; padding: 2px 0; border: 0; background: none; color: var(--muted, #667); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ben-no:disabled { text-decoration: none; cursor: default; }
