/* Layout and components for the web console. Semantic variables from theme.css only. See web/DESIGN.md. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 17px/1.4 var(--font-ui);
}

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--c-mark);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--c-mark);
  outline-offset: 3px;
}

/* ---------- shell ---------- */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.main {
  min-width: 0;
}

.top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 56px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-separator);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--c-ink);
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-address);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.menu {
  display: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-border);
}

.menu span,
.menu span::before,
.menu span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--c-ink);
  content: "";
  position: relative;
}

.menu span::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.menu span::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.shell[data-auth="in"] .menu {
  display: block;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(300px, 86vw);
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  background: var(--c-card-background);
  border-right: 1px solid var(--c-card-border);
  overflow-y: auto;
}

.shell.nav-open .rail {
  display: flex;
}

.scrim {
  display: none;
}

.shell.nav-open .scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--c-ink) 45%, transparent);
}

.rail-firm {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-address);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rail-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-mark);
  color: var(--c-on-brand);
  font-size: 20px;
}

.rail nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail nav a,
.rail-foot a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
  padding: 0 var(--space-md);
  color: var(--c-text-secondary);
  border-radius: var(--radius-control);
}

.rail nav a:hover,
.rail-foot a:hover {
  color: var(--c-ink);
  background: var(--c-field-fill);
  text-decoration: none;
}

.rail nav a[aria-current="page"] {
  color: var(--c-mark);
  background: color-mix(in srgb, var(--c-mark) 12%, transparent);
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-foot .muted {
  padding: 0 var(--space-md);
}

.rail-foot button {
  align-self: flex-start;
  padding: 0 var(--space-md);
}

#app {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) 64px;
  max-width: 1120px;
}

#app > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#app > .wide {
  max-width: none;
}

#app > * + * {
  margin-top: var(--space-lg);
}

@media (min-width: 700px) {
  #app {
    padding: var(--space-xxl) var(--space-xxl) 80px;
  }
}

@media (min-width: 900px) {
  .shell[data-auth="in"] {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .shell[data-auth="in"] .rail {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    width: auto;
    z-index: 10;
  }

  .shell[data-auth="in"] .menu,
  .shell[data-auth="in"] .brand span {
    display: none;
  }

  .shell[data-auth="in"] .top {
    display: none;
  }

  .shell.nav-open .scrim {
    display: none;
  }
}

/* ---------- type ---------- */
.page-title {
  font-family: var(--font-address);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.firm-name,
.sign-in h1,
#create_firm h1,
#firm_owner_only h1,
#firm_picker h1 {
  font-family: var(--font-address);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-family: var(--font-address);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.address {
  font-family: var(--font-address);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-ink);
}

.lede {
  color: var(--c-text-secondary);
  max-width: 60ch;
}

.muted {
  color: var(--c-text-secondary);
  font-size: 15px;
}

.cite {
  color: var(--c-text-secondary);
  font-size: 13px;
}

.fact {
  font-family: var(--font-address);
  font-size: 20px;
}

.crumb {
  font-size: 15px;
}

.job-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-head .address {
  font-size: 28px;
}

/* ---------- stacks ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
}

.row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-end;
}

.row > * {
  flex: 1 1 0;
  min-width: 0;
}

.row.wrap {
  flex-wrap: wrap;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
}

/* ---------- fields ---------- */
fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  padding: var(--space-sm) 0 0;
  min-width: 0;
  border: 0;
}

legend {
  padding: 0;
  font-family: var(--font-address);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--c-text-secondary);
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-bottom: 2px solid var(--c-input-border);
  border-radius: var(--radius-control);
  background: var(--c-field-fill);
  color: var(--c-ink);
  font: 19px/1.3 var(--font-address);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--c-mark);
  outline: 2px solid var(--c-mark);
  outline-offset: 1px;
}

input:disabled,
select:disabled {
  opacity: 0.6;
}

input[type="file"] {
  font: 15px var(--font-ui);
  min-height: 44px;
  padding: 10px 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 24px;
  min-height: 24px;
  padding: 0;
  accent-color: var(--c-mark);
  flex: none;
}

input[type="color"] {
  width: 64px;
  padding: 4px;
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
  color: var(--c-ink);
  font-size: 17px;
}

label.inline {
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

label.inline select,
label.inline input {
  min-height: 44px;
  font-size: 17px;
}

.room-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: var(--space-md);
}

/* ---------- buttons ---------- */
button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--control-height);
  padding: 0 var(--space-xl);
  border: 1px solid var(--c-mark);
  border-radius: var(--radius-control);
  background: var(--c-mark);
  color: var(--c-on-brand);
  font: 600 17px/1 var(--font-ui);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.primary-link:hover {
  text-decoration: none;
}

button:active,
.primary-link:active {
  opacity: 0.8;
}

button:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  color: var(--c-mark);
}

button.quiet,
button.link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-mark);
}

button.link {
  justify-content: flex-start;
  font-size: 15px;
}

button.danger,
button.link.danger {
  color: var(--c-danger);
}

button.positive {
  background: var(--c-danger);
  border-color: var(--c-danger);
  color: var(--c-on-brand);
}

button.negative {
  background: var(--c-success);
  border-color: var(--c-success);
  color: var(--c-on-brand);
}

.results {
  align-items: stretch;
}

.row-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- notices ---------- */
.notice {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--c-mark);
  background: color-mix(in srgb, var(--c-mark) 8%, transparent);
  color: var(--c-ink);
  animation: settle 150ms ease-out;
}

.notice-error {
  border-left-color: var(--c-danger);
  background: var(--c-danger-tint);
}

.notice-warn {
  display: block;
  border-left-color: var(--c-warning);
  background: var(--c-warning-tint);
}

.notice-ok {
  border-left-color: var(--c-success);
  background: var(--c-success-tint);
}

@keyframes settle {
  from {
    opacity: 0;
  }
}

.loading {
  color: var(--c-text-secondary);
  padding: var(--space-xxl) 0;
}

.loading::after {
  content: "";
  display: block;
  height: 3px;
  width: 96px;
  margin-top: var(--space-md);
  background: linear-gradient(90deg, var(--c-mark), transparent);
  animation: sweep 1.1s ease-in-out infinite alternate;
}

@keyframes sweep {
  from {
    transform: scaleX(0.2);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.empty {
  padding: var(--space-xl) 0;
  color: var(--c-text-secondary);
  font-family: var(--font-address);
  font-size: 20px;
}

.practice {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--c-warning);
  background: var(--c-warning-tint);
  font-weight: 600;
}

.card {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 17px;
  border: 1px solid var(--c-card-border);
  border-left: 4px solid var(--c-mark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--c-card-background);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.upgrade {
  border-left-color: var(--c-danger);
  background: var(--c-danger-tint);
}

.upgrade button {
  align-self: flex-start;
}

.guide-card dl {
  display: grid;
  gap: 2px;
}

.guide-card dt {
  color: var(--c-text-secondary);
  font-size: 13px;
  margin-top: var(--space-sm);
}

.claim {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--c-separator);
  font-style: italic;
}

/* ---------- rows ---------- */
.rows {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.rows > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
  padding: var(--space-md) 0 var(--space-md) 14px;
  border-bottom: 1px solid var(--c-separator);
  box-shadow: inset 3px 0 0 var(--c-mark);
}

.rows > li.pin-lead {
  box-shadow: inset 3px 0 0 var(--c-danger);
}

.rows > li.pin-clear {
  box-shadow: inset 3px 0 0 var(--c-success);
}

.rows > li.pin-unfinished,
.rows > li.pin-none {
  box-shadow: inset 3px 0 0 var(--c-border);
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  color: var(--c-ink);
  text-align: left;
}

.row-main:hover {
  text-decoration: none;
}

button.row-button,
.row-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  align-items: flex-start;
  justify-content: flex-start;
  font-weight: 400;
}

.miss {
  flex-wrap: wrap;
}

.status,
.chip {
  flex: none;
  align-self: flex-start;
  width: fit-content;
  padding: 3px 10px;
  line-height: 1.3;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
  white-space: nowrap;
}

.status-complete,
.chip-clear {
  color: var(--c-success);
  border-color: var(--c-success);
  background: var(--c-success-tint);
}

.chip-lead {
  color: var(--c-danger);
  border-color: var(--c-danger);
  background: var(--c-danger-tint);
}

.chip-warn {
  color: var(--c-warning);
  border-color: var(--c-warning);
  background: var(--c-warning-tint);
}

.chip-unfinished,
.chip-none {
  background: transparent;
}

/* Owner ruling 50: a practice job's grey chip. */
.chip-practice {
  color: var(--c-text-secondary);
  background: var(--c-field-fill);
}

.chip-button {
  min-height: 44px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
}

.chip-button[aria-pressed="true"] {
  background: var(--c-mark);
  border-color: var(--c-mark);
  color: var(--c-on-brand);
}

.chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.check-row.is-done span:first-child {
  color: var(--c-text-secondary);
}

.file-act {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--c-mark);
  border-radius: var(--radius-control);
  color: var(--c-mark);
  font-weight: 600;
  position: relative;
  cursor: pointer;
  width: auto;
}

.file-act input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
}

.file-act:focus-within {
  outline: 2px solid var(--c-mark);
  outline-offset: 3px;
}

/* ---------- grid ---------- */
.faces {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.face {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--c-separator);
  align-items: center;
}

.face-name {
  font-weight: 600;
}

.face-state {
  color: var(--c-text-secondary);
  text-align: right;
}

.face-positive .face-state,
.face-presumed .face-state {
  color: var(--c-danger);
  font-weight: 600;
}

.face-negative .face-state {
  color: var(--c-success);
  font-weight: 600;
}

.acts {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.acts:empty {
  display: none;
}

.act {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--c-mark);
  border-radius: var(--radius-control);
}

.component .row {
  align-items: center;
  flex-wrap: wrap;
}

/* Work and Room each keep a usable width; on a phone they stack instead of clipping the select. */
.component .row > * {
  flex-basis: 150px;
}

#capture_preview {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--c-field-fill);
}

.sig canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  border: 1px dashed var(--c-input-border);
  background: var(--c-card-background);
  touch-action: none;
}

.sig {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dev {
  border: 1px dashed var(--c-warning);
  padding: var(--space-md);
}

/* ---------- sign-in ---------- */
.sign-in {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 360px;
  margin: var(--space-xl) auto 0;
}

/* The home page's account of the app and its Drive use, under the sign-in form. */
.about {
  max-width: 560px;
  margin: var(--space-xl) auto;
}

.stack .stack,
.sign-in .stack {
  gap: var(--space-md);
}

.legend {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---------- map ---------- */
.map-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.segment {
  display: inline-flex;
  border: 1px solid var(--c-mark);
  border-radius: var(--radius-control);
  overflow: hidden;
}

.segment button {
  border: 0;
  border-radius: 0;
  min-height: 44px;
  background: transparent;
  color: var(--c-mark);
}

.segment button[aria-pressed="true"] {
  background: var(--c-mark);
  color: var(--c-on-brand);
}

.map-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.map-canvas {
  width: 100%;
  height: 56vh;
  min-height: 320px;
  background: var(--c-field-fill);
  border: 1px solid var(--c-card-border);
  position: relative;
}

.map-pane {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

.where {
  align-self: flex-start;
  min-height: 44px;
  background: transparent;
  color: var(--c-mark);
}

.seg-map .map-list,
.seg-list .map-pane {
  display: none;
}

.dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-card-background);
  vertical-align: middle;
}

.dot-lead {
  background: var(--c-danger);
}

.dot-clear {
  background: var(--c-success);
}

.dot-unfinished {
  background: transparent;
  border: 2px solid var(--c-text-secondary);
}

.dot-hit {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cluster {
  position: relative;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--c-card-border);
  border-radius: 50%;
  background: var(--c-card-background);
  color: var(--c-ink);
  font-size: 17px;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-lead {
  background: var(--c-danger);
}

.badge-clear {
  background: var(--c-success);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  background: color-mix(in srgb, var(--c-ink) 40%, transparent);
  animation: settle 150ms ease-out;
}

.sheet-card {
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
  border-radius: 16px 16px 0 0;
  background: var(--c-card-background);
  border-top: 3px solid var(--c-mark);
}

.sheet-address {
  font-size: 28px;
}

.sheet-close {
  align-self: flex-end;
}

.sheet-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lines {
  padding-left: var(--space-lg);
}

@media (min-width: 900px) {
  .map-wrap {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-md) var(--space-xl);
  }

  .map-tools,
  #banner_truncated,
  #banner_location,
  #map_failed {
    grid-column: 1 / -1;
  }

  .map-body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }

  .seg-map .map-list,
  .seg-list .map-pane {
    display: block;
  }

  .segment {
    display: none;
  }

  .map-canvas {
    height: calc(100vh - 220px);
  }

  .sheet {
    inset: 0 0 0 auto;
    width: 392px;
    background: transparent;
    align-items: stretch;
    pointer-events: none;
  }

  .sheet-card {
    pointer-events: auto;
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-left: 3px solid var(--c-mark);
    box-shadow: none;
    padding-top: var(--space-xxl);
  }
}

/* ---------- firm home, wide ---------- */
.aside {
  display: none;
}

@media (min-width: 900px) {
  #firm_home.split {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    column-gap: var(--space-xxl);
    align-items: start;
  }

  #firm_home.split > .head,
  #firm_home.split > .notice,
  #firm_home.split > p {
    grid-column: 1 / -1;
  }

  .aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: var(--space-xxl);
  }
}

.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: 0;
  list-style: none;
}

.counts li {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 0 0;
  border-top: 3px solid var(--c-mark);
}

.counts strong {
  font-family: var(--font-address);
  font-size: 40px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- refinements after the first screenshot pass ---------- */
.primary-link.outline {
  background: transparent;
  color: var(--c-mark);
}

@media (max-width: 899px) {
  .firm-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (min-width: 900px) {
  #new_job,
  #new_job_upgrade {
    max-width: 320px;
  }
}

@media (min-width: 1000px) {
  #app:has(.cols) > * {
    max-width: 1040px;
  }

  .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-xxl);
    align-items: start;
  }

  .cols > h1,
  .cols > .lede,
  .cols > #notice,
  .cols > .foot,
  .cols > .notice {
    grid-column: 1 / -1;
  }

  }

/* ---------- design system, second pass: cards, sections, capture, stepper, tiles ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ico {
  flex: none;
}

.span-all {
  grid-column: 1 / -1;
}

#app:has(.intake) > *,
#app:has(.home) > * {
  max-width: 1120px;
}

.panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg) 0;
}

/* Walk WEB-13-4: in a narrow card the title and hint keep the width; an action that does not fit beside them goes under. */
.panel-head > div:first-child {
  flex: 1 1 16rem;
  min-width: 0;
}

.panel-head h2 {
  font-size: 20px;
}

.panel-head .muted {
  margin-top: 2px;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  min-width: 0;
}

.panel-quiet {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.panel .rows > li:last-child {
  border-bottom: 0;
}

@media (min-width: 700px) {
  .panel-head {
    padding: var(--space-xl) var(--space-xl) 0;
  }

  .panel-body {
    padding: var(--space-xl);
    gap: var(--space-lg);
  }
}

/* collapsible sections */
.sect {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.sect.is-changed {
  border-color: var(--c-mark);
}

.sect summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 64px;
  padding: 10px var(--space-lg);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}

.sect summary::-webkit-details-marker {
  display: none;
}

.sect-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--c-input-border);
  border-radius: 50%;
  color: var(--c-on-brand);
}

.is-done > summary .sect-tick {
  background: var(--c-success);
  border-color: var(--c-success);
}

.sect-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sect-name {
  font-family: var(--font-address);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sect-hint {
  color: var(--c-text-secondary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sect-chev {
  color: var(--c-text-secondary);
  transition: transform 150ms ease;
}

.sect[open] > summary .sect-chev {
  transform: rotate(180deg);
}

.sect-body {
  padding: 0 var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sect-body form,
.sect-body fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.intake-grid,
.intake-col {
  display: grid;
  gap: var(--space-lg);
  min-width: 0;
}

.intake-col {
  align-content: start;
}

@media (min-width: 1000px) {
  .intake-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-xl);
  }
}

.progress-line {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--c-text-secondary);
  font-size: 15px;
}

.progress-line .meter {
  flex: 1 1 120px;
  max-width: 220px;
}

.progress-line span:last-child {
  white-space: nowrap;
}

.meter {
  display: flex;
  height: 6px;
  min-width: 72px;
  border-radius: 99px;
  background: var(--c-separator);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--c-success);
}

/* Faces that tested positive: red, first, so the meter never reads as all clear. */
.meter-lead {
  background: var(--c-danger);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

label.pill:has(> input[type="checkbox"]) {
  position: relative;
  padding: 0 var(--space-lg);
  border: 1px solid var(--c-input-border);
  border-radius: 99px;
  background: var(--c-card-background);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}

label.pill:has(> input:checked) {
  border-color: var(--c-mark);
  background: color-mix(in srgb, var(--c-mark) 12%, transparent);
  color: var(--c-mark);
}

label.pill:has(> input:focus-visible) {
  outline: 2px solid var(--c-mark);
  outline-offset: 2px;
}

/* sticky bars */
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0 calc(var(--space-lg) * -1);
  padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-separator);
  background: color-mix(in srgb, var(--c-paper) 92%, transparent);
  backdrop-filter: blur(10px);
}

.savebar p {
  color: var(--c-text-secondary);
  font-size: 15px;
}

.savebar.is-dirty p {
  color: var(--c-ink);
  font-weight: 600;
}

.savebar button {
  flex: 0 0 auto;
  min-width: 160px;
}

.results-bar button {
  flex: 1 1 0;
}

.results-bar {
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .savebar {
    margin: 0;
    border: 1px solid var(--c-card-border);
    border-radius: var(--radius-card);
    box-shadow: 0 6px 24px rgb(23 33 27 / 14%);
    bottom: var(--space-lg);
    background: var(--c-card-background);
  }
}

/* capture tile */
.capture {
  position: relative;
}

.capture-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.capture-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: var(--space-xl);
  border: 2px dashed var(--c-input-border);
  border-radius: var(--radius-card);
  background: var(--c-field-fill);
  color: var(--c-mark);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.capture-tile:hover {
  border-color: var(--c-mark);
}

.capture-input:focus-visible + .capture-tile {
  outline: 3px solid var(--c-mark);
  outline-offset: 3px;
}

.capture-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.capture-label {
  color: var(--c-ink);
  font-size: 17px;
  font-weight: 600;
}

.capture-hint {
  color: var(--c-text-secondary);
  font-size: 14px;
}

.capture-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture.has-photo .capture-tile {
  min-height: 260px;
  border-style: solid;
  border-color: var(--c-mark);
  padding: 0;
}

.capture.has-photo .capture-empty {
  display: none;
}

.capture-retake {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--space-lg);
  border-radius: 99px;
  background: rgb(10 18 14 / 78%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.capture-compact .capture-tile {
  min-height: 72px;
  padding: var(--space-md) var(--space-lg);
}

.capture-compact .capture-empty {
  flex-direction: row;
  gap: var(--space-md);
}

.capture-compact .capture-hint {
  display: none;
}

.capture-compact.has-photo .capture-tile {
  min-height: 150px;
}

.check-row {
  flex-wrap: wrap;
}

.check-row .capture {
  flex: 0 1 220px;
  min-width: 160px;
}

.check-name {
  flex: 1 1 160px;
}

/* stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stepper-count {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  color: var(--c-text-secondary);
  font-size: 15px;
}

.stepper-count strong {
  color: var(--c-ink);
}

.stepper-scroll {
  --fl: 0px;
  --fr: 0px;
  margin: 0 calc(var(--space-lg) * -1);
  padding: 0 var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}

.stepper-scroll::-webkit-scrollbar {
  display: none;
}

.stepper-scroll[data-fade-left="true"] {
  --fl: 36px;
}

.stepper-scroll[data-fade-right="true"] {
  --fr: 36px;
}

.steps {
  display: flex;
  min-width: max-content;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  position: relative;
  flex: 1 0 66px;
}

.step-item + .step-item::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-border);
}

.step-item.is-done + .step-item::before {
  background: var(--c-success);
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: var(--space-sm) 2px;
  color: var(--c-text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

a.step:hover {
  color: var(--c-ink);
  text-decoration: none;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--c-input-border);
  border-radius: 50%;
  background: var(--c-paper);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.is-done .step-dot {
  border-color: var(--c-success);
  background: var(--c-success);
  color: var(--c-on-brand);
}

.step-current {
  color: var(--c-ink);
}

.step-current .step-dot {
  border-color: var(--c-mark);
  background: var(--c-mark);
  color: var(--c-on-brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-mark) 20%, transparent);
}

@media (min-width: 700px) {
  .stepper-scroll {
    margin: 0;
    padding: 0;
  }

  .step {
    font-size: 15px;
  }
}

.job-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.status-draft {
  border-style: dashed;
}

.status-testing {
  color: var(--c-warning);
  border-color: var(--c-warning);
  background: var(--c-warning-tint);
}

.progress-line + .intake-grid {
  margin-top: 0;
}

/* openings */
.component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.title-input {
  flex: 1;
  min-height: 44px;
  padding: 4px 10px;
  margin-left: -10px;
  border-color: transparent;
  border-bottom-color: transparent;
  background: transparent;
  font: 600 21px/1.2 var(--font-address);
  letter-spacing: -0.01em;
}

.title-input:hover {
  border-color: var(--c-border);
}

.component-count {
  flex: none;
}

.chip-state {
  padding: 3px 10px;
  border: 1px solid var(--c-border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.face-state.state-positive,
.face-state.state-presumed {
  color: var(--c-danger);
  border-color: var(--c-danger);
  background: var(--c-danger-tint);
}

.face-state.state-negative {
  color: var(--c-success);
  border-color: var(--c-success);
  background: var(--c-success-tint);
}

.face-state.state-unsent {
  color: var(--c-warning);
  border-color: var(--c-warning);
  background: var(--c-warning-tint);
}

.act {
  background: color-mix(in srgb, var(--c-mark) 8%, transparent);
}

/* firm home */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

@media (max-width: 899px) {
  .home-head {
    justify-content: stretch;
  }

  .home-actions,
  .home-actions button {
    width: 100%;
  }
}

#new_job,
#new_job_upgrade {
  max-width: none;
  min-height: 48px;
  white-space: nowrap;
}

.notice-warn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 20px;
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--tile, var(--c-mark));
}

.tile-lead {
  --tile: var(--c-danger);
}

.tile-clear {
  --tile: var(--c-success);
}

.tile-waiting {
  --tile: var(--c-warning);
}

.tile-count {
  font-family: var(--font-address);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tile-label {
  font-weight: 600;
}

.tile-note {
  color: var(--c-text-secondary);
  font-size: 13px;
}

.home-body {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .home-body.has-aside {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

}

/* The Team office console: the list, and the map as a panel beside it once the list keeps a readable width (WEB-12-9:
   at about 1000 px the list was a 348 px column whose street wrapped onto five lines). Narrower, the map sits under it. */
@media (min-width: 1200px) {
  .home-body.has-map {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
    align-items: start;
  }

  .home-map {
    position: sticky;
    top: var(--space-xl);
  }
}

.map-wrap.map-panel-only {
  display: flex;
}

.map-panel-only .map-canvas,
.map-panel-only .plot {
  height: 48vh;
  min-height: 320px;
}

.rows.rich {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.rows.rich > li:last-child,
.map-list .rows > li:last-child {
  border-bottom: 0;
}

.rich .job-row,
.map-list .job-row {
  min-height: 84px;
  padding: var(--space-md) var(--space-lg) var(--space-md) 17px;
  align-items: flex-start;
}

.rich .job-row:hover {
  background: color-mix(in srgb, var(--c-mark) 5%, transparent);
}

.row-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.row-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 280px;
  margin-top: 4px;
  font-size: 13px;
}

.row-progress .meter {
  flex: 1;
}

.row-main .address {
  font-size: 20px;
}

.address-sm {
  font-family: var(--font-address);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
}

.plain {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.plain a {
  display: flex;
  flex-direction: column;
  min-height: 52px;
  justify-content: center;
  border-bottom: 1px solid var(--c-separator);
}

.plain li:last-child a {
  border-bottom: 0;
}

.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xxl) var(--space-lg);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-card);
  color: var(--c-mark);
  text-align: center;
}

.empty-card .empty {
  padding: 0;
  color: var(--c-ink);
}

/* map panel and its stand-in */
.map-stage {
  position: relative;
}

.map-canvas {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.plot {
  position: relative;
  height: 56vh;
  min-height: 380px;
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--c-mark) 7%, transparent), transparent 45%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--c-mark) 9%, transparent), transparent 50%),
    var(--c-field-fill);
  overflow: hidden;
}

.plot-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plot-grid path {
  fill: none;
  stroke: var(--c-border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.plot-grid .plot-river {
  stroke: color-mix(in srgb, var(--c-mark) 22%, transparent);
  stroke-width: 16;
  stroke-linecap: round;
}

.plot-pin {
  position: absolute;
  transform: translate(-22px, -50%);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--c-ink);
}

/* Walk WEB-17-1: a pin's empty button box never covers a neighbour's dot; only its dot and label take the press. */
.plot-pin {
  pointer-events: none;
}

.plot-pin .dot,
.plot-pin .plot-tag {
  pointer-events: auto;
}

.plot-pin .dot {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-card-background) 70%, transparent);
}

.plot-tag {
  padding: 2px 10px;
  border: 1px solid var(--c-card-border);
  border-radius: 99px;
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plot-note {
  /* Walk WEB-17-1: below the plot, in the flow, so it never covers a pin. */
  position: static;
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-control);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  color: var(--c-mark);
}

.plot-note div {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  color: var(--c-ink);
}

.plot-note button {
  min-height: 44px;
}

@media (min-width: 900px) {
  .plot,
  .map-canvas {
    height: calc(100vh - 300px);
    min-height: 460px;
  }

  .map-wrap {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }

  .map-body {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }

  .map-pane {
    position: sticky;
    top: var(--space-xl);
  }
}

.map-list .rows {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.map-list .rows:empty {
  display: none;
}

.where {
  gap: var(--space-sm);
}

/* tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--c-separator);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  color: var(--c-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  font-weight: 600;
}

.table .who,
.table th .muted {
  display: block;
}

.card-cell .chip {
  margin-right: var(--space-sm);
}

.card-cell .muted {
  font-size: 13px;
}

.chip-seat {
  background: var(--c-field-fill);
  color: var(--c-ink);
}

.chip-seat-owner {
  border-color: var(--c-mark);
  background: color-mix(in srgb, var(--c-mark) 12%, transparent);
  color: var(--c-mark);
}

.seat-pick select {
  min-height: 44px;
  font: 600 15px var(--font-ui);
  width: auto;
  min-width: 140px;
}

@media (max-width: 699px) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
  }

  .table tr {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--c-separator);
  }

  .table tbody tr:last-child {
    border-bottom: 0;
  }

  .table th,
  .table td {
    padding: 2px 0;
    border: 0;
  }

  .table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 56px;
    margin-right: var(--space-sm);
    color: var(--c-text-secondary);
    font-size: 13px;
  }
}

/* kits */
.kit-row {
  gap: var(--space-md);
}

.kit-row.is-expired {
  box-shadow: inset 3px 0 0 var(--c-danger);
}

.kit-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-mark) 10%, transparent);
  color: var(--c-mark);
}

.kit-name {
  font-weight: 600;
}

/* settings */
/* The record cover preview: paper, in the printed record's light token colors, whatever the screen's theme. */
.cover-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px 16px;
  border: 1px solid #D9DDDB;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: Helvetica, Arial, sans-serif;
  color: #0B0F0D;
  overflow: hidden;
}

.cover-rule {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent);
}

.cover-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.cover-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  border: 1px dashed #D9DDDB;
  border-radius: 3px;
  font-size: 9px;
  color: #636B68;
  text-align: center;
  line-height: 1.1;
}

.cover-logo.is-saved {
  border-style: solid;
  background: #F2F2F7;
}

.cover-logo.has-image {
  border: 0;
  background: none;
}

.cover-logo img {
  max-width: 64px;
  max-height: 36px;
  object-fit: contain;
}

.cover-firm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cover-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.cover-line {
  font-size: 10.5px;
  color: #636B68;
  overflow-wrap: anywhere;
}

.cover-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.cover-title b {
  font-size: 13px;
  white-space: nowrap;
}

.cover-mark {
  font-size: 8px;
  color: #636B68;
}

.cover-title i,
.cover-section i {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: #E5E7E6;
}

.cover-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #E5E7E6;
}

.cover-section b {
  font-size: 11px;
}

.cover-tick {
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.cover-section i {
  width: 100%;
}

.cover-section i.short {
  width: 55%;
}

.cover-note {
  font-size: 13px;
}

@media (max-width: 420px) {
  .cover-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cover-title {
    display: none;
  }
}

/* sign-in */
.sign-in {
  max-width: 400px;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border: 1px solid var(--c-card-border);
  border-radius: 20px;
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
}

.sign-in .mark-sign-in {
  border-radius: 20px;
}

.sign-in fieldset {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-separator);
}

.sign-in legend {
  font-size: 18px;
}

.empty-card + .empty-card {
  margin-top: var(--space-md);
}

@media (min-width: 1000px) {
  #app:has(.cols) > * {
    max-width: 1120px;
  }
}

.guide-card {
  border-radius: var(--radius-card);
}

#capture .panel-body label:has(> input[type="checkbox"]) {
  min-height: 48px;
}

.capture-screen {
  padding-bottom: var(--space-lg);
}

.table th .who .muted {
  display: inline;
}

#capture_state {
  color: var(--c-text-secondary);
  font: 600 15px var(--font-ui);
}

@media (max-width: 699px) {
  .kit-row {
    flex-wrap: wrap;
  }

  .kit-row .row-chips {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-left: 52px;
  }

  .plot {
    min-height: 520px;
  }
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

html {
  scroll-padding-bottom: 110px;
}

@media (min-width: 700px) {
  .foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .foot .primary-link {
    min-width: 260px;
  }
}

.skip {
  position: absolute;
  left: var(--space-lg);
  top: -80px;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-control);
  background: var(--c-mark);
  color: var(--c-on-brand);
}

.skip:focus {
  top: var(--space-sm);
}

#app:focus {
  outline: none;
}

.plot-pin-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 22px), -50%);
}

.openings {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 1000px) {
  #app:has(.openings) > * {
    max-width: 1040px;
  }

  .openings {
    display: block;
    columns: 2;
    column-gap: var(--space-lg);
  }

  .openings > .card {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
  }
}

/* ---------- plan chooser (paywall) ---------- */
/* Walk WEB-18-5: the consent box sits on its own line and its paragraph runs the card's full width below it. */
.plan label.pw-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}
.plan label.pw-consent > span {
  display: block;
  width: 100%;
}
.plans {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.plans-head {
  margin: 0;
  font-size: 18px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-md);
}

/* Walk WEB-19-6: four cards fill two rows of two instead of leaving one alone. */
@media (min-width: 480px) {
  .plan-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  color: var(--c-text-primary);
}

.plan h3,
.plan p {
  margin: 0;
}

.plan button {
  margin-top: auto;
  align-self: stretch;
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
}

.plan-save {
  color: var(--c-success);
  font-weight: 600;
}

.plan-mtp {
  border-left: 4px solid var(--c-mark);
}

.seg-group {
  display: inline-flex;
  border: 1px solid var(--c-input-border);
  border-radius: var(--radius-control);
  overflow: hidden;
}

button.seg {
  min-height: 44px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: 0;
  background: var(--c-field-fill);
  color: var(--c-text-primary);
  font-size: 15px;
}

button.seg.is-on {
  background: var(--c-mark);
  color: var(--c-on-brand);
}

/* billing return: public pages Stripe lands on */
.primary-link.secondary {
  background: transparent;
  color: var(--c-mark);
}

.billing-return h1 {
  font-family: var(--font-address);
}

/* ---------- legal pages and footer ---------- */
.site-foot-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-xxl);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs, 4px) var(--space-xl);
  border-top: 1px solid var(--c-separator);
  padding-top: var(--space-sm);
}

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-text-secondary);
  font-size: 15px;
}

.legal h2 {
  margin-top: var(--space-md);
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
}

.legal p,
.legal li {
  max-width: 68ch;
  line-height: 1.55;
}

.legal ul {
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 var(--space-xl);
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal .faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--c-separator);
}

/* ---------- record screen ---------- */
.record-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 20px;
  border: 1px solid var(--c-card-border);
  border-left: 5px solid var(--tone, var(--c-text-secondary));
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: var(--shadow-card);
}

.tone-lead { --tone: var(--c-danger); --tone-tint: var(--c-danger-tint); }
.tone-presumed { --tone: var(--c-danger); --tone-tint: var(--c-danger-tint); }
.tone-clear { --tone: var(--c-success); --tone-tint: var(--c-success-tint); }
.tone-none { --tone: var(--c-text-secondary); --tone-tint: var(--c-field-fill); }

.record-verdict {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.record-title {
  font-family: var(--font-address);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--tone);
}

.record-facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-2xl, 32px);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-separator);
}

.record-facts dt {
  font-size: 13px;
  color: var(--c-text-secondary);
}

/* Walk WEB-20-1: a long fact (a Vermont minor record's Pamphlet line) wraps inside the card; short ones stay on one line. */
.record-facts > div {
  min-width: 0;
  max-width: 100%;
}

.record-facts dd {
  overflow-wrap: anywhere;
  font-family: var(--font-address);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
}

/* The record's first page in miniature. Paper stays paper in dark mode; its colors are the printed ones. */
.record-sheet {
  /* The printed record's colors are the light tokens, whatever the screen's theme. */
  --sheet-lead: #D1341F;
  --sheet-clear: #0F7A55;
  --sheet-presumed: #A15C00;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 132px;
  aspect-ratio: 8.5 / 11;
  padding: 14px 11px 10px;
  border: 1px solid #D9DDDB;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(18, 28, 24, 0.08), 0 8px 20px -8px rgba(18, 28, 24, 0.25);
  transform: rotate(1.5deg);
  font-family: Helvetica, Arial, sans-serif;
  color: #0B0F0D;
  overflow: hidden;
}

.sheet-rule {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sheet-accent);
}

.sheet-firm {
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-doc {
  font-size: 5.5px;
  color: #636B68;
}

.sheet-verdict {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 2px;
  padding: 6px 6px 6px 8px;
  border-left: 3px solid var(--sheet-v);
  background: color-mix(in srgb, var(--sheet-v) 12%, #FFFFFF);
}

.sheet-verdict b {
  font-size: 10px;
  line-height: 1.1;
  color: var(--sheet-v);
}

.sheet-verdict i,
.sheet-line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #E5E7E6;
}

.sheet-verdict i:last-child,
.sheet-line.short {
  width: 60%;
}

.record-sheet.tone-lead { --sheet-v: var(--sheet-lead); }
.record-sheet.tone-presumed { --sheet-v: var(--sheet-presumed); }
.record-sheet.tone-clear { --sheet-v: var(--sheet-clear); }
.record-sheet.tone-none { --sheet-v: #636B68; }

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.record-actions button {
  flex: 1 1 220px;
}

.record-hash {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.record-hash span {
  font-variant-numeric: tabular-nums;
  color: var(--c-text-primary);
}

.record-openings {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-lg) var(--space-sm);
}

.record-openings li {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--c-separator);
}

.record-openings li:last-child {
  border-bottom: 0;
}

.record-openings li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.opening-name {
  font-weight: 600;
  color: var(--c-ink);
}

.glyph {
  flex: none;
}

.glyph rect,
.glyph path {
  stroke-width: 0;
}

.glyph .g-pane {
  stroke: var(--c-card-background);
  stroke-width: 1.5;
}

.glyph .g-line {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 0.8;
}

.g-positive,
.g-presumed { fill: var(--c-danger); }
.g-negative { fill: var(--c-success); }
.g-idle { fill: var(--c-text-secondary); opacity: 0.55; }
.g-none { fill: var(--c-card-background); }

.record-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-card);
  font-size: 15px;
}

@media (min-width: 521px) {
  .record-sheet {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .record-facts {
    grid-column: 1;
    align-self: end;
  }
}

@media (max-width: 520px) {
  .record-hero {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 16px;
    gap: var(--space-md);
  }

  .record-title {
    font-size: 30px;
  }

  .record-sheet {
    width: 84px;
    padding: 10px 7px 7px;
    gap: 3px;
  }

  .sheet-verdict b {
    font-size: 7px;
  }

  .sheet-firm {
    font-size: 5px;
  }

  .sheet-doc {
    display: none;
  }
}

/* ==========================================================================================
   UI v3: the web as the iPhone app's sibling. Inset grouped lists, the system type scale, no
   shadows, the face ring as the one memorable mark. This layer comes last and wins.
   ========================================================================================== */
:root {
  --shadow-card: none;
  --radius-card: 16px;
  --radius-control: 12px;
}

body {
  background: var(--c-paper);
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* type: iOS large title, title 2, body, subheadline, footnote */
.page-title,
.firm-name,
.sign-in h1,
#create_firm h1,
#firm_owner_only h1,
#firm_picker h1 {
  font-family: var(--font-address);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2,
.panel-head h2,
.sect-name {
  font-family: var(--font-address);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.address {
  font-family: var(--font-address);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.job-head .address {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.muted {
  font-size: 15px;
}

/* surfaces: one radius, a hairline, no shadow */
.card,
.panel,
.block,
details.sect,
.empty-card {
  border-radius: var(--radius-card);
  box-shadow: none;
}

.card {
  border-left-width: 1px;
  border-left-color: var(--c-card-border);
}

/* buttons: 50 tall, radius 12, the brand fill for the one primary action */
button,
.primary-link {
  min-height: 50px;
  border-radius: var(--radius-control);
  background: var(--c-brand-primary);
  border-color: var(--c-brand-primary);
  font-size: 17px;
  letter-spacing: -0.01em;
}

button.secondary {
  background: color-mix(in srgb, var(--c-brand-primary) 10%, transparent);
  border-color: transparent;
  color: var(--c-brand-primary);
}

button.quiet,
button.link {
  background: transparent;
  border-color: transparent;
  color: var(--c-brand-primary);
}

button.danger {
  background: color-mix(in srgb, var(--c-danger) 10%, transparent);
  border-color: transparent;
  color: var(--c-danger);
}

button.link.danger {
  background: transparent;
}

button.positive {
  background: var(--c-danger);
  border-color: var(--c-danger);
}

button.negative {
  background: var(--c-success);
  border-color: var(--c-success);
}

a {
  color: var(--c-brand-primary);
}

/* fields: filled, rounded, no underline; focus is a brand ring */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
select,
textarea {
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--c-field-fill);
  font-size: 17px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--c-brand-primary);
  outline: 3px solid color-mix(in srgb, var(--c-brand-primary) 22%, transparent);
  outline-offset: 0;
}

/* chips: the result is loud, the state is quiet */
.status,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  background: var(--c-field-fill);
  color: var(--c-text-secondary);
}

.chip .ico,
.status .ico {
  flex: none;
}

.chip-lead {
  background: var(--c-danger);
  /* the card color reads on the red in both themes: white on #D1341F, near-black on #FF6B5A */
  color: var(--c-card-background);
}

.status-complete,
.chip-clear {
  background: var(--c-success-tint);
  color: var(--c-success);
}

.status-testing,
.chip-warn,
.chip-unfinished {
  background: var(--c-warning-tint);
  color: var(--c-warning);
}

.status-draft,
.chip-none {
  background: var(--c-field-fill);
  color: var(--c-text-secondary);
}

/* the face ring */
.ring {
  flex: none;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--c-separator);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke: var(--c-brand-primary);
}

.ring-lead .ring-fill {
  stroke: var(--c-danger);
}

.ring-clear .ring-fill {
  stroke: var(--c-success);
}

.ring-text {
  fill: var(--c-ink);
  font: 600 10.5px/1 var(--font-ui);
  letter-spacing: -0.02em;
}

.ring-tick {
  fill: none;
  stroke: var(--c-success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ring.is-full .ring-fill {
  stroke: var(--c-success);
}

.ring-lead.is-full .ring-fill {
  stroke: var(--c-danger);
}

.ring-lead.is-full .ring-tick {
  stroke: var(--c-danger);
}

/* job lists: one inset grouped container, divided rows, the ring at the start */
.rows.rich,
#map_list,
#stack_rows {
  overflow: hidden;
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
  box-shadow: none;
}

.rows.rich > li,
#map_list > li,
#stack_rows > li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
  padding: 0 var(--space-lg) 0 0;
  border: 0;
  border-bottom: 1px solid var(--c-separator);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rows.rich > li:last-child,
#map_list > li:last-child,
#stack_rows > li:last-child {
  border-bottom: 0;
}

.rows.rich > li.pin-lead,
.rows.rich > li.pin-clear,
.rows.rich > li.pin-unfinished,
.rows.rich > li.pin-none,
#map_list > li.pin-lead,
#map_list > li.pin-clear,
#map_list > li.pin-unfinished,
#map_list > li.pin-none {
  border-left: 0;
}

.rows.rich .row-main,
#map_list .row-main {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0 14px var(--space-lg);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}

.rows.rich .row-main:hover,
#map_list .row-main:hover {
  background: transparent;
}

.rows.rich > li:hover,
#map_list > li:hover {
  background: color-mix(in srgb, var(--c-ink) 3%, transparent);
}

.job-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.job-text .muted {
  font-size: 15px;
}

.job-next {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-brand-primary);
}

.row-chips {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: none;
  color: var(--c-text-secondary);
}

.row-chips > .ico {
  opacity: 0.55;
}

/* filter pills that carry the counts */
.pills-row,
.map-tools .chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--c-card-border);
  border-radius: 999px;
  background: var(--c-card-background);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
}

.pill-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c-field-fill);
  color: var(--c-text-secondary);
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pill-lead .pill-count {
  background: var(--c-danger-tint);
  color: var(--c-danger);
}

.pill-clear .pill-count {
  background: var(--c-success-tint);
  color: var(--c-success);
}

.pill[aria-pressed="true"] {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-paper);
}

.pill[aria-pressed="true"] .pill-count {
  background: color-mix(in srgb, var(--c-paper) 22%, transparent);
  color: var(--c-paper);
}

/* firm home header */
.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.home-actions button {
  min-height: 44px;
  padding: 0 18px;
}

/* the job header: the ring beside the street */
.job-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  text-align: left;
}

.job-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.job-head .job-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 4px;
}

.crumb a {
  font-size: 15px;
  font-weight: 600;
}

/* the rail: the active page is a brand tint, like the iPad sidebar */
.rail nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--c-brand-primary) 12%, transparent);
  color: var(--c-brand-primary);
}

.rail nav a,
.rail-foot a {
  border-radius: 10px;
}

@media (max-width: 520px) {
  .page-title,
  .firm-name {
    font-size: 30px;
  }

  .job-head .address {
    font-size: 24px;
  }

  .home-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .row-chips .status,
  .row-chips .chip {
    font-size: 12px;
    padding: 3px 8px;
  }
}

/* the job list gets room for one line of detail beside the map */
@media (min-width: 900px) {
  .map-body {
    grid-template-columns: minmax(380px, 480px) minmax(0, 1fr);
  }
}

/* ---------- UI v3: the public pages (privacy, terms, support) ---------- */
.legal {
  max-width: 1040px;
  gap: var(--space-lg);
}

.legal-switch {
  display: inline-flex;
  align-self: flex-start;
  justify-self: start;
  width: fit-content;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--c-field-fill);
}

.legal-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-switch a[aria-current="page"] {
  background: var(--c-card-background);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

.legal .lede {
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-ink);
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.6;
}

.legal > section > h2,
.legal h2 {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-separator);
}

.legal-toc {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
}

.legal-toc a {
  min-height: 36px;
  color: var(--c-text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--c-brand-primary);
}

/* wide: the contents sit in a sticky column beside the reading column */
@media (min-width: 1000px) {
  .legal {
    display: grid;
    grid-template-columns: 220px minmax(0, 68ch);
    column-gap: var(--space-xxl, 24px);
    align-items: start;
  }

  .legal > * {
    grid-column: 2;
  }

  .legal > .legal-toc {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: var(--space-xl);
    margin-top: 0;
  }

  .legal-toc ul {
    flex-direction: column;
    gap: 0;
  }

  /* Support has no contents column: one reading column, flush left like the others' text */
  .legal:not(:has(> .legal-toc)) {
    grid-template-columns: minmax(0, 68ch);
  }

  .legal:not(:has(> .legal-toc)) > * {
    grid-column: 1;
  }
}

/* support */
.contact-card {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
}

.legal .contact-card h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.contact-card .primary-link {
  align-self: flex-start;
  padding: 0 22px;
  color: var(--c-on-brand);
  text-decoration: none;
}

.faq-group {
  overflow: hidden;
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  background: var(--c-card-background);
}

.legal details.faq {
  padding: 0 var(--space-lg);
  border-bottom: 1px solid var(--c-separator);
}

.legal details.faq:last-child {
  border-bottom: 0;
}

.legal details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.legal details.faq summary::-webkit-details-marker {
  display: none;
}

.legal details.faq h3 {
  font-size: 17px;
  font-weight: 600;
}

.faq-chev {
  flex: none;
  fill: none;
  stroke: var(--c-text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 150ms ease;
}

.legal details.faq[open] .faq-chev {
  transform: rotate(180deg);
}

.legal details.faq p {
  padding-bottom: var(--space-lg);
  color: var(--c-text-secondary);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

@media (prefers-reduced-motion: reduce) {
  .faq-chev {
    transition: none;
  }
}

/* Motion answers an action: only the notice slot that say() fills fades in. Notices that are part of the
   page (a legal callout, the expiring-card banner) are simply there. */
.notice {
  animation: none;
}

#notice.notice {
  animation: settle 150ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  #notice.notice {
    animation: none;
  }
}

/* Sign in with Apple follows Apple's button rules: black on light, white on dark, never the brand color. */
#sign_in_apple {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  #sign_in_apple {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #000000;
  }
}

/* Round 6. F2: the office pills wrap on a desktop-width window instead of hiding the last lists off the edge. */
@media (min-width: 600px) {
  .pills-row { flex-wrap: wrap; overflow-x: visible; }
}

/* F15: a long chip wraps at phone width instead of running off the edge. */
p.chip, .panel .chip { white-space: normal; max-width: 100%; }
select { max-width: 100%; }

/* F14: Next in {list}, under the job's stepper. */
.next-in-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin: var(--space-sm) 0; }

/* F7: the certificate as saved. */
.proof-thumb { display: block; max-width: 220px; max-height: 160px; margin-top: var(--space-sm); border: 1px solid var(--c-border); border-radius: 8px; object-fit: contain; }

/* F13: the close asks once. */
.confirm { border: 1px solid var(--c-border); border-radius: 12px; padding: var(--space-md); }

/* F5: the stage chip on the job header. */
.status-closed { color: var(--c-text-secondary); }
.status-ready { color: var(--c-text); }

/* Decision 16: a link hand-over's log and sheet on the case page, and the link and passcode shown once. */
.handover-log, .link-sheet { margin-top: 6px; }
.handover-log summary, .link-sheet summary { cursor: pointer; color: var(--c-text-secondary); font-size: 15px; }
.handover-log ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.link-sheet .stack { margin-top: 8px; }
#issued code { overflow-wrap: anywhere; font-size: 13px; }
#issued_passcode { font-size: 22px; letter-spacing: 0.08em; }

.people-anchor { display: inline-block; position: relative; margin: .25rem .5rem .25rem 0; }
.people-popover { position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 12; width: min(23rem, 78vw); padding: .75rem; background: Canvas; color: CanvasText; border: 1px solid GrayText; border-radius: .6rem; box-shadow: 0 .4rem 1.3rem #0002; }
.people-popover [role=listbox] { max-height: min(24rem, 46vh); overflow: auto; }
.people-popover [hidden] { display: none !important; }
.people-popover h4 { margin: .5rem 0 .25rem; }
.people-choice { padding: .25rem 0; }
.people-choice [role=option] { display: flex; align-items: center; gap: .55rem; text-align: start; width: 100%; color: inherit; background: transparent; border: 1px solid transparent; }
.people-choice [role=option]:disabled { opacity: .66; }
.people-choice [role=option] small { display: block; }
.people-choice .people-highlight { border-color: currentColor; }
.people-avatar { flex: none; border: 1px solid GrayText; border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; font-size: .75rem; }

.foot:has(> #why_sheet) {
  flex-wrap: wrap;
}

.foot > #why_sheet {
  flex: 0 0 100%;
  min-width: 0;
}

.guide-filters label {
  display: grid;
  gap: var(--space-xs);
}

.guide-filters input,
.guide-filters select {
  width: 100%;
  min-width: 0;
}

.guide-results {
  list-style: none;
  padding: 0;
}

.guide-card {
  overflow-wrap: anywhere;
}

.guide-card h2 {
  font-size: 1.1rem;
}

.guide-card li + li {
  margin-top: var(--space-xs);
}

@media (min-width: 760px) {
  .guide-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }
}

/* Walk WEB-4-2: a cancelled job's row reads grey, not in the office line's colour. */
.rows > li.is-cancelled .office-line,
.rows > li.is-cancelled .address {
  color: var(--c-text-secondary);
}

/* Walk WEB-5-1: a form's message right after the control that was pressed. */
.notice-near {
  margin-top: var(--space-sm, 8px);
}

/* Walk WEB-11-8 (round 11): no page scrolls sideways at phone width. A flex or grid child may shrink below its content
   (the pills row then scrolls inside itself), a readiness row wraps its chip under the text, and a wide table scrolls in
   its own box. */
.home, .home-body, .home-main, .home-head, .stack, .cols > *, .col, .panel, .readiness-job, .readiness-item { min-width: 0; }
.pills-row { max-width: 100%; }
.readiness-item { flex-wrap: wrap; }
.readiness-item .row-main { min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Walk WEB-11-9 (d): Revoke sits beside or under the invite's line, never on it. */
/* Walk WEB-13-9: the list's default 40 px indent left a blank gutter before each invite (its li is flex, so no bullet shows). */
.invites { list-style: none; margin: 0; padding: 0; }
.invites li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.invites .invite-actions { margin-left: auto; }
/* Walk WEB-11-9 (a): the Inspections tabs centre their labels. (b) Every case row lays out the same way. */
#inspection_tabs .chip-button { display: inline-flex; align-items: center; justify-content: center; }
/* Walk WEB-13-3: the open tab is filled (as a pressed chip), and every label stays on one line inside its pill; at
   375 px the pills wrap to a second line (every tab stays in view) rather than squeezing "Readiness" out of its pill. */
#inspection_tabs { flex-wrap: wrap; }
#inspection_tabs .chip-button { flex: none; white-space: nowrap; padding: 0 var(--space-md); }
#inspection_tabs .chip-button[aria-current="page"] { background: var(--c-mark); border-color: var(--c-mark); color: var(--c-on-brand); }
.case-row .row-main { display: flex; flex-direction: column; gap: 2px; }
/* Walk round 12 (round-11 375 px check): a case row's title and chip took the whole row and squeezed its due line to
   0 px (the Cases tab scrolled 64 px sideways); a readiness job's "Not done" line was squeezed the same way. The line
   wraps under the title when the row is narrow. */
.case-row { flex-wrap: wrap; }
.case-row > a { min-width: 0; overflow-wrap: anywhere; }
.case-row .row-main { flex: 1 1 14rem; overflow-wrap: anywhere; }
.readiness-job { flex-wrap: wrap; }
.readiness-job > .rows, .readiness-job > p { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
/* Walk WEB-12-4: a warning notice with buttons squeezed its text to one word per line (Settings' Change to Team confirm at
   1024 px) and, in a case row, drew Confirm / Dismiss over the text at 375 px. The text takes its own full line and the
   buttons go under it, as the invite confirm does. */
.notice-warn { flex-wrap: wrap; }
.notice-warn > p { flex: 1 1 100%; min-width: 0; margin: 0; }
.visit-row { flex-wrap: wrap; }
.visit-row > .row-main { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
/* Walk WEB-12-14: the name and its line are one block, so Revoke stays beside them in a half-width card. */
.invites .invite-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }

/* ---------- the public site: home, pricing, how it works (docs/design/marketing-site.md) ----------
   Owner direction (2026-11-12): themed after the Measure Tech PRO site, the sister product. Full-width bands that
   alternate night (charcoal), day and a pale green tint; heavy, tight headlines on the system stack (no web font, so no
   third-party request); mint on night; the SwabSnap green for the one action. The sample record is the loud thing. */
:root {
  /* Night bands look the same in both schemes, so they take the app's dark token values (tokens/tokens.json): dark
     card for the ground, dark field for cards on it, dark ink and muted text, dark brand-pressed as the mint, and the
     dark danger and success for swab results. Day and tint follow the page's scheme through the theme variables. */
  --mk-night: #1C1C1E;
  --mk-night-card: #2C2C2E;
  --mk-night-line: rgb(255 255 255 / 10%);
  --mk-night-text: #F5F7F6;
  --mk-night-muted: #98A29E;
  --mk-mint: #6BE2B0;
  --mk-danger: #FF6B5A;
  --mk-success: #3DD598;
  --mk-day: var(--c-background);
  --mk-tint: color-mix(in srgb, var(--c-success-tint) 55%, var(--c-background));
  --mk-line: rgb(0 0 0 / 8%);
  --mk-text: var(--c-ink);
  --mk-muted: var(--c-text-secondary);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Black day, green-black tint, charcoal night: three grounds that stay apart. */
    --mk-tint: var(--c-success-tint);
    --mk-line: rgb(255 255 255 / 10%);
  }
}

/* The public header: night on the public site, the nav while signed out only. */
.public-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-control);
  color: var(--c-text-secondary);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.public-nav a:hover {
  color: var(--c-ink);
  text-decoration: none;
}

.public-nav a[aria-current="page"] {
  color: var(--c-ink);
}

.public-nav .public-nav-sign-in {
  margin-left: var(--space-sm);
  border: 1px solid var(--c-border);
  color: var(--c-ink);
}

.shell[data-auth="in"] .public-nav {
  display: none;
}

.shell[data-auth="out"]:has(.mk) .top {
  background: var(--mk-night);
  border-bottom-color: var(--mk-night-line);
}

.shell[data-auth="out"]:has(.mk) .brand {
  color: var(--mk-night-text);
}

.shell[data-auth="out"]:has(.mk) .public-nav a {
  color: var(--mk-night-muted);
}

.shell[data-auth="out"]:has(.mk) .public-nav a:hover,
.shell[data-auth="out"]:has(.mk) .public-nav a[aria-current="page"] {
  color: var(--mk-night-text);
}

.shell[data-auth="out"]:has(.mk) .public-nav .public-nav-sign-in {
  border-color: var(--mk-night-line);
  color: var(--mk-night-text);
}

/* A phone: the links take their own row under the mark and scroll sideways inside it if they must. */
@media (max-width: 599px) {
  .shell[data-auth="out"] .top {
    flex-wrap: wrap;
    row-gap: 0;
    padding-bottom: var(--space-sm);
  }

  /* Not sticky on a phone: two rows of header would hold an eighth of the screen. */
  .shell[data-auth="out"]:has(.mk) .top {
    position: static;
  }

  .public-nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: calc(-1 * var(--space-md));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-nav .public-nav-sign-in {
    margin-left: auto;
  }
}

/* The page: bands run edge to edge; their content keeps the console's 1120 px column. */
#app:has(> .mk) {
  max-width: none;
  padding: 0;
}

#app > .mk {
  max-width: none;
  margin: 0;
}

.mk {
  color: var(--mk-text);
}

.mk-band {
  padding: 56px var(--space-lg);
  background: var(--mk-day);
}

.mk-tint {
  background: var(--mk-tint);
}

.mk-night {
  background: var(--mk-night);
  color: var(--mk-night-text);
}

.mk-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.mk p {
  max-width: 62ch;
  line-height: 1.55;
}

.mk-night p {
  color: var(--mk-night-muted);
}

.mk-night a:not(.primary-link) {
  color: var(--mk-mint);
}

.mk-mint {
  color: var(--c-mark);
}

.mk-night .mk-mint {
  color: var(--mk-mint);
}

.mk-title {
  font-family: var(--font-address);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--mk-night-text);
}

.mk-title span {
  display: inline-block;
}

.mk-lede {
  margin-top: var(--space-lg);
  font-size: 19px;
}

.mk .mk-lede {
  max-width: 48ch;
}

.mk-h2 {
  font-family: var(--font-address);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--mk-mint) 30%, transparent);
  border-radius: var(--radius-chip);
  background: color-mix(in srgb, var(--mk-mint) 10%, transparent);
  font-size: 14px;
  font-weight: 600;
}

.mk-night .mk-pill {
  color: var(--mk-mint);
}

.mk-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mk-mint);
  content: "";
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xxl);
}

.mk-actions .primary-link {
  border-radius: 12px;
}

.mk-night .primary-link {
  background: var(--c-brand-primary);
  border-color: var(--c-brand-primary);
}

.mk .primary-link.secondary {
  background: transparent;
  border: 1px solid var(--mk-line);
  color: var(--mk-text);
}

.mk .mk-night .primary-link.secondary {
  border-color: rgb(255 255 255 / 28%);
  color: var(--mk-night-text);
}

/* Hero: the words on the left, the sample record on the right from 960 px; the three steps run along the bottom. */
.mk-hero {
  display: grid;
  gap: 48px;
  align-items: center;
}

.mk-strip {
  display: grid;
  gap: var(--space-xl);
  margin: 56px 0 0;
  padding: var(--space-xxl) 0 0;
  border-top: 1px solid var(--mk-night-line);
  list-style: none;
}

.mk-strip li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mk-strip h3 {
  margin: 0;
  color: var(--mk-night-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mk-strip p {
  font-size: 15px;
}

/* The sample record: a night card with the console's rules, the address set large. */
.mk-sample {
  margin: 0;
}

.mk-record {
  padding: var(--space-xxl);
  border: 1px solid var(--mk-night-line);
  border-radius: 20px;
  background: var(--mk-night-card);
  box-shadow: 0 4px 20px rgb(0 0 0 / 35%), 0 0 40px color-mix(in srgb, var(--mk-success) 14%, transparent);
}

.mk .mk-record-address {
  color: var(--mk-night-text);
  font-family: var(--font-address);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mk .mk-record-city {
  margin-top: 4px;
  color: var(--mk-night-muted);
}

.mk-swabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.mk-swab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 48px;
  padding: 0 var(--space-md) 0 var(--space-lg);
  border-radius: 4px 10px 10px 4px;
  background: rgb(255 255 255 / 4%);
  box-shadow: inset 3px 0 0 var(--mk-success);
  color: var(--mk-night-text);
  font-size: 15px;
}

.mk-swab-positive {
  box-shadow: inset 3px 0 0 var(--mk-danger);
}

.mk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-chip);
  color: var(--mk-night);
  font-size: 13px;
  font-weight: 700;
}

.mk-chip-positive {
  background: var(--mk-danger);
  color: var(--mk-night);
}

.mk-chip-negative {
  background: color-mix(in srgb, var(--mk-success) 18%, transparent);
  color: var(--mk-success);
}

.mk-sample figcaption {
  margin-top: var(--space-md);
  text-wrap: pretty;
  color: var(--mk-night-muted);
  font-size: 13px;
}

/* A heading on the left, the words on the right, from 900 px. */
.mk-split {
  display: grid;
  gap: var(--space-lg);
}

.mk-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mk-copy p,
.mk-signup-text p {
  font-size: 17px;
}

.mk-day .mk-copy p,
.mk-tint .mk-copy p,
.mk-signup-text p {
  color: var(--mk-muted);
}

.mk .mk-note {
  font-size: 15px;
}

.mk-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 360px;
  padding: var(--space-xl);
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--c-mark);
  border-radius: var(--radius-card);
  background: var(--mk-day);
}

.mk .mk-card .mk-card-title {
  color: var(--mk-text);
  font-weight: 700;
}

.mk .mk-card .mk-card-price {
  color: var(--mk-text);
  font-family: var(--font-address);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-doc {
  padding-left: var(--space-lg);
  border-left: 3px solid var(--mk-mint);
}

.mk-night .mk-doc {
  color: var(--mk-night-text);
  font-size: 19px;
}

.mk .mk-day .mk-copy .mk-doc,
.mk .mk-tint .mk-copy .mk-doc {
  border-left-color: var(--c-mark);
  color: var(--mk-text);
}

/* Sign-up: the pitch beside the unchanged form card. */
.mk-signup {
  display: grid;
  gap: var(--space-xxl);
  align-items: start;
}

.mk-signup-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mk-signup .sign-in-title {
  margin: 0;
  font-family: var(--font-address);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mk-signup .sign-in {
  width: 100%;
  margin: 0;
  color: var(--c-ink);
}

#sign_in {
  scroll-margin-top: 80px;
}

/* The about block sits in the last band, as written. */
.mk .about {
  max-width: 720px;
  margin: 0;
  color: var(--mk-text);
}

.mk .about p {
  color: var(--mk-muted);
}

.mk-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mk-cta .mk-actions {
  margin-top: var(--space-lg);
}

/* Pricing: the plan screen's list on a day band. */
.mk-page .plans {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mk-page .plan-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mk-page .plan-group-head {
  margin: 0;
}

.mk-page .plan-group + .plan-group {
  margin-top: var(--space-xl);
}

.mk-page .plans-head {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mk-page .plan {
  border-color: var(--mk-line);
  border-radius: 20px;
}

.mk-page .plan-price {
  font-family: var(--font-address);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-page .plan-mtp {
  border-left-color: var(--c-mark);
  background: var(--mk-tint);
}

.mk-page .plans > .muted {
  max-width: 72ch;
}

/* The footer below a public page is night too. */
.shell[data-auth="out"]:has(.mk) .site-foot-wrap {
  max-width: none;
  padding: 0 var(--space-lg) var(--space-xxl);
  background: var(--mk-night);
}

.shell[data-auth="out"]:has(.mk) .site-foot a {
  color: var(--mk-night-muted);
}

.shell[data-auth="out"]:has(.mk) .site-foot a:hover {
  color: var(--mk-night-text);
}

.shell[data-auth="out"]:has(.mk) .site-foot {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 0;
}

/* A support question opened from a link clears the sticky header (two rows on a phone). */
details.faq {
  scroll-margin-top: 72px;
}

@media (max-width: 599px) {
  #sign_in {
    scroll-margin-top: var(--space-lg);
  }

  details.faq {
    scroll-margin-top: 120px;
  }
}

@media (min-width: 700px) {
  .mk-band {
    padding: 80px var(--space-xxl);
  }

  .mk-title {
    font-size: 56px;
  }

  .mk-h2 {
    font-size: 38px;
  }

  .mk-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xxl);
  }

  .mk .mk-record-address {
    font-size: 40px;
  }
}

@media (min-width: 900px) {
  .mk-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
  }

  .mk-signup {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 64px;
  }

  .mk-signup-text {
    position: sticky;
    top: 104px;
  }
}

@media (min-width: 960px) {
  .mk-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }

  .mk-home .mk-night:first-child {
    padding-top: 96px;
  }

  .mk-title {
    font-size: 64px;
  }
}
