/* Heelo — design tokens
   Concrete slab bg, workwear ink, safety-orange action, hi-vis marker.
   Display: Archivo Black (signage). Body: Archivo. Transcript: IBM Plex Mono. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --concrete: #EDEEE9;
  --ink: #171C26;
  --steel: #6E7687;
  --safety: #F4581C;
  --safety-dark: #D2440F;
  --hivis: #E9FC4B;
  --card: #FFFFFF;
  --line: #D6D8D0;
  --radius: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--concrete);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

/* ---------- chrome ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 2px solid var(--ink);
  background: var(--concrete);
  position: sticky; top: 0; z-index: 10;
}
.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px; letter-spacing: -0.5px; text-decoration: none;
}
.logo em { font-style: normal; color: var(--safety); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--safety); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.05;
}
h1 { font-size: clamp(38px, 6vw, 64px); text-transform: uppercase; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--steel); margin-bottom: 14px;
}
.mark {
  background: linear-gradient(transparent 58%, var(--hivis) 58%);
  padding: 0 2px;
}
.muted { color: var(--steel); }
.small { font-size: 14px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600; font-size: 16px;
  background: var(--safety); color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 13px 26px;
  cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: var(--card); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: transparent; text-decoration: underline; padding: 13px 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn[hidden] { display: none; }

label, .group-label { font-weight: 600; font-size: 14px; display: block; margin: 16px 0 6px; }
input[type="text"], input[type="tel"], textarea, select {
  width: 100%;
  font: inherit; font-size: 15px;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 13px; color: var(--steel); margin-top: 4px; }

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- transcript (signature element) ---------- */
.transcript {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--ink);
  color: #E8EAF0;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  padding: 20px;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.t-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.t-tag { color: #8C93A3; font-size: 12px; padding-top: 2px; }
.t-line.heelo .t-tag { color: var(--hivis); }
.t-line.caller .t-tag { color: #7FB4FF; }
.t-line.sys { color: #8C93A3; font-size: 12px; display: block; }
.t-line .t-body { white-space: pre-wrap; }
.call-transcript { min-height: 0; max-height: 420px; }

/* ---------- landing specifics ---------- */
/* The recorded call is 17 lines; a fixed box scrolls instead of stretching the hero. */
#heroTranscript { height: 440px; }
@media (max-width: 820px) { #heroTranscript { height: 360px; } }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero p.lede { font-size: 18px; margin: 20px 0 28px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.strip {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--hivis);
  font-family: var(--mono); font-size: 13px;
  padding: 10px 0; overflow: hidden; white-space: nowrap;
}
.strip span { display: inline-block; padding-right: 48px; }

.grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: clamp(40px, 6vw, 72px) 0;
}
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 2px solid var(--line); }

.footer {
  border-top: 2px solid var(--ink);
  margin-top: 40px;
  padding: 28px clamp(20px, 5vw, 56px);
  font-size: 13px; color: var(--steel);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- privacy policy and terms ---------- */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 22px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 24px); margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.6; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal mark { background: var(--hivis); padding: 0 4px; }

/* ---------- voice picker ---------- */
.vp-voices { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; }
.vp-voice { display: inline-flex; align-items: center; gap: 4px; }
.vp-voice .step { cursor: pointer; font: inherit; color: var(--ink); }
.vp-about { font-size: 11px; opacity: .7; margin-left: 4px; }
.vp-play {
  border: 1.5px solid var(--ink); border-radius: 99px; background: var(--card); color: var(--ink);
  width: 30px; height: 30px; cursor: pointer; font-size: 11px; line-height: 1;
}
.vp-play:disabled { opacity: .5; cursor: wait; }

/* ---------- demo call ---------- */
.call-shell { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.scenario-btn.active { background: var(--ink); color: var(--hivis); }
.talk-btn {
  width: 100%; padding: 22px; font-size: 18px;
}
.talk-btn.listening { background: var(--ink); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3CBB5B; margin-right: 8px; }
.status-dot.waiting { background: var(--hivis); }
.status-dot.off { background: var(--steel); }

/* ---------- carrier divert codes (onboarding + dashboard) ---------- */
.code-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; background: var(--concrete);
}
.code-row .code-val {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: .5px; flex: 0 1 auto;
}
/* The label yields first so the code and its buttons stay on one line. */
.code-row .code-label { font-size: 13px; color: var(--steel); flex: 1 1 90px; min-width: 0; }
.code-row .lead-btn { flex: 0 0 auto; }
/* Divert test rows (dashboard): what to do, the result, and why it failed. */
.test-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.test-row .test-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.test-row .test-head strong { flex: 1 1 160px; }
.test-row .test-detail { font-size: 13px; color: var(--steel); margin: 0; }

/* ---------- dashboard ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; text-align: left; color: var(--steel); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill {
  font-family: var(--mono); font-size: 11px;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 2px 10px;
  background: var(--hivis);
}

/* Pinned to 0,0: left in its in-flow spot (say, the last column of a wide
   table in a scrolling card) it escapes the card and widens the whole page. */
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
tr.row-off td { color: var(--steel); }
tr.row-off td strong { text-decoration: line-through; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions select { width: auto; max-width: 220px; padding: 6px 8px; font-size: 13px; }
.state-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px 4px 3px 12px; background: var(--card); }
.chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 6px; color: var(--ink); }
/* Urgent messages: a job that can't wait — tagged and kept on top until ticked off. */
tr.row-urgent td { background: #FFF1EA; }
.state-tag.urgent-tag { display: inline-block; background: var(--safety); color: #fff; border-radius: 4px; padding: 1px 6px; font-weight: 600; }
/* The one button that can't be undone (deleting the account). */
.btn.danger { background: #B3261E; color: #fff; }
/* A time the owner kept free, and the "text the customer" option on a change. */
tr.row-blocked td { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(110, 118, 135, .07) 8px 16px); }
/* Where the upcoming jobs end and the past ones begin. */
tr.row-divider td { padding-top: 20px; color: var(--steel); }
.notify-box { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
#jobForm .grid2 { gap: 0 20px; }

/* ---------- landing: fair questions ---------- */
.faq { padding: 26px 0 0; }
.faq h3 { font-size: 17px; margin-bottom: 8px; }

/* ---------- outreach ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mono-cell { font-family: var(--mono); font-size: 13px; }
.lead-btn { font-size: 13px; padding: 7px 12px; box-shadow: 2px 2px 0 var(--ink); }
.compose-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(23, 28, 38, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.compose-backdrop[hidden] { display: none; }
.compose { width: min(560px, 100%); }

/* ---------- autogtm pipeline ---------- */
.gtm-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 18px;
}
.gtm-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; min-height: 128px;
}
.gtm-card .gtm-name { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.gtm-card .gtm-meta { font-family: var(--mono); font-size: 11px; color: var(--steel); }
.gtm-card .gtm-summary { font-size: 13px; color: var(--ink); }
.gtm-stage { font-family: var(--mono); font-size: 12px; display: flex; align-items: center; gap: 7px; margin-top: auto; }
.gtm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); flex: 0 0 auto; }
.gtm-dot.busy { background: var(--safety); animation: gtmpulse 1s ease-in-out infinite; }
.gtm-dot.ready { background: #3CBB5B; }
.gtm-dot.sent { background: var(--hivis); border: 1.5px solid var(--ink); }
.gtm-dot.dead { background: var(--line); }
@keyframes gtmpulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
.fit-badge {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 1px 9px; background: var(--card);
  flex: 0 0 auto;
}
.fit-badge.hot { background: var(--hivis); }
.fit-badge.warm { background: var(--concrete); }
.gtm-progress { height: 12px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--card); }
.gtm-progress > div { height: 100%; width: 0%; background: var(--safety); transition: width .4s ease; }
.verdict { font-family: var(--mono); font-size: 11px; border-radius: 99px; padding: 2px 10px; border: 1.5px solid var(--ink); }
.verdict.working { background: var(--hivis); }
.verdict.early { background: var(--card); }
.verdict.quiet { background: var(--concrete); color: var(--steel); }
.verdict.untouched { background: transparent; border-color: var(--line); color: var(--steel); }

/* ---------- steps ---------- */
.steps { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.step { border: 1.5px solid var(--ink); border-radius: 99px; padding: 4px 14px; background: var(--card); }
.step.active { background: var(--ink); color: var(--hivis); }
.step.done { background: var(--hivis); }

/* ---------- dashboard: five screens ---------- */
.dash-wrap { padding-top: 28px; padding-bottom: 64px; }
.dash-head .eyebrow { margin-bottom: 6px; }
.dash-hello { font-size: clamp(30px, 4.6vw, 46px); }
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 28px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 2px solid var(--ink); border-radius: 99px; padding: 7px 16px; background: var(--card);
}
.tabs a:hover { background: var(--hivis); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--hivis); }
.tab-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1;
  min-width: 20px; padding: 4px 6px; border-radius: 99px; text-align: center;
  background: var(--hivis); color: var(--ink); border: 1.5px solid var(--ink);
}
.tab-badge[hidden] { display: none; }
.tab-badge.hot { background: var(--safety); color: #fff; }
.tab-badge.warn { background: var(--safety); color: #fff; }
.new-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; background: var(--hivis); border: 1.5px solid var(--ink); border-radius: 99px;
  padding: 0 6px; vertical-align: 1px;
}

/* Today: what needs doing, the numbers, today's run, and what's new. */
.attention { display: grid; gap: 10px; margin-bottom: 18px; }
.attention:empty { display: none; }
.attn {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #FFFBE0; border: 2px solid var(--ink); border-left-width: 8px; border-radius: var(--radius); padding: 12px 14px;
}
.attn p { flex: 1 1 240px; margin: 0; }
.attn.hot { background: #FFF1EA; border-left-color: var(--safety); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
.tile:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.tile-num { font-family: 'Archivo Black', sans-serif; font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.tile-label { font-size: 13px; color: var(--steel); line-height: 1.3; }
.tile-sub { font-family: var(--mono); font-size: 11px; color: var(--steel); margin-top: auto; padding-top: 4px; }
.tile-sub:empty { display: none; }
.tile.hot { background: var(--safety); color: #fff; }
.tile.hot .tile-label, .tile.hot .tile-sub { color: #fff; }
.today-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.today-h { font-size: clamp(20px, 2.6vw, 24px); margin: 0 0 12px; }
.today-h3 { font-size: 15px; margin: 22px 0 10px; }
.job-card {
  display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: start;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; box-shadow: 3px 3px 0 var(--ink);
}
.job-time { font-family: var(--mono); font-weight: 600; font-size: 14px; padding-top: 1px; }
.job-body { min-width: 0; overflow-wrap: anywhere; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.job-card.done { opacity: .6; }
.job-card.done strong { text-decoration: line-through; }
.job-card.blocked { box-shadow: none; background: repeating-linear-gradient(-45deg, var(--card) 0 8px, #F3F4F0 8px 16px); }
.job-card.compact { box-shadow: none; padding: 8px 12px; margin-bottom: 8px; border-width: 1.5px; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.feed { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.feed > li { border-bottom: 1px solid var(--line); }
.feed > li.muted { padding: 12px 0; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; text-decoration: none; }
.feed-item:hover .feed-main strong { color: var(--safety-dark); }
.feed-main { min-width: 0; overflow-wrap: anywhere; }
.feed-tag {
  flex: 0 0 74px; text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 4px; margin-top: 2px;
}
.feed-tag.booking { background: var(--hivis); }
.feed-tag.message { background: var(--card); }
.feed-tag.urgent { background: var(--safety); color: #fff; }
.feed-tag.missed { background: var(--ink); color: var(--hivis); }

/* Settings: a long screen, so a row of jumps at the top. */
.settings-toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.settings-toc a {
  font-family: var(--mono); font-size: 12px; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 4px 12px; background: var(--card);
}
.settings-toc a:hover { background: var(--hivis); }
.settings-toc a[hidden] { display: none; }
.settings-card { margin-bottom: 36px; scroll-margin-top: 96px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 14px 0 0; }
.check-row input { margin-top: 5px; flex: 0 0 auto; }
.sub-h { font-size: 18px; margin: 30px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.time-pair { display: flex; gap: 0 16px; flex-wrap: wrap; }
.time-pair input { width: 132px; }
#quietFromWrap.off { opacity: .45; }
input[type="time"], input[type="date"] {
  font: inherit; font-size: 15px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card);
}
.grid2.tight { gap: 0 20px; }

/* Add a job: any day and time, or one of the caller booking times. */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 6px 14px; background: var(--card); cursor: pointer;
}
.seg label:has(input:checked) { background: var(--hivis); }
.seg label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.move-any { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.move-any[hidden] { display: none; }
.row-actions input[type="date"], .row-actions input[type="time"] { padding: 6px 8px; font-size: 13px; }

/* Texting a customer back: the thread under the message, and the box to write in. */
.reply-line { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--hivis); background: #FAFBF4; font-size: 14px; }
.reply-line.failed { border-left-color: #B3261E; }
.reply-btn { margin-top: 8px; }
.reply-form { margin-top: 10px; }
.reply-form label { margin: 0 0 6px; }
.reply-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.reply-bar .hint { margin: 0 0 0 auto; }
.clash-list { margin: 6px 0 0 20px; font-size: 14px; }

@media (max-width: 820px) {
  .today-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 820px) {
  .hero, .call-shell { grid-template-columns: 1fr; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
}
/* Founder pages carry five nav links — at phone width they can't share a row
   with the logo, so the links drop underneath and tighten up. */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { justify-content: flex-start; gap: 6px 14px; }
  /* On a phone, bookings and messages read as stacked cards, not a table to
     scroll sideways: each cell on its own line, labelled from data-label. */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 3px 0; }
  /* Hanging labels, so a wrapped address or job lines up with its first line. */
  table.stack td[data-label] { position: relative; padding-left: 82px; }
  table.stack td[data-label]::before {
    content: attr(data-label); position: absolute; left: 0; top: 5px;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--steel);
  }
  table.stack td:empty { display: none; }
  table.stack .row-actions { margin-top: 6px; }
}

/* On a phone the dashboard's screens sit along the bottom, under your thumb. */
@media (max-width: 600px) {
  body.dash { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .dash-wrap { padding-top: 20px; }
  .dash-head { margin-bottom: 18px; }
  .tile-label { font-size: 12px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 0 0 env(safe-area-inset-bottom); border: 0; border-top: 2px solid var(--ink);
    background: var(--ink);
  }
  .tabs a {
    flex-direction: column; justify-content: center; gap: 2px; border: 0; border-radius: 0;
    background: transparent; color: #C9CDD6; font-size: 12px; padding: 12px 2px 10px; min-height: 58px;
  }
  .tabs a:hover { background: transparent; color: #fff; }
  .tabs a[aria-current="page"] { background: transparent; color: var(--hivis); box-shadow: inset 0 3px 0 var(--hivis); }
  .tab-badge { position: absolute; top: 5px; left: calc(50% + 10px); font-size: 10px; min-width: 18px; padding: 3px 5px; }
  .tiles { gap: 8px; margin-bottom: 24px; }
  .tile { padding: 12px 10px; box-shadow: 2px 2px 0 var(--ink); }
  .tile-label { font-size: 12px; }
  .job-card { grid-template-columns: 62px 1fr; gap: 10px; }
  .feed-tag { flex-basis: 62px; }
}
