
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Italic.ttf") format("truetype"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-BoldItalic.ttf") format("truetype"); font-weight: 600 800; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --teal-dk: color-mix(in srgb, var(--teal) 69%, #000);
  --teal-tint: color-mix(in srgb, var(--teal) 12%, #fff);
  --paper: #ffffff; --shell: #e9eeee;
  --good: #1e7b3c; --good-tint: #e4f3e8; --warn: #9a6400; --bad: #b3261e; --bad-tint: #fbe9e7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shell); color: var(--ink); font-family: var(--b); font-size: 15px; line-height: 1.45; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--teal-dk); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; z-index: 10; }

/* sub and partner portal: one phone-width column */
.portal { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper); }
.app { font-size: 14.5px; }
.apphead { background: var(--teal); color: #fff; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 10px; }
.apphead a { color: #fff; }
.mark { font-family: var(--h); font-weight: 700; background: var(--gold); color: var(--ink); border-radius: 6px; padding: 2px 7px; font-size: .9rem; letter-spacing: .02em; text-decoration: none; }
.apphead .t { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.apphead .s { font-size: .74rem; color: #cfe8e8; }
.apphead .sp { flex: 1; }
.apphead form { margin: 0; }
.apphead .link { background: none; border: 0; color: #fff; font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 4px; white-space: nowrap; }
.body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.h3 { font-family: var(--h); font-size: 1.15rem; margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 700; }
.k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); font-weight: 700; }
.sm { font-size: .82rem; color: var(--muted); }
.price { font-family: var(--h); font-weight: 700; font-size: 2.2rem; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--paper); }
.card.tint { background: var(--panel); border-color: var(--panel); }
.card.teal { border: 1.5px solid var(--teal); }
.card.bad { border-color: var(--bad); }
.row { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.row > :first-child { min-width: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .88rem; margin: 0; }
.facts dt { font-weight: 600; } .facts dd { margin: 0; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--gold-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.teal { background: var(--teal-tint); color: var(--teal-dk); }
.pill.cap::first-letter { text-transform: uppercase; }
.pill.cap { display: inline-block; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 12px 14px; font-weight: 700; cursor: pointer; background: var(--teal); color: #fff; text-decoration: none; }
.btn.block { width: 100%; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--paper); color: var(--bad); border: 1px solid #e6b8b3; }
.btn.small { padding: 6px 10px; font-size: .78rem; }
.btn[disabled] { background: #c5cdce; color: #f4f6f6; cursor: not-allowed; }
.btns { display: flex; gap: 8px; } .btns > * { flex: 1; }
.lines { display: flex; flex-direction: column; gap: 8px; }
.line { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 8px; font-size: .86rem; padding-bottom: 8px; border-bottom: 1px solid var(--panel); }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line b { color: var(--teal-dk); }
.line .std { grid-column: 2; color: var(--muted); font-size: .8rem; }
.tag { font-size: .68rem; font-weight: 700; color: var(--teal-dk); letter-spacing: .04em; }
.tag.hold { color: var(--warn); }
details.more summary { cursor: pointer; font-weight: 600; color: var(--teal-dk); font-size: .88rem; }
details.more[open] summary { margin-bottom: 8px; }
.mat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: .84rem; padding: 6px 0; border-bottom: 1px solid var(--panel); }
.mat .spec { color: var(--muted); font-size: .78rem; grid-column: 1; }
.chk { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--panel); font-size: .88rem; }
.chk:last-child { border-bottom: 0; }
.box { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #9fb0b1; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; margin-top: 1px; }
.box.on { background: var(--good); border-color: var(--good); }
.box.auto { background: var(--teal); border-color: var(--teal); }
label.fld { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; }
label.fld textarea, label.fld input[type=text], label.fld input[type=tel], label.fld input[type=email], label.fld input[type=file], label.fld select { font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 1rem; background: var(--paper); width: 100%; }
label.fld textarea { min-height: 64px; resize: vertical; }
label.fld textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; min-height: 220px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }
.timer { display: flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--warn); background: var(--gold-tint); padding: 6px 10px; border-radius: 8px; }
.note { font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.sample { background: var(--gold-tint); color: var(--ink); font-size: .74rem; padding: 4px 16px; border-bottom: 1px solid #f0dca8; }
.flash { background: var(--good-tint); color: var(--good); border-radius: 8px; padding: 8px 10px; font-size: .86rem; font-weight: 600; }
.flash.bad { background: var(--bad-tint); color: var(--bad); }
.foot { padding: 14px 16px 22px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--panel); }
.foot b { color: var(--ink); }

/* office: phone first, a side menu on wide screens */
.officewrap { max-width: 1100px; margin: 0 auto; background: var(--paper); min-height: 100vh; }
.navrow { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #f4f7f7; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.navrow a { flex: 0 0 auto; text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: .84rem; background: var(--paper); border: 1px solid var(--line); }
.navrow a[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dk); font-weight: 700; border-color: var(--teal-tint); }
.office { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 560px; }
.side { display: none; background: #f4f7f7; border-right: 1px solid var(--line); padding: 12px 10px; flex-direction: column; gap: 2px; font-size: .84rem; }
.side a { padding: 6px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.side a[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dk); font-weight: 700; }
.main { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tbl th { text-align: left; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--panel); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.wrap { overflow-wrap: anywhere; white-space: pre-wrap; }
.scroll { overflow-x: auto; }
.waiver { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .84rem; line-height: 1.5; background: #fff; }
.waiver h4 { margin: 0 0 8px; font-size: .86rem; text-align: center; letter-spacing: .02em; }
.waiver p { margin: 0 0 6px; }
.waiver u { text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 600; }
.waiver .sig { font-style: italic; font-weight: 600; }
.tl { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.st { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .88rem; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9fb0b1; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
.dot.on { background: var(--good); border-color: var(--good); }
.dot.now { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); display: block; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.post { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.post.block { border-color: #e6b8b3; background: var(--bad-tint); }
.post .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .78rem; color: var(--muted); }
.post .meta b { color: var(--ink); font-size: .85rem; }
.post p { margin: 6px 0 0; font-size: .88rem; }
/* The whole-job page (decision 55): a way back, the job at a glance, an index of its sections, and each section. */
.backrow { display: flex; gap: 6px; flex-wrap: wrap; }
.jobfacts { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); } .jobfacts dd { overflow-wrap: anywhere; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.glance .g { background: var(--panel); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
@media (max-width: 480px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glance .g:hover, .glance .g:focus-visible { background: var(--teal-tint); }
.glance .l { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.glance .v { font-family: var(--h); font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.glance .d { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.jobindex { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.jobindex a { flex: 0 0 auto; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: .82rem; font-weight: 600; }
.jobindex a:hover, .jobindex a:focus-visible { background: var(--teal-tint); color: var(--teal-dk); }
.jobindex .n { color: var(--muted); font-weight: 600; }
.jobsec { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 56px; padding-top: 8px; min-width: 0; }
.jobsech { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.jobsech h2 { font-family: var(--h); font-size: 1.08rem; margin: 0; }
.jobsech .sm { flex: 1 1 auto; }
.jobsech .top { font-size: .76rem; color: var(--muted); white-space: nowrap; margin-left: auto; }
.jobsec :target, .jobsec:target .jobsech h2 { scroll-margin-top: 56px; }
.jobnone { padding: 2px 0; }
.jobdocs { display: flex; flex-direction: column; }
.jobdoc { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--panel); font-size: .86rem; }
.jobdoc:last-child { border-bottom: 0; }
.jobdoc .what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.jobdoc .go { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.jobacts { display: flex; flex-direction: column; }
.jobact { display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--panel); font-size: .84rem; align-items: baseline; }
.jobact:last-child { border-bottom: 0; }
.jobact time { color: var(--muted); font-size: .76rem; }
.jobact .what { overflow-wrap: anywhere; }
.jobact.bad .what, .jobact.bad .what a { color: var(--bad); }
.jobact .who { text-align: right; }
.joblink { font-weight: 700; white-space: nowrap; }
@media (min-width: 861px) {
  .jobindex { flex-wrap: wrap; overflow-x: visible; }
  .jobsec, .jobsec :target { scroll-margin-top: 104px; }
}
@media (max-width: 560px) {
  .jobact { grid-template-columns: minmax(0, 1fr); } .jobact .who { text-align: left; }
  .jobdoc { flex-direction: column; align-items: flex-start; } .jobdoc .go { justify-content: flex-start; }
}
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.portal .portalnav { display: flex; }
.sheetline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
@media (min-width: 861px) {
  .officewrap .navrow { display: none; }
  .office { grid-template-columns: 170px minmax(0, 1fr); }
  .side { display: flex; }
  .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* the scope packet document */
.packet { background: var(--paper); font-size: .9rem; line-height: 1.45; }
.packet h1 { font-family: var(--h); font-size: 1.5rem; margin: 6px 0 2px; line-height: 1.15; }
.packet h2 { font-family: var(--h); font-size: 1.05rem; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 3px solid var(--teal); display: inline-block; break-after: avoid; }
.packet ul { margin: 0; padding-left: 18px; } .packet li { margin: 2px 0; }
.pk-head { background: var(--teal); color: #fff; padding: 14px 16px; border-radius: 8px; position: relative; }
.pk-kicker { color: var(--gold); font-weight: 700; font-size: .72rem; letter-spacing: .06em; }
.pk-sub { font-size: .85rem; }
.pk-co { font-size: .72rem; display: flex; flex-direction: column; margin-bottom: 8px; opacity: .95; }
.pk-co b { font-size: .8rem; }
.pk-sample { background: var(--gold-tint); border-left: 4px solid var(--gold); padding: 8px 10px; margin-top: 10px; font-size: .85rem; }
.pk-price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; background: var(--panel); border: 1.5px solid var(--teal); border-radius: 8px; padding: 12px; margin-top: 10px; }
.pk-draw { font-size: .88rem; padding: 1px 0; }
.pk-facts { margin-top: 10px; }
.pk-facts dt, .pk-facts dd { padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.pk-table th { background: var(--teal); color: #fff; }
.pk-table tbody tr:nth-child(even) { background: var(--panel); }
.pk-table td { overflow-wrap: anywhere; }
.pk-where { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.pk-note { color: var(--warn); font-size: .78rem; margin-top: 2px; }
.pk-waste { color: var(--teal-dk); font-size: .78rem; margin-top: 2px; }
.pk-alt { margin: 6px 0 0; }
.nb { white-space: nowrap; }
.pk-diagrams { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pk-diagrams figure { margin: 0; break-inside: avoid; } .pk-diagrams figcaption { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.pk-drawlist { break-inside: avoid; } .pk-drawlist p { margin: 8px 0 2px; }
.pk-checks { list-style: none; padding-left: 0 !important; }
.pk-checks li { padding-left: 24px; position: relative; }
.pk-checks li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 2px; }
.pk-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.preview { border: 2px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--shell); }
.preview > .packet { max-width: 720px; margin: 0 auto; padding: 14px; border-radius: 8px; }
.printpage { max-width: 8.5in; margin: 0 auto; background: var(--paper); padding: 16px; }
/* editor */
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline label.fld { flex: 1 1 140px; } .inline label.fld.narrow { flex: 0 1 90px; } .inline label.fld.wide { flex: 3 1 260px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.msg { border-radius: 8px; padding: 8px 10px; font-size: .86rem; border: 1px solid var(--line); }
.msg.ERROR, .msg.HOLD { border-color: #e6b8b3; background: var(--bad-tint); } .msg.CHECK { background: var(--gold-tint); border-color: #f0dca8; } .msg.INFO { background: var(--teal-tint); border-color: var(--teal-tint); }
.msg b { margin-right: 6px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.photoview { margin-top: 10px; } .photoview img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
a.pill { text-decoration: none; }
details.edit { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
details.edit summary { cursor: pointer; font-size: .88rem; }
details.edit[open] summary { margin-bottom: 8px; }
@media (min-width: 700px) { .pk-price { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .pk-diagrams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s, color .15s; } }
@page { size: letter; margin: .55in; }
@media print {
  .apphead, .navrow, .side, .noprint, .skip { display: none !important; }
  .office { display: block; min-height: 0; } .main { padding: 0; }
  body, .shell, .printpage { background: #fff; }
  .printpage { padding: 0; max-width: none; }
  .packet { font-size: 9.6pt; }
  .pk-head, .pk-table th, .pk-price, .pk-sample { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pk-table { break-inside: auto; } .pk-table tr { break-inside: avoid; }
  .pk-price { grid-template-columns: 2fr 3fr; } .pk-diagrams { grid-template-columns: 1fr 1fr; }
}

.dash { --s1: color-mix(in srgb, var(--teal) 30%, #fff); --s2: color-mix(in srgb, var(--teal) 55%, #fff); --s3: color-mix(in srgb, var(--teal) 78%, #fff); --s4: var(--teal); --s5: var(--teal-dk); --idle: #e6ecec; --amber: #d98a00;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash a { text-decoration: none; }
.dash a:hover .go, .dash a.lnk:hover, .dash .who a:hover, .dash .name a:hover { text-decoration: underline; }
.dash .ico { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash .sech { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-content: space-between; }
.dash .sech h2 { font-family: var(--h); font-size: 1.05rem; margin: 0; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.dash .more { font-size: .82rem; font-weight: 700; color: var(--teal-dk); }
.dash .panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* hero: greeting, money, and where the sub pay stands */
.dash .hero { background: linear-gradient(115deg, var(--teal-dk) 0%, var(--teal) 100%); color: #fff; border-radius: 16px; padding: 18px 20px 16px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.dash .hero::before { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.dash .hero::after { content: ""; position: absolute; left: 20px; top: 0; width: 44px; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.dash .hero .top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; position: relative; }
.dash .hero .hi { font-family: var(--h); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.dash .hero .sub { color: #d8eded; font-size: .84rem; margin-top: 3px; }
.dash .money { display: flex; }
.dash .money a { color: #fff; padding: 2px 18px; border-left: 1px solid rgba(255, 255, 255, .28); display: block; }
.dash .money a:first-child { border-left: 0; padding-left: 0; }
.dash .money .l { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #d8eded; font-weight: 700; }
.dash .money .v { font-family: var(--h); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.dash .money .v.gold { color: var(--gold); }
.dash .money .d { font-size: .74rem; color: #d8eded; }
.dash .paybar { position: relative; display: grid; gap: 6px; }
.dash .paybar .cap { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #d8eded; font-weight: 700; }
.dash .paybar .bar { display: flex; gap: 2px; height: 12px; }
.dash .paybar .bar a { display: block; border-radius: 999px; min-width: 6px; }
.dash .paybar .paid, .dash .paybar .k-paid { background: #fff; } .dash .paybar .owed, .dash .paybar .k-owed { background: var(--gold); } .dash .paybar .togo, .dash .paybar .k-togo { background: rgba(255, 255, 255, .28); }
.dash .paybar .key { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .78rem; color: #eaf6f6; }
.dash .paybar .key span { display: inline-flex; align-items: center; gap: 6px; } .dash .paybar .key b { color: #fff; font-variant-numeric: tabular-nums; }
.dash .paybar .key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* needs you */
.dash .needs { border: 1px solid #f0dca8; background: var(--gold-tint); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dash .count { background: var(--gold); color: var(--ink); border-radius: 999px; font-size: .78rem; padding: 1px 9px; font-weight: 700; font-family: var(--b); }
.dash .needlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dash .need { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 10px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: inherit; }
.dash .need:hover, .dash .tile:hover, .dash .col:hover, .dash .jobcard:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(11, 127, 130, .16); }
.dash .need .b { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: var(--panel); color: var(--muted); }
.dash .need .b.late { background: var(--bad-tint); color: var(--bad); } .dash .need .b.risk { background: #fbe7bd; color: var(--warn); } .dash .need .b.pay { background: var(--teal-tint); color: var(--teal-dk); }
.dash .need .t { font-weight: 700; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
.dash .need .s { font-size: .77rem; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash .need .go { font-size: .78rem; font-weight: 700; color: var(--teal-dk); }
.dash .needwrap { position: relative; display: grid; min-width: 0; }
.dash .needwrap .need .go { padding-right: 92px; }
.dash .needjob { position: absolute; right: 9px; bottom: 8px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-dk); text-decoration: none; white-space: nowrap; }
.dash .needjob:hover, .dash .needjob:focus-visible { background: var(--teal); color: #fff; }

/* status chips: the shape and the word carry the meaning, color backs it up */
.dash .chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 2px 9px 2px 7px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.dash .chip svg { width: 10px; height: 10px; flex: 0 0 auto; }
.dash .chip.ok { background: var(--good-tint); color: var(--good); }
.dash .chip.risk { background: var(--gold-tint); color: var(--warn); border-color: #f0dca8; }
.dash .chip.late { background: var(--bad-tint); color: var(--bad); border-color: #e6b8b3; }
.dash .chip b { font-variant-numeric: tabular-nums; }
.dash .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* count tiles */
.dash .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dash .tile { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 11px; color: inherit; box-shadow: 0 1px 2px rgba(16, 40, 42, .05); }
.dash .tile .l { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.dash .tile .r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash .tile .b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: var(--teal-tint); color: var(--teal-dk); }
.dash .tile.gold .b { background: var(--gold-tint); color: #8a6200; }
.dash .tile .n { font-family: var(--h); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--teal-dk); }
.dash .tile .d { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.dash .tile .m { height: 5px; border-radius: 999px; background: var(--idle); margin-top: auto; overflow: hidden; }
.dash .tile .m i { display: block; height: 100%; width: var(--w); background: var(--acc, var(--teal)); border-radius: 999px; }
.dash .tile.late { background: var(--bad-tint); border-color: #e6b8b3; } .dash .tile.late .n { color: var(--bad); } .dash .tile.late .l, .dash .tile.late .d { color: #7a2a24; } .dash .tile.late .b { background: #f6cfca; color: var(--bad); }

/* health ring and the jobs pipeline board */
.dash .two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dash .ringwrap { display: flex; align-items: center; gap: 16px; }
.dash .ring { position: relative; flex: 0 0 auto; }
.dash .ring svg { display: block; transform: rotate(-90deg); }
.dash .ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dash .ring .mid b { font-family: var(--h); font-size: 1.7rem; line-height: 1; color: var(--teal-dk); }
.dash .ring .mid span { font-size: .7rem; color: var(--muted); font-weight: 600; }
.dash .ringkey { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.dash .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dash .col { border: 1px solid var(--line); border-radius: 12px; background: #f6f9f9; display: flex; flex-direction: column; min-width: 0; }
.dash .col .h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 7px; align-items: center; padding: 8px 8px 7px; color: var(--ink); border-bottom: 2px solid var(--c); }
.dash .col .h .b { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: var(--on, #fff); font-size: .9rem; }
.dash .col .h .n { font-family: var(--h); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.dash .col .h .l { font-size: .7rem; font-weight: 700; line-height: 1.15; color: var(--muted); }
.dash .col .jobs { display: flex; flex-direction: column; gap: 5px; padding: 7px 6px 8px; min-height: 40px; }
.dash .pillj { display: flex; align-items: center; gap: 5px; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 7px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.dash .pillj:hover { border-color: var(--teal); }
.dash .pillj svg { width: 10px; height: 10px; } .dash .pillj .ok { color: var(--good); } .dash .pillj .risk { color: var(--amber); } .dash .pillj .late { color: var(--bad); }
.dash .none { font-size: .74rem; color: #6f7c7e; padding: 2px; }
.dash .none.pad { padding: 12px 14px; font-size: .84rem; }

/* everything active */
.dash .all { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--muted); align-items: center; }
.dash .legend span { display: inline-flex; align-items: center; gap: 5px; }
.dash .sw { width: 14px; height: 8px; border-radius: 999px; display: inline-block; background: var(--c); }
.dash .sw.now { width: 3px; height: 12px; background: var(--gold); }
.dash .jobcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.dash .jobhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 14px; background: #f4f7f7; cursor: pointer; list-style: none; }
.dash .jobhead::-webkit-details-marker { display: none; }
.dash .jobcard[open] > .jobhead { border-bottom: 1px solid var(--line); }
.dash .jobhead .ring { grid-row: 1 / span 2; }
.dash .jobhead .ring .mid b { font-size: .8rem; font-family: var(--b); font-weight: 800; }
.dash .jobhead .name { font-family: var(--h); font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--ink); }
.dash .jobhead .name a { color: inherit; }
.dash .jobhead .name .pill { font-family: var(--b); vertical-align: 2px; }
.dash .jobhead .meta { font-size: .78rem; color: var(--muted); grid-column: 2; }
.dash .jobhead .chip { grid-column: 3; grid-row: 1; justify-self: end; }
.dash .steps { grid-column: 3; grid-row: 2; display: flex; align-items: center; gap: 0; justify-self: end; }
.dash .steps i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #b9c6c7; }
.dash .steps u { width: 14px; height: 2px; background: #b9c6c7; text-decoration: none; }
.dash .steps i.d, .dash .steps u.d { background: var(--teal); border-color: var(--teal); }
.dash .steps i.now { width: 13px; height: 13px; background: var(--gold); border-color: var(--teal-dk); }
.dash .steps span { font-size: .72rem; font-weight: 700; color: var(--teal-dk); margin-left: 7px; white-space: nowrap; }
.dash .act { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
.dash .act col.w-pk { width: 27%; } .dash .act col.w-next { width: 23%; } .dash .act col.w-tl { width: 39%; } .dash .act col.w-st { width: 11%; }
.dash .act th { text-align: left; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 7px 8px 5px; font-weight: 700; border-bottom: 1px solid var(--panel); vertical-align: bottom; }
.dash .act td { padding: 8px; border-bottom: 1px solid var(--panel); vertical-align: middle; }
.dash .act th:first-child, .dash .act td:first-child { padding-left: 14px; } .dash .act th:last-child, .dash .act td:last-child { padding-right: 14px; text-align: right; }
.dash .act tr:last-child td { border-bottom: 0; }
.dash .act tbody tr:hover { background: #fafcfc; }
.dash .pkc { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 9px; align-items: center; }
.dash .tr { width: 30px; height: 30px; border-radius: 9px; background: var(--teal-tint); color: var(--teal-dk); display: grid; place-items: center; font-size: 1rem; grid-row: 1 / span 2; }
.dash .act .pk { font-weight: 700; color: var(--ink); }
.dash .act a.lnk { color: var(--teal-dk); }
.dash .act .x { font-size: .76rem; color: var(--muted); display: block; line-height: 1.3; }
.dash .act .who { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.dash .act .who a { color: var(--teal-dk); }
.dash .track { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
.dash .track i { width: 8px; height: 8px; border-radius: 3px; border: 1px solid #b9c6c7; background: #fff; }
.dash .track i.f { background: var(--c); border-color: var(--c); }
.dash .stg { white-space: nowrap; font-weight: 600; color: var(--muted); font-size: .76rem; display: block; margin-bottom: 2px; }
.dash .grade { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; font-size: .68rem; font-weight: 800; font-family: var(--h); vertical-align: 1px; margin-left: 4px; border: 1px solid transparent; }
.dash .grade.A { background: var(--good-tint); color: var(--good); border-color: #bfe0c8; }
.dash .grade.B { background: var(--teal-tint); color: var(--teal-dk); border-color: #bcdcdd; }
.dash .grade.C, .dash .grade.D { background: var(--gold-tint); color: var(--warn); border-color: #f0dca8; }
.dash .grade.F { background: var(--bad-tint); color: var(--bad); border-color: #e6b8b3; }
.dash .rate { font-size: .72rem; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.dash .lic { font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-dk); border: 1px solid #bcdcdd; border-radius: 4px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }

/* the timeline: a gold line for today, one faint rule per week */
.dash .gantt { position: relative; height: 18px; border-radius: 5px; background-color: #f3f7f7; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--weeks, 6) - 1px), #dfe6e6 calc(100% / var(--weeks, 6) - 1px), #dfe6e6 calc(100% / var(--weeks, 6))); }
.dash .gantt i { position: absolute; top: 4px; height: 10px; border-radius: 999px; left: var(--l); width: var(--w); min-width: 5px; background: var(--s1); }
.dash .gantt i.done { background: var(--teal-dk); } .dash .gantt i.now { background: var(--teal); } .dash .gantt i.plan { background: var(--s1); }
.dash .gantt i.risk { background: var(--amber); } .dash .gantt i.late { background: var(--bad); } .dash .gantt i.miss { background: #f3c9c4; outline: 1.5px solid var(--bad); outline-offset: -1.5px; }
.dash .gantt .today { position: absolute; top: -3px; bottom: -3px; left: var(--t); width: 2px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.dash .gcap { font-size: .74rem; color: var(--muted); margin-top: 3px; display: block; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .gcap b { color: var(--ink); } .dash .gcap.late, .dash .gcap.late b { color: var(--bad); }
.dash .ticks { display: grid; grid-template-columns: repeat(var(--weeks, 6), minmax(0, 1fr)); font-size: .62rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: #6f7c7e; position: relative; padding-top: 11px; }
.dash .ticks .now { position: absolute; left: var(--t); top: 0; transform: translateX(-50%); color: #8a6200; font-weight: 800; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }

/* the filter rows on the packet list and the jobs list */
.dash .filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dash .filters .fl { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; min-width: 48px; }
.dash .fchip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .8rem; }
.dash .fchip.on { background: var(--teal-tint); border-color: var(--teal-tint); color: var(--teal-dk); font-weight: 700; }

/* footer cards */
.dash .foot2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dash .ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: .84rem; padding-bottom: 7px; border-bottom: 1px solid var(--panel); color: inherit; }
.dash .ev:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dash .ev time { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.dash .ev .evjob { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--teal-dk); justify-self: start; }
.dash .ev p { grid-column: 1 / -1; margin: 2px 0 0; font-size: .8rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.dash .panel form { margin: 0; }
.dash .demobar { height: 10px; border-radius: 999px; background: var(--idle); overflow: hidden; margin: 8px 0; }
.dash .demobar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; min-width: 6px; }

@media (min-width: 560px) { .dash .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 861px) {
  .dash .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash .needlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash .two { grid-template-columns: 290px minmax(0, 1fr); }
  .dash .foot2 { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
}
/* phones: the pipeline columns stack, and each packet row becomes a small card */
@media (max-width: 700px) {
  .dash .hero { padding: 16px 14px 14px; } .dash .hero .hi { font-size: 1.25rem; }
  .dash .money { width: 100%; } .dash .money a { flex: 1; padding: 2px 10px; } .dash .money .v { font-size: 1.25rem; }
  .dash .board { grid-template-columns: minmax(0, 1fr); }
  .dash .col { flex-direction: row; align-items: stretch; } .dash .col .h { border-bottom: 0; border-right: 2px solid var(--c); width: 46%; } .dash .col .jobs { flex: 1; flex-direction: row; flex-wrap: wrap; align-content: center; min-height: 0; }
  .dash .jobhead { grid-template-columns: auto minmax(0, 1fr); } .dash .jobhead .chip { grid-column: 2; grid-row: auto; justify-self: start; } .dash .steps { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .dash .act thead, .dash .act colgroup { display: none; }
  .dash .act, .dash .act tbody { display: block; }
  .dash .act tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pk st" "next next" "tl tl"; gap: 7px 10px; padding: 11px 14px; border-bottom: 1px solid var(--panel); }
  .dash .act tr:last-child { border-bottom: 0; }
  .dash .act td, .dash .act td:first-child, .dash .act td:last-child { padding: 0; border: 0; text-align: left; }
  .dash .act td.c-pk { grid-area: pk; } .dash .act td.c-st { grid-area: st; } .dash .act td.c-next { grid-area: next; } .dash .act td.c-tl { grid-area: tl; }
}
@media (prefers-reduced-motion: no-preference) { .dash .tile, .dash .need, .dash .col, .dash .jobcard { transition: box-shadow .15s, border-color .15s; } }
@media print { .dash .jobcard { break-inside: avoid; } }

.cust { max-width: 780px; margin: 0 auto; min-height: 100vh; background: var(--paper); }
.cust .body { padding: 16px; }
.contract { color: var(--ink); line-height: 1.5; }
.contract .c-head { border-bottom: 3px solid var(--gold); padding-bottom: 10px; margin-bottom: 14px; }
.contract .c-co { font-family: var(--h); font-weight: 700; font-size: 1.15rem; color: var(--teal-dk); }
.contract .c-lic { font-size: .8rem; color: var(--muted); }
.contract h1 { font-family: var(--h); font-size: 1.5rem; margin: 10px 0 2px; }
.contract .c-meta { font-size: .85rem; color: var(--muted); }
.contract h2 { font-family: var(--h); font-size: 1.02rem; margin: 20px 0 6px; color: var(--teal-dk); }
.contract dl.c-parties { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: .95rem; }
.contract dl.c-parties dt { color: var(--muted); }
.contract dl.c-parties dd { margin: 0; }
.contract ul { margin: 0; padding-left: 20px; }
.contract li { margin: 3px 0; }
.contract table.c-pay { width: 100%; border-collapse: collapse; font-size: .95rem; }
.contract table.c-pay th, .contract table.c-pay td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.contract table.c-pay .r { text-align: right; white-space: nowrap; }
.contract table.c-pay tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.contract .c-notice { border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; margin: 16px 0; background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.contract .c-notice p { margin: 0; }
.contract .c-notice .c-cap { font-weight: 700; margin-bottom: 6px; }
.contract .c-notice .c-cite { font-size: .75rem; color: var(--muted); margin-top: 8px; font-weight: 400; }
.contract .c-notice .c-board { margin-top: 8px; white-space: pre-line; }
.contract .c-notice.lien p { font-size: 12pt; font-weight: 700; line-height: 1.45; }
.contract .c-notice.lien .c-own { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 400; }
.contract .c-terms p { margin: 0 0 8px; }
.contract .c-sign { border-top: 3px solid var(--gold); margin-top: 22px; padding-top: 14px; }
.contract .c-sign .agree { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; }
.contract .c-sign .agree input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.contract .c-signed { background: var(--teal-tint); border-radius: 6px; padding: 12px 14px; font-size: .92rem; }
.contract .c-signed .c-name { font-family: var(--h); font-size: 1.25rem; font-weight: 700; }
.contract .c-hash { font-size: .72rem; color: var(--muted); word-break: break-all; margin-top: 6px; }
.contract .c-errors { background: #fdecec; border: 1px solid #c62828; border-radius: 6px; padding: 10px 12px; margin: 12px 0; font-size: .95rem; }
.contract label.fld { display: block; font-size: .85rem; font-weight: 600; margin: 8px 0; }
.contract label.fld input[type=text], .contract textarea { display: block; width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; }
.contract .c-decline { margin-top: 18px; font-size: .88rem; }
@media print {
  .cust .apphead, .cust .foot, .contract .c-decline, .contract button { display: none !important; }
  .cust { max-width: none; }
  .contract .c-notice.lien { break-after: page; }
}
