/* Plumbline portal — theme v2.
   Built phone-first, then widened: bottom bar on a phone, rail on a tablet, sidebar on a desk. */
body.app {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --line: #e2e5ea;
  --line-2: #edeff2;
  --text: #0f1419;
  --text-2: #475260;
  --text-3: #5f6873; /* was #76818e (3.63:1 on --bg); this meets WCAG AA 4.5:1 on --bg, --surface and --surface-2 */
  --brand: #1f5fd6;
  --brand-600: #1a4fb8;
  --brand-50: #eef3fe;
  --brand-100: #dbe6fd;
  --red: #d43c3c;
  --red-50: #fdeeee;
  --red-ink: #9b2222;

  /* the shared primitives read these names */
  --paper: var(--bg);
  --board: var(--surface-2);
  --white: var(--surface);
  --rule: var(--line);
  --rule-2: var(--line-2);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --chalk: var(--brand);
  --chalk-deep: var(--brand-600);
  --chalk-wash: var(--brand-50);
  --chalk-tint: var(--brand-100);
  --mark: var(--red);
  --mark-wash: var(--red-50);
  --mark-ink: var(--red-ink);
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: var(--f-body);
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
  --card: 16px;
  --sh: 0 1px 2px rgba(15, 20, 25, 0.05), 0 2px 10px rgba(15, 20, 25, 0.04);
  --sh-2: 0 18px 44px -14px rgba(15, 20, 25, 0.28);
  --nav-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --top-h: calc(56px + var(--safe-top));
  --gut: 16px;

  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-tap-highlight-color: transparent;
}
.app h1, .app h2, .app h3, .app h4 {
  letter-spacing: -0.015em;
}
.app .mono {
  font-family: var(--f-mono);
  letter-spacing: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--text);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.app svg {
  flex: none;
}

/* ── Buttons ─────────────────────────────────────────── */
.app .btn {
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.app .btn:active {
  transform: scale(0.98);
}
.app .btn svg {
  width: 17px;
  height: 17px;
}
.app .btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(31, 95, 214, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.app .btn--primary:hover {
  background: var(--brand-600);
  transform: none;
  box-shadow: 0 4px 14px -4px rgba(31, 95, 214, 0.55);
}
.app .btn--ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.app .btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px #cfd4db;
}
.app .btn--light {
  background: #fff;
  color: var(--text);
  box-shadow: none;
}
.app .btn--line {
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.app .btn--line:hover {
  background: rgba(255, 255, 255, 0.12);
}
.app .btn--sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}
.app .btn--xs {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
  gap: 6px;
}
.app .btn--xs svg {
  width: 14px;
  height: 14px;
}
.app .btn--lg {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
}
.app .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text-2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.iconbtn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.iconbtn svg {
  width: 18px;
  height: 18px;
}
.iconbtn--lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-600);
}
.tlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tlink svg {
  width: 13px;
  height: 13px;
}
.app .pill {
  padding: 3px 9px;
  font-size: 12.5px;
  font-weight: 550;
  background: var(--surface-2);
  color: var(--text-2);
}
.app .pill--ok {
  background: var(--ok-wash);
  color: var(--ok-ink);
}
.app .pill--warn {
  background: var(--warn-wash);
  color: var(--warn-ink);
}
.app .pill--mark {
  background: var(--red-50);
  color: var(--red-ink);
}
.app .pill--chalk {
  background: var(--brand-50);
  color: var(--brand-600);
}
.app .pill--line {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-3);
}
.app .pill svg {
  width: 13px;
  height: 13px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.avatar--owner {
  background: var(--text);
  color: #fff;
}
.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
}
.avatar--ai {
  background: linear-gradient(135deg, #1f5fd6, #5b3fd6);
  color: #fff;
}
.avatar--home {
  background: #fdf0d5;
  color: #8a5a00;
}
.avatar--icon {
  background: var(--surface-2);
  color: var(--text-2);
}
.avatar svg {
  width: 55%;
  height: 55%;
}

/* ── Navigation: bottom bar (phone) ──────────────────── */
.nav {
  position: fixed;
  z-index: 80;
  inset: auto 0 0 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav__brand,
.nav__me {
  display: none;
}
.nav__items {
  display: contents;
}
.nav__item {
  display: none;
  position: relative;
  color: var(--text-3);
  font-weight: 500;
  border-radius: 12px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__item--bar {
  display: grid;
  justify-items: center;
  gap: 3px;
  order: var(--slot);
  padding: 8px 2px 6px;
  font-size: 11px;
}
.nav__item svg {
  width: 23px;
  height: 23px;
}
.nav__l {
  display: none;
}
.nav__item.is-on {
  color: var(--brand);
}
.nav__n {
  position: absolute;
  top: 3px;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.nav__cta {
  order: 3;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(31, 95, 214, 0.75), 0 0 0 5px var(--bg);
  transform: translateY(-12px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav__cta:active {
  transform: translateY(-12px) scale(0.95);
}
.nav__cta svg {
  width: 25px;
  height: 25px;
}
.nav__cta span {
  display: none;
}

/* ── Top bar ─────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--top-h);
  padding: 0 var(--gut);
  background: rgba(244, 245, 247, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.top__back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 10px;
  color: var(--text);
}
.top__back[hidden] {
  display: none;
}
.top__back svg {
  width: 20px;
  height: 20px;
}
.crumbs {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumbs a,
.crumbs span {
  display: none;
  color: var(--text-3);
  font-weight: 500;
}
.crumbs a:hover {
  color: var(--text);
}
.top__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.top__btn:hover {
  color: var(--text);
  background: var(--surface-2);
}
.top__btn svg {
  width: 17px;
  height: 17px;
}
.top__btn span,
.top__btn kbd {
  display: none;
}
.top__btn--tour {
  background: var(--text);
  color: #fff;
  box-shadow: none;
}
.top__btn--tour:hover {
  background: #2a323c;
  color: #fff;
}
.top__btn--tour span {
  display: inline;
}
.top__btn--tour svg {
  width: 12px;
  height: 12px;
}
.top__me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 8px 0 6px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.top__me:hover {
  background: var(--surface-2);
}
.top__me svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}
kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-3);
}
#view {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px var(--gut) 40px;
  outline: none;
}
#view.is-enter {
  animation: enter 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
body.app.is-focus,
body.app.is-home {
  padding: 0;
}
body.is-focus .nav,
body.is-focus .top,
body.is-home .nav,
body.is-home .top {
  display: none;
}
body.is-focus #view,
body.is-home #view {
  max-width: none;
  padding: 0;
}

.main,
.jobhead__main,
.step__body,
.tabpane {
  min-width: 0;
}

/* ── Page furniture ──────────────────────────────────── */
.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}
.page-h h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.page-h p {
  margin-top: 5px;
  color: var(--text-2);
  max-width: 70ch;
}
.page-h--job {
  align-items: flex-start;
}
.page-h__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13.5px;
}
.eyebrow {
  margin: 0 0 4px !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3) !important;
}
.muted {
  color: var(--text-3);
  font-size: 13.5px;
}
.fine {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.fine svg {
  width: 13px;
  height: 13px;
  display: inline;
  vertical-align: -2px;
  margin-right: 3px;
}
.nowrap {
  white-space: nowrap;
}
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sec-h h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 650;
}
.sec-h h2 > svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.sec-h--pad {
  padding: 16px 18px 0;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.cols > *,
.est > * {
  min-width: 0;
}
.stack {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.stack,
.jobs,
.job,
.job__main,
.plan,
.steps,
.ask,
.alerts,
.bullet,
.bars,
.rows,
.holds,
.visits,
.oqs,
.needs__list {
  grid-template-columns: minmax(0, 1fr);
}
.panel {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
}
.panel > p + p,
.panel > p + .btn,
.panel > p + .tlink {
  margin-top: 10px;
}
.panel--flush {
  padding: 0;
  overflow: hidden;
}
.panel--note {
  display: grid;
  gap: 8px;
  background: var(--surface-2);
  box-shadow: none;
}
.panel--next {
  display: grid;
  gap: 12px;
  justify-items: start;
  background: linear-gradient(180deg, var(--brand-50), var(--surface) 70%);
  box-shadow: var(--sh), inset 0 0 0 1px var(--brand-100);
}
.panel--asks {
  background: #14181d;
  color: #fff;
  box-shadow: none;
}
.panel--asks .sec-h h2 {
  color: #fff;
}
.panel--asks .muted {
  color: #9aa4af;
}
.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--line-2);
}
.panel__foot .legend {
  margin: 0;
}
.lesson {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 550;
  text-wrap: pretty;
}
.lesson--sm {
  font-size: 15px;
  font-weight: 450;
}
.lesson small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-3);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--sh);
}
.stat--flag {
  box-shadow: var(--sh), inset 0 0 0 1.5px #f1b7b7;
}
.stat__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
}
.stat__label svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.stat__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.stat__sub {
  font-size: 12.5px;
  color: var(--text-3);
}
.tabs {
  position: sticky;
  top: var(--top-h);
  z-index: 30;
  display: flex;
  gap: 4px;
  margin: 14px calc(-1 * var(--gut)) 16px;
  padding: 8px var(--gut);
  background: rgba(244, 245, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tabs a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.tabs a.is-on {
  background: var(--text);
  color: #fff;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.seg button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.14);
}
.seg--wrap {
  flex-wrap: wrap;
}
.seg--stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.seg--stack button {
  padding: 8px 12px;
  text-align: left;
  white-space: normal;
  line-height: 1.25;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.12s ease, background 0.12s ease;
}
.chip:hover {
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.chip.is-on {
  background: var(--brand-50);
  color: var(--brand-600);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-2);
}
.callout > span {
  flex: 1;
  min-width: 200px;
}
.callout > svg {
  width: 20px;
  height: 20px;
}
.callout--chalk {
  background: var(--brand-50);
  color: #173b82;
}
.callout--mark {
  background: var(--red-50);
  color: var(--red-ink);
}
.empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 44px 20px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
  color: var(--text-3);
}
.empty b {
  color: var(--text);
  font-size: 17px;
}
.empty span {
  max-width: 52ch;
}
.fact {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.actions--left {
  margin-top: 14px;
}
.rows__end {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex: none;
}

/* ── Lists ───────────────────────────────────────────── */
.rows {
  display: grid;
}
.rows li {
  border-bottom: 1px solid var(--line-2);
}
.rows li:last-child {
  border-bottom: 0;
}
.rows a,
.rows--plain li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.rows a {
  margin: 0 -8px;
  padding: 11px 8px;
  border-radius: 10px;
}
.rows a:hover {
  background: var(--surface-2);
}
.rows b {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}
.rows small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.rows .mono {
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--text-2);
}
.rows li.muted {
  padding: 8px 0;
}
.alerts {
  display: grid;
  gap: 8px;
}
.alert {
  display: grid;
  gap: 2px;
  padding: 11px 14px 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--line);
  transition: background 0.12s ease;
}
.alert:hover {
  background: var(--surface-2);
}
.alert b {
  font-weight: 600;
  font-size: 14px;
}
.alert span {
  color: var(--text-2);
}
.alert--mark {
  box-shadow: inset 3px 0 0 var(--red);
}
.alert--warn {
  box-shadow: inset 3px 0 0 var(--warn);
}
.alert--chalk {
  box-shadow: inset 3px 0 0 var(--brand);
}
.holds {
  display: grid;
}
.holds li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.holds li:last-child {
  border-bottom: 0;
}
.holds svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--red);
}
.holds b {
  display: block;
  font-weight: 600;
}
.holds small {
  font-size: 12.5px;
  color: var(--text-3);
}
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px #c3c9d1;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
button.check:hover:not(:disabled) {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.check.is-on {
  background: var(--brand);
  box-shadow: none;
  animation: pop 0.25s ease;
}
@keyframes pop {
  50% {
    transform: scale(1.15);
  }
}
.check.is-on::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.4px solid #fff;
  border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ── My Day ──────────────────────────────────────────── */
.needs {
  margin-bottom: 22px;
}
.needs__list,
.oqs,
.visits {
  display: grid;
  gap: 12px;
}
.plan {
  display: grid;
  gap: 10px;
}
.plan__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
}
.plan__item--visit {
  box-shadow: var(--sh), inset 0 0 0 1.5px var(--brand-100);
}
.plan__time {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
}
.plan__body {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 0;
}
.plan__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.plan__mins {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-3);
}
.plan__body h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}
.plan__body p {
  color: var(--text-2);
}
.plan__cta {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.plan__item.is-done {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan__item.is-done h3 {
  text-decoration: line-through;
  color: var(--text-3);
}
.plan__item.is-done .tlink,
.plan__item.is-done .blocker {
  display: none;
}
.jobchip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.jobchip:hover {
  background: var(--brand-100);
  color: var(--brand-600);
}
.jobchip--all {
  color: var(--text-2);
}
.blocker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red-ink);
  font-weight: 550;
  font-size: 14px;
}
.blocker svg {
  width: 17px;
  height: 17px;
}
.blocker span {
  flex: 1;
  min-width: 160px;
}
.blocker--ok {
  background: var(--ok-wash);
  color: var(--ok-ink);
}

/* ── Owner input cards ───────────────────────────────── */
.oq {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  background: #14181d;
  color: #fff;
  border-radius: var(--card);
}
.oq--bare {
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid #2a3037;
  border-radius: 0;
  background: none;
}
.oq--bare:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.oq--done {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh);
}
.oq--new {
  box-shadow: var(--sh), inset 0 0 0 2px var(--brand);
}
.oq__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9aa4af;
}
.oq--done .oq__head {
  color: var(--text-3);
}
.oq__head b {
  color: #fff;
  font-weight: 600;
}
.oq--done .oq__head b {
  color: var(--text);
}
.oq__head .jobchip {
  margin-left: auto;
  background: #2a3037;
  color: #fff;
}
.oq--done .oq__head .jobchip {
  background: var(--surface-2);
  color: var(--text);
}
.oq .avatar--owner {
  background: #fff;
  color: var(--text);
}
.oq--done .avatar--owner {
  background: var(--text);
  color: #fff;
}
.oq__q {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
  text-wrap: pretty;
}
.oq--done .oq__q {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.oq__a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-50);
}
.oq__by {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.oq__by b {
  color: var(--text);
}
.oq__a p {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}
.oq__foot {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.oq:not(.oq--done) .muted {
  color: #9aa4af;
}
.oq:not(.oq--done) .pill--warn {
  background: #3a3220;
  color: #f5d48a;
}
.loop {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.loop::-webkit-scrollbar {
  display: none;
}
.loop li {
  position: relative;
  flex: 1 0 auto;
  padding: 8px 14px 8px 22px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}
.loop li:first-child {
  padding-left: 14px;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.loop li:last-child {
  border-radius: 0 8px 8px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}
.loop li.is-on {
  background: var(--brand);
  color: #fff;
}

/* ── Projects board ──────────────────────────────────── */
.horizons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface-2);
}
.horizon {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 9px 4px;
  border-radius: 12px;
  text-align: center;
  transition: background 0.15s ease;
}
.horizon.is-on {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.14);
}
.horizon__name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-2);
}
.horizon.is-on .horizon__name {
  color: var(--text);
}
.horizon__n {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  order: -1;
}
.horizon.is-on .horizon__n {
  color: var(--brand);
}
.horizon__q {
  display: none;
  font-size: 12px;
  color: var(--text-3);
}
.jobs {
  display: grid;
  gap: 14px;
}
.job {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--sh);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.job:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.job__main {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
  padding: 0 4px 4px;
}
.job__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.job__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.job:hover .job__photo img {
  transform: scale(1.04);
}
.job__tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
}
.job__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job__top h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.job__line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  font-size: 13.5px;
  color: var(--text-2);
}
.job__line b {
  color: var(--text);
  font-weight: 650;
}
.job__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.job__stats > div {
  display: grid;
  gap: 1px;
  align-content: start;
}
.job__stats b {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.job__stats small {
  font-size: 12.5px;
  color: var(--text-3);
}
.job__next {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
}
.job__ask {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #14181d;
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
}
.job__ask .avatar--owner {
  background: #fff;
  color: var(--text);
}
.order {
  display: block;
  color: var(--text-2) !important;
  font-size: 13px !important;
}
.order--due {
  color: var(--red-ink) !important;
  font-weight: 600;
}
.meter {
  display: block;
  height: 6px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--brand-100);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}
.dates {
  display: grid;
  gap: 10px;
}
.dates > div:not(.dates__bar) {
  display: grid;
  gap: 1px;
}
.dates b {
  font-size: 17px;
  font-weight: 650;
}
.dates small {
  font-size: 12.5px;
  color: var(--text-3);
}
.dates__bar {
  display: none;
}

/* phase strip */
.phases {
  display: flex;
  gap: 3px;
}
.phases li {
  min-width: 0;
}
.phases a {
  display: block;
  padding: 4px 0;
}
.phases i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.phases i b {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
}
.phases li.is-active i {
  background: var(--brand-100);
}
.phases span {
  display: none;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phases li.is-done span {
  color: var(--text-2);
}
.phases li.is-active span {
  color: var(--text);
  font-weight: 650;
}
.phases--pick i {
  height: 12px;
  border-radius: 6px;
}
.phases--pick li.is-sel i {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}
.phases--pick li.is-sel span {
  color: var(--text);
  font-weight: 650;
}

/* ── Job header ──────────────────────────────────────── */
.jobhead {
  display: grid;
  gap: 14px;
  margin: 4px 0 14px;
}
.jobhead__photo .ph {
  aspect-ratio: 16 / 8;
  border-radius: 16px;
}
.jobhead h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.jobhead__meta {
  margin-top: 4px;
  color: var(--text-2);
}
.jobhead__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.jobhead__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.jobhead__actions .btn {
  flex: 1;
}

/* ── Tables ──────────────────────────────────────────── */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  padding: 11px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.tbl th:first-child,
.tbl td:first-child {
  padding-left: 18px;
}
.tbl th:last-child,
.tbl td:last-child {
  padding-right: 18px;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl td b {
  font-weight: 600;
}
.tbl td small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 400;
}
.tbl td small.inline,
small.inline {
  display: inline;
  font-size: 11.5px;
  color: var(--text-3);
}
.tbl .num {
  text-align: right;
  white-space: nowrap;
}
.tbl td.mono {
  font-size: 12.5px;
}
.tbl td .pill + .pill {
  margin-left: 4px;
}
.tbl--click tbody tr {
  cursor: pointer;
}
.tbl--click tbody tr:hover td {
  background: var(--bg);
}
.tbl a:hover b {
  color: var(--brand-600);
}
.tbl__group td {
  padding: 9px 12px 8px 18px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
}
.tbl tfoot td {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-weight: 650;
}
.score {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.cellphoto {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 240px;
}
.thumb {
  display: block;
  width: 56px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Charts ──────────────────────────────────────────── */
.bullet {
  display: grid;
  gap: 16px;
}
.bullet__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  font-size: 14px;
}
.bullet__track {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  order: 3;
  height: 14px;
  background: var(--surface-2);
  border-radius: 0 4px 4px 0;
}
.bullet__track--sm {
  height: 10px;
  margin-top: 4px;
  border-radius: 0 3px 3px 0;
}
.bullet__track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand);
  border-radius: 0 4px 4px 0;
}
.bullet__track u {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--text);
}
.bullet__val {
  text-align: right;
  font-size: 13px;
}
.bullet__val small {
  color: var(--text-3);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-3);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 14px;
  height: 8px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.legend u {
  width: 2px;
  height: 12px;
  background: var(--text);
}
.bars {
  display: grid;
  gap: 12px;
}
.bars__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  font-size: 14px;
}
.bars__label {
  font-weight: 550;
}
.bars__label small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-3);
}
.bars__track {
  display: block;
  grid-column: 1 / -1;
  order: 3;
  height: 14px;
}
.bars__track i {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--brand);
  border-radius: 0 4px 4px 0;
}
.bars__val {
  text-align: right;
  font-size: 13px;
}
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart .g {
  stroke: var(--line-2);
  stroke-width: 1;
}
.chart .ref {
  stroke: var(--text-3);
  stroke-width: 1;
}
.chart .ax {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--text-3);
}
.chart .ax--x {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--text);
}
.chart .line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .dot {
  fill: var(--brand);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart .end {
  font-size: 18px;
  font-weight: 700;
  fill: var(--text);
}
.chart .end--sm {
  font-size: 13px;
  fill: var(--text-2);
}

/* ── Playbook steps ──────────────────────────────────── */
.steps {
  display: grid;
  gap: 10px;
}
.step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
}
.step.is-hold {
  box-shadow: var(--sh), inset 4px 0 0 var(--red);
}
.step.is-on {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step.is-on.is-hold {
  box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 #f1b7b7;
}
.step__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.step__top h3 {
  margin-right: auto;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.3;
}
.step.is-on .step__top h3 {
  color: var(--text-2);
}
.step__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 12px;
}
.why {
  display: grid;
  gap: 2px 12px;
  margin-top: 8px;
  font-size: 14.5px;
}
.why:empty {
  display: none;
}
.why dt {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-3);
}
.why dd {
  color: var(--text-2);
}
.steps--tight {
  gap: 0;
}
.steps--tight .step {
  padding: 10px 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.steps--tight .step:last-child {
  border-bottom: 0;
}
.steps--tight h3 {
  font-size: 14.5px;
  font-weight: 500;
}
.steps--tight .is-on h3 {
  color: var(--text-3);
}
.phase-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--card);
  background: var(--surface-2);
  font-weight: 550;
}

/* ── Field visits ────────────────────────────────────── */
.visit {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
}
.visit--flat {
  border-radius: 0;
  box-shadow: none;
}
.visit--fresh {
  box-shadow: var(--sh), inset 0 0 0 2px var(--brand);
}
.visit__head {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.visit__when {
  display: grid;
  margin-right: auto;
}
.visit__when b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.visit__when span {
  font-size: 13px;
  color: var(--text-3);
}
.visit__by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
}
.sitechip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.sitechip--clean {
  background: var(--ok-wash);
  color: var(--ok-ink);
}
.sitechip--messy {
  background: var(--warn-wash);
  color: var(--warn-ink);
}
.sitechip--safety {
  background: var(--red-50);
  color: var(--red-ink);
}
.visit__note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warn-wash);
  color: var(--warn-ink);
  font-size: 14.5px;
  font-weight: 500;
}
.three {
  display: grid;
  gap: 12px;
}
.three h4 {
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-3);
}
.three p {
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}
.app .shots--visit {
  grid-template-columns: repeat(auto-fill, minmax(96px, 132px));
}
.app .shots--lg {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.visit__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-600);
  cursor: pointer;
  list-style: none;
}
.visit__more summary::-webkit-details-marker {
  display: none;
}
.visit__more summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-50);
  font-weight: 700;
}
.visit__more[open] summary::before {
  content: "−";
}
.visit__full {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.visit__full h4 {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-3);
}
.chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ticklist {
  display: grid;
  gap: 6px;
}
.ticklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14.5px;
}
.ticklist svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--ok);
}
.ticklist li:not(.is-done) svg {
  color: var(--text-3);
}
.ticklist li:first-child:last-child svg,
.ticklist li svg {
  flex: none;
}
.ticklist small {
  width: 100%;
  padding-left: 25px;
  margin-top: -4px;
  font-size: 12.5px;
  color: var(--text-3);
}
.qa {
  display: grid;
  gap: 12px;
}
.qa li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
}
.qa b {
  font-size: 14.5px;
  font-weight: 600;
}
.qa p {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--text-2);
}

/* ── Timeline ────────────────────────────────────────── */
.tl {
  display: grid;
  gap: 22px;
}
.tl__day > h3 {
  position: sticky;
  top: calc(var(--top-h) + 54px);
  z-index: 5;
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.tl__day--next > h3 {
  background: var(--brand);
}
.tl__ev {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}
.tl__ev::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl__day .tl__ev:last-child::before {
  display: none;
}
.tl__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
}
.tl__dot svg {
  width: 17px;
  height: 17px;
}
.tl__ev--visit .tl__dot {
  background: var(--brand);
  box-shadow: none;
  color: #fff;
}
.tl__ev--ask .tl__dot {
  background: var(--text);
  box-shadow: none;
  color: #fff;
}
.tl__ev--mile .tl__dot {
  background: var(--ok-wash);
  box-shadow: none;
  color: var(--ok-ink);
}
.tl__ev--vendor .tl__dot {
  background: #dff0f3;
  box-shadow: none;
  color: #0b6077;
}
.tl__ev--think .tl__dot {
  background: #fdf0d5;
  box-shadow: none;
  color: #8a5a00;
}
.tl__ev--next .tl__dot {
  background: var(--brand-50);
  box-shadow: none;
  color: var(--brand-600);
}
.tl__body {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--sh);
  min-width: 0;
}
.tl__ev--mile .tl__body,
.tl__ev--next .tl__body {
  background: none;
  box-shadow: none;
  padding: 6px 0;
}
.tl__ev.is-flag .tl__body {
  box-shadow: var(--sh), inset 3px 0 0 var(--warn);
}
.tl__body header {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
}
.tl__body header b {
  font-weight: 650;
}
.tl__body header span {
  font-size: 13px;
  color: var(--text-3);
}
.tl__body header em {
  display: none;
}
.tl__body p {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.tl__sub {
  font-size: 13px !important;
  color: var(--text-3) !important;
}

/* ── Doing a visit ───────────────────────────────────── */
.vhead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gut);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.vhead__t {
  display: grid;
  flex: 1;
  min-width: 0;
}
.vhead__t b {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vhead__t span {
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vhead__p {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.vhead__p i {
  display: block;
  width: 84px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.vhead__p i b {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.35s ease;
}
.vbody {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px var(--gut) 120px;
}
.vchat {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.vpin {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
  padding: 14px 16px 15px;
  border-radius: 18px;
  background: #14181d;
  color: #fff;
}
.vpin .avatar--owner {
  background: #fff;
  color: var(--text);
}
.vpin__b {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.vpin__h {
  font-size: 12.5px;
  font-weight: 650;
  color: #9aa4af;
}
.vpin ul {
  display: grid;
  gap: 8px;
}
.vpin li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
}
.vpin li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #ffb4a8;
}
.vpin li.is-done {
  font-size: 14.5px;
  font-weight: 450;
  color: #b9c1ca;
}
.vpin li.is-done svg {
  color: #5fd38d;
}
.vpin__f {
  font-size: 12.5px;
  line-height: 1.45;
  color: #9aa4af;
}
.vpin.is-done .vpin__h {
  color: #5fd38d;
}
.vq {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  animation: enter 0.3s ease both;
}
.vq__b {
  justify-self: start;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 6px 18px 18px 18px;
  background: var(--surface);
  box-shadow: var(--sh);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.vq__from {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-600);
}
.vq--owner .vq__b {
  background: #14181d;
  color: #fff;
  font-size: 17px;
}
.vq--owner .vq__from {
  color: #9aa4af;
}
.vq__req {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffb4a8;
}
.vq__req svg {
  width: 14px;
  height: 14px;
}
.va {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 46px;
}
.va__b {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 18px 6px 18px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.va__edit {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  order: -1;
}
.va__edit:hover {
  color: var(--brand-600);
}
.minis {
  display: inline-flex;
  gap: 4px;
}
.mini {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
}
.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vin {
  display: grid;
  gap: 12px;
  padding: 4px 0 8px 46px;
  animation: enter 0.3s 0.08s ease both;
}
.vopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vopt {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15.5px;
  font-weight: 550;
  line-height: 1.3;
  text-align: left;
  transition: box-shadow 0.12s ease, background 0.12s ease, transform 0.1s ease;
}
.vopt:hover {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.vopt:active {
  transform: scale(0.97);
}
.vopt.is-on {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.vopt--none {
  color: var(--text-2);
}
.vopt--sugg {
  min-height: 0;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--brand-50);
  box-shadow: none;
  color: #173b82;
  font-size: 14px;
  font-weight: 500;
}
.vgo {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.vtext {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  resize: none;
  overflow: hidden;
}
.vtext:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.vdraft {
  display: grid;
  gap: 8px;
}
.vdraft__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-600);
}
.vdraft__tag svg {
  width: 14px;
  height: 14px;
}
.vdays {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vdays__n {
  display: grid;
  justify-items: center;
  flex: 1;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--sh);
}
.vdays__n b {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.vdays__n span {
  font-size: 13px;
  color: var(--text-3);
}
.vroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.vph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  transition: transform 0.12s ease;
}
.vph:active {
  transform: scale(0.96);
}
.vph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vph > span {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1.5px rgba(15, 20, 25, 0.25);
  color: transparent;
}
.vph > span svg {
  width: 15px;
  height: 15px;
}
.vph.is-on {
  box-shadow: 0 0 0 3px var(--brand);
}
.vph.is-on > span {
  background: var(--brand);
  box-shadow: none;
  color: #fff;
}
.vph--cam {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}
.vph--cam svg {
  width: 26px;
  height: 26px;
}
.vph--cam em {
  font-style: normal;
}
.vwrap label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.vwrap .vtext {
  font-weight: 450;
}
.vside {
  display: none;
}
.vsum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 13.5px;
}
.vsum dt {
  color: var(--text-3);
}
.vsum dd {
  font-weight: 550;
  text-align: right;
}
.vasks {
  display: grid;
  gap: 8px;
}
.vasks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.vasks svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--warn);
}
.vasks .is-done svg {
  color: var(--ok);
}
.vdone {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 44px var(--gut) 80px;
  text-align: center;
}
.vdone__ok svg {
  width: 84px;
  height: 84px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vdone__ok circle {
  fill: var(--ok-wash);
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: draw 0.6s ease forwards;
}
.vdone__ok path {
  stroke: var(--ok-ink);
  stroke-width: 4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.35s 0.5s ease forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.vdone h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.vdone__when {
  color: var(--text-2);
}
.vdone .loop {
  width: 100%;
  margin: 6px 0;
}
.vdone__list {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.vdone__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--sh);
  font-size: 14.5px;
  color: var(--text-2);
}
.vdone__list b {
  color: var(--text);
}
.vdone__cta {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

/* ── Homeowner view ──────────────────────────────────── */
.hbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 10px var(--gut);
  background: #14181d;
  color: #d5dae0;
  font-size: 13.5px;
}
.hbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}
.hbar b {
  color: #fff;
}
.hbar svg {
  width: 18px;
  height: 18px;
  color: #f5d48a;
}
.hbar select {
  max-width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: #2a3037;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
}
.hp {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 60px;
  background: var(--surface);
  min-height: 100vh;
}
.hp--embed {
  min-height: 0;
  border-radius: 20px;
  box-shadow: var(--sh-2);
  overflow: hidden;
  padding-bottom: 8px;
}
.hp__head {
  display: grid;
  gap: 10px;
  padding: 30px 22px 26px;
  background: linear-gradient(160deg, #1f5fd6, #17409a);
  color: #fff;
}
.hp__head .eyebrow {
  color: #c5d6f8 !important;
}
.hp__head h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hp__head p {
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.5;
  color: #e6edfc;
}
.hp__prog {
  height: 10px;
  margin-top: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hp__prog i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #fff;
}
.hp__steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -22px;
  padding: 0 22px;
}
.hp__steps::-webkit-scrollbar {
  display: none;
}
.hp__steps span {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #c5d6f8;
  font-size: 12.5px;
  font-weight: 550;
}
.hp__steps .is-done {
  color: #fff;
}
.hp__steps .is-now {
  background: #fff;
  color: #17409a;
}
.hp__sec {
  display: grid;
  gap: 12px;
  padding: 24px 22px 0;
}
.hp__sec h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hp__two {
  gap: 24px;
}
.hp__two > div {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.hp__note {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp__note b {
  display: block;
  font-size: 15px;
}
.hp__note small {
  color: var(--text-3);
}
.hp__ping {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}
.hp__ping::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.thinks {
  display: grid;
  gap: 10px;
}
.think {
  border-radius: 16px;
  background: #fef7e6;
  box-shadow: inset 0 0 0 1px #f3e2b5;
}
.think summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.think summary::-webkit-details-marker {
  display: none;
}
.think__i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fbe3a3;
  color: #7a4f00;
}
.think__i svg {
  width: 20px;
  height: 20px;
}
.think summary b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
  color: #3d2a00;
}
.think summary small {
  font-size: 12.5px;
  color: #8a6a1c;
}
.think summary > svg {
  width: 18px;
  height: 18px;
  color: #8a6a1c;
  transition: transform 0.2s ease;
}
.think[open] summary > svg {
  transform: rotate(180deg);
}
.think__w {
  position: relative;
  padding: 0 16px 16px 66px;
}
.think__w p {
  font-size: 15.5px;
  line-height: 1.5;
  color: #4a3500;
}
.think__w .shots {
  margin-top: 10px;
}
.think__dots {
  position: absolute;
  left: 66px;
  top: 2px;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.think__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c79a2e;
  opacity: 0;
}
.think[open] .think__dots i {
  animation: dots 0.75s ease both;
}
.think[open] .think__dots i:nth-child(2) {
  animation-delay: 0.12s;
}
.think[open] .think__dots i:nth-child(3) {
  animation-delay: 0.24s;
}
.think[open] .think__w p,
.think[open] .think__w .shots {
  animation: enter 0.35s 0.75s ease both;
}
@keyframes dots {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-4px);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hp__tl {
  display: grid;
  gap: 0;
}
.hp__tl li {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
}
.hp__tl li::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}
.hp__tl li:last-child::before {
  display: none;
}
.hp__tl li > div {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 22px;
}
.hp__tl li > div::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--surface);
}
.hp__tl li.is-mile > div::before {
  background: var(--ok);
}
.hp__when {
  padding-top: 2px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  text-align: right;
}
.hp__tl p {
  font-size: 15.5px;
  line-height: 1.45;
}
.hp__tl li.is-mile p {
  font-weight: 650;
}
.hp__tl small {
  font-size: 12.5px;
  color: var(--text-3);
}
.hp__pm {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
}
.hp__pm > div {
  flex: 1;
  min-width: 120px;
}
.hp__pm b {
  display: block;
}
.hp__pm small {
  color: var(--text-3);
}
.hp__foot {
  margin: 28px 22px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-3);
}
.hp__foot svg {
  display: inline;
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* ── Estimator ───────────────────────────────────────── */
.est {
  display: grid;
  gap: 16px;
  align-items: start;
}
.est__in {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
}
.field__label output {
  font-size: 13.5px;
  color: var(--brand-600);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--brand) var(--fill, 50%), var(--line) var(--fill, 50%));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--brand);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand), 0 3px 8px rgba(15, 20, 25, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}
.est__hero {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: 20px;
  background: #14181d;
  color: #fff;
}
.est__hero .stat__label {
  color: #9aa4af;
}
.est__hero .muted {
  color: #b5bcc4;
}
.est__big {
  margin: 4px 0;
  font-size: clamp(32px, 9vw, 50px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.est__big small {
  font-size: 0.4em;
  font-weight: 400;
  color: #9aa4af;
}
.est__side {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #2a3037;
}
.est__side b {
  display: block;
  font-size: 18px;
  font-weight: 650;
}
.est__side small {
  font-size: 12.5px;
  color: #9aa4af;
}
.est .callout {
  margin: 0;
}

/* ── Playbook library, Ask ───────────────────────────── */
.pbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pb {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.pb:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.pb h3 {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.3;
}
.pb__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.ask {
  display: grid;
  gap: 16px;
  max-width: 900px;
}
.ask__bar {
  display: flex;
  gap: 8px;
}
.ask__bar input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--sh), inset 0 0 0 1px var(--line);
  font-size: 16px;
}
.ask__bar input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.ask__bar .btn {
  min-height: 52px;
}
.answer {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--card);
  box-shadow: var(--sh);
}
.answer__q {
  font-size: 13.5px;
  color: var(--text-3);
}
.answer__lead {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.answer__src {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

/* ── Vendors on a job ────────────────────────────────── */
.vends {
  margin-bottom: 24px;
}
.vends--labor {
  margin-bottom: 0;
}
.vends__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.vends__fine {
  margin: -8px 0 24px;
}
.vend {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
}
/* whoever is on site today is the one you're most likely to need */
.vend--active {
  box-shadow: var(--sh), inset 0 0 0 1.5px var(--brand);
}
.vend__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.vend__badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vend--active .vend__badge {
  background: var(--brand);
  color: #fff;
}
.vend__badge--icon svg {
  width: 22px;
  height: 22px;
}
.vend__head h3 {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.25;
}
.vend__head h3 a:hover {
  color: var(--brand-600);
}
.vend__head p {
  font-size: 13px;
  color: var(--text-3);
}
.vend__scope {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.vend__scope small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.vend__people {
  display: grid;
  border-radius: 12px;
  background: var(--bg);
}
.vend__people li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 8px 9px 12px;
}
.vend__people li + li {
  border-top: 1px solid var(--line);
}
.vend__people li > span:first-child {
  min-width: 0;
}
.vend__people b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.vend__people small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
/* a phone number is read off the screen as often as it's tapped: never split it */
.vend__people .vend__num {
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow-wrap: normal;
}
.vend__people--page {
  max-width: 560px;
  margin-top: 12px;
}
.reach {
  display: flex;
  flex: none;
  gap: 6px;
}
.reach__a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--brand-600);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.reach__a:hover {
  background: var(--brand-50);
}
.reach__a:active {
  transform: scale(0.94);
}
/* calling is the point; texting and email are the alternatives */
.reach__a:first-child {
  background: var(--brand);
  box-shadow: none;
  color: #fff;
}
.reach__a:first-child:hover {
  background: var(--brand-600);
}
.reach__a svg {
  width: 19px;
  height: 19px;
}
.vend__last {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecf6f8;
}
.vend__last span {
  font-size: 12.5px;
  font-weight: 600;
  color: #0b6077;
}
.vend__last p {
  font-size: 14.5px;
  line-height: 1.45;
}
.vend__last .tlink {
  font-size: 13px;
}
.vend__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.vend__foot > span {
  flex: 1 1 190px;
  min-width: 0;
}
.vend__warn {
  color: var(--red-ink);
  font-weight: 650;
}
.who {
  display: grid;
}
.who li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.who li:first-child {
  padding-top: 0;
}
.who li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.who li > span:first-child {
  min-width: 0;
}
.who b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.who a:hover b {
  color: var(--brand-600);
}
.who small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ── Sheets and dialogs ──────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  align-items: end;
}
.sheet[hidden] {
  display: none;
}
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sheet__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(88dvh, 760px);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--sh-2);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
.sheet.is-on .sheet__scrim {
  opacity: 1;
}
.sheet.is-on .sheet__panel {
  transform: none;
  opacity: 1;
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px 22px;
}
.sheet__head h2 {
  font-size: 20px;
  font-weight: 700;
}
.sheet__body {
  display: grid;
  gap: 14px;
  padding: 4px 18px 22px;
  overflow-y: auto;
}
.choices {
  display: grid;
  gap: 8px;
}
.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.choice:hover {
  background: var(--surface-2);
}
.choice.is-on {
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.choice b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.choice small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.choice > svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}
.choice.is-on > svg {
  color: var(--brand);
}
.choice--job .thumb {
  width: 64px;
}
.choice__flag {
  margin-top: 3px;
  color: var(--text) !important;
  font-weight: 650;
}
.askform {
  display: grid;
  gap: 16px;
}
.askform label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
}
.askform select,
.askform textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  resize: vertical;
}
.askform select {
  height: 48px;
  padding: 0 12px;
}
.askform select:focus,
.askform textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.sugg {
  display: grid;
  gap: 8px;
}
.askform__foot {
  display: grid;
  gap: 12px;
}
.askform__foot .btn {
  width: 100%;
}
.dlg {
  width: min(560px, calc(100vw - 24px));
  max-height: min(640px, calc(100dvh - 40px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.dlg::backdrop {
  background: rgba(15, 20, 25, 0.45);
}
.dlg--search {
  margin-top: min(12vh, 110px);
}
.search {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}
.search__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.search__bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-3);
}
.search__bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  outline: none;
}
.search__list {
  overflow-y: auto;
  padding: 6px;
}
.search__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.search__list li:hover {
  background: var(--bg);
}
.search__list li[aria-selected="true"] {
  background: var(--brand-50);
}
.search__list b {
  font-weight: 600;
  font-size: 15px;
}
.search__list span {
  flex: none;
  font-size: 12.5px;
  color: var(--text-3);
}
.search__list .search__none {
  display: block;
  cursor: default;
  color: var(--text-3);
  font-size: 14.5px;
}
.search__list .search__none:hover {
  background: none;
}

/* ── The app: install, no signal, reset ──────────────── */
.top__off {
  display: none;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 15px;
  background: #fdf1d7;
  color: #7a5300;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.top__off svg {
  width: 15px;
  height: 15px;
}
body.is-offline .top__off {
  display: inline-flex;
}
@media (max-width: 759px) {
  .top__off {
    justify-content: center;
    width: 30px;
    padding: 0;
  }
  .top__off span,
  body.is-offline .top__btn--tour span {
    display: none;
  }
}
.getapp {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 6px 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--sh);
}
.getapp img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.getapp b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.25;
}
.getapp small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.getapp .iconbtn {
  width: 34px;
  height: 34px;
  background: none;
  box-shadow: none;
  color: var(--text-3);
}
.how {
  display: grid;
  gap: 14px;
}
.how li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
}
.how__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 14px;
  font-weight: 700;
}
.how li > span:last-child {
  padding-top: 3px;
}
.how__i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -4px 1px;
  vertical-align: middle;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--brand-600);
}
.how__i svg {
  width: 17px;
  height: 17px;
}
.how__lede {
  font-size: 16px;
  font-weight: 550;
}
.qr {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.qr img {
  width: 184px;
  height: 184px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.qr > div {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.qr p:not(.how__lede) {
  font-size: 14.5px;
  color: var(--text-2);
}
.sheet__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
/* controls are for pressing, not for selecting the words on them */
.nav,
.app .btn,
.vopt,
.choice,
.tabs a {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* an iPhone zooms the whole page when a field with smaller type takes focus */
@media (pointer: coarse) {
  .app input:not([type="range"]),
  .app select,
  .app textarea {
    font-size: 16px;
  }
}

/* ── Guided tour ─────────────────────────────────────── */
.tour {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 200;
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #14181d;
  color: #fff;
  box-shadow: var(--sh-2), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
body.is-focus .tour,
body.is-home .tour {
  bottom: 12px;
}
.tour[hidden] {
  display: none;
}
.tour__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #2a3037;
}
.tour__bar i {
  display: block;
  height: 100%;
  background: #6ea0ff;
  transition: width 0.3s ease;
}
.tour__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa4af;
}
.tour__x {
  padding: 4px 8px;
  margin-right: -8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c4cad1;
}
.tour__x:hover {
  color: #fff;
  background: #2a3037;
}
.tour h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tour p {
  font-size: 14.5px;
  line-height: 1.5;
  color: #d5dae0;
}
.tour__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.app .tour .btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #56606b;
  color: #fff;
}
.app .tour .btn--ghost:hover {
  background: #2a3037;
}
body.has-tour #view {
  padding-bottom: 320px;
}

/* ── Tablet: a rail down the left ────────────────────── */
@media (min-width: 760px) {
  body.app {
    --gut: 24px;
    --rail: 88px;
    padding: 0 0 0 var(--rail);
  }
  .nav {
    inset: 0 auto 0 0;
    width: var(--rail);
    height: auto;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--surface);
    border-top: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .nav__brand {
    display: grid;
    place-items: center;
    padding: 4px 0 10px;
  }
  .nav__brand svg {
    width: 36px;
    height: 36px;
  }
  .nav__brand span {
    display: none;
  }
  .nav__cta {
    order: 0;
    justify-self: stretch;
    align-content: center;
    gap: 2px;
    width: auto;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 650;
    transform: none;
    box-shadow: 0 8px 18px -8px rgba(31, 95, 214, 0.7);
  }
  .nav__cta .nav__s {
    display: block;
  }
  .nav__cta:active {
    transform: scale(0.96);
  }
  .nav__items {
    display: grid;
    gap: 2px;
  }
  .nav__item,
  .nav__item--bar {
    display: grid;
    justify-items: center;
    gap: 3px;
    order: 0;
    padding: 9px 2px 7px;
    font-size: 11px;
  }
  .nav__item:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .nav__item.is-on {
    background: var(--brand-50);
    color: var(--brand-600);
  }
  .nav .nav__item--more {
    display: none;
  }
  .nav__n {
    top: 5px;
    left: calc(50% + 8px);
  }
  .nav__me {
    display: grid;
    place-items: center;
    margin-top: auto;
    padding: 8px 0;
    border-radius: 14px;
  }
  .nav__me:hover {
    background: var(--surface-2);
  }
  .nav__who,
  .nav__me > svg {
    display: none;
  }
  .top {
    gap: 10px;
  }
  .crumbs {
    font-size: 14px;
    font-weight: 600;
  }
  .crumbs a,
  .crumbs span {
    display: inline;
    margin-right: 8px;
  }
  .top__btn span {
    display: inline;
  }
  .top__btn {
    padding: 0 13px;
  }
  .page-h h1,
  .jobhead h1 {
    font-size: 30px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .stat__value {
    font-size: 26px;
  }
  .horizon {
    padding: 12px 8px;
  }
  .horizon__q {
    display: block;
  }
  .horizon__name {
    font-size: 15px;
  }
  .job--photo {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
  .job__photo {
    aspect-ratio: auto;
    min-height: 200px;
  }
  .job__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .job__next {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }
  .dates {
    grid-template-columns: auto minmax(40px, 1fr) auto;
    gap: 16px;
    align-items: start;
  }
  .dates__bar {
    display: block;
    position: relative;
    height: 2px;
    margin-top: 30px;
    background: var(--brand-100);
  }
  .phases span {
    display: block;
  }
  .jobhead {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 18px 22px;
  }
  .jobhead__photo .ph {
    aspect-ratio: 4 / 3;
  }
  .jobhead__actions {
    grid-column: 1 / -1;
  }
  .jobhead__actions .btn {
    flex: none;
  }
  .plan__item {
    grid-template-columns: 76px 26px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .plan__time {
    grid-column: auto;
    padding-top: 3px;
  }
  .three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .visit__full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visit__wide {
    grid-column: 1 / -1;
  }
  .bullet__row {
    grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr) minmax(120px, auto);
  }
  .bullet__track,
  .bars__track {
    grid-column: auto;
    order: 0;
  }
  .bars__row {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) 70px;
  }
  .why {
    grid-template-columns: 116px minmax(0, 1fr);
  }
  .why dt {
    margin-top: 3px;
  }
  .est__hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    padding: 26px;
  }
  .est__side {
    padding: 0 0 0 24px;
    border-top: 0;
    border-left: 1px solid #2a3037;
    align-content: center;
  }
  .cellphoto {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .thumb {
    width: 72px;
  }
  .tl__body header em {
    display: inline;
    margin-left: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-3);
  }
  .sheet {
    align-items: center;
    justify-items: center;
    padding: 24px;
  }
  .sheet__panel {
    width: min(480px, 100%);
    border-radius: 22px;
  }
  .sheet__panel--wide {
    width: min(600px, 100%);
  }
  .sheet__panel--how {
    width: min(520px, 100%);
  }
  .vends__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qr {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .qr > div {
    justify-items: start;
  }
  .askform__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .askform__foot .btn {
    width: auto;
  }
  .tour {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: 390px;
  }
  body.has-tour #view {
    padding-bottom: 80px;
  }
  .vdone__cta {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
  }
  .hp {
    margin: 28px auto 60px;
    min-height: 0;
    border-radius: 24px;
    box-shadow: var(--sh-2);
    overflow: hidden;
  }
  .hp--embed {
    margin: 0;
  }
  .hp__head {
    padding: 40px 36px 32px;
  }
  .hp__head h2 {
    font-size: 40px;
  }
  .hp__steps {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  .hp__sec {
    padding: 28px 36px 0;
  }
  .hp__two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .hp__foot {
    margin: 32px 36px 0;
  }
}

/* ── Desk: a full sidebar, two columns ───────────────── */
@media (min-width: 1100px) {
  body.app {
    --gut: 32px;
    --rail: 256px;
  }
  .nav {
    padding: 18px 14px 14px;
    gap: 4px;
  }
  .nav__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 8px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }
  .nav__brand svg {
    width: 34px;
    height: 34px;
  }
  .nav__brand span {
    display: inline;
  }
  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 650;
  }
  .nav__cta svg {
    width: 20px;
    height: 20px;
  }
  .nav__cta .nav__l {
    display: inline;
  }
  .nav__cta .nav__s {
    display: none;
  }
  .nav__item,
  .nav__item--bar {
    display: flex;
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14.5px;
  }
  .nav__item svg {
    width: 20px;
    height: 20px;
  }
  .nav__l {
    display: inline;
  }
  .nav__s {
    display: none;
  }
  .nav__n {
    position: static;
    margin-left: auto;
  }
  .nav__me {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 10px;
    place-items: center start;
    padding: 10px;
    box-shadow: inset 0 0 0 1px var(--line);
    text-align: left;
  }
  .nav__who {
    display: block;
    min-width: 0;
  }
  .nav__who b {
    display: block;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav__who small {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav__me > svg {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--text-3);
  }
  .top__btn kbd {
    display: inline;
  }
  .cols {
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    gap: 24px;
  }
  .needs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jobhead {
    grid-template-columns: 220px minmax(0, 1fr) auto;
  }
  .jobhead__actions {
    grid-column: auto;
  }
  .est {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
  }
  .est__in {
    position: sticky;
    top: calc(var(--top-h) + 16px);
  }
  .vbody {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
  .vside {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: var(--card);
    background: var(--surface);
    box-shadow: var(--sh);
  }
  .vside h3 {
    font-size: 14px;
    font-weight: 700;
  }
  .tabs {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Print: a job page becomes a clean report ────────── */
@media print {
  body.app {
    padding: 0;
    background: #fff;
    font-size: 12px;
  }
  .nav,
  .top,
  .tabs,
  .toast,
  .tour,
  .actions,
  .jobhead__actions,
  .seg,
  .tip,
  .sheet,
  .btn,
  .tlink,
  .hbar {
    display: none !important;
  }
  #view {
    max-width: none;
    padding: 0;
  }
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel,
  .stat,
  .step,
  .job,
  .visit,
  tr {
    break-inside: avoid;
    box-shadow: 0 0 0 1px #c9cec7 !important;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .status,
  .phases i b,
  .bullet__track i,
  .bars__track i,
  .meter i,
  .score,
  .check.is-on,
  .sitechip,
  .oq {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tabpane {
    margin-top: 18px;
  }
  .reach {
    display: none;
  }
  .vends__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vend {
    break-inside: avoid;
    box-shadow: 0 0 0 1px #c9cec7 !important;
  }
  .visit__more summary {
    list-style: none;
    color: var(--text-3);
  }
  .vpin,
  .think,
  .hp__head,
  .vend__badge,
  .vend__last,
  .loop li {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ── The real workspace ──────────────────────────────────
   Signing in, forms, the account sheet and the few parts a real job has that the sample ones didn't. */
body.is-booting .nav,
body.is-booting .top {
  visibility: hidden;
}
body.is-booting #view::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 32vh auto 0;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body.is-live .top__btn--tour,
body.is-live .top__in {
  display: none;
}
.top__in {
  color: var(--brand);
}
.page-h__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.tlink--mark {
  color: var(--red-ink);
}

.auth {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: max(28px, 8vh) 22px 48px;
}
.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.auth__brand svg {
  width: 32px;
  height: 32px;
}
.auth h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.auth__lede {
  margin-top: -8px;
  color: var(--text-2);
}
.auth .btn--lg {
  width: 100%;
  justify-content: center;
}
.auth .lform input:not([type="file"]):not([type="checkbox"]) {
  background: var(--surface);
}
.auth__alt {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.auth__more {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.auth__more summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.auth__more form {
  margin-top: 16px;
}

.lform input:not([type="file"]):not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.lform input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.lform input::placeholder,
.lform textarea::placeholder {
  color: var(--text-3);
}
.lform label small {
  margin-top: -3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-3);
}
.lform__two {
  display: grid;
  gap: 16px;
}
.lform button:disabled {
  opacity: 0.6;
}

.acct__me {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.acct__me b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}
.acct__me small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.invites {
  display: grid;
  gap: 10px;
}
.invites li {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}
.invites b {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.invites small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.invites__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job__none {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.job__none svg {
  width: 30px;
  height: 30px;
  opacity: 0.6;
}

.linkbox {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.linkbox__t {
  display: grid;
  gap: 4px;
}
.linkbox__t b {
  font-size: 15.5px;
  font-weight: 650;
}
.linkbox__t small {
  font-size: 13.5px;
  color: var(--text-2);
}
.linkbox__t code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.linkbox__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 759px) {
  /* room for the sign-in link beside the tour */
  body.has-cloud .top__btn--tour span {
    display: none;
  }
}
@media (min-width: 520px) {
  .lform__two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.is-booting #view::before {
    animation: none;
  }
}
@media print {
  .linkbox {
    display: none;
  }
}

/* ── Profiles, properties and the photo record ───────── */
.auth--wide {
  width: min(100%, 640px);
}
.profile {
  max-width: 760px;
}
.lform__set {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.lform__set legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lform__set + .lform__set {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.lform .askform__foot .btn--lg {
  justify-content: center;
}
.picks {
  display: grid;
  gap: 8px;
  max-height: 340px;
  padding: 2px;
  overflow-y: auto;
}
.askform .pick {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 400;
  cursor: pointer;
}
.auth .pick {
  background: var(--surface);
}
.pick[hidden] {
  display: none;
}
.pick input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.askform .pick:has(input:checked) {
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.pick b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.pick small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}

/* a "take a photo" button is a label around the file chooser */
label.btn {
  position: relative;
  cursor: pointer;
}
label.btn:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.pbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.pbar--panel {
  margin-top: 12px;
}
.pfilter {
  margin-bottom: 14px;
}
.pday {
  margin-bottom: 22px;
}
.pday h3 {
  margin: 0 0 10px 2px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-2);
}
.pfeed {
  display: grid;
  gap: 12px;
}
.pcard {
  display: grid;
  overflow: hidden;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
}
.pcard__img .ph {
  height: 100%;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.pcard__body {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 14px 16px 16px;
}
.pcard__who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.pcard__who b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
}
.pcard__who small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.pcard__who time {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
}
.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard__sum {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pcard__sum--wait,
.pcard__sum--none {
  color: var(--text-3);
}
.pcard__sum--wait {
  animation: wait 1.4s ease-in-out infinite;
}
@keyframes wait {
  50% {
    opacity: 0.45;
  }
}
.pcard__next {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand-50);
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.pcard__next b {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--brand-600);
}
.pcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pcard__foot .muted {
  font-size: 12.5px;
}
.pcard__foot .muted svg {
  display: inline;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}
.pcard__acts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard__fix .askform__foot .btn {
  width: auto;
}

.crewjob .job__photo {
  display: block;
}
/* two photo buttons and the share and print icons don't fit one row of a phone */
.jobhead__actions:has(label.btn) {
  flex-wrap: wrap;
}
.crewjob h3 a {
  color: inherit;
}
.choice--photo {
  grid-template-columns: minmax(0, 1fr);
}
.people__add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.people__add select,
.team__can {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.people__add select {
  flex: 1;
}
.people .iconbtn {
  width: 34px;
  height: 34px;
  flex: none;
}
.team li {
  flex-wrap: wrap;
}
.team__acts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (min-width: 760px) {
  .pcard {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
  .pcard__img .ph {
    aspect-ratio: auto;
    min-height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcard__sum--wait {
    animation: none;
  }
}
@media print {
  .pbar,
  .pfilter,
  .pcard__acts,
  .people__add {
    display: none;
  }
  .pcard {
    break-inside: avoid;
    box-shadow: 0 0 0 1px #c9cec7;
  }
}

/* ── Continue with Google ────────────────────────────── */
.app .btn--google {
  width: 100%;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.app .btn--google:hover {
  background: var(--surface-2);
}
.app .btn--google svg {
  width: 18px;
  height: 18px;
}
.auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.auth__or::before,
.auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Start or join a company, and the owner's invite ───── */
.choice {
  display: grid;
  gap: 16px;
}
.choice__card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.choice__card h2 {
  font-size: 18px;
}
.choice__says {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}
.choice__says.is-off {
  color: var(--text-2);
}
@media (min-width: 700px) {
  .auth--wide:has(.choice) {
    width: min(100%, 820px);
  }
  .choice {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.partner > span:first-child {
  display: grid;
  gap: 2px;
}
.partner small {
  font-size: 13px;
  color: var(--text-2);
}
.partner__acts {
  display: flex;
  gap: 8px;
}
.bigcode {
  margin: 14px 0 4px;
  padding: 18px 12px;
  border-radius: 16px;
  background: var(--bg);
  font-size: clamp(28px, 9vw, 40px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  user-select: all;
}

/* ── Inspections ───────────────────────────────────────── */
.ihead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ihead h2 {
  font-size: 22px;
}
.isaid {
  margin-bottom: 14px;
}
.isaid__note {
  display: block;
  margin-top: 6px;
  white-space: pre-wrap;
}
.isaid__tr {
  display: block;
  margin-top: 8px;
}
.isaid__tr select {
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
}
.ilinkbox {
  margin-bottom: 14px;
}
.ilink {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  user-select: all;
}
.ichecks {
  display: grid;
  gap: 10px;
}
.icheck {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}
.icheck__h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icheck__h b {
  flex: 1;
  min-width: 0;
}
.icheck__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: #fff;
}
.icheck.is-done .icheck__mark {
  background: var(--brand);
  box-shadow: none;
}
.icheck__mark svg {
  width: 14px;
  height: 14px;
}
.ishots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}
.ishot {
  display: grid;
  gap: 5px;
  margin: 0;
}
.ishot [data-gallery] {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.ishot [data-gallery] img,
.ishot [data-gallery] .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ishot figcaption {
  display: grid;
  gap: 1px;
  font-size: 12px;
  color: var(--text-3);
}
.ishot__tag {
  justify-self: start;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.ishot__tag--ok {
  background: var(--brand-50);
  color: var(--brand);
}
.ishot__tag--no {
  background: #fdf3e0;
  color: #9a5b00;
}
.iadd {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.iadd input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--surface);
}
.iform__foot {
  justify-content: flex-end;
  gap: 8px;
}
.cam {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #000;
  color: #fff;
}
.cam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cam.is-flash video {
  opacity: 0.35;
}
.cam__top,
.cam__bar {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.cam__top {
  top: 0;
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent);
}
.cam__bar {
  bottom: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.cam__what {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cam__what small {
  font-size: 13px;
  opacity: 0.85;
}
.cam__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.cam__x svg {
  width: 20px;
  height: 20px;
}
.cam__n {
  flex: 1;
  font-size: 14px;
}
.cam__go {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.cam__go:active {
  transform: scale(0.94);
}
.cam__done {
  flex: 1;
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  min-height: 44px;
}

/* ── Phone: the look from the store listing ──────────────
   A white bar with the mark in it, stages and job sections as plain underlined tabs, and each job as a
   short row so three or four fit on a screen. Wider screens keep the full cards. */
.top__mark,
.findrow,
.job__bar,
.job__cells,
.job__q {
  display: none;
}
@media (max-width: 759px) {
  /* the bar: the mark, the page's name, and quieter buttons */
  .top {
    gap: 4px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
  }
  body.app:has(.horizons) .top,
  body.app:has(#view > .tabs) .top {
    border-bottom-color: transparent; /* the tabs under it carry the line */
  }
  .top__mark {
    display: block;
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0 4px 0 -4px;
    color: var(--text);
  }
  .top__back:not([hidden]) + .top__mark {
    display: none;
  }
  .crumbs {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
  }
  .top__btn,
  .top__btn--tour,
  .top__me {
    background: none;
    box-shadow: none;
    color: var(--text);
  }
  .top__btn {
    padding: 0 8px;
  }
  .top__btn--tour:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .top__in {
    color: var(--brand);
  }
  .top__me {
    gap: 2px;
    padding: 0 0 0 2px;
  }
  .top__me > span:not(.avatar) {
    display: none;
  }
  body.app:has(.findbar) .top__btn--search {
    display: none; /* the list has its own search field */
  }

  /* the list page: its name is already in the bar, so the heading is kept for screen readers only */
  .page-h--list {
    margin: 0;
  }
  .page-h--list > div:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .page-h--list .seg,
  .page-h--list .page-h__acts {
    display: none;
  }
  .horizons {
    display: flex;
    gap: 0;
    margin: -8px calc(-1 * var(--gut)) 12px;
    padding: 0 var(--gut);
    border-radius: 0;
    background: var(--surface);
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .horizon {
    flex: 1;
    padding: 11px 2px 10px;
    border-radius: 0;
  }
  .horizon.is-on {
    background: none;
    box-shadow: inset 0 -2px 0 var(--brand);
  }
  .horizon__name {
    font-size: 14px;
    font-weight: 600;
  }
  .horizon.is-on .horizon__name {
    color: var(--brand-600);
  }
  .horizon__n {
    display: none;
  }
  .findrow {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  .findbar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--text-3);
    font-size: 14px;
  }
  .findbar svg {
    flex: none;
    width: 16px;
    height: 16px;
  }
  .filt {
    position: relative;
    flex: none;
  }
  .filt summary,
  .findrow__add {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--text-2);
    cursor: pointer;
  }
  .filt summary {
    list-style: none;
  }
  .filt summary::-webkit-details-marker {
    display: none;
  }
  .filt summary svg,
  .findrow__add svg {
    width: 17px;
    height: 17px;
  }
  .filt[open] summary {
    background: var(--text);
    box-shadow: none;
    color: #fff;
  }
  .filt .seg {
    position: absolute;
    right: 0;
    top: 46px;
    z-index: 20;
    white-space: nowrap;
    box-shadow: var(--sh-2);
  }
  .findrow__add {
    background: var(--brand);
    box-shadow: none;
    color: #fff;
  }

  /* a job as a row */
  .jobs {
    gap: 10px;
  }
  .job--row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px 12px;
    align-items: start;
    padding: 12px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(15, 20, 25, 0.04);
  }
  .job--row:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 20, 25, 0.04);
  }
  .job--row .job__photo {
    grid-row: 1 / span 2;
    aspect-ratio: 9 / 8;
    border-radius: 8px;
  }
  .job--row .job__main {
    display: contents; /* its parts line up on the card's own grid, beside and under the photo */
  }
  .job--row .job__top {
    grid-column: 2;
    gap: 8px;
  }
  .job--row .job__top > div {
    min-width: 0;
  }
  .job--row .job__top h3 {
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: -0.015em;
  }
  .job--row .job__top .muted {
    margin-top: 1px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .job--row .job__tag,
  .job--row .phases,
  .job--row .job__line,
  .job--row .job__stats,
  .job--row .job__next,
  .job--row .job__ask,
  .job--row .dates,
  .job--row .job__top > .pill {
    display: none;
  }
  /* health is the colour of the bar here, so the badge shrinks to its dot */
  .job--row .job__top .status {
    flex: none;
    gap: 0;
    margin-top: 6px;
    padding: 0;
    background: none;
    font-size: 0;
  }
  .job--row .job__q {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 3px;
    height: 21px;
    padding: 0 7px;
    border-radius: 11px;
    background: #14181d;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
  }
  .job__q svg {
    width: 12px;
    height: 12px;
  }
  .job--row .job__bar {
    display: flex;
    grid-column: 2;
    align-items: center;
    align-self: end;
    gap: 10px;
  }
  .job__bar .meter {
    flex: 1;
    height: 7px;
    margin: 0;
    border-radius: 4px;
    background: var(--surface-2);
  }
  .job__bar .meter i {
    border-radius: 4px;
    background: var(--ok);
  }
  .job__bar--watch .meter i {
    background: var(--warn);
  }
  .job__bar--risk .meter i {
    background: var(--red);
  }
  .job__bar b {
    flex: none;
    font-size: 12.5px;
    font-weight: 650;
    white-space: nowrap;
  }
  .job--row .job__cells {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  .job__cells dt {
    font-size: 11.5px;
    color: var(--text-3);
  }
  .job__cells dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .job__cells > div:nth-child(2) {
    text-align: center;
  }
  .job__cells > div:nth-child(3) {
    text-align: right;
  }

  /* a job's sections, as underlined tabs directly under the bar */
  .tabs {
    gap: 20px;
    margin-top: 0;
    padding: 0 var(--gut);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .tabs a {
    padding: 12px 0 11px;
    border-radius: 0;
  }
  .tabs a:hover {
    background: none;
  }
  .tabs a.is-on {
    background: none;
    color: var(--brand-600);
    box-shadow: inset 0 -2px 0 var(--brand);
  }
  #view:has(> .jobhead) {
    display: flex;
    flex-direction: column;
  }
  #view:has(> .jobhead) > .tabs {
    order: -1;
    margin-top: -8px;
    margin-bottom: 14px;
  }
  #view:has(> .jobhead) > .phases {
    margin-bottom: 16px; /* the tabs used to sit between the phases and what follows */
  }
}

/* ── Talking a photo's reading over ────────────────────── */
.ptalk__open {
  justify-self: start;
  margin-top: 8px;
  font-size: 13.5px;
}
.ptalk {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ptalk__turn {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.ptalk__turn b {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
}
.ptalk__turn b svg {
  width: 14px;
  height: 14px;
}
.ptalk__turn p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ptalk__turn--me {
  margin-left: 28px;
  background: var(--brand-50);
}
.ptalk__turn--ai {
  margin-right: 28px;
  background: var(--bg);
}
.ptalk__wait {
  font-size: 13.5px;
  color: var(--text-3);
}
.ptalk__form {
  display: grid;
  gap: 8px;
}
.ptalk__form textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--surface);
  resize: vertical;
}
.ptalk__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

/* ── The kind-of-job picker ────────────────────────────── */
.kind {
  display: grid;
  gap: 6px;
}
.kind__list {
  display: grid;
  gap: 2px;
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.kind__list[hidden] {
  display: none;
}
.kind__opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 14.5px;
}
.kind__opt[hidden] {
  display: none;
}
.kind__opt b {
  font-weight: 600;
}
.kind__opt small {
  flex: none;
  font-size: 12.5px;
  color: var(--text-3);
}
.kind__opt:hover,
.kind__opt:focus-visible {
  background: var(--surface-2);
}
.kind__opt[aria-selected="true"] {
  background: var(--brand-50);
  color: var(--brand);
}
.kind__none {
  padding: 8px 12px;
}
.pminvite[hidden] {
  display: none;
}

/* ── The plan and the AI allowance ───────────────────────
   The plumb bob: a line down the right edge with a weight on it. It hangs at the top with a full
   allowance, drops as credits are used, and rests on the ground line when none are left. */
.bob {
  position: fixed;
  z-index: 55;
  right: 0;
  top: calc(var(--top-h) + 10px);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px);
  width: 22px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  color: var(--brand);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bob[hidden] {
  display: none;
}
.bob[data-state="low"],
.bob[data-state="hold"] {
  color: #b37600;
}
.bob[data-state="out"] {
  color: var(--red);
}
.bob__track {
  position: relative;
  width: 100%;
  /* a faint rule behind the line, with a mark at each quarter */
  background:
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%) 50% 0 / 7px 100% no-repeat;
}
.bob__drop {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  margin-left: -6px;
  display: grid;
  justify-items: center;
  transform-origin: 50% 0;
}
.bob__line {
  width: 1.5px;
  height: var(--len, 0px);
  background: currentColor;
  transition: height 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.bob__weight {
  width: 12px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(15, 20, 25, 0.18));
}
.bob__ground {
  width: 16px;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.bob[data-state="out"] .bob__ground {
  opacity: 1;
}
.bob__n {
  margin-top: 3px;
  font: 600 9px/1 var(--f-mono);
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.bob.is-busy .bob__drop {
  animation: bob-swing 1.5s ease-in-out infinite;
}
@keyframes bob-swing {
  0%,
  100% {
    transform: rotate(calc(var(--swing, 2deg) * -1));
  }
  50% {
    transform: rotate(var(--swing, 2deg));
  }
}
.bob:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: 6px;
}
body.has-bob #view {
  padding-right: calc(var(--gut) + 12px);
}
body.has-bob .top {
  padding-right: calc(var(--gut) + 4px);
}
body.is-focus .bob,
body.is-home .bob,
body.is-booting .bob {
  display: none;
}
body.is-focus.has-bob #view,
body.is-home.has-bob #view {
  padding-right: 0;
}
@media (min-width: 760px) {
  .bob {
    width: 34px;
    bottom: 14px;
  }
  .bob__n {
    font-size: 10.5px;
  }
  .bob__weight {
    width: 14px;
    height: 21px;
  }
  .bob__drop {
    width: 14px;
    margin-left: -7px;
  }
  body.has-bob #view {
    padding-right: calc(var(--gut) + 22px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bob.is-busy .bob__drop {
    animation: none;
  }
  .bob__line {
    transition: none;
  }
}
@media print {
  .bob {
    display: none;
  }
}

/* in the menu under your name */
.planrow {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.planrow b,
.planrow small {
  display: block;
}
.planrow small {
  color: var(--text-2);
  font-size: 13px;
}
.planrow > svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}
.planrow__bob {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
}
.planrow__bob svg {
  width: 10px;
  height: 15px;
  fill: currentColor;
}
.planrow__bar,
.gauge__bar,
.use__bar {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.planrow__bar {
  margin-top: 7px;
}
.planrow__bar i,
.gauge__bar i,
.use__bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--brand);
}
.planrow[data-state="low"] .planrow__bar i,
.gauge[data-state="low"] .gauge__bar i,
.gauge[data-state="hold"] .gauge__bar i {
  background: #d99a1c;
}
.planrow[data-state="out"] .planrow__bar i,
.gauge[data-state="out"] .gauge__bar i {
  background: var(--red);
}
.partner--plan {
  background: #fff8e8;
  box-shadow: inset 0 0 0 1.5px #d99a1c;
}

/* Plan & AI */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--text);
}
.notice > span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 260px;
}
.notice svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}
.gauge {
  margin: 4px 0 20px;
}
.gauge__n {
  font-size: 17px;
  color: var(--text-2);
}
.gauge__n b {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.gauge__bar {
  height: 10px;
  margin: 12px 0 10px;
}
.gauge__sub {
  color: var(--text-2);
}
.gauge__warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: #7a5200;
}
.gauge[data-state="out"] .gauge__warn {
  background: var(--red-50);
  color: var(--red-ink);
}
.panel .sec-h h2 svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  color: var(--brand);
}
.costs,
.use,
.plan__list,
.plan__every {
  list-style: none;
  margin: 0;
  padding: 0;
}
.costs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
}
.costs li:first-child {
  border-top: 0;
}
.costs b {
  white-space: nowrap;
  font-weight: 600;
}
.use li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(60px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.use b {
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.use__h {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.plannow__name {
  margin: 6px 0 2px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.plannow__name .pill {
  vertical-align: 5px;
}
.plannow__rows {
  margin-top: 12px;
}
.plannow__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.switch {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 4px;
  font-weight: 500;
  cursor: pointer;
}
.switch input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.plansec {
  margin-top: 28px;
  scroll-margin-top: calc(var(--top-h) + 12px);
}
/* on the website, where to buy: the App Store */
.storebuy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.storebuy p { margin: 0; max-width: 62ch; }
.appbadge { display: inline-block; line-height: 0; flex: none; }
.appbadge img { height: 44px; width: auto; }
.plans {
  display: grid;
  gap: 14px;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 4px;
  padding: 20px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
}
.plan.is-pick {
  box-shadow: var(--sh), inset 0 0 0 2px var(--brand);
}
.plan.is-mine {
  box-shadow: var(--sh), inset 0 0 0 2px #1a9e74;
}
.plan header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan h3 {
  font-size: 19px;
  font-weight: 700;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  color: var(--text-2);
}
.plan__price b {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.plan__who {
  margin: 6px 0 10px;
  color: var(--text-2);
}
.plan__list li,
.plan__every li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
}
.plan__list svg,
.plan__every svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #1a9e74;
}
.plan footer {
  margin-top: 14px;
}
.plan footer .btn {
  width: 100%;
  justify-content: center;
}
.plan__every {
  display: grid;
  gap: 0 24px;
  margin-top: 16px;
  color: var(--text-2);
}
.packs {
  display: grid;
  gap: 12px;
}
.pack {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
}
.pack > b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.pack > span {
  color: var(--text-2);
}
.pack p {
  grid-column: 1 / 3;
  font-weight: 600;
}
.pack p small {
  margin-left: 8px;
  font-weight: 400;
  color: var(--text-3);
}
.pack .btn,
.pack .pill {
  grid-column: 3;
  grid-row: 1 / 3;
}
.adminstats {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.inl {
  display: inline;
  color: var(--brand);
  text-decoration: none;
}
.inl:hover {
  text-decoration: underline;
}
.admintable td small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
}
@media (min-width: 700px) {
  .plans,
  .packs,
  .adminstats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan__every {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── The door: who signs up how ── */
.auth__who {
  display: grid;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14.5px;
  text-align: left;
}
.auth__who b {
  color: var(--text);
}
.auth__who .tlink {
  display: inline;
}
/* a homeowner who signed in: who they are, and the way out */
.hbar--mine {
  position: static;
}
.hbar--mine > span b {
  margin-right: 8px;
}
.btn--google + .btn--google {
  margin-top: 10px;
}

/* ── Reviews ── */
.stars {
  color: #e0a100;
  letter-spacing: 1px;
  white-space: nowrap;
}
.stars i {
  font-style: normal;
  color: #d5d9de;
}
.revs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.rev header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.rev p {
  margin-top: 6px;
  white-space: pre-line;
}
.rev__reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--chalk, #1f5fd6);
  background: rgba(31, 95, 214, 0.06);
  border-radius: 0 10px 10px 0;
}
.rev__reply b {
  font-size: 13.5px;
}
.rev {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.revs .rev:first-child {
  padding-top: 0;
  border-top: 0;
}
.rev header span.muted {
  font-size: 13px;
}
.rev > .btn {
  margin-top: 10px;
}
.rev__form {
  margin-top: 10px;
}
.rev__avg {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.rev__avg b {
  font-size: 18px;
}
/* reporting a review, and photos hidden from someone blocked (app-reviews.js, app-report.js) */
.rev header .rev__report {
  margin-left: auto;
  font-size: 13px;
}
.rev > .rows {
  margin-top: 8px;
}
.photos__blocked {
  margin: 0 0 12px;
}
.hp__review .rev {
  padding: 0 0 12px;
  border: 0;
}
.starpick {
  display: flex;
  gap: 4px;
}
.starpick button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  color: #d5d9de;
  cursor: pointer;
}
.starpick button.is-on {
  color: #e0a100;
}
.starpick button:focus-visible {
  outline: 2px solid var(--brand);
  border-radius: 8px;
}

/* ── Drawings: the job's sheets, and the one that is open (app-tools.js) ── */
.sheets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.sheetcard {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 10px 10px 12px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
  color: var(--text);
}
.sheetcard__img {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 7px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sheetcard__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sheetcard b {
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.sheetcard small {
  font-size: 12.5px;
  color: var(--text-3);
}
.pv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.pv__bar b {
  font-size: 16px;
}
.pv__bar .pcard__acts {
  margin-left: auto;
}
.pv__hint {
  min-height: 30px;
  margin: 8px 2px;
  font-size: 13.5px;
  color: var(--text-2);
}
.pv__stage {
  position: relative;
  height: min(68vh, 640px);
  overflow: hidden;
  border-radius: var(--card);
  background: #dfe3e8;
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.pv__stage:not([data-tool="move"]) {
  cursor: crosshair;
}
.pv__canvas {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background: #fff;
  box-shadow: 0 2px 14px rgba(15, 20, 25, 0.18);
}
.pv__canvas img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.pv__canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.pv__canvas polyline,
.pv__canvas polygon {
  fill: none;
  stroke: #e8632b;
  stroke-width: 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pv__canvas polygon {
  fill: rgba(232, 99, 43, 0.16);
}
.pv__canvas polyline.is-draft {
  stroke: var(--brand);
  stroke-dasharray: 7 6;
}
.pv__canvas circle.is-draft {
  fill: var(--brand);
  stroke: #fff;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.pv__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pv__pin,
.pv__label {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.pv__pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8632b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 0 0 2.5px #fff, 0 3px 8px rgba(15, 20, 25, 0.35);
}
.pv__pin.is-done {
  background: #16804e;
}
.pv__label {
  padding: 3px 8px;
  border-radius: 8px;
  background: #fff;
  color: #b8431a;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(232, 99, 43, 0.5), 0 2px 6px rgba(15, 20, 25, 0.2);
}
.pv__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--sh);
}
.pv__zoom button {
  min-width: 42px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
}
.pv__zoom button + button {
  border-left: 1px solid var(--line);
}
.pv__list {
  margin-top: 12px;
  padding: 4px 16px;
  border-radius: var(--card);
  background: var(--surface);
  box-shadow: var(--sh);
}
.pv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pv__row > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pv__row small {
  font-size: 12.5px;
  color: var(--text-3);
}
.pv__shot {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* ── What is drawn over a photo, and the screen for drawing it ── */
.pcard__img {
  position: relative;
}
.mkover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mkover *,
#mksvg * {
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mkover text,
#mksvg text {
  font: 700 44px Inter, system-ui, sans-serif;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 7;
  paint-order: stroke;
}
.mk {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0f1419;
  color: #fff;
}
.mk__bar,
.mk__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.mk__bar {
  padding-top: max(10px, env(safe-area-inset-top));
}
.mk__foot {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.mk__foot span {
  flex: 1;
}
.mk__stage {
  position: relative;
  min-height: 0;
}
.mk__stage img,
.mk__stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mk__stage img {
  object-fit: contain;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.mk__stage svg {
  touch-action: none;
  cursor: crosshair;
}
.mk__colors {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.mk__colors button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.mk__colors button.is-on {
  box-shadow: 0 0 0 3px #fff;
}
.mk .seg {
  background: rgba(255, 255, 255, 0.14);
}
.mk .seg button {
  color: #d5dae0;
}
.mk .seg button[aria-pressed="true"] {
  background: #fff;
  color: #111827;
}
.app .mk .btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* ── Who else has the job open ── */
.here {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 13.5px;
}
.here svg {
  flex: none;
  width: 17px;
  height: 17px;
}

/* ── Calculators ── */
.calc__pick {
  margin-bottom: 16px;
}
.calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}
.calc__out {
  margin: 18px 0 8px;
  padding: 4px 16px;
  list-style: none;
  border-radius: 12px;
  background: var(--brand-50);
}
.calc__out li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--brand-100);
}
.calc__out li:last-child {
  border-bottom: 0;
}
.calc__out span {
  color: var(--text-2);
}
.calc__out b {
  font-size: 16.5px;
  text-align: right;
}

/* ── Scans and documents, the site evaluation, meetings, reports (app-office.js) ── */
.doccards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.doccard {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.doccard__img {
  aspect-ratio: 17 / 22;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: zoom-in;
}
.doccard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doccard__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.doccard__body b {
  overflow-wrap: anywhere;
}
.doccard__body small {
  font-size: 12.5px;
  color: var(--text-3);
}
.doccard__body .pcard__acts {
  margin-top: 4px;
}
.docpages {
  display: grid;
  gap: 12px;
}
.docpages img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.evform {
  display: grid;
  gap: 14px;
}
.evlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.evitem {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.evitem:last-child {
  border-bottom: 0;
}
.evitem__q {
  font-weight: 500;
}
.evitem__opts {
  display: inline-flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.evopt {
  position: relative;
  cursor: pointer;
}
.evopt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.evopt span {
  display: block;
  min-width: 54px;
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
}
.evopt + .evopt span {
  border-left: 1px solid var(--line);
}
.evopt--ok input:checked + span {
  background: #e3f4ea;
  color: #0f6b3f;
}
.evopt--issue input:checked + span {
  background: #fdebd9;
  color: #a4470e;
}
.evopt--na input:checked + span {
  background: var(--line);
  color: var(--text);
}
.evopt input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.evitem input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.evitem input[type="text"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.evform .askform__foot {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .evitem {
    grid-template-columns: minmax(0, 1fr);
  }
  .evitem__opts {
    justify-self: start;
  }
  .evitem input[type="text"] {
    font-size: 16px;
  }
}
.mt__who {
  margin: 0 0 12px;
}
.mt__who b,
.mt__sec > b {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mt__sec {
  margin: 0 0 14px;
}
.mt__sec p {
  margin: 0 0 6px;
}
.mt__sec > ul:not(.mtacts) {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.mt__sec > ul:not(.mtacts) li {
  margin-bottom: 4px;
}
.mtacts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mtact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.mtact:last-child {
  border-bottom: 0;
}
.mtact label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.mtact input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.mtact small {
  font-size: 12.5px;
  color: var(--text-3);
}
.mtact.is-done label span {
  text-decoration: line-through;
  color: var(--text-3);
}
.replist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.replist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.replist li > span:first-child {
  display: grid;
  flex: 1 1 260px;
  gap: 2px;
}
.replist small {
  font-size: 13px;
  color: var(--text-3);
}
.repdone__name {
  display: grid;
  gap: 3px;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.repdone__name small {
  color: var(--text-3);
}
.repdone__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* ── The question before anything goes to the AI (app-consent.js) ── */
.aiask {
  display: grid;
  gap: 14px;
}
.aiask p {
  margin: 0;
}
.aiask__acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.aiask__acts .btn {
  min-width: 112px;
  justify-content: center;
}

/* ── The weather at a property, and the way to it (app-where.js) ── */
.wx {
  margin-bottom: 16px;
}
.wx__alert {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdebd9;
  color: #7a3608;
  font-size: 14px;
}
.wx__facts,
.wx__next {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wx__facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.wx__facts span {
  color: var(--text-2);
}
.wx__facts b {
  text-align: right;
}
.wx__next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0 10px;
}
.wx__next li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
}
.wx__next b {
  font-size: 13.5px;
}
.wx__next span {
  font-weight: 650;
}
.wx__next small {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-3);
}
.jobhead__dir {
  margin-left: 6px;
  white-space: nowrap;
}
.pcard__who time .tlink {
  font-weight: 500;
}

/* ── The phone's status bar ───────────────────────────
   Inside the iPhone app the page runs right to the top of the screen, under the clock and the battery.
   Whatever is pinned to the top keeps clear of that strip (--safe-top, set on body.app; it is 0 in a
   browser tab, where none of this moves anything). */
.top {
  padding-top: var(--safe-top);
}
.vhead,
.hbar {
  padding-top: calc(10px + var(--safe-top));
}
.auth {
  padding-top: calc(max(28px, 8vh) + var(--safe-top));
}
.sheet {
  padding-top: var(--safe-top);
}
/* a plain strip behind the clock, so a page with no bar of its own doesn't scroll its words through it */
body.app::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 45;
  height: var(--safe-top);
  background: inherit;
  pointer-events: none;
}
@media (min-width: 760px) {
  .nav {
    padding-top: calc(14px + var(--safe-top));
  }
}

/* reported photos: the card someone sees in place of a photo they reported, and the owner's list of reports */
.pcard--veiled { background: var(--board, #eef0ec); border-style: dashed; }
.pcard--veiled .pcard__sum { color: var(--ink-2); }
.photo-reports { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--mark, #e8632b); border-radius: 12px; background: var(--mark-wash, #fce9df); }
.photo-reports h3 { margin: 0 0 8px; font-size: 1rem; }
.photo-reports .rows { margin: 0; }

/* ── the assistant: its screen, the bar on the day and the desk ── */
.assistbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--chalk-tint, #c9d9f8); background: var(--chalk-wash, #e4ecfb); border-radius: 12px; }
.assistbar__go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--chalk-ink, #0e2c6b); font-weight: 600; text-decoration: none; }
.assistbar__go svg { flex: none; width: 18px; height: 18px; }
.assistbar__go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assist { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.assist__q { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; }
.assist__a { display: flex; gap: 10px; align-items: flex-start; max-width: 96%; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--white, #fff); border: 1px solid var(--rule); }
.assist__a > svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--chalk); }
.assist__a p { margin: 0 0 8px; } .assist__a p:last-child { margin-bottom: 0; }
.assist__a ol, .assist__a ul { margin: 0 0 8px; padding-left: 1.25rem; } .assist__a li { margin: 4px 0; }
.assist__a--wait { color: var(--ink-3); }
.assist__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.assist__form { display: flex; gap: 8px; align-items: flex-end; }
.assist__form textarea { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font: inherit; resize: vertical; background: var(--white, #fff); color: inherit; }
.assist__more { margin: 0; }

/* ── the build plan read from the drawings ── */
.guide { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--white, #fff); }
.guide--new, .guide--wait { display: flex; gap: 12px; align-items: flex-start; background: var(--chalk-wash, #e4ecfb); border-color: var(--chalk-tint, #c9d9f8); }
.guide--new > svg, .guide--wait > svg { flex: none; width: 22px; height: 22px; color: var(--chalk); margin-top: 2px; }
.guide--new p, .guide--wait p { margin: 4px 0 10px; color: var(--ink-2); }
.guide--new small { display: block; margin-top: 8px; color: var(--ink-3); }
.guide__head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.05rem; }
.guide__head h3 svg { width: 18px; height: 18px; color: var(--chalk); }
.guide__head p { margin: 0 0 10px; color: var(--ink-2); }
.guide__key { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: .85rem; color: var(--ink-2); }
.guide__key span { display: inline-flex; align-items: center; gap: 6px; }
.guide__key span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--trade); }
.gsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gstep { border: 1px solid var(--rule); border-left: 5px solid var(--trade); border-radius: 10px; background: var(--white, #fff); overflow: hidden; }
.gstep__head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.gstep__head > svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.gstep.is-open .gstep__head > svg { transform: rotate(180deg); }
.gstep__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--trade); color: #fff; font-weight: 700; font-size: .9rem; }
.gstep__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gstep__t small { color: var(--ink-3); }
.gstep__body { padding: 0 12px 12px 50px; display: flex; flex-direction: column; gap: 8px; }
.gstep__body p { margin: 0; } .gstep__body h5 { margin: 4px 0 0; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.gstep__body ul { margin: 0; padding-left: 1.1rem; } .gstep__body li { margin: 3px 0; }
.guide__note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--mark-wash, #fce9df); }
.guide__note--soft { background: var(--board, #e3e7e1); }
.guide__note ul { margin: 6px 0 0; padding-left: 1.1rem; }
@media (max-width: 520px) { .gstep__body { padding-left: 12px; } }

/* ── estimates ── */
.est__list { margin: 0 0 12px; }
.est__card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.est__card small { display: block; color: var(--ink-3); }
.est__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.est__h { margin: 6px 0 0; font-size: 1rem; }
.est__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.est__line { padding: 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--white, #fff); display: flex; flex-direction: column; gap: 8px; }
.est__top { display: flex; gap: 8px; }
.est__top input { flex: 1; min-width: 0; font-weight: 600; }
.est__x { flex: none; width: 36px; border: 1px solid var(--rule); border-radius: 8px; background: none; font-size: 1.2rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
.est__nums { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr auto; gap: 8px; align-items: end; }
.est__nums label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--ink-3); min-width: 0; }
.est__nums input, .est__top input { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; background: var(--white, #fff); color: var(--ink); min-width: 0; width: 100%; }
.est__amt { font-weight: 700; font-variant-numeric: tabular-nums; padding-bottom: 8px; white-space: nowrap; }
.est__flag { margin: 0; font-size: .85rem; color: var(--mark-ink, #9a3a10); }
.est__note { margin: 0; font-size: .85rem; color: var(--ink-3); }
.est__sum { margin: 6px 0; padding: 12px 14px; border-radius: 10px; background: var(--board, #e3e7e1); display: flex; flex-direction: column; gap: 4px; }
.est__sum div { display: flex; justify-content: space-between; gap: 12px; } .est__sum dt, .est__sum dd { margin: 0; }
.est__sum dd { font-variant-numeric: tabular-nums; }
.est__total { font-weight: 700; font-size: 1.1rem; padding-top: 6px; border-top: 1px solid var(--rule); }
@media (max-width: 520px) { .est__nums { grid-template-columns: 1fr 1fr 1fr; } .est__nums label:first-child { grid-column: 1 / -1; } .est__amt { grid-column: 1 / -1; padding-bottom: 0; text-align: right; } }

/* ── choosing the language ── */
.top__lang { font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.auth { position: relative; }
.auth__lang { position: absolute; top: calc(10px + var(--safe-top, 0px)); right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white, #fff); font: inherit; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; margin-bottom: 12px; }
.langs .btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; height: auto; min-height: 52px; padding: 8px 12px; line-height: 1.2; white-space: normal; }
.langs .btn small { font-weight: 400; opacity: .75; font-size: .78rem; line-height: 1.1; }

/* Sign out, in the top bar of a real workspace. On a phone it is the icon alone, beside the language button. */
.top__out { display: none; }
body.is-live .top__out { display: inline-flex; }

/* A photo on its way up from this phone, and a photo just saved */
.pfeed--adding { margin-bottom: 18px; }
.pcard--adding .pcard__img img { display: block; width: 100%; height: auto; opacity: .75; }
.pcard__wait { aspect-ratio: 4 / 3; background: linear-gradient(90deg, var(--surface-2, #eef0ec) 0%, var(--surface, #fff) 50%, var(--surface-2, #eef0ec) 100%); background-size: 200% 100%; animation: pwait 1.2s linear infinite; }
@keyframes pwait { to { background-position: -200% 0; } }
.pcard.is-new { box-shadow: 0 0 0 3px var(--chalk, #1f5fd6); transition: box-shadow .6s; }
@media (prefers-reduced-motion: reduce) { .pcard__wait { animation: none; } }

/* Plumbline's camera: the photos taken so far, along the bottom, each marked until it is saved */
.cam__shots { position: absolute; left: 0; right: 0; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.cam__shots:empty { display: none; }
.cam__shot { position: relative; flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); background: #000; }
.cam__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam__shot em { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font: 600 9.5px/1.2 system-ui, sans-serif; font-style: normal; text-align: center; color: #fff; background: rgba(13, 96, 70, .88); }
.cam__shot.is-busy img { opacity: .55; }
.cam__shot.is-busy em { background: rgba(12, 15, 19, .78); animation: pbusy 1.1s ease-in-out infinite alternate; }
.cam__shot.is-failed em { background: rgba(201, 80, 28, .92); }
@keyframes pbusy { from { opacity: .55; } to { opacity: 1; } }
/* the same word on the job's photos while one is on its way */
.pcard__busy { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pspin .8s linear infinite; }
.pcard--adding .pcard__sum small { display: block; margin-top: 2px; opacity: .75; }
@keyframes pspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cam__shot.is-busy em, .pcard__busy { animation: none; } }

/* ── The time clock (assets/app-clock.js) ── */
.clockcard { display: grid; gap: 10px; margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh); }
.clockcard.is-on { box-shadow: var(--sh), inset 0 0 0 1.5px #a9dcc7; }
.clockcard__main { display: flex; align-items: flex-start; gap: 12px; }
.clockcard__main b { font-weight: 650; }
.clockcard__main a { color: inherit; font-weight: 650; }
.clockcard__main small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.clockcard__dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--ok, #1a9e74); box-shadow: 0 0 0 4px rgba(26, 158, 116, .16); animation: clockpulse 2s ease-in-out infinite; }
.clockcard__dot--off { background: var(--text-3); box-shadow: 0 0 0 4px rgba(118, 129, 142, .14); animation: none; }
@keyframes clockpulse { 50% { box-shadow: 0 0 0 7px rgba(26, 158, 116, .06); } }
.clockcard__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.clockcard__acts .btn svg, .clockbar .btn svg, .vlog__mic svg { width: 17px; height: 17px; }
.clockcard__track { margin: 0; font-size: 12.5px; color: var(--text-3); }
.clockbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.clockbar.is-on { background: var(--ok-wash, #dff3ea); color: var(--ok-ink, #0d6046); }
.clockbar > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clockbar > span:first-child > svg { width: 18px; height: 18px; }
.clockbar__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.clockbar__filters select { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 14px; color: var(--text); max-width: 100%; }
.clockok__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.clockok__list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.clockok__list b { font-size: 14px; }
.clockok__list span { font-size: 14px; color: var(--text-2); }
.check-line { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; line-height: 1.4; }
.check-line input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); }
.clockin__job { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.clockin__job b { font-size: 16px; }
.clockin__job small { color: var(--text-2); font-size: 13px; }
.clockin__how { margin: 0; font-size: 13px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper__b { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 24px; font-weight: 600; line-height: 1; color: var(--text); cursor: pointer; }
.stepper__b:active { background: var(--brand-50); }
.lform .stepper input:not([type="file"]):not([type="checkbox"]) { width: 76px; text-align: center; font-size: 20px; font-weight: 650; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.clockscan { display: grid; gap: 12px; }
.clockscan .btn--lg { justify-self: start; }
.clockcode { display: flex; gap: 8px; }
.clockcode input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-family: var(--f-mono); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.clockweek a { cursor: pointer; }
.clockweek__total { display: flex; justify-content: space-between; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.clocktrail__who { margin: 0 0 12px; font-size: 15px; }
.stats--sm .stat { padding: 10px 12px; }
.stats--sm .stat__value { font-size: 18px; }
.clocktrail__pts li.is-far b { color: var(--warn-ink, #7a5200); }
.clocktrail .rows__end { gap: 8px; }
.clockgrid th small { display: block; font-weight: 400; color: var(--text-3); }
.clockents tr.is-void td { color: var(--text-3); text-decoration: line-through; }
.clockents tr.is-void td:last-child { text-decoration: none; }
.clockents td .pill { margin: 0 4px 4px 0; }
.clocksubs td small { display: block; }
.clockqr__code { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.clockqr__code svg { flex: none; width: 200px; height: 200px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.clockqr__code > div { display: grid; gap: 4px; min-width: 0; }
.clockqr__code b.mono { font-size: 28px; letter-spacing: .08em; }
.clockqr__url { font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .stats--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── The Daily log tab and the voice log (assets/app-voicelog.js) ── */
.dlday { margin: 0 0 22px; }
.dlday > h3 { margin: 0 0 10px; font-size: 15px; font-weight: 650; color: var(--text-2); }
.dlday__clock { margin-top: 8px; padding: 4px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh); }
.dlday__clock a { cursor: pointer; }
.dlog { display: grid; gap: 10px; margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh); }
.dlog__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--text-2); }
.dlog__head b { color: var(--text); }
.dlog__head .pill svg { width: 13px; height: 13px; }
.dlog__sec h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--text-3); }
.dlog__sec ul { margin: 0; padding-left: 18px; }
.dlog__sec li { margin: 2px 0; font-size: 14.5px; }
.dlog__said { margin: 0; font-size: 14.5px; white-space: pre-wrap; }
.dlog__more summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.dlog__more p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); white-space: pre-wrap; }
.dlog__foot { display: flex; gap: 14px; }
.vlog__rec { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.vlog__mic { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
.vlog__mic[aria-pressed="true"] { background: var(--red); animation: vlogrec 1.4s ease-in-out infinite; }
.vlog__mic:disabled { opacity: .5; cursor: default; }
@keyframes vlogrec { 50% { box-shadow: 0 0 0 8px rgba(212, 60, 60, .16); } }
.vlog__time { display: grid; }
.vlog__time b { font-size: 26px; font-weight: 650; }
.vlog__time b.is-over { color: var(--warn-ink, #7a5200); }
.vlog__time small { font-size: 12.5px; color: var(--text-3); }
.vlog textarea[readonly] { opacity: .85; }
.vlog__foot { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .clockcard__dot, .vlog__mic[aria-pressed="true"] { animation: none; } }
@media print {
  .clockcard__acts, .clockbar, .clockbar__filters, .dlog__foot { display: none !important; }
}
.clockqr .sec-h { margin-top: 18px; }

/* ── Invoices and the Money screen (app-invoice.js) ── */
.inv__head { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.inv__check { padding: 10px 12px; border-radius: 10px; background: var(--mark-wash, #fce9df); color: var(--mark-ink, #9a3a10); }
.inv__check ul { margin: 6px 0 0; padding-left: 18px; }
.inv__pays { margin: 18px 0 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.inv__pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.inv__pay small { display: block; color: var(--ink-3); }
.inv__bal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.inv__bal b { font-variant-numeric: tabular-nums; }
.inv__over, .inv__late { color: var(--mark-ink, #9a3a10); }
.inv__late { display: block; font-size: .8rem; }
.inv__pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.inv__pick legend { font-weight: 600; margin-bottom: 4px; }
.inv__pick small { color: var(--ink-3); }
.tbl td small { display: block; color: var(--ink-3); }
.mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 160px; padding: 8px 2px 0; }
.mbars__m { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.mbars__m small { color: var(--ink-3); font-size: .72rem; }
.mbars__pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mbars__bar { width: 42%; max-width: 14px; min-height: 1px; border-radius: 3px 3px 0 0; }
.mbars__bar--inv, .mbar__key--inv { background: var(--chalk-tint, #c9d9f8); }
.mbars__bar--got, .mbar__key--got { background: var(--chalk, #1f5fd6); }
.mbar__key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
@media (max-width: 560px) { .mbars { gap: 3px; height: 130px; } .mbars__m small { font-size: .62rem; } }
@media print { .page-h__acts, .seg, [data-act="inv-remind"] { display: none !important; } }
.mbars__bar--out, .mbar__key--out { background: var(--mark, #e8632b); opacity: .75; }
.inv__nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border-radius: 10px; background: var(--chalk-wash, #e4ecfb); }
.inv__costs { margin-top: 16px; }
.inv__bal--pad { padding: 0 16px 12px; }
.inv__cats { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 16px; margin: 0 0 8px; color: var(--ink-2); }
.moneycard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white, #fff); color: inherit; text-decoration: none; }
.moneycard small { display: block; color: var(--ink-3); }
.moneycard__i { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; background: var(--chalk-wash, #e4ecfb); color: var(--chalk, #1f5fd6); flex: none; }
.moneycard__i svg { width: 20px; height: 20px; }
.moneycard__go { margin-left: auto; color: var(--chalk, #1f5fd6); font-weight: 600; white-space: nowrap; }
.hinvs__list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hinv { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hinv details { width: 100%; }
.hinv summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.hinv summary::-webkit-details-marker { display: none; }
.hinv summary small { display: block; color: var(--ink-3); }
.hinv__r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.hinv__lines { list-style: none; margin: 10px 0 6px; padding: 0; }
.hinv__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule-2, #e6e9e3); }
.hinv__sum { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; }
.inv__scan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 6px; }
.inv__scan .is-busy { opacity: .6; pointer-events: none; }


/* iPad Slide Over and the smallest iPhones (320 pt wide): the Pulse price list and the Money screen's period switch wrap
   instead of pushing the page sideways (App Review checks iPhone apps on iPad too; layout check 2026-11-27) */
@media (max-width: 360px) {
  .costs b {
    white-space: normal;
    text-align: right;
  }
  .toolbar .seg {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .assist__quick .btn {
    white-space: normal;
    text-align: left;
    height: auto;
  }
}

/* Getting paid online and asking for reviews (assets/app-pay.js) */
.paycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.paycard { margin: 0; }
.paycard p { margin: .35rem 0 0; }
.paycard--on { border-color: var(--ok); }
.paycard__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem !important; }
.lform__check { display: flex; gap: .55rem; align-items: center; font-weight: 500; margin: .35rem 0 .5rem; }
.lform__check input { width: 1.1rem; height: 1.1rem; }

/* Who is on the clock now (assets/app-onclock.js) */
.onclock { margin-bottom: 1rem; }
.onclock__list li { border-top: 1px solid var(--rule-2); }
.onclock__row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 1rem; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.onclock__row:hover { background: var(--paper); }
.onclock__row small { display: block; color: var(--ink-3); }
.onclock__fine { padding: .25rem 1rem .9rem; margin: 0; }

/* Next up: what to do next (assets/app-next.js) */
.nextup { margin-bottom: 1rem; }
.nextup__setup { border: 1px solid var(--chalk-tint); background: var(--chalk-wash); border-radius: var(--r); padding: .8rem .9rem; margin-bottom: .6rem; }
.nextup__setup p { margin: .35rem 0 0; }
.nextup__bar { height: 6px; border-radius: 3px; background: var(--white); overflow: hidden; }
.nextup__bar span { display: block; height: 100%; background: var(--chalk); }
.nextup__list { list-style: none; margin: 0; padding: 0; }
.nextup__list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--rule-2); }
.nextup__list li:first-child { border-top: 0; }
.nextup__acts { display: inline-flex; align-items: center; gap: .5rem; flex: none; }
.nextup__x { font-size: 1.1rem; line-height: 1; padding: 0 .25rem; color: var(--ink-3); text-decoration: none; }
@media (max-width: 560px) { .nextup__list li { flex-wrap: wrap; } }

/* the job's "Photos & files" tab: drawings and files below the photos (assets/app-tabs.js) */
.mergedtab { margin-top: 28px; }
.mergedtab__h { font-size: 1.15rem; margin: 0 0 12px; }

/* a job's tabs: every one in view at once, wrapping to a second line instead of scrolling sideways (Scott, 2026-11-30) */
.tabs {
  flex-wrap: wrap;
  overflow-x: visible;
  row-gap: 4px;
}
@media (max-width: 760px) {
  .tabs { gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .tabs a { padding: 6px 10px; font-size: 13px; }
}
/* the job's tabs centred, so two rows look even (Scott and Jordan, 2026-11-30) */
.tabs { justify-content: center; }

/* Pipeline (assets/app-pipeline.js) */
.pipe { margin-top: 16px; }
.pipe__stats { margin-top: 8px; }
.pipe__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gut, 16px); color: inherit; text-decoration: none; }
.pipe__row:hover { background: var(--surface-2); }
.pipe__row b { display: block; }
.pipe__row small { display: block; color: var(--text-2); }
.pipe__right { flex: none; text-align: right; }
.pipe__nums { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-align: right; }
.pipe__nums small { color: var(--text-2); }
.pipe__empty { padding: 0 var(--gut, 16px) 14px; }
.pipe .pipe__list > li { display: block; padding: 0; }
.pipe .pipe__list .pipe__row { width: 100%; box-sizing: border-box; padding: 12px 18px; }
.pipe .pipe__empty { padding: 0 18px 14px; }

/* who is on the clock, on a map (assets/app-clockmap.js) */
.cmap { position: relative; width: 100%; aspect-ratio: 640 / 300; overflow: hidden; border-radius: 12px; background: #e8eef3; margin-top: 10px; }
.cmap__tile { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.cmap__site { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #6b7280; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cmap__pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--brand, #2563eb); color: #fff; font: 700 11px/26px system-ui, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); cursor: pointer; }
.cmap__pin.is-far { background: #dc2626; }
.cmap__credit { position: absolute; right: 4px; bottom: 2px; font-size: 10px; background: rgba(255,255,255,.8); padding: 0 4px; border-radius: 3px; color: #333; }
.cmap__panel .fine { margin-top: 8px; }

/* receipts on the Money screen (assets/app-receipts.js) */
.rcpt__row { display: flex; align-items: center; gap: 12px; }
.rcpt__i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); }
.rcpt__i svg { width: 20px; height: 20px; }
.rcpt__t { flex: 1; min-width: 0; }
.rcpt__t b, .rcpt__t small { display: block; }
.rcpt__t small { color: var(--text-2); }
.rcpt__btn { flex: none; cursor: pointer; }
@media (max-width: 560px) { .rcpt__row { flex-wrap: wrap; } .rcpt__btn { width: 100%; text-align: center; } }
