/* 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;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.tc-shoplic {
  flex-basis: 100%;
}
.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 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-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;
}
/* "Ready" mode (the link already named the business): their page first, the form after; on wide screens the form
   sits under the headline beside the page. */
.tc-preview-ready {
  grid-template-areas: "intro" "page" "edit";
  gap: 1.25rem;
}
.tc-preview-ready > .tc-preview-intro {
  grid-area: intro;
}
.tc-preview-ready > .tc-preview {
  grid-area: page;
}
.tc-preview-ready > .tc-preview-edit {
  grid-area: edit;
}
.tc-preview-intro .tc-section-title {
  overflow-wrap: anywhere;
}
.tc-preview-edit > summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--primary);
  padding: 0.5rem 0;
}
.tc-preview-edit[open] > summary {
  margin-bottom: 0.75rem;
}
.tc-make-live-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
@media (max-width: 599px) {
  .tc-make-live-top > .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 900px) {
  .tc-preview-ready {
    grid-template-areas: "intro page" "edit page";
    grid-template-rows: auto 1fr;
  }
  .tc-preview-layout.tc-preview-ready > div:first-child {
    position: static;
  }
}
.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;
}
/* The next step on a job card (UX review #9): big, first, side by side; the primary one takes the room. */
.tc-job-actions > form,
.tc-job-actions > .tc-onway {
  flex: 1 1 8rem;
}
.tc-job-actions > form .btn {
  width: 100%;
  justify-content: center;
}
.tc-job-contact .btn,
.tc-photo-add .btn,
.tc-undo .btn,
.tc-send .btn {
  min-height: 44px;
}
.tc-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
}
.tc-job-more summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted-foreground);
}
.tc-job-more[open] summary {
  margin-bottom: 0.5rem;
}
.tc-welcome {
  display: grid;
  gap: 0.6rem;
}
.tc-welcome .card {
  border: 0;
  padding: 0;
  box-shadow: none;
  background: none;
}
.tc-welcome .card > header,
.tc-welcome .card > footer {
  padding-inline: 0;
}
.tc-paid-offline.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tc-paid-offline.lead > span {
  grid-column: 1 / -1;
}
.tc-paid-offline.lead .btn {
  min-height: 44px;
  justify-content: center;
}
.tc-qr-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  font-weight: 500;
}
.tc-checklist summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}
.tc-draft-hint {
  margin: 0;
}
.tc-send {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tc-send > * {
  flex: 1 1 7rem;
  justify-content: center;
}
.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;
}
/* The file input sits under its "Take a photo" button (a label), reachable by keyboard through the label's input. */
.tc-photo-add .tc-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.tc-photo-add .tc-file:focus-visible + .btn {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.tc-photo-add[aria-busy="true"] .btn {
  pointer-events: none;
  opacity: 0.8;
}
.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);
}

/* Marketing pages beyond the home page (src/routes/trades.tsx): trade pages, /trades, /features, /compare. */
.tc-pains {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1rem;
}
.tc-pain {
  font-family: var(--font-serif, serif);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.tc-answers {
  display: grid;
  gap: 1.25rem;
}
.tc-answers h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}
.tc-trade-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.tc-trade-list a {
  font-weight: 600;
}
.tc-compare {
  min-width: 52rem;
  font-size: 0.9375rem;
}
.tc-compare th[scope="row"] {
  white-space: nowrap;
}
.tc-compare .tc-us {
  background: color-mix(in oklab, var(--primary) 7%, transparent);
}

/* Local pros directory (routes/pros.tsx, claim.tsx) */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.crumbs li + li::before {
  content: "\203A";
  margin-right: 0.5rem;
}
.tc-pro-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .tc-pro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tc-pro-links,
.tc-pro-facts,
.tc-pro-lics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.tc-pro-facts {
  padding-left: 1.25rem;
  list-style: disc;
  max-width: 68ch;
}
.tc-pro-lics li + li {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.tc-pro-cols {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 12rem;
  column-gap: 1.5rem;
}
.tc-pro-cols li {
  break-inside: avoid;
  padding: 0.3rem 0;
}
.tc-pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.tc-pro-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.25rem;
}
.tc-pro-card p {
  margin: 0;
}
.tc-pro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.tc-pro-head h2 {
  margin: 0;
}
.tc-pro-ok {
  color: var(--success);
  font-weight: 500;
}
.tc-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tc-pro-faq {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  max-width: 68ch;
}
.tc-pro-faq summary {
  cursor: pointer;
  font-weight: 500;
}
.tc-pro-faq p {
  margin: 0.5rem 0 0;
}

/* Price ranges (lib/ranges.ts): the line under the request form's problem select, the shop page's list, Settings. */
.tc-range-box {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.tc-range {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--primary);
  background: var(--muted);
  border-radius: var(--radius-sm, 4px);
}
.tc-range[hidden],
.tc-range-all[hidden] {
  display: none;
}
.tc-range-all {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.tc-range-box p.muted {
  margin: 0;
}
.tc-ranges {
  display: grid;
  gap: 0.5rem;
}
.tc-range-list,
.tc-cost-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.tc-range-list li,
.tc-cost-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.tc-range-list .num,
.tc-cost-list .num {
  white-space: nowrap;
  font-weight: 500;
}
.tc-range-rows {
  display: grid;
  gap: 0.75rem;
}
.tc-range-row {
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: 1fr;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tc-range-row .tc-range-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tc-range-row .tc-money {
  max-width: 8rem;
}

/* Cost guides (/pros/:state/:trade/:city/cost): one block per job. */
.tc-cost-job {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  max-width: 68ch;
}
.tc-cost-job h2 {
  margin: 0;
}
.tc-cost-range {
  font-family: var(--font-heading, inherit);
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
}
.tc-cost-job ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.tc-cost-src {
  margin: 0;
}

/* Partner program (routes/partners.tsx): the two-part offer, the dashboard's link + QR pair, the counter card. */
.tc-offer {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.tc-offer > div {
  display: grid;
  gap: 0.25rem;
  border-top: 2px solid var(--primary);
  padding-top: 0.75rem;
}
.tc-offer strong {
  font-family: var(--font-heading, inherit);
  font-size: 2.25rem;
  line-height: 1.1;
}
.tc-partner-top {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.tc-qr.tc-qr-sm {
  width: min(180px, 100%);
  margin: 0 0 0.75rem;
}
.tc-partner-card img {
  margin-bottom: 0.25rem;
}
.tc-partner-card .tc-flyer-plan {
  max-width: 28rem;
}
.tc-rival-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tc-compare-techs {
  min-width: 36rem;
}

/* Neighbor flyers (routes/flyers.tsx): four 4.25 × 5.5 in cards to a letter sheet. A deep-blue band, the headline in the
   heading face, the plan in a tinted box, a big QR to book, and the license on every card. Screen = a preview grid. */
.tc-nflyer-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.tc-nflyer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  aspect-ratio: 4.25 / 5.5;
  padding: 1.6rem 1.4rem 1.1rem;
  background: #fff;
  color: #1c1917;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.tc-nflyer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.55rem;
  background: var(--primary, #1f5c99);
}
.tc-nflyer-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary, #1f5c99);
}
.tc-nflyer-title {
  margin: 0;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.65rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #1c1917;
}
.tc-nflyer-lede {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #44403c;
}
.tc-nflyer-plan {
  margin: 0;
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--primary, #1f5c99);
  background: #eef3f9;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #292524;
}
.tc-nflyer-book {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
}
.tc-nflyer-book .tc-qr {
  flex: none;
  width: 6.4rem;
  height: 6.4rem;
  background: #fff;
}
.tc-nflyer-book .tc-qr svg {
  width: 100%;
  height: 100%;
}
.tc-nflyer-scan {
  margin: 0;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.15rem;
  color: var(--primary, #1f5c99);
}
.tc-nflyer-sub {
  margin: 0.1rem 0 0.3rem;
  font-size: 0.76rem;
  color: #57534e;
}
.tc-nflyer-url {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #292524;
  word-break: break-all;
}
.tc-nflyer-foot {
  margin: auto -1.4rem -1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  padding: 0.75rem 1.4rem 0.85rem;
  background: var(--primary, #1f5c99);
  color: #fff;
}
.tc-nflyer-name {
  font-family: var(--font-heading, Georgia, serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.tc-nflyer-phone {
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.tc-nflyer-small {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: #d6e2ef;
}
@media print {
  @page {
    size: letter;
    margin: 0;
  }
  body {
    background: #fff !important;
  }
  main > :not(.tc-nflyer-sheet):has(~ .tc-nflyer-sheet) {
    display: none !important;
  }
  body:has(.tc-nflyer-sheet),
  body:has(.tc-nflyer-sheet) main {
    margin: 0 !important;
    padding: 0 !important;
  }
  .tc-nflyer-sheet {
    width: 8.5in;
    height: 11in;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    grid-template-columns: 4.25in 4.25in;
    grid-template-rows: 5.5in 5.5in;
    overflow: hidden;
    break-inside: avoid;
  }
  .tc-nflyer {
    aspect-ratio: auto;
    width: 4.25in;
    height: 5.5in;
    padding: 0.42in 0.36in 0.3in;
    border: 0;
    border-radius: 0;
    outline: 1px dashed #c8c4c0;
    outline-offset: -0.5px;
    font-size: 11pt;
  }
  .tc-nflyer::before {
    height: 0.16in;
  }
  .tc-nflyer-foot {
    margin: auto -0.36in -0.3in;
    padding: 0.16in 0.36in 0.2in;
  }
  .tc-nflyer-title {
    font-size: 21pt;
  }
  .tc-nflyer-lede {
    font-size: 10pt;
  }
  .tc-nflyer-plan {
    font-size: 9pt;
  }
  .tc-nflyer-book .tc-qr {
    width: 1.45in;
    height: 1.45in;
  }
}

/* QR8 cross-promo (lib/qr8promo.tsx): three example designs of the shop's own link, then "Design yours on QR8". */
.tc-qr8 {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.tc-qr8 p {
  margin: 0;
}
.tc-qr8-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.tc-qr8-ex {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.tc-qr8-code {
  width: 100%;
  max-width: 9rem;
}
.tc-qr8-code svg {
  display: block;
  width: 100%;
  height: auto;
}
.tc-qr8-ex figcaption {
  font-size: 0.8rem;
  text-align: center;
  color: #57534e;
}
@media (max-width: 30rem) {
  .tc-qr8-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Map my day (routes/route.tsx): the map picture, numbered stops with the drive between them, the best order. */
.tc-route {
  display: grid;
  gap: 0.75rem;
}
.tc-route-map {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}
.tc-stops {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tc-stop {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
}
.tc-stop-n {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
}
.tc-stop.s-done .tc-stop-n {
  background: var(--muted);
  color: var(--muted-foreground);
}
.tc-stop-body {
  display: grid;
  min-width: 0;
}
.tc-stop-body .muted {
  overflow-wrap: anywhere;
}
.tc-leg {
  margin-left: 0.85rem;
  padding: 0.15rem 0 0.15rem 1.65rem;
  border-left: 2px dotted var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.tc-best {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}
.tc-best-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: decimal;
}
.tc-attrib {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.tc-attrib a {
  color: inherit;
}
.tc-lane-route {
  font-weight: 400;
}
/* The homeowner's "where's my tech" page. */
.tc-track {
  display: grid;
  gap: 0.5rem;
}
.tc-track-who {
  font-size: 1.25rem;
}
.tc-track-eta {
  font-family: var(--font-heading);
  font-size: 1.75rem;
}

/* Profit per job (routes/costs.tsx): cost lines, the add row, the job's profit; pay rates on /time. */
.tc-cost summary {
  cursor: pointer;
}
.tc-cost-lines li {
  gap: 0.5rem;
}
.tc-cost-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 8rem auto;
  gap: 0.5rem;
  align-items: end;
}
.tc-cost-add .tc-money .input {
  max-width: 6rem;
}
@media (max-width: 640px) {
  .tc-cost-add {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
  .tc-cost-add > .field:first-child,
  .tc-cost-add > .btn {
    grid-column: 1 / -1;
  }
}
.tc-cost-in span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.tc-cost-in .input {
  max-width: 6rem;
}
.tc-profit .kv dd {
  text-align: right;
}
.tc-total td {
  border-top: 1px solid var(--foreground);
}
.tc-rates .input {
  min-width: 4.5rem;
}

/* ---- Manager flows (2026-11-22): request card "More", Today's booking link, settings sections ---- */
/* A quiet "More" menu: a disclosure whose panel floats under its summary (request cards, Today's quick actions). */
.tc-request-more {
  position: relative;
  display: inline-block;
}
.tc-request-more > summary {
  list-style: none;
}
.tc-request-more > summary::-webkit-details-marker {
  display: none;
}
.tc-request-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.25rem);
  display: grid;
  gap: 0.35rem;
  min-width: 11rem;
  padding: 0.5rem;
  background: var(--popover, var(--card));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); /* floating, so a shadow is allowed */
}
.tc-request-menu .btn {
  justify-content: flex-start;
}
.tc-request-actions {
  align-items: center;
}
.tc-status-form .select {
  width: auto;
}
.tc-on-board {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tc-booking-link {
  padding: 1rem 1.25rem;
}
.tc-booking-link-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.tc-booking-link .tc-qr {
  width: 9rem;
  margin: 0;
  justify-self: start;
}
@media (min-width: 640px) {
  .tc-booking-link-body {
    grid-template-columns: 1fr auto;
  }
}
.tc-link-box {
  overflow-wrap: anywhere;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  font-weight: 500;
}
.tc-ready-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}
/* Settings: one row of section links, scrolls sideways on a phone instead of wrapping to three lines. */
.tc-settings-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.tc-settings-nav .chip {
  white-space: nowrap;
}
.tc-settings-nav .chip[aria-current="page"] {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.tc-price-edit {
  display: grid;
  gap: 0.5rem;
}
.tc-price-edit .tc-price-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.tc-price-save {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 0;
  background: var(--card);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
/* A table row that opens as one target (invoices list): the row's main link covers it. */
.tc-row-tap {
  position: relative;
}
.tc-row-tap:hover {
  background: var(--muted);
}
.tc-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Business tips (routes/tips.tsx, TipCard in src/ui.tsx): a quiet note below the screen's own data. Hairline, no
   colour of its own, never louder than the page; the action is an outline button. */
.tc-tip {
  display: grid;
  gap: 0.6rem;
  max-width: 68ch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}
.tc-tip-text {
  margin: 0;
}
.tc-tip-src {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.tc-tip-src a {
  color: inherit;
  text-decoration: underline;
}
.tc-tip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.tc-tip-row > details > summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.tc-tip-row > details[open] {
  flex-basis: 100%;
}
.tc-tip-hide-form {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}
.tc-tip-hide-form fieldset {
  display: grid;
  gap: 0.25rem;
  border: 0;
  padding: 0;
  margin: 0;
}
/* Price book: margin beside each price, shown by the "Show margin" box (no reload, no script). */
.tc-margin {
  display: none;
  color: var(--muted-foreground);
  white-space: nowrap;
}
#tc-pricebook:has(.tc-margin-toggle:checked) .tc-margin {
  display: inline;
}
