/* Trades on Main. Signature: the season band (.tc-season) on /today — the year as twelve cells, tune-up months raised in the
   primary blue with how many members are due. Everything else is Empire UI. Bump ASSET_V in src/lib/shop.tsx on change. */

.tc-season {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
}
.tc-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 56px;
  border-top: 2px solid var(--border);
  padding-top: 4px;
  color: var(--muted-foreground);
}
.tc-month.on {
  height: 72px;
  border-top: 6px solid var(--primary);
  color: var(--foreground);
}
.tc-month.now .tc-name {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tc-count {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tc-name {
  font-size: 0.75rem;
}
@media (max-width: 480px) {
  .tc-name {
    font-size: 0.625rem;
  }
  .tc-count {
    font-size: 1rem;
  }
}

.tc-qr {
  width: min(280px, 100%);
  margin: 1rem auto;
  background: #fff; /* QR codes need a light quiet zone in dark mode too */
  padding: 8px;
  border-radius: 8px;
}
.tc-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.tc-link {
  text-align: center;
  word-break: break-all;
  font-size: 0.875rem;
}
.tc-status {
  margin: 1rem 0;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.tc-status.paid {
  border-color: var(--success, #2e7d4f);
  font-size: 1.25rem;
}

.tc-money {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tc-money .input {
  max-width: 10rem;
}

.tc-terms {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  max-height: 16rem;
  overflow: auto;
}
.tc-terms p + p {
  margin-top: 0.5rem;
}
.tc-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
}
.tc-consent input {
  margin-top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.tc-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border: 0;
  padding: 0;
}
.tc-choice legend {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tc-shophead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.tc-shopname {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--foreground);
}
.tc-price {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.tc-perks {
  list-style: disc;
  padding-left: 1.25rem;
}
.tc-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
}
.tc-facts dt {
  color: var(--muted-foreground);
}
.tc-list {
  display: grid;
  gap: 0.4rem;
}

/* The business kit: shop website, requests, invoices, price book, leave-behind card. */
.tc-hero {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}
.tc-hero h1 {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1;
}
.tc-lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.tc-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.35rem 1rem;
  list-style: disc;
  padding-left: 1.25rem;
}
.tc-shopfacts {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.tc-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.35rem 1rem;
  border: 0;
  padding: 0;
}
.tc-services legend {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.tc-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.tc-pricebook {
  display: grid;
  gap: 0.5rem;
}
.tc-price-row,
.tc-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 0.5rem;
  align-items: center;
}
.tc-line {
  grid-template-columns: minmax(0, 1fr) 4.5rem auto auto;
}
.tc-qty {
  text-align: center;
}
@media (max-width: 640px) {
  .tc-price-row,
  .tc-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tc-price-row > input[name="name"],
  .tc-line > input[name$="line_name"] {
    grid-column: 1 / -1;
  }
}

/* Estimates (s0004): options side by side when there's room, stacked cards on a phone; the shop's pick outlined. */
.tc-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: start;
}
.tc-option.rec,
.tc-option.chosen {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.tc-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.tc-pick:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, transparent);
}
.tc-pick input {
  width: 1.15rem;
  height: 1.15rem;
}
.tc-option-edit {
  display: grid;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.tc-option-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.tc-option-head .input {
  max-width: 14rem;
  font-weight: 600;
}
.tc-more-option,
.tc-more {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.tc-more-option > summary,
.tc-more > summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--primary);
}
.tc-more-option[open] > summary,
.tc-more[open] > summary {
  margin-bottom: 0.75rem;
}
.tc-upsell {
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.tc-upsell legend {
  font-weight: 600;
  padding: 0 0.25rem;
}
.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.tc-lines-edit {
  display: grid;
  gap: 0.6rem;
}
.tc-lines {
  margin-bottom: 1rem;
}
.tc-total td {
  font-weight: 700;
  border-top: 2px solid var(--foreground);
}
.tc-paid-offline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.tc-request {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.tc-inline-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.tc-flyer {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.25rem;
}
.tc-flyer h1 {
  font-family: var(--font-heading, inherit);
  font-size: 2rem;
}
.tc-flyer-phone {
  font-size: 1.5rem;
  font-weight: 700;
}
.tc-flyer-url {
  font-size: 0.9rem;
  word-break: break-all;
}
@media print {
  header,
  footer,
  nav,
  .tc-noprint,
  #toaster {
    display: none !important;
  }
  .tc-flyer {
    color: #000;
  }
}
.tc-logo {
  height: 1.75rem;
  width: auto;
  max-width: 6rem;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.tc-about {
  display: grid;
  gap: 0.75rem;
}
.tc-team-photo {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 8px;
}
.tc-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.tc-photo-slot {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.tc-logo-preview {
  max-height: 4rem;
  width: auto;
  object-fit: contain;
}
.tc-photo-preview {
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
  border-radius: 6px;
}
.tc-thread {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.tc-msg {
  max-width: 85%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.tc-msg.mine {
  justify-self: end;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.tc-msg-who {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.tc-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
}
.tc-hero-logo {
  max-height: 4rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
}

/* Landing page (src/routes/home.tsx). */
.tc-phone {
  border: 8px solid #1d1d1f;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  width: min(240px, 70vw);
  margin-inline: auto;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.tc-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-photo .tc-phone {
  width: min(170px, 42vw);
  border-width: 6px;
  border-radius: 22px;
}
.tc-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  border-block: 1px solid var(--border);
  padding-block: 1rem;
}
.tc-trust li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}
.tc-section-title {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}
.tc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.tc-steps li {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}
.tc-steps h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.tc-step-n {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.9rem;
  margin-right: 0.25rem;
}
.tc-center {
  text-align: center;
  margin-top: 1rem;
}
.tc-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .tc-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}
.tc-examples td.num:last-child {
  font-weight: 700;
}
.tc-faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.tc-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.tc-faq details p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
.tc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--background);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.tc-sticky.on {
  transform: none;
}
@media (min-width: 768px) {
  .tc-sticky {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tc-sticky {
    transition: none;
  }
}
/* Hero: the phone overlaps the photo's bottom-right corner, no card behind it. */
.tc-hero-photo .hero-photo-overlay {
  position: absolute;
  right: 4%;
  bottom: -1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.tc-hero-photo {
  margin-bottom: 2rem;
}
.tc-hero-photo .hero-photo-credit {
  max-width: 55%;
}
.tc-hero-photo .tc-phone {
  width: min(150px, 34vw);
  height: auto;
}
.tc-hero-photo .tc-phone img {
  aspect-ratio: 480 / 640;
  object-fit: cover;
  object-position: top;
}

/* /preview: the form beside the page as it will look, in a browser frame. */
.tc-preview-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .tc-preview-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .tc-preview-layout > div:first-child {
    position: sticky;
    top: 5rem;
  }
}
.tc-preview {
  display: grid;
  gap: 1rem;
}
.tc-browser {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--background);
}
.tc-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.tc-browser-dots {
  width: 2.25rem;
  height: 0.6rem;
  background: radial-gradient(circle, #e5675e 40%, transparent 41%) 0 0 / 0.75rem 0.6rem repeat-x;
  opacity: 0.8;
}
.tc-browser-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-browser-body {
  padding: 1rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .tc-browser-body {
    max-height: 70vh;
    overflow: auto;
  }
}
.tc-make-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  scroll-margin-top: 6rem;
}

/* Equipment (routes/equipment.tsx): units with age and hints, Add equipment, unit photos. */
.tc-units {
  display: grid;
  gap: 0.75rem;
}
.tc-units > li {
  display: grid;
  gap: 0.2rem;
}
.tc-units > li.tc-unit-row {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tc-units > li.tc-unit-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tc-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tc-add > summary,
.tc-more > summary {
  cursor: pointer;
  width: fit-content;
}
.tc-add > summary {
  list-style: none;
}
.tc-add > summary::-webkit-details-marker {
  display: none;
}
.tc-add[open] > summary {
  margin-bottom: 1rem;
}
.tc-more[open] > summary {
  margin-bottom: 0.75rem;
}
.tc-unit-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.tc-unit-photos figure {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}
.tc-pre {
  white-space: pre-wrap;
}
/* ---- Jobs, the board, My day (routes/jobs.tsx) ---- */
.tc-job {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}
.tc-job.s-working {
  border-left: 4px solid var(--primary);
}
.tc-job-when {
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.tc-addr {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tc-job-actions .btn {
  min-height: 44px;
}
.tc-checklist summary,
.tc-hours summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0;
}
.tc-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: grid;
  gap: 2px;
}
.tc-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.25rem;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tc-check::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--muted-foreground);
  border-radius: 4px;
}
.tc-check.on {
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.tc-check.on::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--background);
}
.tc-job-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}
.tc-job-photos figure {
  position: relative;
  margin: 0;
}
.tc-job-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.tc-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.tc-photo-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tc-photo-add .input {
  flex: 1 1 12rem;
}
.tc-move {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.tc-clock {
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 0.6rem 0.9rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tc-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-variant-numeric: tabular-nums;
}
.tc-glance strong {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  margin-right: 0.2rem;
}
.tc-due-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* The board: lanes per tech (day) or columns per day (week); stacked on phones. */
.tc-board-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tc-lanes,
.tc-week {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tc-lanes {
    grid-template-columns: repeat(var(--lanes, 2), minmax(200px, 1fr));
    overflow-x: auto;
  }
  .tc-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
.tc-lane,
.tc-weekday {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-height: 6rem;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
}
.tc-weekday.now {
  border-color: var(--primary);
}
.tc-drop-over {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
}
.tc-tray {
  display: grid;
  gap: 0.4rem;
}
.tc-minis {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tc-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--card, var(--background));
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  min-width: 0;
}
.tc-mini:hover {
  border-color: var(--primary);
}
.tc-mini[draggable="true"] {
  cursor: grab;
}
.tc-mini.s-done {
  border-left-color: var(--muted-foreground);
  border-style: dashed;
}
.tc-mini.s-working,
.tc-mini.s-on_way {
  border-left-width: 6px;
}
.tc-mini-when {
  flex: none;
  min-width: 2.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.tc-mini-body {
  display: grid;
  min-width: 0;
  flex: 1;
}
.tc-mini-body > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-initials {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary, var(--muted));
  font-size: 0.7rem;
  font-weight: 700;
}
.tc-lane-add {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.tc-caps {
  display: inline-flex;
  gap: 0.35rem;
  vertical-align: middle;
}
.tc-cap {
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
.tc-cap.full {
  border-color: var(--primary);
  color: var(--primary);
}
.tc-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border: 0;
  padding: 0;
}

/* Online booking: open windows as tappable cards. */
.tc-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}
.tc-slot {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}
.tc-slot > span {
  display: grid;
}
.tc-slot:has(input:checked) {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

/* Texting: Trades on Main's own unticked box on homeowner forms (quieter than the plan-terms box), the ETA + On my way pair. */
.tc-sms-box {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.tc-sms-box a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tc-onway {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.tc-onway .select {
  width: auto;
  min-width: 6.5rem;
}
.tc-texts-recent li {
  padding: 0.2rem 0;
}

/* Bookkeeping: the plain-language statement (collected → Stripe → Trades on Main → bank) and the export lists. */
.tc-statement-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.tc-statement-line {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 0.25rem 0 0.75rem;
}
.tc-statement-rows {
  display: grid;
  margin: 0 0 0.5rem;
  max-width: 32rem;
}
.tc-statement-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.tc-statement-rows dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tc-statement-rows dt {
  color: var(--muted-foreground);
}
.tc-statement-total dt,
.tc-statement-total dd {
  color: var(--foreground);
  font-weight: 600;
}
.tc-downloads {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.25rem;
}
.tc-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.tc-books-send,
.tc-books-qbo {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tc-books-errors {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

/* Integration pass (s0008): trade chips at /start and /preview, the customer find box and list, the customer page's
   timeline, one-tap action lists on /today, and the board's owes / open-estimate flags. */
.tc-trade {
  min-width: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.tc-trade legend {
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.tc-trade .chips {
  flex-wrap: wrap;
  overflow: visible;
}
.tc-trade-chip {
  cursor: pointer;
}
.tc-trade-chip input {
  accent-color: var(--primary);
}
.tc-trade-chip:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.tc-findbox {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tc-findbox .input {
  flex: 1;
  min-width: 0;
}
.tc-quickfind {
  display: grid;
  gap: 0.5rem;
}
.tc-find:empty {
  display: none;
}
.tc-people {
  display: grid;
  border-top: 1px solid var(--border);
}
.tc-people > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.tc-person {
  display: grid;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--foreground);
  min-width: 0;
}
.tc-person:hover strong {
  text-decoration: underline;
}
.tc-reach {
  flex-wrap: wrap;
}
.tc-summary .row {
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.tc-act-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.tc-act-list > li:last-child {
  border-bottom: 0;
}
.tc-timeline {
  display: grid;
  gap: 0.5rem;
  border-left: 1px solid var(--border);
  padding-left: 0.85rem;
}
.tc-timeline li {
  display: grid;
  gap: 0.05rem;
}
.tc-thread-mini {
  display: grid;
  gap: 0.4rem;
}
.tc-thread-mini li.me {
  color: var(--muted-foreground);
}
.tc-flags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.tc-flag {
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tc-flag.owes {
  border-color: var(--destructive);
  color: var(--destructive);
}
.tc-flag.quoted {
  border-color: var(--primary);
  color: var(--primary);
}
