/* Look round 3 (Adrian, 2026-11-26, approved from the pictures at https://claude.ai/artifact/1wM7zxowPX9wEh6q9GSaAz):
   the office screens in DripJobs' app format. Loaded after office.css, which is past its size limit, so the round's rules
   live here. Colours and faces come only from tokens.css. */

/* A bid's header is DripJobs' proposal header: a white card, the customer's name with the status on the right, the job,
   then the facts as small lines. */
.shell .bidhead { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name chips" "job job" "facts facts";
  column-gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-button);
  padding: var(--s4); box-shadow: var(--shadow-card); }
.shell .bidhead h1 { grid-area: name; min-width: 0; }
.shell .bidhead .chips { grid-area: chips; justify-content: flex-end; align-self: start; }
.shell .bidhead .jobline { grid-area: job; font-weight: 500; }
.shell .bidhead .facts { grid-area: facts; font-size: var(--t-13); }
/* On a phone the status chips take their own row above the name, so a name is never squeezed into a broken word
   (seen on live v21: "KEO Construct / ion"). */
@media (max-width: 860px) {
  .shell .bidhead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chips" "name" "job" "facts"; }
  .shell .bidhead .chips { justify-content: flex-start; }
}

/* Its tabs sit on a white strip, the current one underlined in the accent. */
.shell .bidhead + .tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-button) var(--r-button) 0 0;
  margin-block-end: var(--s4); }
.shell .bidhead + .tabs a[aria-current="page"] { border-bottom-color: var(--due); color: var(--due); }

/* Price is DripJobs' package cards: name and big price centred on a light head, what each one uses as a check list,
   the recommended one outlined in the accent. On a phone they stack full width (no small tiles). Costs and margin
   fold into one dashed, staff only card. */
.shell .tiercols { gap: var(--s3); }
.shell .tiercol { padding: 0; overflow: hidden; border-radius: var(--r-button); background: var(--surface); gap: 0; }
.shell .tiercol.picked { border: 2px solid var(--action); }
.shell .tiercol .pkghead { display: grid; justify-items: center; gap: var(--s1); padding: var(--s4); background: var(--raised);
  text-align: center; }
.shell .tiercol .pkghead .price { font-size: var(--t-title); }
.shell .tiercol .pkghead .kv { margin: 0; color: var(--muted); font-size: var(--t-12); }
.shell .tiercol .pkglist { list-style: none; margin: 0; padding: var(--s2) var(--s4) var(--s3); color: var(--text); }
.shell .tiercol .pkglist li { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) 0;
  border-top: 1px solid var(--line); }
.shell .tiercol .pkglist li:first-child { border-top: 0; }
.shell .tiercol .pkglist:empty { display: none; }
.shell .tiercol .pkglist li::after { content: "\2713"; color: var(--ok); font-weight: 600; }
.shell .staffcost { border: 1px dashed var(--line-strong); border-radius: var(--r-button); padding: var(--s2) var(--s4); background: var(--surface); }
.shell .staffcost > summary { min-height: 44px; }
/* Price's three packages: side by side down to about 700 wide (an upright iPad), stacked on a phone (Carbon 3, A). */
@media (max-width: 860px) {
  .shell .tiercols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shell .tierstrip { display: none; }
}
@media (max-width: 699px) {
  .shell .tiercols { grid-template-columns: 1fr; }
}

/* Send is DripJobs' send box: one white card titled Send Proposal around the form; the chosen option filled in the accent;
   Present here a light accent button beside the main one. The checks above it keep their order. */
.shell .sendcard { display: grid; gap: var(--s3); }
.shell .sendcard h2 { margin: 0; font-size: var(--t-16); font-weight: 600; }
.shell .sendcard .choices label:has(input:checked) { border-color: var(--action); background: var(--action); color: var(--on-brick); }
.shell .sendcard .choices label:has(input:checked) input { accent-color: var(--on-brick); }
.shell .sendcard button[data-present]:not([disabled]) { border-color: var(--action); color: var(--due); background: var(--surface); }
.shell .sendcard .row { gap: var(--s2); }

/* Short New bid (pick 3): the Spanish box shows only when the customer reads Spanish (ticked here, or the chosen customer's
   language); city, state and zip share one row; the rarer choices fold under More. */
.shell .newbid:not([data-spanish]):not(:has(input[name="language"][value="es"]:checked)) .job-es { display: none; }
.shell .newbid .formgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shell .newbid .formgrid.addr3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.shell .newbid .newmore > summary { min-height: 44px; display: flex; align-items: center; color: var(--due); cursor: pointer; }

/* The plus sheet (Adrian's pick 3): the round + opens New lead, Book an estimate, New bid and New job in JobTread
   (where it is connected) as a card under it. A details element: no script; closed, the + looks as before. */
.shell .topbar .plussheet { position: relative; flex: 0 0 44px; }
.shell .topbar .plussheet > summary { list-style: none; cursor: pointer; }
.shell .topbar .plussheet > summary::-webkit-details-marker { display: none; }
.shell .topbar .plussheet > summary::after { display: none; content: none; }   /* no fold arrow on the round + */
.shell .topbar .plussheet .plusmenu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + var(--s2)); z-index: 30;
  display: grid; min-width: 240px; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r-button);
  background: var(--surface); box-shadow: var(--shadow-card); }
.shell .topbar .plussheet .plusmenu a { display: flex; align-items: center; min-height: 44px; padding-inline: var(--s3);
  border-radius: var(--r-button); color: var(--text); text-decoration: none; font-weight: 500; }
.shell .topbar .plussheet .plusmenu a:hover { background: var(--hover); }
/* Phone tap target at least 44 px (Carbon look 1, A5): New bid's 'Not in JobTread yet? New job' link (it was one line of
   text, 16 px high). Sign in's buttons are part of the sealed cover look (docs_unchanged): their own approved change. */
.shell a[data-new-job-link] { display: inline-flex; align-items: center; min-height: 44px; }

/* HTMX (docs/HTMX.md): the one "Not saved" line htmx-bid.js writes after a swap that failed; empty, it takes no room. */
.shell .toast:empty { display: none; }
/* Pick 5 (Carbon workflow 2, job J): search from every screen in one tap. The phone's top bar and the desk's side menu
   open the customers search, which finds a name, phone, email or street. A link, not a form: no page grows a second form. */
.shell .topbar .topfind { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: var(--text); }
.shell .side .sidefind { display: flex; align-items: center; gap: var(--s2); min-height: 40px; margin-block: var(--s2); color: inherit;
  text-decoration: none; opacity: .85; }
.shell .side .sidefind:hover { opacity: 1; }
/* The bid header's name, address, Call and Map (pick 5). */
.shell .bidhead > a.headname { grid-area: name; min-width: 0; color: inherit; text-decoration: none; display: flex; align-items: center;
  min-height: 44px; }   /* a whole phone tap (test_app_layout's 44 px audit) */
.shell .bidhead > a.headname:hover h1, .shell .bidhead .facts a:hover { text-decoration: underline; }
.shell .bidhead .facts a { color: inherit; }
.shell .bidhead .headlinks { grid-column: 1 / -1; gap: var(--s2); margin: var(--s2) 0 0; }
.shell .bidhead .headlinks .btn { min-height: 44px; }
/* Rooms first on Estimate (Carbon 3): the walkthrough, Customer and job and Colors fold to a one line header. */
.shell .card.fold > summary.foldhead { justify-content: space-between; cursor: pointer; }
.shell .card.fold > summary.foldhead h2 { margin: 0; flex: 1 1 auto; }
.shell .card.fold:not([open]) { padding-block: var(--s2); }
/* Present's folds (the review once done, Show or hide lines, the files): a quiet line, not a section title (a summary's h2 is not a
   .card > h2, so it fell to the browser's 1.5em). */
.shell .card.fold.quiet > summary.foldhead h2, .shell .card.fold#files > summary.foldhead h2 { font-size: var(--t-body); font-weight: 500; }

/* The Present tab's packages (Adrian's yes, November 27): stacked on a phone, side by side from an iPad up; the
   recommended package carries the brick border and its tag. Rows at least 48 tall for a thumb. */
.shell .present-tiers { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .shell .present-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shell .present-tier { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); min-height: 48px; }
.shell .present-tier.recommended { border: 2px solid var(--action); }
.shell .present-tag { position: absolute; top: calc(-1 * var(--s3)); right: var(--s3); background: var(--action); color: var(--on-brick);
  border-radius: 999px; padding-inline: var(--s2); font-size: var(--t-12); }
.shell .present-name { font-weight: 600; }
.shell .present-price { font-size: var(--t-title); font-weight: 700; margin-block: var(--s1); }
.shell .present-extra { min-height: 48px; border-top: 1px solid var(--line); }
.shell .present-links { gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }

/* C (Carbon's sell 3 ruling): Recommended on Price's middle package, the same tag as the Present tab's. */
.shell .tiercol .pkghead { position: relative; }
.shell .tiercol .pkghead .present-tag { top: var(--s2); }

/* ------------------------------------------------------------------ The approved look, shared pieces (oversight's canvas,
   Adrian November 28: "This looks good. Let's rework the design off this"; bid/pictures/look-pass/oversight-approved/bid.css).
   This first pass changes only the shell and the shared pieces behind the classes the screens already use: the white,
   grouped side menu; on a tablet one menu button in the top bar opens it; the phone keeps its five tabs; buttons, chips,
   cards, tiles and tables in the canvas's sizes. Colours are tokens.css's (.shell), never named here. */
.shell .side { border-right: 1px solid var(--side-line); }
.shell .side .brand { border-bottom-color: var(--side-line); }
.shell .side .brand span { font-weight: 600; color: var(--due); letter-spacing: -.01em; }
.shell .side nav { gap: 0; }
.shell .navgroup { gap: 2px; }
.shell .side .navhead { margin: var(--s4) 0 var(--s1); padding-inline: var(--s3); color: var(--side-muted); font-size: var(--t-12);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.shell .side .navhead:first-child { margin-block-start: 0; }
.shell .side nav a { gap: var(--s3); font-weight: 500; border-radius: var(--r-button); }
.shell .side nav a svg { flex: 0 0 auto; width: 19px; height: 19px; }
.shell .side nav a[aria-current="page"] { font-weight: 600; }
.shell .side nav a[aria-current="page"] .navcount { background: var(--side-strong); color: var(--due); }
.shell .side nav a .navcount { background: var(--action); color: var(--on-brick); }
/* The tablet: no bottom tabs; one menu button in the top bar opens the side menu over the page (DripJobs' iPad). */
.shell .topbar .topmenu, .shell .topbar .menuanchor { display: none; }
@media (min-width: 600px) and (max-width: 860px) {
  .shell .tabbar { display: none; }
  .shell .page { padding-block-end: var(--s8); }
  .shell .topbar .topmenu { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-inline-start: calc(var(--s2) * -1);
    color: var(--text); }
  .shell:has(.menuanchor:target) .side { display: block; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30;
    width: 260px; min-height: 0; box-shadow: 0 0 0 100vmax var(--scrim-office); }
  .shell:has(.menuanchor:target) .side-in { height: 100%; }
  .shell .toast, .shell .actionbar { bottom: var(--s4); }
}
/* The top bar on a phone and a tablet: white, like the desk's side. */
@media (max-width: 860px) {
  .shell .topbar { background: var(--surface); }
  .shell .topbar .phone-brand span { font-weight: 600; color: var(--due); }
}
/* The phone's five tabs: the page you are on in brick. */
.shell .tabbar a[aria-current="page"] { color: var(--due); font-weight: 600; }
.shell .tabbar a[aria-current="page"] .ti { background: transparent; }

/* Buttons, cards, chips, tiles and tables in the canvas's sizes. */
.shell button, .shell .btn { border-radius: var(--r-button); font-weight: 600; }
.shell .card { border: 1px solid var(--line); border-radius: var(--r-column); }
.shell .chip { border-radius: var(--r-chip); font-weight: 600; }
.shell .chip.st-brass { background: var(--st-brass); color: var(--st-brass-text); }
.shell .chip.st-bronze { background: var(--st-bronze); color: var(--st-bronze-text); }
.shell .chip.st-slate { background: var(--st-slate); color: var(--st-slate-text); }
.shell .chip.st-brick { background: var(--st-brick); color: var(--st-brick-text); }
.shell .chip.st-sage { background: var(--st-sage); color: var(--st-sage-text); }
.shell .chip.st-grey { background: var(--st-grey); color: var(--st-grey-text); }
.shell .btn.call { border-color: var(--call-line); background: var(--call); color: var(--call-text); }
.shell .btn.map { border-color: var(--map-line); background: var(--map); color: var(--map-text); }
.shell .tile { border: 1px solid var(--line); border-radius: var(--r-column); background: var(--surface); padding: var(--s3) var(--s4); }
.shell table th { color: var(--muted); font-size: var(--t-12); font-weight: 600; }
/* Uppercase spaced heads on a desk only: a phone's narrow price tables keep their plain heads (they do not wrap, so the
   wider capitals pushed the Signature column past the screen at 360 and 390). */
@media (min-width: 861px) { .shell table th { letter-spacing: .06em; text-transform: uppercase; } }

/* The side menu fits a desk window (oversight 13:11; live v41 had More below the fold at 900 px): the side's parts, the
   group heads and the footer closer together, and with a mouse the links at the office's compact control height (a
   phone and a touch screen keep 44 px taps; the footer's toggles keep their size). Measured on live Today: all eleven
   links and the footer fit at 1280x800 and 1280x900. */
@media (min-width: 861px) {
  .shell .side .side-in { gap: var(--s2); }
  .shell .side .navhead { margin-block-end: 0; }
  .shell .side .navhead:not(:first-child) { margin-block-start: var(--s2); }
  .shell .side nav > div { gap: 0; }
  .shell .side .who { gap: var(--s1); padding-block-start: var(--s2); }
}
@media (min-width: 861px) and (pointer: fine) { .shell .side nav a { min-height: var(--control); } }

/* ---- Sales pipeline, the approved look (oversight canvas Main, Adrian 09:52) ----
   Each stage: a coloured band (its name, the count in a white box, + and View stage), a grey well of white cards, and
   the stage's value at its foot. The heading's parts are laid out in the column itself (display: contents), so the
   value sits under the well with no markup change. pipeline-ui.css loads after this file, so each rule here names
   both of the root's attributes to win over it. Desk: fixed width stages that scroll sideways inside the board;
   tablet: about three stages in view; phone: one stage a swipe. */
.shell .pipeline-ui [data-board-stage="new_lead"] { --band: var(--st-brass); --band-text: var(--st-brass-text); }
.shell .pipeline-ui [data-board-stage="appointment_set"] { --band: var(--st-bronze); --band-text: var(--st-bronze-text); }
.shell .pipeline-ui [data-board-stage="estimating"] { --band: var(--st-slate); --band-text: var(--st-slate-text); }
.shell .pipeline-ui [data-board-stage="estimate_sent"] { --band: var(--st-brick); --band-text: var(--st-brick-text); }
.shell .pipeline-ui [data-board-stage="approved"] { --band: var(--st-sage); --band-text: var(--st-sage-text); }
.shell .pipeline-ui [data-board-stage="lost"] { --band: var(--st-grey); --band-text: var(--st-grey-text); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout="board"] .pipe-bounded-board { column-gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; }
@media (min-width: 861px) {
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board { grid-template-columns: repeat(6, 264px); padding-block-end: var(--s2); }
}
@media (min-width: 600px) and (max-width: 860px) {
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout="board"] .pipe-bounded-board { grid-auto-columns: 248px; }
}
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-col { display: flex; flex-direction: column; gap: 0; overflow: hidden;
  border-radius: var(--r-column); background: var(--column); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-heading { display: contents; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title { order: 0; padding: var(--s3) var(--s3) 0; background: var(--band); color: var(--band-text); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title h2 { display: flex; align-items: center; gap: var(--s2); margin: 0;
  font-size: var(--t-14); font-weight: 600; color: inherit; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title h2 b { min-width: 24px; padding: 0 var(--s1); border-radius: var(--r-chip);
  background: var(--surface); border: 0; color: var(--text); font-size: var(--t-12); font-weight: 600; text-align: center; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title .pipe-stage-add { color: inherit; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-heading > a.small { order: 1; min-height: 0; padding: 0 var(--s3) var(--s3);
  background: var(--band); color: var(--band-text); font-size: var(--t-12); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-lane { order: 2; display: grid; gap: var(--s2); align-content: start; min-height: 120px;
  padding: var(--s2); border-radius: 0; background: var(--column); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-cell { padding: 0; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-stage-total { order: 3; margin: 0; padding: var(--s2) var(--s3); border-top: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: var(--t-13); font-weight: 600; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card-link strong { font-weight: 600; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card-price { font-weight: 600; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] { min-width: 0; max-width: 100%; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-results { min-width: 0; max-width: 100%; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board { max-width: 100%; position: relative; }   /* holds the cards' hidden labels */
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title,
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-heading > a.small { margin: 0; }
/* A long chip on a card wraps inside the card; the card does not repeat its stage (the band above names it). */
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card .chip { white-space: normal; max-width: 100%; height: auto; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout="board"] .pipe-bounded-board .pipe-phone-stage { display: none; }
/* The card's next step reads as one quiet row (the dot and its word, then the quick icons), not a grey box in the card. */
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card-act { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s2); margin-block: var(--s2); padding: 0; background: none; }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-quick-link { min-width: 32px; min-height: 32px;
  border: 1px solid var(--line); border-radius: var(--r-button); background: var(--surface); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card .chip { font-size: var(--t-12); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card p { margin-block: var(--s1); }
/* The card's next moves: the visit (or Schedule) as a link, the stage's next screen as a small button; Call and Map
   as two wide buttons on a phone only. */
.shell .pipeline-ui .pipe-card-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-block: var(--s2); }
.shell .pipeline-ui .pipe-card-when { color: var(--due); font-weight: 600; text-decoration: none; }
.shell .pipeline-ui .pipe-card-phone { display: none; gap: var(--s2); margin-block: var(--s2); }
.shell .pipeline-ui .pipe-card-phone > .btn { flex: 1; justify-content: center; min-height: 44px; }
@media (max-width: 599px) { .shell .pipeline-ui .pipe-card-phone { display: flex; } }
.shell .pipeline-ui .pipe-card-acts a[data-card-when] { color: var(--due); }
.shell .pipeline-ui .pipe-card:has([data-card-when]) .pipe-quick-link[data-quick="appointment"] { display: none; }   /* Schedule says it */
@media (max-width: 599px) { .shell .pipeline-ui .pipe-card:has([data-card-phone] .call) .pipe-quick-link[data-quick="call"] { display: none; } }

/* A calmer, shorter card (oversight 11:24, about 160 px): name, job · source on one line, the next moves, the quick
   icons, then the footer with the rep, the time in stage and the next step. */
.shell .pipeline-ui .pipe-card-link { gap: 2px; }
.shell .pipeline-ui .pipe-card-link > span { color: var(--muted); font-size: var(--t-13); }
.shell .pipeline-ui .pipe-card-link .pipe-card-source { color: var(--muted); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card { padding: var(--s3); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card-acts { margin-block: var(--s2) var(--s1); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-card-act { margin-block: var(--s1); }
.shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-quick-link { min-width: 28px; min-height: 28px; }
.shell .pipeline-ui .pipe-card-foot { flex-wrap: wrap; row-gap: var(--s1); }
.shell .pipeline-ui .pipe-card-foot { flex-wrap: nowrap; }
.shell .pipeline-ui .pipe-card-foot .pipe-card-rep { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .pipeline-ui .pipe-card-foot .pipe-card-next { display: inline-flex; align-items: center; margin: 0; }
/* The footer shows the next step's shape only (its words are the dot's own label and title, the legend names the
   three shapes), so the rep's name keeps its room. */
.shell .pipeline-ui .pipe-card-foot .pipe-next-label { display: none; }

/* Search and filters behind one button on a phone or tablet, the next step legend inside it; a desk keeps its form. */
.shell .pipeline-ui .pipe-phone-find { display: none; }
.shell .pipeline-ui .pipe-phone-find > summary { list-style: none; width: 100%; justify-content: center; }
.shell .pipeline-ui .pipe-phone-find > summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .shell .pipeline-ui .pipe-phone-find { display: grid; gap: var(--s3); }
  .shell .pipeline-ui .pipe-results > .pipe-dot-legend { display: none; }
  /* The saved tabs close together so they usually fit one row; they wrap rather than run past the screen. */
  .shell .pipeline-ui[data-pipeline-root] .pipe-tabs { flex-wrap: wrap; column-gap: 0; }
  .shell .pipeline-ui[data-pipeline-root] .pipe-tab { flex: 0 0 auto; padding-inline: var(--s2); font-size: var(--t-14); }
}
/* A phone: the four page buttons in one row of small buttons; New bid is already the round + in the top bar. */
@media (max-width: 599px) {
  .shell .pipeline-ui .pipe-head { display: flex; flex-wrap: wrap; gap: var(--s2); }
  .shell .pipeline-ui .pipe-head-title { flex-basis: 100%; }
  .shell .pipeline-ui .pipe-head-space { display: none; }
  .shell .pipeline-ui .pipe-head .btn, .shell .pipeline-ui .pipe-head .segbtn { min-height: 44px; padding-inline: var(--s3); font-size: var(--t-13); }
  .shell .pipeline-ui .pipe-head .pipe-new-bid { display: none; }
  .shell .pipeline-ui[data-pipeline-root] { gap: var(--s3); }
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-title { padding: var(--s2) var(--s3) 0; }
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-heading > a.small { padding-block-end: var(--s2); }
}

/* ---- The bid header strip, the approved look (oversight canvas Bid, Adrian 09:52) ----
   Name, job and facts on the left, the stage chip at the top right, then Call and Map in their own colours and Present
   here, the one primary button, at the right of the same row on every tab (it opens Present's own form). */
.shell .bidhead { grid-template-areas: "name chips" "job job" "facts facts" "links present"; }
.shell .bidhead .headlinks { grid-area: links; grid-column: auto; align-self: center; }
.shell .bidhead .headpresent { grid-area: present; margin: var(--s2) 0 0; align-self: center; justify-self: end; }
.shell .bidhead .headpresent .btn { min-height: 44px; }
.shell .bidhead .headlinks a[href^="tel:"] { background: var(--call); border-color: var(--call-line); color: var(--call-text); }
.shell .bidhead .headlinks a[href^="https://maps."] { background: var(--map); border-color: var(--map-line); color: var(--map-text); }
@media (max-width: 860px) {
  .shell .bidhead { grid-template-areas: "chips" "name" "job" "facts" "links" "present"; }
  .shell .bidhead .headpresent { justify-self: stretch; }
  .shell .bidhead .headpresent .btn { width: 100%; justify-content: center; }
}

/* ---- Timeline, the approved look (oversight canvas Timeline; oversight 16:14) ----
   A desk: the next conversation, its three links and the activity on the left; the sold, mailings, invoices, photos
   and deposit panels on the right (only when there is one). Each activity's word is a chip in its stage colour. */
.shell .tl-grid { display: grid; gap: var(--s4); }
.shell .tl-main, .shell .tl-side { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.shell .tl-side:empty { display: none; }
@media (min-width: 1100px) {
  /* only when the side holds a panel card: a fresh bid (no panels) keeps one column with Copy under the activity */
  .shell .tl-grid:has(.tl-side > .card) { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); align-items: start; }
}
.shell .tl-actions { flex-wrap: wrap; gap: var(--s2); }
.shell #timeline .timeline .ev { padding-inline: var(--s2); }
.shell #timeline .timeline .ev > div > b { display: inline-block; padding: 2px var(--s2); border-radius: var(--r-chip);
  background: var(--st-grey); color: var(--st-grey-text); font-size: var(--t-13); font-weight: 600; }
.shell #timeline .timeline .ev[data-event="sent"] > div > b { background: var(--st-brick); color: var(--st-brick-text); }
.shell #timeline .timeline .ev[data-event="opened"] > div > b { background: var(--st-slate); color: var(--st-slate-text); }
.shell #timeline .timeline .ev[data-event="nudge"] > div > b { background: var(--st-brass); color: var(--st-brass-text); }
.shell #timeline .timeline .ev[data-event="accepted"] > div > b,
.shell #timeline .timeline .ev[data-event="signed"] > div > b,
.shell #timeline .timeline .ev[data-event="deposit_paid"] > div > b { background: var(--st-sage); color: var(--st-sage-text); }
.shell #timeline .timeline .ev > div > .small { margin-block-start: var(--s1); }
/* The side column keeps the page's own order (the QuickBooks panel shares the customer page's .custpart, whose phone
   order would otherwise move it below Copy). */
.shell .tl-side > * { order: 0; }
/* A phone or a touch screen keeps 44 px taps on the board (the compact sizes above are for a desk with a mouse):
   View stage, Schedule and the quick icons. */
@media (max-width: 860px), (pointer: coarse) {
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-quick-link { min-width: 44px; min-height: 44px; }
  .shell .pipeline-ui[data-pipeline-root][data-pipeline-layout] .pipe-bounded-board .pipe-board-heading > a.small { display: flex; align-items: center; min-height: 44px; }
  .shell .pipeline-ui .pipe-card-acts a[data-card-when] { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- Today, the approved look (oversight canvas Today, Adrian 09:52) ----
   Today's visits sit in one white card. The NEXT visit (the first not yet done) leads in its own outlined card with
   larger words and three wide buttons: Map and Call in their colours, Estimate the primary. The reminders list keeps
   its card; a desk reads it at a calm width. */
.shell .today { max-width: 60rem; }
.shell .todayvisits .callist { border: 1px solid var(--line); border-radius: var(--r-column); background: var(--surface); overflow: hidden; }
.shell .todayvisits .callist .item { padding: var(--s3) var(--s4); align-items: flex-start; }
.shell .todayvisits .callist .item:last-child { border-bottom: 0; }
.shell .todayvisits [data-visit-actions] { gap: var(--s2); margin-block-start: var(--s1); }
.shell .todayvisits [data-visit-actions] a[href^="tel:"] { background: var(--call); border-color: var(--call-line); color: var(--call-text); }
.shell .todayvisits [data-visit-actions] a[href^="https://maps."] { background: var(--map); border-color: var(--map-line); color: var(--map-text); }
.shell .todayvisits [data-visit-actions] a[data-visit-estimate] { background: var(--action); border-color: var(--action); color: var(--on-brick); }
.shell .todayvisits .callist .item[data-visit]:not(.muted):not(.item:not(.muted) ~ .item) {
  border: 2px solid var(--action); border-radius: var(--r-column); margin: var(--s2); padding: var(--s4); }
.shell .todayvisits .callist .item[data-visit]:not(.muted):not(.item:not(.muted) ~ .item) .title { font-size: var(--t-17); font-weight: 600; }
.shell .todayvisits .callist .item[data-visit]:not(.muted):not(.item:not(.muted) ~ .item) .time { color: var(--due); font-weight: 600; }
.shell .todayvisits .callist .item[data-visit]:not(.muted):not(.item:not(.muted) ~ .item) [data-visit-actions] .btn {
  min-height: 44px; padding-inline: var(--s4); }
@media (max-width: 599px) {
  .shell .todayvisits .callist .item { flex-wrap: wrap; }
  .shell .todayvisits .callist .time { min-width: 0; flex-basis: 100%; }
  .shell .todayvisits .callist .item[data-visit]:not(.muted):not(.item:not(.muted) ~ .item) [data-visit-actions] .btn { flex: 1; justify-content: center; }
}
/* A visit already done reads quiet: its buttons plain, so the next visit's colours stand out. */
.shell .todayvisits .callist .item.muted [data-visit-actions] a { background: var(--surface); border-color: var(--line); color: var(--muted); }

/* ---- Bids list, the approved look (oversight canvas "Bids list") ----
   The stage cell reads in the six stage colours (the row's own data-bid-stage), the customer's name in the strong
   weight; the table sits in a white card with roomier rows. */
.shell .bidrows tr[data-bid-stage] .bidstate > .chip:first-child { border-color: transparent; }
.shell .bidrows tr[data-bid-stage="new_lead"] .bidstate > .chip:first-child { background: var(--st-brass); color: var(--st-brass-text); }
.shell .bidrows tr[data-bid-stage="appointment_set"] .bidstate > .chip:first-child { background: var(--st-bronze); color: var(--st-bronze-text); }
.shell .bidrows tr[data-bid-stage="estimating"] .bidstate > .chip:first-child { background: var(--st-slate); color: var(--st-slate-text); }
.shell .bidrows tr[data-bid-stage="estimate_sent"] .bidstate > .chip:first-child { background: var(--st-brick); color: var(--st-brick-text); }
.shell .bidrows tr[data-bid-stage="approved"] .bidstate > .chip:first-child { background: var(--st-sage); color: var(--st-sage-text); }
.shell .bidrows tr[data-bid-stage="lost"] .bidstate > .chip:first-child { background: var(--st-grey); color: var(--st-grey-text); }
.shell .tablewrap:has(> .bidrows) { border: 1px solid var(--line); border-radius: var(--r-column); box-shadow: none; }
.shell .bidrows td { padding-block: var(--s3); }
.shell .bidrows td.strong > a { font-weight: 600; }
.shell .bidrows .bidstate { white-space: normal; }

/* ---- One customer, the approved look (oversight canvas Customer) ----
   The customer's head (chips, name, place) is a white card like a bid's header; the quick buttons beside it read in
   their colours (Call green, Directions blue); the page's own cards keep their order. CSS only. */
.shell .custhead { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-column); background: var(--surface); }
.shell .custhead h1 { font-size: var(--t-title); }
.shell .quick { max-width: none; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 10rem)); }
.shell .quick a { border-radius: var(--r-column); }
.shell .quick a[href^="tel:"] { background: var(--call); border-color: var(--call-line); color: var(--call-text); }
.shell .quick a[href^="https://maps."] { background: var(--map); border-color: var(--map-line); color: var(--map-text); }
