:root {
  --red: #ff0000;
  --red-dark: #c80000;
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --gray: #cccccc;
  --gray-2: #ececec;
  --gray-3: #f6f6f6;
  --muted: #5c5c5c;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-size: .95rem; margin-bottom: .6rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--red); background: var(--red); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--black); }
.btn.dark { background: var(--black); border-color: var(--black); }
.btn.dark:hover { background: #333; border-color: #333; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.sm { font-size: .9rem; padding: .55rem .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* header */
.topbar { background: var(--black); color: #fff; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { text-decoration: none; color: var(--gray); }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.brand .name { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: .9; text-transform: uppercase; }
.brand .name small { display: block; font-size: .72rem; letter-spacing: .18em; color: var(--red); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: .5rem .7rem; font-size: 1.02rem; color: var(--ink); border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; }
.member-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.member-chip .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px auto; }
.skel { display: inline-block; width: 90px; height: 34px; border-radius: var(--radius); background: linear-gradient(90deg, #eee, #f7f7f7, #eee); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 4px solid var(--red); display: none; box-shadow: 0 20px 30px rgba(0,0,0,.12); }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .4rem; border-bottom: 1px solid var(--gray-2); font-size: 1.2rem; }
  .nav .btn { margin: 12px 0 0; }
  .topbar .hide-sm { display: none; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(70px, 12vw, 150px); padding-bottom: clamp(70px, 12vw, 150px); }
.hero h1 { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #e9e9e9; }
.hero .tag { font-style: italic; color: var(--gray); margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.page-hero { background: var(--black); color: #fff; padding: 64px 0 48px; border-bottom: 6px solid var(--red); position: relative; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero .wrap { position: relative; }
.page-hero p { color: #ddd; max-width: 700px; font-size: 1.1rem; }

/* sections */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--gray-3); }
section.dark { background: var(--black); color: #fff; }
section.dark .muted { color: #b5b5b5; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--gray-2); border-top: 4px solid var(--black); padding: 24px; border-radius: var(--radius); }
.card:hover { border-top-color: var(--red); }
.card h3 { margin-bottom: .35em; }
.card .num { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 1rem; letter-spacing: .1em; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.photo-frame::before { content: ""; position: absolute; left: -12px; bottom: -12px; width: 40%; height: 40%; background: var(--red); z-index: -1; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; background: var(--red); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.states { display: flex; flex-wrap: wrap; gap: 8px; }
.states span { font-family: var(--display); font-weight: 700; letter-spacing: .08em; border: 2px solid currentColor; padding: .3rem .7rem; border-radius: var(--radius); }
.panel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.panel-pair > div { padding: clamp(36px, 6vw, 64px); }
.panel-pair .p1 { background: var(--red); color: #fff; }
.panel-pair .p2 { background: var(--black); color: #fff; }
@media (max-width: 760px) { .panel-pair { grid-template-columns: 1fr; } }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--ink); background: #fff; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 861px) { #recent.gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray-2); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; background: rgba(0,0,0,.75); color: #fff; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; padding: .3rem .6rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--gray-2); border-top: 6px solid var(--red); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--red); margin-left: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date], .field input[type=url], .field input[type=password], .field select, .field textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--gray); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,0,0,.15); }
.field input[readonly] { background: var(--gray-3); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.opts label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.opts input { width: 18px; height: 18px; accent-color: var(--red); }
.field .err { color: var(--red-dark); font-size: .86rem; margin-top: 4px; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.notice { background: var(--gray-3); border-left: 4px solid var(--black); padding: 12px 14px; border-radius: var(--radius); font-size: .94rem; margin: 0 0 16px; }
.notice.red { border-left-color: var(--red); background: #fff4f4; }
.notice.ok { border-left-color: #1d7a3a; background: #f1faf3; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; }

/* portal */
.portal-bar { background: var(--gray-3); border-bottom: 1px solid var(--gray-2); }
.portal-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.bid { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--gray-2); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.bid.awarded { border-left-color: var(--black); }
@media (max-width: 640px) { .bid { grid-template-columns: 1fr; } }
.bid h3 { margin-bottom: .2em; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 999px; background: var(--black); color: #fff; margin: 0 6px 6px 0; }
.pill.red { background: var(--red); }
.pill.gray { background: var(--gray-2); color: var(--ink); }
.due { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; }
.due small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; text-transform: none; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 3px solid var(--black); margin-bottom: 20px; overflow-x: auto; }
/* Edge fade on sideways-scrolling rows (set by ui.js): shows there are more tabs to swipe to. */
.tabs, .hscroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.tabs.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.tabs.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.hscroll { display: flex; flex-wrap: nowrap; overflow-x: auto; }
.hscroll > * { flex: 0 0 auto; }
.hscroll.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.hscroll.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.hscroll.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.tabs button { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; background: var(--gray-2); border: 0; padding: .7rem 1rem; cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--black); color: #fff; }
/* Desktop (11/2/26): tabs wrap onto a second row instead of sliding sideways; phones keep the swipe row. */
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; } .tabs.fade-l, .tabs.fade-r { -webkit-mask-image: none; mask-image: none; } }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--gray-2); border-radius: var(--radius); margin-bottom: 10px; background: #fff; text-decoration: none; }
.doc:hover { border-color: var(--ink); }
.doc .ico { width: 44px; height: 52px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .75rem; border-radius: 3px; }
.doc .ico.pdf { background: var(--red); }
.doc .ico.xlsx { background: #1d6f42; }
.doc .ico.other { background: var(--black); }
.doc .t { font-weight: 600; }
.doc .s { font-size: .85rem; color: var(--muted); word-break: break-word; }
.doc .go { margin-left: auto; font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--red); }
table.rfi { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.rfi th, table.rfi td { text-align: left; padding: 10px; border-bottom: 1px solid var(--gray-2); vertical-align: top; }
table.rfi th { background: var(--black); color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
@media (max-width: 680px) {
  table.rfi thead { display: none; }
  table.rfi tr { display: block; border: 1px solid var(--gray-2); border-radius: var(--radius); margin-bottom: 10px; padding: 8px; }
  table.rfi td { display: block; border: 0; padding: 4px 6px; }
  table.rfi td::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
}
.rich ul { padding-left: 1.2em; }
.rich li { margin-bottom: .4em; }
.gate { max-width: 560px; margin: 0 auto; text-align: center; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.auth .side { background: var(--black) center/cover; color: #fff; position: relative; padding: clamp(30px, 6vw, 70px); display: flex; flex-direction: column; justify-content: flex-end; }
.auth .side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.35)); }
.auth .side > * { position: relative; }
.auth .main { padding: clamp(30px, 6vw, 70px); display: flex; align-items: center; }
.auth .main > div { width: 100%; max-width: 440px; margin: 0 auto; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth .side { min-height: 220px; } }
.switch { margin-top: 14px; font-size: .94rem; }
.switch button { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* footer */
.site-footer { background: var(--black); color: #cfcfcf; padding: 56px 0 28px; border-top: 6px solid var(--red); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1100px) and (min-width: 761px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer .legal a { display: inline; color: inherit; opacity: .7; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #cfcfcf; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #2a2a2a; margin-top: 32px; padding-top: 18px; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer .brand { color: #fff; }
.site-footer .tag { font-style: italic; color: var(--gray); margin-top: 12px; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .scope-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-card { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scope-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; display: block; }
.scope-body { padding: 16px 18px 18px; border-top: 4px solid var(--red); }
.scope-body h3 { margin: 0 0 6px; }
.scope-body p { margin: 0; font-size: .95rem; }
/* ---------- team pages: owner, superintendent and sub ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--red); padding: 12px 14px; color: #fff; text-decoration: none; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.stat span { font-size: .85rem; color: #ddd; }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; margin-left: 6px; vertical-align: middle; }
.badge.dark { background: var(--black); }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 8px; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 10px; background: var(--gray-3); border: 1px solid var(--gray-2); }
.msg.me { align-self: flex-end; background: #fff4f4; border-color: #ffd0d0; }
.msg .who { font-size: .76rem; color: var(--muted); margin-bottom: 3px; }
.msg .txt { white-space: pre-wrap; word-break: break-word; }
.msg.urgent { border-left: 4px solid var(--red); }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { flex: 1; min-height: 64px; padding: 10px; border: 2px solid var(--gray); border-radius: var(--radius); font: inherit; resize: vertical; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
table.grid-t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.grid-t th, table.grid-t td { text-align: left; padding: 8px; border-bottom: 1px solid var(--gray-2); vertical-align: top; }
table.grid-t th { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; background: var(--gray-3); }
table.grid-t input, table.grid-t select { width: 100%; padding: 6px 8px; border: 1px solid var(--gray); border-radius: var(--radius); font: inherit; }
.inbox-item { background: #fff; border: 1px solid var(--gray-2); border-left: 5px solid var(--black); padding: 14px 16px; margin-bottom: 12px; }
.inbox-item.new { border-left-color: var(--red); }
.inbox-item .meta { font-size: .82rem; color: var(--muted); }
.inbox-item pre { white-space: pre-wrap; font: inherit; margin: 8px 0; }
.person { display: grid; grid-template-columns: 1.2fr 2fr; gap: 16px; background: #fff; border: 1px solid var(--gray-2); border-left: 5px solid var(--black); padding: 14px 16px; margin-bottom: 12px; }
.person.pending { border-left-color: var(--red); }
.person .opts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ok-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #1d7a3a; margin-right: 6px; }
.no-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 6px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; }
  .msg { max-width: 95%; }
  table.grid-t thead { display: none; }
  table.grid-t tr { display: block; border: 1px solid var(--gray-2); margin-bottom: 10px; padding: 6px; }
  table.grid-t td { display: block; border: 0; padding: 4px 6px; }
  table.grid-t td::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
}
.rte-bar { display: flex; gap: 6px; margin-bottom: 6px; }
.rte-bar button { font: inherit; font-size: .85rem; padding: 4px 10px; border: 1px solid var(--gray); background: #fff; border-radius: var(--radius); cursor: pointer; }
.rte { min-height: 140px; padding: 10px 12px; border: 2px solid var(--gray); border-radius: var(--radius); background: #fff; overflow-wrap: anywhere; }
.rte:focus { outline: none; border-color: var(--ink); }
.rte ul { padding-left: 1.2em; margin: 0 0 .6em; } .rte p { margin: 0 0 .6em; }
/* member area in the header: role link + who's logged in + log out, lined up with the menu */
#member-slot { display: inline-flex; align-items: center; gap: 4px; }
.member-chip .who { font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 961px) { .member-chip .who { display: none; } }
@media (max-width: 960px) {
  #member-slot { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #member-slot .member-chip { display: flex; align-items: center; gap: 10px; padding: .9rem .4rem; border-bottom: 1px solid var(--gray-2); }
  #member-slot .member-chip a { padding: 0; border: 0; margin-left: auto; }
}
.nav a, .nav .btn { white-space: nowrap; }
.member-chip .dot { flex-shrink: 0; }
@media (min-width: 961px) and (max-width: 1320px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 0; }
  .nav a { font-size: .86rem; padding-left: .45rem; padding-right: .45rem; letter-spacing: .03em; }
  .brand .name { font-size: 1.35rem; }
  .brand img { width: 46px; height: 46px; }
}

/* ---------- online scope & pricing sheet ---------- */
.ps-head { background: var(--black); color: #fff; padding: 18px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.ps-head h2 { color: #fff; margin: 0 0 .2em; font-size: 1.5rem; }
.ps-head p { margin: .2em 0; color: #ddd; font-size: .9rem; }
.ps-body { background: #fff; border: 1px solid var(--gray-2); border-top: 0; padding: 18px 20px; border-radius: 0 0 var(--radius) var(--radius); }
.ps-notice { background: #fff8c5; border-left: 4px solid var(--red); padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; }
.ps-pkgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ps-pkgs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
table.price { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 8px; }
table.price th, table.price td { padding: 8px; border-bottom: 1px solid var(--gray-2); vertical-align: top; text-align: left; }
table.price th { background: var(--gray-3); font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
table.price td.num, table.price th.num { text-align: right; white-space: nowrap; }
table.price tr.sec td { background: var(--black); color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
table.price td.ctr { background: #fff8c5; width: 130px; }
table.price td.ctr input { width: 100%; min-width: 90px; padding: 6px 8px; border: 1px solid #c9b800; border-radius: var(--radius); font: inherit; text-align: right; background: #fffdf0; }
table.price tr.changed td.ext { color: var(--red); font-weight: 700; }
.ps-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--black); color: #fff; padding: 14px 18px; border-radius: var(--radius); margin: 14px 0; font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; }
.ps-total b { color: #fff; font-size: 1.6rem; }
.ps-total small { display: block; font-family: var(--body); font-size: .75rem; font-weight: 400; color: #ccc; letter-spacing: 0; }
.ps-sign { border: 2px solid var(--black); border-radius: var(--radius); padding: 16px; margin-top: 18px; }
.ps-sign .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; border-bottom: 1px solid var(--ink); min-height: 2.2rem; padding: 2px 4px; }
@media (max-width: 760px) {
  table.price thead { display: none; }
  table.price tr { display: block; border: 1px solid var(--gray-2); border-radius: var(--radius); margin-bottom: 8px; padding: 6px; }
  table.price tr.sec { border: 0; padding: 0; }
  table.price td { display: block; border: 0; padding: 3px 6px; text-align: left !important; }
  table.price td::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
  table.price tr.sec td::before { content: none; }
  table.price td.ctr { width: auto; }
}
@media print { .site-header, .site-footer, .portal-bar, .tabs, .page-hero, .no-print { display: none !important; } }

/* collapsed job/bid rows: name, location, due date showing; click to expand */
.jobrow { background: #fff; border: 1px solid var(--gray-2); border-left: 6px solid var(--red); border-radius: var(--radius); margin-bottom: 10px; }
.jobrow.dark { border-left-color: var(--black); }
.jobrow > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 22px; gap: 14px; align-items: center; padding: 12px 16px; }
.jobrow > summary::-webkit-details-marker { display: none; }
.jobrow > summary:hover { background: var(--gray-3); }
.jobrow .jr-t { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1.05; }
.jobrow .jr-l { color: var(--muted); font-size: .9rem; }
.jobrow .jr-r { text-align: right; font-size: .9rem; line-height: 1.3; }
.jobrow .jr-r .pill { margin: 0 0 0 4px; }
.jobrow .jr-c::after { content: "\25BE"; font-size: 1.2rem; display: inline-block; transition: transform .15s; color: var(--muted); }
.jobrow[open] .jr-c::after { transform: rotate(180deg); }
.jobrow .jr-b { padding: 14px 16px 16px; border-top: 1px solid var(--gray-2); }
@media (max-width: 640px) { .jobrow > summary { grid-template-columns: 1fr 22px; } .jobrow .jr-r { grid-column: 1; grid-row: 2; text-align: left; } .jobrow .jr-c { grid-row: 1; grid-column: 2; } }
/* money columns inside cards stay plain (not the red card number style) */
.card table.price td.num, .card table.price th.num { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: normal; font-weight: inherit; }
.card table.price th.num { font-family: var(--display); font-size: .85rem; letter-spacing: .04em; }
.stat.hot { background: rgba(255,0,0,.18); }
.stat:not(.hot) b { opacity: .55; }

/* The hidden attribute always wins over classes that set display (.pill, .btn, ...). */
[hidden] { display: none !important; }

/* Phone number in the top bar; click-to-call bar on phones (public pages only). */
.topbar .tb-contact { display: inline-flex; gap: 18px; }
.topbar .tb-contact a[href^="tel:"] { color: #fff; font-weight: 700; }
@media (max-width: 480px) { .topbar .hide-xs { display: none; } .topbar .wrap { justify-content: flex-end; } }
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--red); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; min-height: 56px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 3px solid var(--black); box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
  .callbar:active { background: var(--red-dark); }
  body.has-callbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media print { .callbar { display: none !important; } }

/* Status checklist (My Company) */
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: ck; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mk { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--red); }
.checklist .mk.ok { background: var(--black); }
.checklist .t { font-weight: 700; }
.checklist .s { color: var(--muted); font-size: .88rem; }

/* Billing home: one prioritized list of what needs Nathan */
.bq-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.bq-tile { border: 1px solid var(--gray-2); border-left: 4px solid var(--black); background: #fff; padding: 10px 12px; border-radius: var(--radius); }
.bq-tile.hot { border-left-color: var(--red); }
.gcb-wrap { overflow-x: auto; border: 1px solid var(--gray-2); border-radius: var(--radius); background: #fff; }
.gcb-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gcb-t th { text-align: left; background: var(--black); color: #fff; font-weight: 600; padding: 7px 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.gcb-t td { padding: 8px 10px; border-top: 1px solid var(--gray-2); vertical-align: top; }
.gcb-t .n { text-align: right; white-space: nowrap; font-weight: 700; }
.gcb-t .due { font-weight: 700; white-space: nowrap; }
.gcb-t .due.late, .gcb-t tr.late td:first-child a { color: var(--red); }
.gcb-t tr.late { background: #fff4f4; }
.gcb-t .gcb-s { font-size: .78rem; color: var(--muted); }
.gcb-paid td { opacity: .75; }
.bq-row.flash { outline: 3px solid var(--red); outline-offset: 2px; transition: outline .3s; }
@media (max-width: 700px) {
  .gcb-wrap { border: 0; background: none; }
  .gcb-t thead { display: none; }
  .gcb-t, .gcb-t tbody, .gcb-t tr, .gcb-t td { display: block; width: 100%; }
  .gcb-t tr { border: 1px solid var(--gray-2); border-radius: var(--radius); background: #fff; margin: 0 0 8px; padding: 6px 0; }
  .gcb-t td { border: 0; padding: 3px 12px; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  .gcb-t td::before { content: attr(data-l); color: var(--muted); font-size: .78rem; text-align: left; }
  .gcb-t td:first-child { display: block; text-align: left; font-weight: 700; }
  .gcb-t td:first-child::before { content: none; }
}
.bq-tile span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bq-tile b { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1.15; }
.bq-tile small { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .bq-tiles { grid-template-columns: repeat(2, 1fr); } }
.bq-row { background: #fff; border: 1px solid var(--gray-2); border-left: 6px solid var(--red); border-radius: var(--radius); margin-bottom: 8px; }
.bq-row.t-sub, .bq-row.t-super, .bq-row.t-gc { border-left-color: var(--gray); }
.bq-row.t-setup { border-left-color: var(--black); }
.bq-row.t-urgent { background: #fff3f3; border-color: var(--red); }
.bq-row.t-urgent .what { color: var(--ink); font-weight: 600; }
.bq-main { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; }
.bq-main .who { font-weight: 700; }
.bq-main .what { color: var(--muted); font-size: .88rem; }
.bq-main .amt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-align: right; white-space: nowrap; }
.bq-main .act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.bq-main .act input { width: 120px; padding: 6px 8px; border: 1px solid var(--gray); border-radius: var(--radius); font: inherit; font-size: .9rem; }
.bq-st { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; background: var(--red); color: #fff; margin-right: 6px; vertical-align: middle; }
.bq-st.sub, .bq-st.super, .bq-st.gc { background: var(--gray-2); color: var(--ink); }
.bq-st.setup { background: var(--black); }
.bq-st.done { background: var(--gray-2); color: var(--muted); }
.bq-row > details > summary { cursor: pointer; padding: 0 14px 10px; font-size: .85rem; color: var(--muted); list-style: none; }
.bq-row > details > summary::-webkit-details-marker { display: none; }
.bq-row > details > summary::before { content: "+ "; font-weight: 700; }
.bq-row > details[open] > summary::before { content: "- "; }
.bq-row .bq-in { padding: 0 14px 14px; }
.bq-more { margin-top: 10px; border-top: 1px dashed var(--gray); padding-top: 8px; }
.bq-more > summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.bq-msg { font-size: .88rem; padding: 0 14px 10px; }
.bq-chk { display: inline-block; font-size: .78rem; margin: 2px 8px 2px 0; }
.bq-chk.no { color: var(--red-dark); font-weight: 700; }
@media (max-width: 700px) { .bq-main { grid-template-columns: 1fr auto; } .bq-main .act { grid-column: 1 / -1; justify-content: flex-start; } }
.money-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.money-sum .card { padding: 14px 16px; }
.money-sum h4 { margin: 0 0 6px; font-size: 1rem; }
.money-sum table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.money-sum td { padding: 3px 0; }
.money-sum td.n { text-align: right; font-weight: 700; white-space: nowrap; }
.money-sum tr.tot td { border-top: 2px solid var(--black); padding-top: 5px; }
@media (max-width: 900px) { .money-sum { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Clickable dashboard tiles: red = needs action, grey = information, 0 = grey and not clickable */
.stat { cursor: pointer; font: inherit; text-align: left; }
.stat.zero { border-left-color: #777; cursor: default; opacity: .6; }
.stat.zero b { opacity: .5; }
.stat.info { border-left-color: var(--gray, #CCCCCC); background: rgba(255,255,255,.1); }
.stat.info b { opacity: 1; }
.stat:not(.zero):hover, .stat:not(.zero):focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.stat small { display: block; font-size: .75rem; color: #bbb; margin-top: 2px; }
dialog.picklist { border: 0; border-top: 6px solid var(--red); border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 32px)); max-height: 80vh; }
dialog.picklist::backdrop { background: rgba(0,0,0,.55); }
dialog.picklist .pl-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--gray-2, #e5e5e5); }
dialog.picklist .pl-h h3 { margin: 0; font-family: var(--display); text-transform: uppercase; }
dialog.picklist .pl-list { overflow: auto; max-height: calc(80vh - 64px); }
dialog.picklist a.pl-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 16px; border-bottom: 1px solid var(--gray-2, #e5e5e5); color: inherit; text-decoration: none; }
dialog.picklist a.pl-row:hover, dialog.picklist a.pl-row:focus-visible { background: #fff3f3; outline: none; }
dialog.picklist .pl-job { font-weight: 700; }
dialog.picklist .pl-what { grid-column: 1; font-size: .9rem; color: #444; }
dialog.picklist .pl-age { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .8rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.hl-flash { outline: 3px solid var(--red) !important; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255,0,0,.15) !important; transition: outline-color .4s; }
/* Tiles strip at the top of every logged-in page, inside the sticky header: fixed-size tiles, no scrolling */
.tilebar { background: #111; padding: 6px 0; width: 100%; }
.tilebar .tb-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.stats.mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 4px; margin: 0; }
.stats.mini .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 46px; padding: 2px 3px; border-left-width: 0; border-top: 3px solid var(--red); min-width: 0; }
.stats.mini .stat.zero, .stats.mini .stat.info { border-top-color: #777; }
.stats.mini .stat b { font-size: 1.05rem; line-height: 1; display: block; }
.stats.mini .stat span { font-size: .6rem; letter-spacing: -.01em; line-height: 1.1; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 900px) { .stats.mini { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } .stats.mini .stat span { font-size: .7rem; } }
body.has-tilebar #stats { display: none !important; }
/* Bottom quick-link buttons (Home / My Company) */
.homebar { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); box-sizing: border-box; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 8px; background: rgba(17,17,17,.92); padding: 8px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.homebar .btn { border-radius: 999px; white-space: nowrap; }
.homebar .btn.line { background: #fff; }
body.has-homebar { padding-bottom: 76px; }
@media print { .homebar, .tilebar { display: none !important; } }

/* Never let anything push the page wider than the phone (iOS zooms out when that happens). clip keeps the sticky header working. */
html, body { max-width: 100%; overflow-x: clip; }
.tilebar, .tilebar .tb-in, .stats.mini { max-width: 100%; }
/* Owner Social tab (approve FB/IG posts) */
.sp-week { border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; background: #fff; }
.sp-week > summary { cursor: pointer; list-style: revert; padding: 4px 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.sp-card { border: 1px solid var(--gray-2); border-top: 4px solid var(--black); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sp-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--gray-3); }
.sp-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sp-top .pill { margin: 0; white-space: nowrap; }
.sp-topic { font-size: .85rem; }
.sp-cap { font-size: .9rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.sp-tag { color: var(--red); font-weight: 600; }
.sp-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
@media (max-width: 700px) { .sp-grid { grid-template-columns: 1fr; } }
/* Owner RFIs tab */
.rf-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.rf-job { border: 1px solid var(--gray-2); border-top: 4px solid var(--black); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; background: #fff; }
.rf-job[open] { border-top-color: var(--red); }
.rf-job > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; list-style: revert; }
.rf-counts .pill { margin: 0 0 0 4px; }
.rf-tablewrap { overflow-x: auto; margin-top: 10px; }
.rf-t td { vertical-align: top; }
.rf-t td:first-child { white-space: nowrap; font-weight: 700; }
.rf-t td:nth-child(3), .rf-t td:nth-child(4) { min-width: 150px; }
.rf-q { font-size: .92rem; line-height: 1.4; }
.rf-sub { font-size: .78rem; color: var(--muted, #666); margin-top: 3px; }
.rf-ans { margin-top: 4px; font-size: .86rem; } .rf-ans summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.rf-ans div { background: var(--gray-3); padding: 6px 8px; border-radius: 4px; margin-top: 4px; }
@media (max-width: 700px) {
  .rf-t thead { display: none; } .rf-t tr { display: block; border-bottom: 1px solid var(--gray-2); padding: 8px 0; }
  .rf-t td { display: block; border: 0; padding: 3px 0; } .rf-t td::before { content: attr(data-l); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #888; }
}

/* Sub bar: My Company | My Jobs | Open Bids */
.subnav { background: #fff; border-bottom: 1px solid var(--gray-2); }
.subnav .wrap { padding-top: 12px; }
.subnav .tabs { margin-bottom: 0; }
.subnav .tabs a { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; background: var(--gray-2); color: var(--black); text-decoration: none; padding: .7rem 1rem; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
.subnav .tabs a[aria-current="page"] { background: var(--black); color: #fff; }
.subnav .tabs a:hover:not([aria-current="page"]) { background: var(--red); color: #fff; }
/* 11/18/26 cr/cs2: billing as clickable blocks (same look as the sub picker on bids) - every block the same size. */
.bq-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 14px; }
.bq-job { text-align: left; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; height: 92px; overflow: hidden; cursor: pointer; background: #fff; border: 1px solid var(--gray-2); color: inherit; font: inherit; }
.bq-job b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-job[aria-pressed="true"] { background: #fff1f1; border: 2px solid var(--red); }
.bq-job .t { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #666; }
.bq-job[aria-pressed="true"] .t { color: #c40000; }
.bq-job .a { font-weight: 700; }
.bq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; align-items: stretch; }
.bq-grid > .bq-row { margin: 0; border: 1px solid var(--gray-2); border-radius: 10px; cursor: pointer; height: 292px; overflow: hidden; display: flex; flex-direction: column; }
.bq-grid > .bq-row.t-you, .bq-grid > .bq-row.t-urgent { border: 2px solid var(--red); background: #fff1f1; }
.bq-grid > .bq-row:has(> details[open]) { grid-column: 1 / -1; height: auto; overflow: visible; cursor: default; border: 2px solid #000; background: #fff; }
.bq-grid .bq-main { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px 4px; flex: 1 1 auto; min-height: 0; }
.bq-grid .bq-main > div:first-child { flex: 0 0 auto; }
.bq-grid .bq-main > .amt { flex: 0 0 auto; }
.bq-grid > .bq-row:not(:has(> details[open])) .bq-st, .bq-grid > .bq-row:not(:has(> details[open])) .bq-main .pill { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-grid > .bq-row:not(:has(> details[open])) .bq-main a.muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-grid > .bq-row:not(:has(> details[open])) .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-grid > .bq-row:not(:has(> details[open])) .what { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bq-grid .bq-main .amt { text-align: left; font-size: 1.25rem; }
.bq-grid .bq-main .act { justify-content: flex-start; margin-top: auto; flex-wrap: wrap; gap: 4px; }
.bq-grid .bq-main .act .btn { font-size: .78rem; padding: .4rem .6rem; }
.bq-grid .bq-main .act input { width: 120px; }
.bq-grid > .bq-row > details { flex: 0 0 auto; }
.bq-grid > .bq-row > details > summary { padding: 4px 12px 10px; }
.bq-grid > .bq-row > .bq-msg { padding: 0 12px; }
/* 11/18/26 cu: drag a backcharge onto a pay app block */
body.bc-dragging .bq-grid > .bq-row[data-inv] { outline: 2px dashed #999; outline-offset: 2px; }
.bq-grid > .bq-row.bc-over { outline: 3px solid var(--red) !important; background: #fff1f1; }
/* da2 11/18/26 (Nathan: "check all the pages on the phone"): nothing wider than the phone screen. */
@media (max-width: 760px) {
  table.price td { white-space: normal !important; max-width: 100%; overflow-wrap: anywhere; }
  table.price td .btn { margin: 3px 4px 3px 0; }
  table.price { table-layout: auto; }
  #gcbill .gcb-note { white-space: normal !important; max-width: 100% !important; }
  .row-actions { flex-wrap: wrap; }
  img, video, iframe, canvas { max-width: 100%; }
  pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .card { overflow-wrap: anywhere; }
}
.grid > * { min-width: 0; }
/* eg 11/25/26: grouped tabs - group row on top, the group's tabs as chips under it. */
.tabs.tgroups { margin-bottom: 10px; }
.tabs.subtabs { border-bottom: 0; margin: 0 0 18px; gap: 6px; }
.tabs.subtabs button { font-size: .82rem; padding: .45rem .85rem; border-radius: 999px; }
.tabs.subtabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.tkembed { width: 100%; border: 1px solid var(--gray-2); border-radius: 4px; min-height: 420px; background: #fff; margin: 10px 0 0; display: block; }
html.embed .topbar, html.embed .site-header, html.embed .site-footer, html.embed .page-hero, html.embed .homebar, html.embed .tilebar, html.embed .callbar, html.embed .skip { display: none !important; }
html.embed body { padding: 0 !important; }
html.embed .block { padding: 12px 0 !important; }
.tabs a.tablink { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; background: #fff; color: var(--black); border: 2px solid var(--gray-2); text-decoration: none; padding: .55rem .9rem; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
.tabs a.tablink:hover { background: var(--red); color: #fff; border-color: var(--red); }
