/* ===========================================================================
   NANZ app — mobile web reproduction of the FileMaker Go
   "Order Scanner: Detail iOS Copy4" screen (layout id 764, 320pt canvas).

   This is a reproduction, not a redesign. Every color below was measured out
   of that layout's LocalCSS (FileMaker writes rgba percentages; the hex is the
   conversion). Geometry and information order come from the same layout, with
   the deliberate modernizations called for in docs/ui-spec.md: 44pt minimum
   tap targets, slightly rounder corners, and a sticky search bar.

   Light theme only, matching FM Go. System font stack; no webfonts.
   =========================================================================== */

:root {
  /* --- Measured palette (FM layout 764) ------------------------------- */
  --nanz-blue: #0070cf; /* rgba(0%,43.9216%,81.1765%,1) — nav band */
  --nanz-blue-deep: #225dac; /* pressed state */
  --accent-orange: #e85c17; /* rgba(90.9804%,36.0784%,9.01961%,1) — left rail */
  --panel: #e0dfdd; /* rgba(87.8431%,87.451%,86.6667%,1) — cards + field */
  --page: #f7f7f7; /* body + header part background */
  --white: #ffffff;
  --ink: #4d4d4d; /* primary text */
  --ink-soft: #676767; /* secondary text, labels */
  --ink-faint: #9a9a9a;
  --icon-gray: #808080; /* contact action icons */
  --avatar-empty: #d5d5d5; /* photo placeholder circle */
  --photo-tile: rgba(0, 0, 0, 0.032); /* the item photo's 3% wash */
  --gutter: #dcdde1; /* desktop area outside the phone column */
  --hairline: rgba(0, 0, 0, 0.08);

  --chip-good-bg: #e2f0e7;
  --chip-good-fg: #1c6b3c;
  --chip-active-bg: #e2ebf9;
  --chip-active-fg: #17539f;
  --chip-neutral-bg: #e0dfdd;
  --chip-neutral-fg: #5c5c5c;
  --chip-warn-bg: #f8ead6;
  --chip-warn-fg: #85560f;

  --radius-panel: 12px;
  --radius-field: 10px;
  --inset: 16px;
  --gap-card: 10px; /* FM uses an 8pt gutter between every card */
  --tap: 44px;
  --rail: 5px;
  --environment-banner-height: calc(env(safe-area-inset-top, 0px) + 38px);

  --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--gutter);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 481px) {
  body {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(0, 0, 0, 0.1);
  }
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--nanz-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.band :focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 60;
  background: var(--white);
  color: var(--nanz-blue);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip:focus {
  top: 8px;
}

/* --------------------------------------------------- environment identity */

.environment-banner {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  display: flex;
  width: min(100%, 480px);
  height: var(--environment-banner-height);
  padding: env(safe-area-inset-top, 0px) 10px 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  background: #9b4317;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.environment-banner strong {
  font-weight: 800;
}

body.is-preview {
  padding-top: var(--environment-banner-height);
}

body.is-preview .skip:focus {
  top: calc(var(--environment-banner-height) + 8px);
  z-index: 90;
}

body.is-preview .band {
  /* The fixed banner owns the safe area in preview mode. */
  padding-top: 16px;
}

body.is-preview .searchbar {
  top: var(--environment-banner-height);
}

/* ------------------------------------------------------------ header band */

.band {
  background: var(--nanz-blue);
  color: var(--white);
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--inset) 18px;
}

/* FM spaces the three circles at a 30pt inset on a 320pt canvas (9.4%). */
.band__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}

.orb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  /* FM draws a 3pt white ring on a transparent fill — the only border on the
     whole screen that actually renders. */
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.14s ease, transform 0.14s ease;
}

.orb svg {
  width: 26px;
  height: 26px;
}

.orb:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.94);
}

.orb.is-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.band__user {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.band__user[hidden] {
  display: none;
}

.band__hint {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.band__hinticon {
  display: inline-flex;
  vertical-align: -3px;
  margin: 0 2px;
}

.band__mock {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ search field */

.searchbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  padding: 12px var(--inset);
  transition: box-shadow 0.18s ease;
}

body.is-stuck .searchbar {
  box-shadow: 0 1px 0 var(--hairline), 0 6px 14px rgba(0, 0, 0, 0.05);
}

.search {
  position: relative;
  display: block;
}

.search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #727272; /* FM's search glyph color */
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: var(--tap);
  padding: 0 12px 0 37px;
  border: 1px solid transparent;
  border-radius: var(--radius-field);
  background: var(--panel);
  color: var(--ink);
  /* 16px keeps iOS Safari from zooming the viewport on focus */
  font: 400 16px/1.2 var(--font);
  appearance: none;
}

.search__input::placeholder {
  color: #8a8a8a;
}

.search__input:focus {
  outline: none;
  border-color: var(--nanz-blue);
  background: var(--white);
}

.search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ----------------------------------------------------------------- content */

.content {
  position: relative;
  display: block;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.content:focus {
  outline: none;
}

/* The orange rail. In FM this is a 9pt vertical line running the full scroll
   height, and it carries state: SOLID once a deposit has been received, DASHED
   while it has not. That encoding is the single most distinctive thing on the
   screen, so it is reproduced rather than flattened to decoration. */
.content.rail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  pointer-events: none;
}

.content.rail--solid::before {
  background: var(--accent-orange);
}

.content.rail--dashed::before {
  background: repeating-linear-gradient(
    to bottom,
    var(--accent-orange) 0 12px,
    transparent 12px 20px
  );
}

/* ------------------------------------------------------------ result pager */

.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 8px 4px 12px;
  border-bottom: 1px solid var(--hairline);
}

.resultbar__btn {
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  color: var(--nanz-blue);
  border-radius: 8px;
}

.resultbar__btn:disabled {
  color: var(--ink-faint);
  opacity: 0.4;
  cursor: default;
}

.resultbar__label {
  flex: 1;
  min-height: var(--tap);
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.resultbar__label:active {
  color: var(--nanz-blue);
}

/* -------------------------------------------------------- detail: the card */

.card {
  position: relative;
  padding: 18px var(--inset) 20px;
}

.order-title {
  padding: 16px;
  background: var(--white);
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(32, 56, 72, 0.035);
  text-align: left;
}

.order-title .card__title {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #203848;
  overflow-wrap: anywhere;
}

.order-title__reference { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; font-size:12px; color:var(--ink-soft); }
.card__orderno { font-variant-numeric:tabular-nums; }
.order-title__metrics { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:12px; padding:15px 0; margin-top:2px; border-bottom:1px solid #e5eaf0; }
.order-title__metrics dt { font-size:11px; font-weight:600; letter-spacing:.025em; color:#5e707d; margin-bottom:4px; }
.order-title__metrics dd { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-title__value dd { font-size:clamp(22px, 6.3vw, 28px); font-weight:650; letter-spacing:-.025em; line-height:1.15; color:#175580; white-space:nowrap; }
.order-title__value .order-title__amount--long { font-size:20px; }
.order-title__close { border-left:1px solid #e5eaf0; padding-left:12px; }
.order-title__close dd { font-size:14px; line-height:1.4; font-weight:550; color:#203848; }
.order-title__relative { display:block; text-wrap:pretty; }
.order-title__relative--past { color:#85560f; }
.order-title__date { display:block; margin-top:4px; font-size:12px; font-weight:400; color:#5e707d; }
.order-title__rating { padding:11px 0 12px; border-bottom:1px solid #e5eaf0; }
.order-title__rating p { font-size:12px; line-height:1.3; color:var(--ink); font-variant-numeric:tabular-nums; }
.order-title__rating-label { font-weight:600; letter-spacing:.025em; color:#5e707d; }
.order-title__track { display:block; height:3px; margin-top:8px; overflow:hidden; border-radius:999px; background:#dededa; }
.order-title__fill { display:block; height:100%; border-radius:inherit; background:var(--nanz-blue); }
.order-title__followup { padding:10px 0 11px; border-bottom:1px solid #e5eaf0; }
.order-title__followup p { font-size:12px; line-height:1.3; color:var(--ink); font-variant-numeric:tabular-nums; }
.order-title__followup .order-title__relative { display:inline; color:#5e707d; }
.order-title__followup .order-title__relative--past { color:#85560f; }
.order-title__doors { padding:10px 0 11px; border-bottom:1px solid #e5eaf0; }
.order-title__doors p { font-size:12px; line-height:1.3; color:var(--ink); font-variant-numeric:tabular-nums; }
.order-title__people { display:grid; grid-template-columns:48px minmax(0, 1fr); gap:12px; align-items:start; padding-top:12px; }
.order-title__salesperson { width:48px; height:48px; }
.order-title__roles { display:grid; gap:7px; }
.order-title__roles > div { display:grid; grid-template-columns:58px minmax(0, 1fr); gap:8px; align-items:baseline; }
.order-title__people dt { font-size:12px; color:#5e707d; }
.order-title__people dd { font-size:13px; font-weight:500; line-height:1.35; color:#203848; overflow-wrap:anywhere; }
.order-title__website { color:inherit; text-decoration:underline; text-decoration-color:#9eb3c1; text-decoration-thickness:1px; text-underline-offset:2px; }
.order-title__website:active { color:var(--nanz-blue); }
.role__website { color:inherit; text-decoration:underline; text-decoration-color:#9eb3c1; text-decoration-thickness:1px; text-underline-offset:2px; }
.role__website:active { color:var(--nanz-blue); }
.order-title__people .order-title__missing { color:var(--ink-soft); font-weight:400; }
@media (max-width:359px) {
  .order-title__metrics--wide { grid-template-columns:minmax(0, 1fr); }
  .order-title__metrics--wide .order-title__close { border-left:0; padding-left:0; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
}

/* ----------------------------------------------------------- detail: item */

.item {
  margin-top: 20px;
}

.item__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 128px;
}

.item__frame {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 190px;
  height: 124px;
  display: grid;
  place-items: center;
  padding: 2px;
  /* FM tints the photo tile 3% black over the page, not white */
  background: var(--photo-tile);
  border-radius: 8px;
}

.item__photo {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* FM's pagers have no chrome at all — a bare glyph in a large hit area, and it
   disappears (without reflowing the photo) at either end of the set. */
.item__nav {
  flex: 0 0 var(--tap);
  width: var(--tap);
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.item__nav:active:not(:disabled) {
  color: var(--nanz-blue);
}

.item__nav:disabled {
  visibility: hidden;
  cursor: default;
}

.item__pager {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.item__line {
  margin-top: 12px;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.item__pdf {
  display: inline-flex;
  vertical-align: -3px;
  margin-left: 7px;
  color: var(--ink-faint);
}

.item__desc {
  margin-top: 6px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.item__scan {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}

.item__scanval {
  color: var(--ink);
}

.item__missing {
  text-align: center;
  font-size: 15px;
  color: var(--ink-faint);
  padding: 22px 0 6px;
}

/* --------------------------------------------------- detail: info table */

/* FM renders the twelve rows as two vertically-centered text runs (labels
   left, values right) inside one #E0DFDD card. There are deliberately NO
   separator rules — the card is the only structure. */
.info {
  margin: 16px var(--inset) 0;
  padding: 12px 13px;
  background: var(--panel);
  border-radius: var(--radius-panel);
}

.info__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
}

.info__label {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.info__value {
  font-size: 15px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.info__value.is-empty {
  color: var(--ink-soft);
}

/* ----------------------------------------------------- detail: contacts */

.contacts {
  margin: var(--gap-card) var(--inset) 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-card);
}

.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 10px 12px 12px;
  background: var(--panel);
  border-radius: var(--radius-panel);
}

.contact__photo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-empty);
}

.contact__photo--initials {
  display: grid;
  place-items: center;
  background: var(--nanz-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.contact__id {
  flex: 1 1 auto;
  min-width: 0;
}

.contact__role {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.2;
}

.contact__name {
  margin-top: 2px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
}

.contact__action {
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  color: var(--icon-gray);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.contact__action:active {
  background: rgba(0, 0, 0, 0.07);
  color: var(--ink);
}

.contact__action.is-off {
  opacity: 0.3;
  pointer-events: none;
}

/* ------------------------------------------- detail: salesperson check-in */
/* Three pre-rendered drafts; the checked radio decides which one shows.
   Rule and wording: docs/salesperson-check-in.md. */

.contacts__check-in {
  list-style: none;
}

.check-in {
  background: var(--panel);
  border-radius: var(--radius-panel);
}

.check-in__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--nanz-blue);
  cursor: pointer;
  list-style: none;
}

.check-in__summary::-webkit-details-marker {
  display: none;
}

.check-in__summary::after {
  content: '';
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.14s ease;
}

.check-in[open] .check-in__summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.check-in__body {
  position: relative; /* anchors the visually hidden radios */
  padding: 0 12px 12px;
}

.check-in__choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.check-in__choice {
  display: grid;
  place-items: center;
  min-height: var(--tap);
  padding: 6px 4px;
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

#check-in-soon:checked ~ .check-in__choices [for="check-in-soon"],
#check-in-missed:checked ~ .check-in__choices [for="check-in-missed"],
#check-in-old:checked ~ .check-in__choices [for="check-in-old"] {
  background: var(--nanz-blue);
  color: var(--white);
  font-weight: 600;
}

#check-in-soon:focus-visible ~ .check-in__choices [for="check-in-soon"],
#check-in-missed:focus-visible ~ .check-in__choices [for="check-in-missed"],
#check-in-old:focus-visible ~ .check-in__choices [for="check-in-old"] {
  outline: 2px solid var(--nanz-blue-deep);
  outline-offset: 2px;
}

.check-in__hint {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.check-in__radio:checked ~ .check-in__hint--pick,
.check-in__option {
  display: none;
}

#check-in-soon:checked ~ .check-in__option--soon,
#check-in-missed:checked ~ .check-in__option--missed,
#check-in-old:checked ~ .check-in__option--old {
  display: block;
}

.check-in__preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.check-in__subject {
  font-weight: 600;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.check-in__text {
  white-space: pre-line;
}

.check-in__send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  margin-top: 10px;
  border-radius: var(--radius-field);
  background: var(--nanz-blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.check-in__send:active {
  background: var(--nanz-blue-deep);
}

/* -------------------------------------------------- detail: order roles */

.roles {
  margin: 22px var(--inset) 0;
}

.roles__heading {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.roles__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-card);
}

.role {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 70px;
  padding: 11px 12px 11px 16px;
  background: var(--panel);
  border-radius: var(--radius-panel);
}

.role__icon {
  flex: 0 0 auto;
  display: flex;
  margin-top: 4px;
  color: var(--icon-gray);
}

.role__body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.role__type {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.2;
}

.role__company {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.role__person {
  margin-top: 1px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.role__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}

.role__contact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 44px;
  max-width: 100%;
  color: var(--nanz-blue);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.role__contact svg {
  flex: 0 0 auto;
}

.role__address {
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ result list */

.results {
  padding-bottom: 8px;
}

.results__count {
  padding: 13px var(--inset) 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.results__pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px var(--inset) 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.results__page-btn {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--nanz-blue);
  font-size: 14px;
  font-weight: 600;
}

.results__page-btn:last-child {
  justify-content: flex-end;
}

.results__page-btn:disabled {
  color: var(--ink-faint);
  opacity: 0.45;
  cursor: default;
}

.results__page-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.resultrow {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 42px 14px var(--inset);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.12s ease;
}

.resultrow:active {
  background: #eeeeec;
}

.resultrow__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resultrow__no {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.resultrow__title {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.resultrow__chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--ink-faint);
}

/* Close matches (docs/tolerant-search.md): a group heading, and why each matched. */
.results__group {
  padding: 18px var(--inset) 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}

.resultrow__reason {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--nanz-blue);
  overflow-wrap: anywhere;
}

.chip {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--chip-neutral-bg);
  color: var(--chip-neutral-fg);
}

.chip--good {
  background: var(--chip-good-bg);
  color: var(--chip-good-fg);
}

.chip--active {
  background: var(--chip-active-bg);
  color: var(--chip-active-fg);
}

.chip--warn {
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
}

/* ------------------------------------------------------ production browser */

.production {
  padding-bottom: 8px;
}

.production__header {
  padding: 12px var(--inset) 10px;
}

.production__title {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}

.production__count {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-soft);
}

.production__shown {
  margin-top: 1px;
  font-size: 12px;
  color: var(--ink-faint);
}

.production__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.production__source > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-good-fg);
}

body.is-mock .production__source > span {
  background: var(--ink-faint);
}

.production__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 var(--inset);
}
.production__empty {
  margin: 28px var(--inset) 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}

.production-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 40px 14px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.production-card:active {
  background: #f0efed;
  transform: scale(0.995);
}

.production-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.production-card__no {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.production-card__payment {
  max-width: 50%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip-neutral-bg);
  color: var(--chip-neutral-fg);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-card__title {
  margin-top: 4px;
  padding-right: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.production-card__progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 11px;
  font-size: 11px;
  color: var(--ink-soft);
}

.production-card__percent {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.production-card__track {
  display: block;
  height: 7px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7d7d5;
}

.production-card__track.is-empty {
  background: #e4e3e1;
}

.production-card__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nanz-blue);
}

.production-card__value {
  margin-top: 6px;
  text-align: right;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.production-card__facts {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.15fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}

.production-card__facts > span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.production-card__label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1.15;
  color: var(--ink-faint);
}

.production-card__chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--ink-faint);
}

.production-sk {
  padding: 14px var(--inset) 8px;
}

.production-sk > span,
.production-sk__card > span {
  display: block;
}

.production-sk__heading {
  width: 132px;
  height: 22px;
}

.production-sk__subhead {
  width: 184px;
  height: 12px;
  margin-top: 8px;
}

.production-sk__card {
  margin-top: 16px;
  padding: 14px;
  min-height: 174px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.production-sk__no {
  width: 76px;
  height: 17px;
}

.production-sk__title {
  width: 91%;
  height: 12px;
  margin-top: 10px;
}

.production-sk__title--short {
  width: 65%;
  margin-top: 6px;
}

.production-sk__track {
  width: 100%;
  height: 7px;
  margin-top: 22px;
  border-radius: 999px;
}

.production-sk__facts {
  width: 78%;
  height: 28px;
  margin-top: 20px;
}

/* --------------------------------------------------------- sales pipeline */

.pipeline {
  padding: 2px 0 10px;
  background: #f4f3f0;
}

.pipeline-hero {
  position: relative;
  overflow: hidden;
  margin: 0 12px;
  padding: 24px 18px 18px;
  border: 1px solid rgba(34, 48, 65, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 112, 207, 0.07), transparent 38%),
    linear-gradient(155deg, #ffffff 0%, #f9f8f5 100%);
  box-shadow: 0 8px 28px rgba(32, 43, 55, 0.065);
}

.pipeline-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent-orange);
}

.pipeline-hero__eyebrow,
.pipeline-state__eyebrow {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pipeline-hero__title {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #263a52;
}

.pipeline-hero__metrics {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid rgba(34, 48, 65, 0.11);
  border-bottom: 1px solid rgba(34, 48, 65, 0.11);
}

.pipeline-metric {
  min-width: 0;
  padding: 17px 0 15px;
}

.pipeline-metric__label {
  max-width: 15ch;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.025em;
  color: var(--ink-soft);
}

.pipeline-metric__value {
  margin-top: 5px;
  font-size: clamp(25px, 8.2vw, 36px);
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #1d314a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pipeline-hero__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.pipeline-hero__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.pipeline-hero__source > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nanz-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 207, 0.09);
}

body.is-mock .pipeline-hero__source > span {
  background: var(--ink-soft);
  box-shadow: none;
}

.pipeline-list {
  margin-top: 25px;
}

.pipeline-list__header {
  padding: 0 var(--inset) 11px;
}

.pipeline-list__header h2 {
  font-size: 18px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: #263a52;
}

.pipeline-list__header > p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-soft);
}

.pipeline-list__header .pipeline-list__shown {
  margin-top: 7px;
  font-size: 11px;
}

.pipeline-list ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 var(--inset);
  padding: 0;
  list-style: none;
}

.pipeline-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 15px 15px 14px;
  border: 1px solid rgba(34, 48, 65, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
  box-shadow: 0 2px 10px rgba(34, 48, 65, 0.035);
  transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.pipeline-card:active {
  background: #f9f8f5;
  transform: scale(0.996);
  box-shadow: 0 1px 4px rgba(34, 48, 65, 0.04);
}

.pipeline-card__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pipeline-card__rank {
  flex: 0 0 auto;
  padding-top: 5px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.pipeline-card__money {
  flex: 1 1 auto;
  min-width: 0;
}

.pipeline-card__money-label,
.pipeline-card__rating-label,
.pipeline-card__fact-label {
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pipeline-card__money-label {
  display: block;
}

.pipeline-card__money-value {
  display: block;
  margin-top: 1px;
  font-size: 27px;
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #1d314a;
  font-variant-numeric: tabular-nums;
}

.pipeline-card__chev {
  flex: 0 0 19px;
  display: flex;
  margin-top: 13px;
  color: #738091;
}

.pipeline-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin: 8px 0 0 28px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pipeline-card__track {
  display: block;
  height: 3px;
  margin: 10px 0 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #dededa;
}

.pipeline-card__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nanz-blue);
}

.pipeline-card__title {
  display: -webkit-box;
  margin: 12px 0 0 28px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 520;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pipeline-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0 28px;
  padding-top: 10px;
  border-top: 1px solid rgba(34, 48, 65, 0.09);
}

.pipeline-card__facts > span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pipeline-card__fact-label {
  display: block;
  margin-bottom: 3px;
}

/* Pipeline skeleton mirrors the actual hero/card geometry to avoid a jump. */
.pipeline-sk {
  padding: 2px 0 10px;
  background: #f4f3f0;
}

.pipeline-sk__hero {
  margin: 0 12px;
  min-height: 230px;
  padding: 25px 18px 18px;
  border: 1px solid rgba(34, 48, 65, 0.08);
  border-radius: 18px;
  background: var(--white);
}

.pipeline-sk__hero > span,
.pipeline-sk__card > span,
.pipeline-sk__metrics > span {
  display: block;
}

.pipeline-sk__eyebrow {
  width: 96px;
  height: 9px;
}

.pipeline-sk__heading {
  width: 154px;
  height: 26px;
  margin-top: 9px;
}

.pipeline-sk__metrics {
  display: grid;
  margin-top: 31px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pipeline-sk__metrics > span {
  height: 38px;
}

.pipeline-sk__summary {
  width: 72%;
  height: 11px;
  margin-top: 18px;
}

.pipeline-sk__list {
  margin: 25px var(--inset) 0;
}

.pipeline-sk__card {
  position: relative;
  min-height: 188px;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid rgba(34, 48, 65, 0.08);
  border-radius: 15px;
  background: var(--white);
}

.pipeline-sk__rank {
  width: 20px;
  height: 10px;
}

.pipeline-sk__value {
  width: 47%;
  height: 27px;
  margin: -7px 0 0 31px;
}

.pipeline-sk__rating {
  width: 65%;
  height: 10px;
  margin: 11px 0 0 31px;
}

.pipeline-sk__track {
  width: calc(100% - 31px);
  height: 3px;
  margin: 11px 0 0 31px;
}

.pipeline-sk__title {
  width: 82%;
  height: 27px;
  margin: 15px 0 0 31px;
}

.pipeline-sk__facts {
  width: 70%;
  height: 28px;
  margin: 17px 0 0 31px;
}

.pipeline-state {
  display: grid;
  justify-items: center;
  padding: 58px 26px 46px;
  text-align: center;
}

.pipeline-state__mark {
  width: 36px;
  height: 2px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--accent-orange);
}

.pipeline-state__title {
  margin-top: 18px;
  color: #263a52;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.2;
}

.pipeline-state__body {
  max-width: 34ch;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ photo pilot */

.photo-pilot {
  padding: 0 0 32px;
}

.photo-pilot__intro {
  margin: 14px var(--inset) 0;
  padding: 22px 19px 18px;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--accent-orange);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: 0 3px 16px rgba(35, 51, 68, 0.06);
}

.photo-pilot__eyebrow,
.photo-method__eyebrow {
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.photo-pilot__intro h1,
.photo-state h1 {
  margin-top: 5px;
  color: #263a52;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.15;
}

.photo-pilot__body {
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.48;
}

.photo-pilot__progress {
  margin-top: 15px;
  color: #263a52;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.photo-pilot__notice {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.photo-pilot__beta {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  color: var(--nanz-blue);
  font-size: 12px;
  font-weight: 650;
}

.photo-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 13px var(--inset) 11px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.photo-filters::-webkit-scrollbar {
  display: none;
}

.photo-filter {
  flex: 0 0 auto;
  min-height: var(--tap);
  padding: 0 15px;
  border: 1px solid rgba(38, 58, 82, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: #405268;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.photo-filter.is-selected {
  border-color: var(--nanz-blue);
  background: var(--nanz-blue);
  color: var(--white);
}

.photo-pilot__list {
  display: grid;
  gap: 11px;
  padding: 0 var(--inset);
}

.photo-pilot__no-results {
  padding: 28px 12px;
  color: var(--ink-soft);
  text-align: center;
}

.photo-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: 0 2px 9px rgba(35, 51, 68, 0.045);
}

.photo-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-card__profile-link {
  display: flex;
  width: 100%;
  min-height: var(--tap);
  align-items: center;
  gap: 12px;
  text-align: left;
}

.photo-card--has-linkedin .photo-card__header {
  padding-right: 48px;
}

.photo-card--has-linkedin .photo-card__profile-link {
  width: calc(100% - 44px);
}

.photo-card__profile-link:focus-visible {
  border-radius: 9px;
  outline: 3px solid rgba(0, 112, 207, 0.28);
  outline-offset: 3px;
}

.photo-card__avatar {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e7eef7;
  color: #225c9e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.photo-card__avatar--image {
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: #f3f3f2;
}

.photo-card__avatar--group,
.photo-card__avatar--event {
  object-fit: contain;
}

.photo-card__identity {
  min-width: 0;
}

.photo-card__identity h2 {
  overflow-wrap: anywhere;
  color: #263a52;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.photo-card__identity p {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
}

.photo-card__profile-status {
  display: block;
  margin-top: 4px;
  color: var(--nanz-blue);
  font-size: 11px;
  font-weight: 650;
}

.photo-card__profile-chev {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 25px;
  line-height: 1;
}

.photo-card__linkedin {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 8px;
  display: grid;
  width: var(--tap);
  height: var(--tap);
  place-items: center;
  border-radius: 50%;
  color: #0a66c2;
  text-decoration: none;
}

.photo-card__linkedin:hover {
  background: rgba(10, 102, 194, 0.08);
}

.photo-card__linkedin:focus-visible {
  background: rgba(10, 102, 194, 0.08);
  outline: 3px solid rgba(10, 102, 194, 0.28);
  outline-offset: 0;
}

.photo-card__linkedin-logo {
  display: block;
}

.photo-card__reason {
  margin-top: 13px;
}

.photo-card__reason strong {
  color: #263a52;
  font-size: 13px;
}

.photo-card__reason p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.42;
}

.photo-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.photo-card__label {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #405268;
  font-size: 10.5px;
  font-weight: 620;
}

.photo-card__decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.photo-card__decision {
  min-height: var(--tap);
  border: 1px solid #c8d0d8;
  border-radius: 9px;
  background: #f7f8f9;
  color: #3d4e61;
  font-size: 13px;
  font-weight: 650;
}

.photo-card__decision--keep.is-selected {
  border-color: #3d8560;
  background: var(--chip-good-bg);
  color: var(--chip-good-fg);
}

.photo-card__decision--question.is-selected {
  border-color: #b37a22;
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
}

.photo-card__decision--remove.is-selected {
  border-color: #a25757;
  background: #f7e6e4;
  color: #843f3f;
}

.photo-card__review {
  display: grid;
  gap: 9px;
  margin-top: 11px;
  padding: 12px;
  border-radius: 9px;
  background: #f3f4f5;
}

.photo-card__review label,
.photo-method__note {
  color: #405268;
  font-size: 12px;
  font-weight: 650;
}

.photo-card__review label > span,
.photo-method__note > span {
  color: var(--ink-faint);
  font-weight: 500;
}

.photo-card__review select,
.photo-card__review textarea,
.photo-method textarea {
  display: block;
  width: 100%;
  min-height: var(--tap);
  margin-top: 4px;
  border: 1px solid #cbd2d8;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 14px/1.4 var(--font);
}

.photo-card__review select {
  padding: 0 10px;
}

.photo-card__review textarea,
.photo-method textarea {
  resize: vertical;
  padding: 9px 10px;
}

.photo-card__save-row,
.photo-method__save-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
}

.photo-card__save-note,
.photo-method__save,
.photo-card__retry {
  min-height: var(--tap);
  border-radius: 8px;
  color: var(--nanz-blue);
  font-size: 12px;
  font-weight: 650;
}

.photo-card__save-note,
.photo-method__save {
  padding: 0 12px;
  border: 1px solid rgba(0, 112, 207, 0.25);
  background: rgba(0, 112, 207, 0.06);
}

.photo-method__save:disabled {
  opacity: 0.45;
  cursor: default;
}

.photo-card__retry {
  padding: 0 7px;
  text-decoration: underline;
}

.photo-card__save {
  color: var(--ink-faint);
  font-size: 11.5px;
}

.photo-card__save.is-error {
  color: #93433c;
}

.photo-card__save.is-saved {
  color: var(--chip-good-fg);
}

.photo-card__why {
  min-height: var(--tap);
  margin: 7px 0 -10px;
  color: var(--nanz-blue);
  font-size: 12.5px;
  font-weight: 620;
}

.photo-card__evidence {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding: 11px 0 2px 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
  list-style: disc;
}

.photo-method {
  margin: 20px var(--inset) 0;
  padding: 19px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.photo-method h2 {
  margin-top: 5px;
  color: #263a52;
  font-size: 19px;
  line-height: 1.25;
}

.photo-method__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.photo-method__choice {
  min-height: 50px;
  padding: 5px 9px;
  border: 1px solid #c8d0d8;
  border-radius: 9px;
  background: #f7f8f9;
  color: #405268;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
}

.photo-method__choice.is-selected {
  border-color: var(--nanz-blue);
  background: var(--chip-active-bg);
  color: var(--chip-active-fg);
}

.photo-method__note {
  display: block;
  margin-top: 13px;
}

.photo-state {
  display: grid;
  justify-items: center;
  padding: 58px 26px 46px;
  text-align: center;
}

.photo-state > p:not(.photo-pilot__eyebrow) {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.photo-sk {
  padding: 25px var(--inset);
}

.photo-sk__eyebrow {
  display: block;
  width: 90px;
  height: 9px;
}

.photo-sk__title {
  display: block;
  width: 74%;
  height: 25px;
  margin-top: 9px;
}

.photo-sk__intro {
  display: block;
  width: 100%;
  height: 46px;
  margin: 12px 0 18px;
}

.photo-sk__card {
  position: relative;
  min-height: 166px;
  margin-top: 11px;
  padding: 16px;
  border-radius: var(--radius-panel);
  background: var(--white);
}

.photo-sk__avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.photo-sk__name,
.photo-sk__company,
.photo-sk__reason {
  position: absolute;
  left: 76px;
  display: block;
  height: 12px;
}

.photo-sk__name { top: 20px; width: 42%; }
.photo-sk__company { top: 42px; width: 65%; }
.photo-sk__reason { top: 91px; left: 16px; width: 80%; }

/* --------------------------------------------------- relationship profile */

.relationship-profile {
  padding: 16px var(--inset) 42px;
}

.relationship-profile__back {
  min-height: var(--tap);
  margin: -4px 0 7px;
  color: var(--nanz-blue);
  font-size: 14px;
  font-weight: 650;
}

.relationship-profile__header {
  padding: 20px 18px;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--accent-orange);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.relationship-profile__header h1,
.relationship-profile--blocked > h1 {
  margin-top: 5px;
  color: #263a52;
  font-size: 26px;
  font-weight: 670;
  line-height: 1.12;
}

.relationship-profile__role {
  margin-top: 7px;
  color: #405268;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.4;
}

.relationship-profile__specialty,
.relationship-profile__verified {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.relationship-profile__linkedin {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--nanz-blue);
  font-size: 12.5px;
  font-weight: 680;
  text-decoration: none;
}

.relationship-profile__verified {
  margin-top: 11px;
  color: var(--ink-faint);
  font-size: 11px;
}

.relationship-profile__photo {
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.relationship-profile__photo img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  background: #efefed;
}

.relationship-profile__photo--group img,
.relationship-profile__photo--event img {
  object-fit: contain;
}

.relationship-profile__photo figcaption {
  padding: 9px 11px 11px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.relationship-profile__photo figcaption a {
  color: var(--nanz-blue);
  font-weight: 620;
}

.relationship-profile__photo-empty {
  display: grid;
  width: 100%;
  min-height: 150px;
  margin-top: 12px;
  place-items: center;
  border-radius: var(--radius-panel);
  background: #e7eef7;
  color: #225c9e;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.relationship-profile__section,
.relationship-profile__review-state {
  margin-top: 12px;
  padding: 17px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.relationship-profile__section h2,
.relationship-profile__review-state h2 {
  color: #263a52;
  font-size: 17px;
  font-weight: 660;
  line-height: 1.25;
}

.relationship-profile__section > p,
.relationship-profile__section li,
.relationship-profile__review-state p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.relationship-profile__section > p,
.relationship-profile__review-state p,
.relationship-profile__section ul,
.relationship-profile__section ol {
  margin-top: 9px;
}

.relationship-profile__section ul,
.relationship-profile__section ol {
  display: grid;
  gap: 9px;
  padding-left: 19px;
}

.relationship-profile__section ul {
  list-style: disc;
}

.relationship-profile__section ol {
  list-style: decimal;
}

.relationship-profile__projects li + li {
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}

.relationship-profile__projects p {
  margin-top: 3px;
}

.relationship-profile__tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #405268;
  font-size: 10px;
}

.profile-cite {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 2px;
  place-items: center;
  border: 1px solid rgba(0, 112, 207, 0.28);
  border-radius: 50%;
  color: var(--nanz-blue);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: super;
}

.relationship-profile__sources a {
  color: var(--nanz-blue);
  font-weight: 620;
}

.relationship-profile__sources span {
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
}

/* ----------------------------------------------------------------- states */

.state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 54px 28px 40px;
  text-align: center;
}

.state__icon {
  display: flex;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.state--error .state__icon {
  color: var(--accent-orange);
}

.state__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.state__body {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.state__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.state__btn {
  margin-top: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: var(--radius-field);
  background: var(--nanz-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.state__btn:active {
  background: var(--nanz-blue-deep);
}

.state__btn--quiet {
  background: var(--panel);
  color: var(--ink);
}

.state__btn--quiet:active {
  background: #d3d2d0;
}

/* Today's events under "Find an order" (docs/calendar.md). */
.today {
  margin: 0 var(--inset) 24px;
  padding: 14px 16px 12px;
  border-radius: var(--radius-panel);
  background: var(--white);
  color: var(--ink);
}

.today[hidden] {
  display: none;
}

.today__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.today__date {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.today__list {
  margin-top: 8px;
  list-style: none;
}

.today__item {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.35;
}

.today__item:first-child {
  border-top: 0;
}

/* A range wraps after its dash ("9:00–" / "10:00 AM"); "AM" stays with its time. */
.today__time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.today__event {
  min-width: 0;
  overflow-wrap: anywhere;
}

.today__where {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-soft);
}

.today__more {
  min-height: var(--tap);
  color: var(--nanz-blue);
  font-size: 14px;
  font-weight: 600;
}

.today__source {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------- portal chooser */

.view-picker {
  padding: 28px var(--inset) 16px;
}

.view-picker__header {
  padding: 0 4px 18px;
}

.view-picker__eyebrow {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.view-picker__title {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.2;
  color: var(--ink);
}

.view-picker__body {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.view-picker__nav {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.view-picker__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 11px 12px;
  text-align: left;
  transition: background-color 0.12s ease;
}

.view-picker__row + .view-picker__row {
  border-top: 1px solid var(--hairline);
}

.view-picker__row:active {
  background: #f0efed;
}

.view-picker__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 112, 207, 0.08);
  color: var(--nanz-blue);
}

.view-picker__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.view-picker__name,
.view-picker__description {
  display: block;
}

.view-picker__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.view-picker__description {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.view-picker__chev {
  flex: 0 0 auto;
  display: flex;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- skeleton */

.sk__bar,
.sk__photo,
.sk__contact {
  background: linear-gradient(100deg, #e4e3e1 20%, #f0efee 38%, #e4e3e1 56%);
  background-size: 300% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk__bar,
  .sk__photo,
  .sk__contact {
    animation: none;
    background: var(--panel);
  }
  .skip,
  .toast,
  .orb,
  .searchbar,
  .resultrow,
  .results__page-btn,
  .production-card,
  .pipeline-card,
  .photo-filter,
  .photo-card__decision,
  .photo-method__choice,
  .view-picker__row,
  .contact__action {
    transition: none;
  }
}

@media (max-width: 340px) {
  .pipeline-hero {
    margin-inline: 8px;
    padding-inline: 14px;
  }

  .pipeline-metric__value {
    font-size: 24px;
  }

  .pipeline-card {
    padding-inline: 12px;
  }

  .pipeline-card__money-value {
    font-size: 24px;
  }

  .pipeline-card__rating,
  .pipeline-card__track,
  .pipeline-card__title,
  .pipeline-card__facts {
    margin-left: 24px;
  }
}

.sk__bar--orderno {
  width: 86px;
  height: 20px;
  margin: 0 auto;
}

.sk__bar--title {
  width: 92%;
  height: 15px;
  margin: 10px auto 0;
}

.sk__bar--title2 {
  width: 66%;
}

.sk__photo {
  width: 150px;
  height: 124px;
  margin: 22px auto 0;
  border-radius: 8px;
}

.sk__bar--line {
  width: 54%;
  height: 18px;
  margin: 16px auto 0;
}

.sk__bar--desc {
  width: 76%;
  height: 13px;
  margin: 10px auto 0;
}

.sk__panel {
  margin: 16px var(--inset) 0;
  padding: 12px 13px;
  background: #eceae8;
  border-radius: var(--radius-panel);
}

.sk--row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
}

.sk__bar--label {
  width: 38%;
  height: 12px;
}

.sk__bar--value {
  width: 24%;
  height: 12px;
}

.sk__contact {
  height: 72px;
  margin: 10px var(--inset) 0;
  border-radius: var(--radius-panel);
}

/* -------------------------------------------------------------- Sales Map */

body.is-sales-map-view .searchbar {
  display: none;
}

body.is-sales-map-view .band {
  padding-bottom: 12px;
}

body.is-sales-map-view .band__hint {
  display: none;
}

body.is-sales-map-view .band__user {
  margin-top: 10px;
  font-size: 17px;
}

.sales-map {
  padding: 18px var(--inset) calc(env(safe-area-inset-bottom, 0px) + 36px);
}

.sales-map__intro {
  padding: 2px 1px 16px;
}

.sales-map__eyebrow {
  color: var(--nanz-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sales-map__intro h1 {
  margin-top: 3px;
  color: #30383f;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.sales-map__intro > p:last-child {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.map-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.map-search > span {
  display: flex;
  margin-left: 13px;
  color: var(--ink-faint);
}

.map-search input {
  min-width: 0;
  flex: 1;
  align-self: stretch;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px var(--font);
}

.map-search button {
  align-self: stretch;
  min-width: 58px;
  padding: 0 11px;
  color: var(--nanz-blue);
  font-size: 14px;
  font-weight: 700;
}

.map-search__status {
  padding: 8px 2px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.map-search__status.is-error,
.map-feedback__error {
  color: #a63d2b;
}

.map-destinations {
  position: relative;
  z-index: 4;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.map-destinations li + li {
  border-top: 1px solid var(--hairline);
}

.map-destinations button {
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  text-align: left;
}

.map-destinations strong,
.map-destinations span {
  display: block;
}

.map-destinations strong {
  color: var(--ink);
  font-size: 14px;
}

.map-destinations span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.map-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.map-location-row div {
  min-width: 0;
}

.map-location-row span,
.map-location-row strong {
  display: block;
}

.map-location-row span {
  color: var(--ink-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.map-location-row strong {
  margin-top: 1px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-location-row button {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  color: var(--nanz-blue);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.map-layers {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.map-layers legend {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.map-layers > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.map-layer {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.map-layer.is-selected {
  border-color: color-mix(in srgb, var(--map-layer-color) 40%, white);
  background: color-mix(in srgb, var(--map-layer-color) 9%, white);
  color: var(--ink);
}

.map-layer input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.map-layer__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--map-layer-color);
  opacity: 0.36;
}

.map-layer.is-selected .map-layer__dot {
  opacity: 1;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--map-layer-color) 18%, white);
}

/* "Active orders only" (October 7): one tap, above the layer chips. */
.map-active {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.map-active > span:last-child {
  display: grid;
  gap: 1px;
}

.map-active strong {
  font-size: 14px;
  font-weight: 650;
}

.map-active > span:last-child > span {
  color: var(--ink-soft);
  font-size: 12px;
}

.map-active__check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.map-active.is-selected {
  border-color: color-mix(in srgb, #3f7a58 45%, white);
  background: color-mix(in srgb, #3f7a58 8%, white);
}

.map-active.is-selected .map-active__check {
  border-color: #3f7a58;
  background: #3f7a58;
  box-shadow: inset 0 0 0 3px var(--white);
}

.map-lifecycles__note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.35;
}

.map-radii {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 10px;
  background: #e8e8e6;
}

.map-radius {
  min-height: 38px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.map-radius.is-selected {
  background: var(--white);
  color: var(--nanz-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sales-map__canvas-wrap {
  position: relative;
  height: 350px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #e5e9eb;
}

.sales-map__canvas {
  width: 100%;
  height: 100%;
}

.sales-map__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(247, 247, 247, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  backdrop-filter: blur(1px);
}

.maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 10px 10px 0 0;
}

.map-results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.map-results-heading h2 {
  color: #30383f;
  font-size: 16px;
  font-weight: 700;
}

.map-results-heading > span {
  color: var(--ink-faint);
  font-size: 11px;
  white-space: nowrap;
}

.map-places {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.map-place {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: block;
  padding: 12px 58px 11px 13px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: var(--white);
  text-align: left;
}

.map-place.is-selected {
  border-color: rgba(0, 112, 207, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 112, 207, 0.08);
}

.map-place > strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.map-place__sub,
.map-place__address {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
}
.map-place__sub {
  font-weight: 600;
}
.map-detail__header > .map-detail__sub {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.map-detail__address {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.map-place__distance {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.map-place__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.map-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--map-chip) 11%, white);
  color: color-mix(in srgb, var(--map-chip) 82%, #222);
  font-size: 10px;
  font-weight: 650;
}

.map-places__empty {
  margin-top: 9px;
  padding: 18px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.map-detail {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.map-detail__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: var(--tap);
  height: var(--tap);
  color: var(--ink-soft);
  font-size: 26px;
  line-height: 1;
}

.map-detail__header {
  padding: 16px 52px 15px 15px;
  border-bottom: 1px solid var(--hairline);
}

.map-detail__header > p {
  color: var(--nanz-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-detail__header h2 {
  margin-top: 4px;
  color: #30383f;
  font-size: 18px;
  line-height: 1.3;
}

.map-detail__directions {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  color: var(--nanz-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.map-detail__section {
  padding: 14px 15px;
}

.map-detail__section + .map-detail__section {
  border-top: 1px solid var(--hairline);
}

.map-detail__section h3 {
  position: relative;
  padding-left: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.map-detail__section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--map-layer-color);
}

.map-detail__section h3 span {
  color: var(--ink-faint);
  font-weight: 500;
}

.map-detail__section ul {
  margin-top: 8px;
}

.map-detail__item + .map-detail__item,
.map-detail__relationship + .map-detail__relationship {
  border-top: 1px solid var(--hairline);
}

.map-detail__order {
  width: 100%;
  min-height: 54px;
  display: block;
  padding: 8px 0;
  text-align: left;
}

.map-detail__order > * {
  display: block;
}

.map-detail__order-no {
  color: var(--nanz-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-detail__order strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.map-detail__order span:not(.map-detail__order-no) {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

/* Project lifecycle and project-name location (docs/sales-map-v1-plan.md, October 6). */
.map-detail__order .map-detail__order-no .map-detail__status {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.map-detail__order .map-detail__ships-to {
  font-style: italic;
}

.map-lifecycle {
  --map-layer-color: var(--nanz-blue);
}

.map-detail__relationship {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.map-detail__relationship strong {
  color: var(--ink);
  font-size: 13px;
}

.map-detail__relationship span {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 11px;
}

.map-detail__flag {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.map-feedback-status {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fbede7;
  color: #8c4325;
  font-size: 12px;
}

.map-feedback-status > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.map-feedback-status p {
  margin-top: 4px;
}

.map-feedback-status button {
  min-height: 36px;
  margin-top: 3px;
  color: var(--nanz-blue);
  font-weight: 650;
}

.map-feedback {
  margin: 2px 0 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f3f3f1;
}

.map-feedback > p {
  color: var(--ink);
  font-size: 13px;
}

.map-feedback label {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.map-feedback label span {
  font-weight: 400;
}

.map-feedback select,
.map-feedback textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px var(--font);
}

.map-feedback select {
  height: 42px;
  padding: 0 9px;
}

.map-feedback textarea {
  min-height: 66px;
  padding: 8px 9px;
  resize: vertical;
}

.map-feedback__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.map-feedback__actions button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.map-feedback__actions .map-feedback__save {
  background: var(--nanz-blue);
  color: var(--white);
}

.map-feedback__actions button:disabled {
  opacity: 0.65;
}

.sales-map__source {
  padding: 18px 2px 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.sales-map__skeleton-controls,
.sales-map__skeleton-canvas {
  border-radius: 12px;
  background: linear-gradient(90deg, #e5e5e3 25%, #efefed 50%, #e5e5e3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.sales-map__skeleton-controls {
  height: 126px;
  margin-top: 12px;
}

.sales-map__skeleton-canvas {
  height: 350px;
  margin-top: 14px;
}

.map-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
}

@media (max-width: 360px) {
  .sales-map {
    padding-inline: 12px;
  }

  .sales-map__canvas-wrap,
  .sales-map__skeleton-canvas {
    height: 320px;
  }

  .map-location-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 50;
  transform: translate(-50%, 10px);
  max-width: min(400px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.94);
  color: var(--white);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* A new release is live (web/update.js). */
.update-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.94);
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.update-bar button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--nanz-blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------- sign in */

body.signin-page {
  display: grid;
  place-items: center;
  max-width: none; /* the sign-in page is not the phone column */
  min-height: 100vh;
  padding: 24px;
  background: #ececea;
}

body.signin-page.is-preview {
  padding-top: calc(var(--environment-banner-height) + 24px);
}

body.signin-page .environment-banner {
  width: 100%;
}

@media (min-width: 481px) {
  body.signin-page {
    box-shadow: none;
  }
}

.signin {
  width: 100%;
  display: grid;
  place-items: center;
}

.signin__card {
  width: 100%;
  max-width: 348px;
  padding: 34px 26px 26px;
  background: var(--white);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 14px 34px rgba(0, 0, 0, 0.07);
}

.wordmark {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* balance the trailing letter-space */
  color: var(--ink);
}

.wordmark__sub {
  margin-top: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.signin__banner {
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fbeae2;
  color: #8c3c1b;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.signin__banner[hidden] {
  display: none;
}

.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid #dadce0;
  border-radius: var(--radius-field);
  background: var(--white);
  color: #3c4043;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.gbtn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gbtn:active {
  background: #f1f3f4;
}

.gbtn__mark {
  display: flex;
}

.signin__note {
  margin-top: 15px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Pipeline selections stay visible, including when no rows match. */
.pipeline-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.pipeline-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.pipeline-filters input, .pipeline-filters select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font: inherit; font-size: 16px; color: inherit; background: #fff; border: 1px solid #ccc; border-radius: 6px; padding: 8px; }
.pipeline-filters__note, .pipeline-filters__error, .pipeline-filters__actions { grid-column: 1 / -1; margin: 0; }
.pipeline-filters__note { font-size: 12px; line-height: 1.5; color: #666; }
.pipeline-filters__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pipeline-filters__actions button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--hairline); border-radius: 6px; font-size: 14px; }
.pipeline-filters__actions button[type="submit"] { background: var(--nanz-blue); color: var(--white); border-color: var(--nanz-blue); }
.resultbar__position { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; }

.pipeline-slider-group { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--hairline); }
.pipeline-slider-group legend { padding: 0 8px 0 0; font-size: 14px; font-weight: 600; }
.pipeline-filters .pipeline-slider { gap: 0; margin-top: 12px; }
.pipeline-slider__label, .pipeline-slider__scale { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-slider output { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nanz-blue); }
.pipeline-slider__scale { font-size: 11px; color: var(--ink-soft); }
.pipeline-filters input[type="range"] { appearance: none; -webkit-appearance: none; height: 48px; padding: 0; border: 0; background: transparent; accent-color: var(--nanz-blue); touch-action: pan-y; }
.pipeline-filters input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #d4dce3; }
.pipeline-filters input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #d4dce3; }
.pipeline-filters input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 30px; width: 30px; margin-top: -12px; border: 3px solid #fff; border-radius: 50%; background: var(--nanz-blue); box-shadow: 0 1px 5px #0004; }
.pipeline-filters input[type="range"]::-moz-range-thumb { height: 24px; width: 24px; border: 3px solid #fff; border-radius: 50%; background: var(--nanz-blue); box-shadow: 0 1px 5px #0004; }
.pipeline-date { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.pipeline-date__button { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 48px; padding: 8px; text-align: left; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.pipeline-date__button svg { flex: 0 0 20px; color: var(--nanz-blue); }
.pipeline-calendar { width: min(390px, calc(100vw - 8px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 12px 8px; border: 0; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 8px 40px #0004; }
.pipeline-calendar::backdrop { background: #0006; }
.pipeline-calendar header, .pipeline-calendar__month, .pipeline-calendar footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-calendar h2 { margin: 0; padding-left: 8px; font-size: 17px; }
.pipeline-calendar button { min-height: 44px; border-radius: 8px; }
.pipeline-calendar header button, .pipeline-calendar__month button { min-width: 44px; color: var(--nanz-blue); font-size: 25px; }
.pipeline-calendar__month { margin: 8px 0; }
.pipeline-calendar select { flex: 1; min-width: 0; min-height: 44px; padding: 6px; font-size: 16px; border: 1px solid var(--hairline); border-radius: 6px; background: #fff; color: inherit; }
.pipeline-calendar__week, .pipeline-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.pipeline-calendar__week { padding: 6px 0; font-size: 12px; color: var(--ink-soft); }
.pipeline-calendar__days button { width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
.pipeline-calendar__days button[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--nanz-blue); }
.pipeline-calendar__days button[aria-pressed="true"] { background: var(--nanz-blue); color: #fff; }
.pipeline-calendar button:disabled { color: #b7bbc0; cursor: default; }
.pipeline-calendar footer { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.pipeline-calendar footer button { padding: 8px 14px; color: var(--nanz-blue); }

.order-timing { margin: 16px 0; }
.order-timing h2 { font-size: 16px; margin: 0 16px 8px; }
.order-timing > p { color: var(--muted, #626262); font-size: 12px; line-height: 1.5; margin: 8px 20px; }
.pipeline-review-button, .pipeline-review-dialog button { min-height: 44px; padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: 8px; background: #fff; color: #343434; font: inherit; }
.pipeline-review-button { margin: 10px 0; font-size: 14px; }
.pipeline-review-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 20px; border: 0; border-radius: 14px; color: #252525; box-sizing: border-box; }
.pipeline-review-dialog::backdrop { background: #0007; }
.pipeline-review-dialog h2 { font-size: 20px; margin-top: 0; }
.pipeline-review-dialog p { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pipeline-review-dialog label { display: grid; gap: 6px; }
.pipeline-review-dialog input { width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; }
.pipeline-review-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pipeline-review-dialog [role=alert] { color: #a32618; }
.pipeline-excluded-row { border-top: 1px solid #ddd; padding: 12px 0; }

/* Independently loaded, cited Desk context beneath the order heading. */
.disposition { text-align:left; margin:20px 0; padding:16px; border:1px solid #d8e1e8; border-radius:12px; background:#f7fafc; overflow-wrap:anywhere; }
.disposition h2 { font-size:18px; margin:0 0 12px; }
.disposition p { line-height:1.5; margin:10px 0; }
.disposition__kind { display:block; font-size:12px; color:#496072; margin-bottom:3px; }
.disposition button { min-height:44px; padding:6px 10px; border:1px solid #bdcbd5; border-radius:7px; background:white; color:#175580; font:inherit; font-size:13px; }
.disposition__meta,.disposition details { font-size:13px; color:#496072; }
.disposition summary { min-height:44px; padding-top:12px; cursor:pointer; }
.disposition__source { white-space:pre-wrap; font-size:14px; }
.disposition__assessment { border-bottom:1px solid #d8e1e8; padding-bottom:8px; margin-bottom:18px; }
.disposition__preview { display:inline-block; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:#53645a; background:#e6eee7; border-radius:4px; padding:4px 6px; vertical-align:middle; }
/* Sales briefs on order detail (docs/sales-briefs.md), in the order context's visual language. */
.brief { text-align:left; margin:20px 0; padding:16px; border:1px solid #d8e1e8; border-radius:12px; background:#f7fafc; overflow-wrap:anywhere; }
.brief h2 { font-size:18px; margin:0 0 8px; }
.brief h3 { font-size:15px; margin:0 0 6px; }
.brief p, .brief li { line-height:1.5; }
.brief p { margin:6px 0; }
.brief__part { padding-bottom:10px; margin-bottom:12px; border-bottom:1px solid #d8e1e8; }
.brief__badge { display:inline-block; font-size:11px; font-weight:600; letter-spacing:.04em; color:#53645a; background:#e6eee7; border-radius:4px; padding:3px 6px; vertical-align:middle; }
.brief__activity { list-style:none; margin:4px 0; padding:0; }
.brief__activity li { margin:6px 0; }
.brief__date { font-weight:600; color:#2f4757; margin-right:4px; }
.brief__cite { min-width:24px; min-height:24px; padding:0 6px; margin-left:2px; border:1px solid #bdcbd5; border-radius:12px; background:white; color:#175580; font:inherit; font-size:12px; line-height:22px; vertical-align:1px; cursor:pointer; }
.brief__wrong { min-height:44px; padding:0; border:0; background:none; color:#496072; font:inherit; font-size:13px; text-decoration:underline; cursor:pointer; }
.brief__source { margin:4px 0 12px; padding:12px; border:1px solid #bdcbd5; border-radius:8px; background:white; font-size:14px; }
.brief__source-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.brief__source-close { min-width:44px; min-height:44px; margin:-12px -12px 0 0; border:0; background:none; font-size:22px; color:#496072; cursor:pointer; }
.brief__source-subject, .brief__source-state { color:#496072; font-size:13px; }
.brief__source-text { white-space:pre-wrap; }
.brief__meta { font-size:13px; color:#496072; margin:0; }
.assessment-preview { max-width:560px; margin:0 auto; padding:24px 20px 48px; color:#203848; font-family:system-ui,sans-serif; }
.assessment-preview h1 { font-size:27px; line-height:1.2; margin:24px 0 16px; }
.assessment-preview p { line-height:1.55; margin:14px 0; }
.assessment-preview__note { color:#566977; font-size:14px; }
.assessment-preview__order { display:flex; flex-direction:column; gap:6px; padding:17px; margin:12px 0; border:1px solid #d8e1e8; border-radius:10px; background:#f7fafc; color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.assessment-preview__order span { font-size:13px; color:#536b7d; }
.assessment-preview__back,.assessment-preview__entry { display:inline-block; padding:12px 0; color:#175580; }
.assessment-preview__entry { margin-top:20px; }

/* ---- Incoming Sales (FileMaker's Incoming Sales Report) and past-close marker ---- */
.past-close {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--chip-warn-bg);
  color: var(--chip-warn-fg);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.incoming-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px var(--inset) 0;
}
.incoming-toggles {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: #e8e6e1;
}
.incoming-toggle {
  min-height: var(--tap);
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.incoming-toggle[aria-pressed='true'] {
  background: var(--white);
  color: #1d314a;
  box-shadow: 0 1px 4px rgba(32, 43, 55, 0.12);
}
.incoming-closed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  font-size: 14px;
  color: var(--ink);
}
.incoming-closed input {
  width: 20px;
  height: 20px;
  accent-color: var(--nanz-blue);
}
.incoming-note,
.incoming-empty {
  margin: 10px var(--inset) 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.incoming-empty {
  margin-top: 28px;
  font-size: 14px;
  text-align: center;
}
.incoming-group {
  margin-top: 22px;
}
.incoming-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--inset) 8px;
}
.incoming-group__header h2 {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: #263a52;
}
.incoming-group__header p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.incoming-group__list {
  margin: 0 12px;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(34, 48, 65, 0.1);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.incoming-group__list li + li {
  border-top: 1px solid rgba(34, 48, 65, 0.08);
}
.incoming-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 10px 10px 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.incoming-row:active {
  background: #f4f3f0;
}
.incoming-row__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d314a;
}
.incoming-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 10px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}
.incoming-row__meta .past-close {
  margin-left: 0;
}
.incoming-row__flag {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--chip-neutral-bg);
  color: var(--chip-neutral-fg);
  font-size: 10.5px;
  font-weight: 650;
}
.incoming-row__flag--closed {
  background: var(--chip-good-bg);
  color: var(--chip-good-fg);
}
.incoming-row__amount {
  font-size: 15px;
  font-weight: 620;
  color: #1d314a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.incoming-row.is-closed .incoming-row__amount {
  color: var(--ink-faint);
}
.incoming-row__chev {
  color: var(--ink-faint);
}

/* Open Invoices (FileMaker's Invoice Report) — reuses the Incoming Sales list. */
.invoices-pm {
  flex: 1 1 200px;
  min-width: 0;
}
.invoices-pm select {
  width: 100%;
  min-height: var(--tap);
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(34, 48, 65, 0.18);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.invoices-sort {
  flex: 1 1 200px;
  margin-top: 0;
}
.invoices__list {
  margin-top: 16px;
}
.invoice-row {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.invoice-row:active {
  background: #f4f3f0;
}
.invoice-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.invoice-row__due {
  flex: none;
  font-size: 15px;
  font-weight: 650;
  color: #1d314a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.invoice-row__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.invoice-row__due .invoice-row__label {
  display: inline;
  margin-right: 5px;
}
.invoice-row__facts,
.invoice-row__amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.invoice-row__amounts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.invoice-row__notes {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.invoice-row.is-omitted {
  opacity: 0.65;
}
@media (max-width: 360px) {
  .invoice-row__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Email observations (order detail, intelligence viewers only) — web/order-evidence.js */
.order-evidence { margin: 16px 0 24px; }
.evidence { background: var(--white); border-radius: var(--radius-panel); box-shadow: 0 0 0 1px var(--hairline); }
.evidence > summary { min-height: var(--tap); padding: 12px var(--inset); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); }
.evidence__count { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.evidence__body { padding: 0 var(--inset) 8px; }
.evidence__note, .evidence__feedback { font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin: 4px 0 12px; }
.evidence__feedback { padding: 0 var(--inset); margin: 0; }
.evidence__feedback:not(:empty) { padding-bottom: 12px; color: var(--chip-active-fg); }
.evidence__email { border-top: 1px solid var(--hairline); padding: 12px 0; }
.evidence__subject { margin: 0 0 8px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.evidence__subject span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.evidence__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.evidence__obs { border-left: 3px solid var(--panel); padding-left: 10px; }
.evidence__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 4px; font-size: 12px; }
.evidence__topic { font-weight: 600; color: var(--ink); margin-right: 2px; }
.evidence__tag { padding: 1px 7px; border-radius: 999px; background: var(--chip-good-bg); color: var(--chip-good-fg); }
.evidence__tag--likely { background: var(--chip-warn-bg); color: var(--chip-warn-fg); }
.evidence__tag--state { background: var(--chip-neutral-bg); color: var(--chip-neutral-fg); }
.evidence__detail { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.evidence__quote { margin: 0 0 6px; padding: 6px 10px; background: var(--page); border-radius: 6px; font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence__who { margin: 0; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.evidence__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.evidence button { min-height: var(--tap); padding: 8px 14px; border: 1px solid #b7b7b7; border-radius: 8px; background: var(--white); color: #343434; font: inherit; font-size: 14px; }
.evidence button[aria-pressed="true"] { background: var(--chip-good-bg); border-color: var(--chip-good-fg); color: var(--chip-good-fg); }
.evidence__source { margin-top: 10px; }
.evidence__message pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--font); background: var(--page); padding: 8px 10px; border-radius: 6px; max-height: 60vh; overflow: auto; }
.evidence__message p { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.evidence__panel form { display: grid; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--page); font-size: 14px; }
.evidence__panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.evidence__panel legend { font-weight: 600; margin-bottom: 4px; }
.evidence__panel fieldset label { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.evidence__panel label:not(fieldset label) { display: grid; gap: 4px; }
.evidence__panel input:not([type=radio]) { min-height: var(--tap); box-sizing: border-box; width: 100%; font: inherit; padding: 0 10px; border: 1px solid #b7b7b7; border-radius: 8px; }
.evidence__panel input[type=radio] { width: 20px; height: 20px; }
.evidence__status { margin: 0; font-size: 12px; color: var(--ink-soft); }
.evidence__flags { margin: 6px 0 0; font-size: 12px; color: var(--chip-active-fg); }
.evidence__quote.is-clamped { padding-bottom: 0; border-bottom: 6px solid var(--page); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.evidence button.evidence__more { min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--chip-active-fg); font-size: 13px; margin: -4px 0 4px; }

/* ------------------------------------------ detail: notes (order-note dictation) */
/* docs/order-note-dictation.md. Fields stay at 16px so iOS doesn't zoom on focus. */

.order-notes { margin: 22px var(--inset) 0; }
.order-notes__heading { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.order-notes__card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border-radius: var(--radius-panel); }
.order-notes__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.order-notes__label span { font-weight: 400; color: var(--ink-soft); }
.order-notes__label--lead { font-size: 16px; color: var(--nanz-blue); }
.order-notes__hint { margin: -4px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.order-notes__field { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-field); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.order-notes__field:focus { outline: 2px solid var(--nanz-blue); outline-offset: 0; }
.order-notes__field[readonly] { color: var(--ink-soft); }
.order-notes__button { min-height: var(--tap); padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-notes__button--primary { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.order-notes__button--primary:active { background: var(--nanz-blue-deep); }
.order-notes__button:disabled { opacity: 0.5; cursor: default; }
.order-notes__questions { padding: 10px 12px; border-radius: var(--radius-field); background: var(--chip-warn-bg); color: var(--chip-warn-fg); font-size: 14px; line-height: 1.4; }
.order-notes__questions p { margin: 0 0 4px; font-weight: 600; }
.order-notes__questions ul { margin: 0; padding-left: 18px; }
.order-notes__questions .order-notes__questions-lead { margin: 0 0 8px; font-weight: 500; }
.order-notes__question-list { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.order-notes__question-text { display: block; margin: 0 0 4px; font-weight: 600; }
.order-notes__answer { width: 100%; min-height: 52px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-field); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.order-notes__answer:focus { outline: 2px solid var(--nanz-blue); outline-offset: 0; }
.order-notes__answer[readonly] { color: var(--ink-soft); }
.order-notes__questions .order-notes__button { width: 100%; }
.order-notes__more { margin-top: 10px; width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-field); background: var(--white); color: var(--nanz-blue); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.order-notes__more-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.order-notes__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-notes__actions > :only-child { grid-column: 1 / -1; }
.order-notes__field#order-note-text { min-height: 140px; }
.order-notes__status { margin: 0; font-size: 14px; line-height: 1.4; }
.order-notes__status:empty { display: none; }
.order-notes__status--info { color: var(--ink-soft); }
.order-notes__status--ok { color: var(--chip-good-fg); }
.order-notes__status--error { color: #a3290f; }
.order-notes__subheading { margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.order-notes__empty { margin: 0; font-size: 13px; color: var(--ink-soft); }
.order-notes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gap-card); }
.order-notes__item { padding: 10px 12px; background: var(--white); border-radius: var(--radius-panel); box-shadow: 0 0 0 1px var(--hairline); }
.order-notes__meta { margin: 0 0 4px; font-size: 12px; color: var(--ink-soft); }
.order-notes__text, .order-notes__future { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.order-notes__text--empty { color: var(--ink-faint); }
.order-notes__future { margin-top: 6px; font-size: 14px; }
.order-notes__future span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); }

/* Shown after a few seconds on any loading view: FileMaker's first read after idle is slow. */
.slow-load { margin: 12px var(--inset) 0; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* --------------------------------------------------------- Send feedback */
/* docs/user-feedback.md. The sheet covers the phone column; the screen it
   describes stays underneath. */

.state__report { margin-top: 10px; }
.view-picker__nav--feedback { margin-top: 14px; }

.feedback {
  width: 100%;
  max-width: 480px;
  max-height: 100dvh;
  margin: auto auto 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.feedback::backdrop { background: rgba(0, 0, 0, 0.35); }
.feedback__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px var(--inset) calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.feedback__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback__title { margin: 0; font-size: 20px; font-weight: 650; color: var(--ink); }
.feedback__close {
  width: var(--tap); height: var(--tap); margin-right: -10px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
}
.feedback__intro { margin: -4px 0 2px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.feedback__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feedback__kind {
  min-height: var(--tap); padding: 8px 10px;
  border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.feedback__kind[aria-checked="true"] { border-color: var(--nanz-blue); background: var(--chip-active-bg); color: var(--chip-active-fg); box-shadow: inset 0 0 0 1px var(--nanz-blue); }
.feedback__label { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.feedback__field {
  width: 100%; min-height: 132px; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: var(--radius-field); background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4; resize: vertical;
}
.feedback__field:focus { outline: 2px solid var(--nanz-blue); outline-offset: 0; }
.feedback__field[readonly] { color: var(--ink-soft); }
.feedback__hint { margin: -4px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.feedback__shots { display: flex; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.feedback__shot { position: relative; width: 72px; height: 112px; border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.feedback__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feedback__shot-remove {
  position: absolute; top: 2px; right: 2px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: var(--white);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.feedback__add {
  align-self: flex-start; min-height: var(--tap); padding: 8px 14px;
  border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.feedback__context { margin: 2px 0 0; padding: 8px 10px; border-radius: var(--radius-field); background: var(--panel); font-size: 13px; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
.feedback__send {
  min-height: var(--tap); padding: 10px 14px;
  border: 1px solid var(--nanz-blue); border-radius: var(--radius-field); background: var(--nanz-blue); color: var(--white);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.feedback__send:active { background: var(--nanz-blue-deep); }
.feedback__kind:disabled, .feedback__add:disabled, .feedback__send:disabled, .feedback__shot-remove:disabled { opacity: 0.5; cursor: default; }
.feedback__status { margin: 0; font-size: 14px; line-height: 1.4; }
.feedback__status:empty { display: none; }
.feedback__status--info { color: var(--ink-soft); }
.feedback__status--error { color: #a3290f; }
.feedback__status--warn { padding: 8px 10px; border-radius: var(--radius-field); background: var(--chip-warn-bg); color: var(--chip-warn-fg); }
.feedback__done { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.feedback__done .feedback__intro { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------------------------------------------------------------- Imagery */
/* docs/imagery.md. The one screen wider than the phone column on a computer:
   comparing a photo with its engraving needs the room. */

@media (min-width: 760px) {
  body.is-imagery-view { max-width: 1120px; }
}
.imagery { padding: var(--inset); display: flex; flex-direction: column; gap: 14px; }
.imagery__header { display: flex; flex-direction: column; gap: 2px; }
.imagery__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.imagery__title { margin: 0; font-size: 26px; line-height: 1.15; color: #303030; }
.imagery__search { display: flex; gap: 8px; }
.imagery__input { flex: 1; min-width: 0; min-height: var(--tap); padding: 10px 12px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #303030; font: inherit; font-size: 16px; }
.imagery__button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.imagery__button--primary { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.imagery__button--primary:active { background: var(--nanz-blue-deep); }
.imagery__button--quiet { border-color: transparent; background: transparent; color: #a3290f; }
.imagery__button:disabled { opacity: 0.5; cursor: default; }
.imagery__note { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.imagery__note--error { color: #a3290f; }
.imagery__note--ok { color: var(--chip-good-fg); }
.imagery__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.imagery__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.imagery__results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap-card); }
.imagery-result { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); color: #303030; font: inherit; text-align: left; cursor: pointer; }
.imagery-result:active { background: var(--chip-active-bg); }
.imagery-result__thumb { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--white); }
.imagery-result__thumb--none { display: flex; align-items: center; justify-content: center; background: var(--photo-tile); color: var(--ink-faint); font-size: 13px; }
.imagery-result__title { font-size: 15px; font-weight: 600; }
.imagery__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); padding: 0 6px 0 0; border: 0; background: none; color: var(--nanz-blue); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.imagery-product { display: flex; flex-direction: column; gap: 12px; }
.imagery-product__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.imagery-product__head .imagery__back { flex-basis: 100%; }
.imagery-product__title { margin: 0; font-size: 22px; color: #303030; }
.imagery-product__link { color: var(--nanz-blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.imagery-product__body { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .imagery-product__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.imagery-product__photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-panel); background: var(--white); border: 1px solid var(--hairline); }
.imagery-product__engraved { display: flex; flex-direction: column; gap: 12px; }
.imagery__make { width: 100%; }
.imagery__progress { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 10px 12px; border-radius: var(--radius-field); background: var(--chip-active-bg); color: var(--chip-active-fg); font-size: 15px; font-weight: 600; }
.imagery__progress .imagery__hint { color: var(--chip-active-fg); font-weight: 400; }
.imagery__spinner { flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: imagery-spin .9s linear infinite; }
@keyframes imagery-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .imagery__spinner { animation: none; border-right-color: currentColor; opacity: .6; } }
.imagery__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.imagery-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); }
.imagery-card--approved { border-color: #9fcdb0; }
.imagery-card__image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--white); }
.imagery-card__status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.imagery-card__meta { margin: 0; font-size: 13px; color: var(--ink-soft); }
.imagery-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.imagery-card__actions > .imagery__button { flex: 1 1 auto; }
.imagery-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.imagery-chip--pending { background: var(--chip-warn-bg); color: var(--chip-warn-fg); }
.imagery-chip--approved { background: var(--chip-good-bg); color: var(--chip-good-fg); }

/* ------------------------------------------------------------ Carl Review */
/* docs/review-thumbnails.md. Reuses the Imagery screen's type, buttons and wide
   layout; the grid imitates nanz.com's category page (3 across, white, Nº labels). */
.rthumbs__counts { margin: 0; font-size: 15px; color: var(--ink-soft); }
.rthumbs__counts strong { color: #303030; }
.rthumbs__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rthumbs-seg { display: inline-flex; padding: 3px; border: 1px solid #b7b7b7; border-radius: 999px; background: var(--white); }
.rthumbs-seg__btn { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #555; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rthumbs-seg__btn[aria-pressed="true"] { background: #303030; color: var(--white); }
.rthumbs-site { padding: 18px 14px 26px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); }
.rthumbs-site__label { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.rthumbs-site__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 26px; }
.rthumbs-tile { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; border: 0; background: none; color: #555; font: inherit; text-align: left; cursor: pointer; }
.rthumbs-tile:active { opacity: .7; }
.rthumbs-tile:focus-visible { outline: 2px solid var(--nanz-blue); outline-offset: 3px; }
.rthumbs-tile__img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); }
.rthumbs-tile__label { font-family: "Goudy Old Style", Garamond, "Times New Roman", serif; font-size: 12px; letter-spacing: 1px; font-variant-numeric: lining-nums; }
.rthumbs-mark { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.rthumbs-mark--approved { color: var(--chip-good-fg); }
.rthumbs-mark--redo { color: var(--chip-warn-fg); }
.rthumbs-detail { display: flex; flex-direction: column; gap: 12px; }
.rthumbs-detail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.rthumbs-detail__title { margin: 0; font-size: 22px; color: #303030; }
.rthumbs-detail__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: end; }
.rthumbs-detail__figure { margin: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.rthumbs-detail__img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); }
.rthumbs-detail__status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.rthumbs-chip--redo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--chip-warn-bg); color: var(--chip-warn-fg); }
.rthumbs-detail__note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--chip-warn-fg); background: var(--chip-warn-bg); color: #303030; font-size: 15px; line-height: 1.45; }
.rthumbs-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rthumbs-detail__actions .imagery__button { flex: 1 1 140px; }
.rthumbs-redo { display: flex; flex-direction: column; gap: 8px; }
.rthumbs-redo__label { font-size: 15px; font-weight: 600; color: #303030; }
.rthumbs-redo__input { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #303030; font: inherit; font-size: 16px; resize: vertical; box-sizing: border-box; }
.rthumbs-detail__nav { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.rthumbs-detail__step { flex: 0 0 auto; color: var(--nanz-blue); }
@media (min-width: 760px) {
  .rthumbs-site { padding: 28px 40px 40px; }
  .rthumbs-site__grid { max-width: 598px; column-gap: 14px; row-gap: 40px; }
  .rthumbs-tile__label { font-size: 11px; }
}

/* Carl Review, any queue (web/review-queue.js, docs/review-engine.md). Reuses the
   thumbnails screen's classes; these are the parts other queues add. */
.rq-tabs { flex-wrap: wrap; border-radius: 18px; }
.rq-tab__count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--chip-warn-bg); color: var(--chip-warn-fg); font-size: 12px; line-height: 18px; text-align: center; }
.rq-tab__history { margin-left: 4px; font-size: 11px; font-weight: 400; opacity: .75; }
.rq-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rq-tile { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); color: #303030; font: inherit; text-align: left; cursor: pointer; }
.rq-tile:focus-visible { outline: 2px solid var(--nanz-blue); outline-offset: 2px; }
.rq-tile__img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); }
.rq-tile__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rq-tile__subtitle { font-size: 12px; color: var(--ink-soft); }
.rq-subtitle { margin: -6px 0 0; font-size: 15px; color: var(--ink-soft); }
.rq-body--one { grid-template-columns: minmax(0, 1fr); }
/* A lone image keeps its own proportions (a tall contact sheet isn't shrunk into a square). */
.rq-body--one .rthumbs-detail__img { aspect-ratio: auto; height: auto; }
.rq-figure__link { display: block; }
.rq-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.rq-flip { display: flex; flex-direction: column; gap: 8px; }
.rq-flip__img[hidden] { display: none; }
.rq-flip__frames { flex-wrap: wrap; align-self: flex-start; border-radius: 18px; }
.rq-summary, .rq-prompt { margin: 0; font-size: 15px; line-height: 1.5; color: #303030; }
.rq-prompt { font-weight: 600; }
.rq-refs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rq-refs__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.rq-history { display: flex; flex-direction: column; gap: 6px; }
.rq-history__open { align-self: flex-start; color: var(--nanz-blue); }
.rq-history__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rq-history__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.rq-history__img { display: block; width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--hairline); border-radius: 6px; background: var(--white); }
.rq-history__decision { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #303030; }
.rq-history__item { grid-template-columns: auto minmax(0, 1fr); }
.rq-history__imgs { display: flex; gap: 4px; }
/* Finish renders (docs/review-finish-renders.md): crops, captions, flipping, the inspector. */
.rq-figure__inspect, .rq-refs__open, .rq-flip__stage { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: zoom-in; }
.rq-flip__stage { max-width: 680px; cursor: pointer; }
.rq-crop { display: block; position: relative; }
.rq-crop--on { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--white); }
.rq-crop--on .rq-img { position: absolute; max-width: none; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; }
.rq-caption { display: flex; flex-direction: column; gap: 2px; }
.rq-compare-wrap { display: flex; flex-direction: column; gap: 8px; }
.rq-crops, .rq-flip__views { flex-wrap: wrap; align-self: flex-start; border-radius: 18px; }
.rq-flip__now { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.rq-flip__now strong { color: #303030; }
.rq-flip__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rq-flip__tools [data-rq-auto][aria-pressed="true"] { background: #303030; color: var(--white); }
.rq-flip__keys { flex: 1 1 220px; }
.rq-refs__note { margin: 0 0 8px; }
/* A group (Aesthetic Groupings' suites): tap a product out; ⤢ inspects it. */
.rq-group-wrap { display: flex; flex-direction: column; gap: 8px; }
.rq-group { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.rq-group__tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rq-group__toggle { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--hairline); border-radius: 8px; background: var(--white); cursor: pointer; }
.rq-group__toggle:focus-visible { outline: 2px solid var(--nanz-blue); outline-offset: 2px; }
.rq-group__toggle:disabled { cursor: default; }
.rq-group__img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.rq-group__x { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: var(--chip-warn-fg); }
.rq-group__tile--out .rq-group__toggle { border-color: var(--chip-warn-fg); }
.rq-group__tile--out .rq-group__img { opacity: .2; }
.rq-group__tile--out .rq-group__x { display: flex; }
.rq-group__inspect { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border: 1px solid var(--hairline); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #303030; font: inherit; font-size: 15px; line-height: 1; cursor: zoom-in; }
.rq-group__label { font-size: 13px; font-weight: 600; line-height: 1.3; color: #303030; overflow-wrap: anywhere; }
.rq-group__anchor { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 999px; background: #303030; color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.rq-group__sublabel { font-size: 12px; line-height: 1.3; color: var(--ink-soft); }
.rq-group__link { align-self: flex-start; font-size: 12px; color: var(--nanz-blue); }
.rq-group__tile--out .rq-group__label, .rq-group__tile--out .rq-group__sublabel { text-decoration: line-through; opacity: .6; }
@media (min-width: 760px) { .rq-group { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rq-inspect { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #161616; color: #eee; }
.rq-inspect[open] { display: flex; flex-direction: column; }
.rq-inspect::backdrop { background: rgba(0, 0, 0, .6); }
.rq-inspect__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
.rq-inspect__title { flex: 1 1 100%; margin: 0; font-size: 15px; font-weight: 600; }
.rq-inspect__sides { flex-wrap: wrap; border-radius: 18px; }
.rq-inspect__bar [data-rq-i-actual] { border: 1px solid var(--white); background: none; color: var(--white); }
.rq-inspect__bar [data-rq-i-actual][aria-pressed="true"] { background: var(--white); color: #303030; }
.rq-inspect__scroll { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--white); }
.rq-inspect__img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.rq-inspect__scroll--actual { display: block; overflow: auto; }
.rq-inspect__scroll--actual .rq-inspect__img { max-width: none; max-height: none; cursor: zoom-out; }
.rq-inspect__caption { margin: 0; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); color: #bbb; }
@media (min-width: 760px) {
  .rq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rq-refs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Carl's library (web/library.js, docs/library.md). Reuses the Imagery screen's type and buttons. */
.lib-grant { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lib-filter { width: 100%; min-height: var(--tap); padding: 8px 12px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #303030; font: inherit; font-size: 16px; box-sizing: border-box; }
.lib-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.lib-row, .lib-version { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.lib-row__title, .lib-version__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; color: #303030; }
.lib-row__name { padding: 0; border: 0; background: none; color: #303030; font: inherit; font-weight: 600; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.lib-row__name:focus-visible { outline: 2px solid var(--nanz-blue); outline-offset: 2px; }
.lib-row__name--plain { cursor: default; }
.lib-row__meta { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.lib-row__meta a, .lib-design a:not(.imagery__button) { color: var(--nanz-blue); }
.lib-badge, .lib-flag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lib-badge { background: var(--chip-active-bg, #e8f0fb); color: var(--nanz-blue); }
.lib-flag { background: var(--chip-warn-bg); color: var(--chip-warn-fg); }
.lib-older { margin-top: 8px; }
.lib-older summary { min-height: var(--tap); display: flex; align-items: center; color: var(--ink-soft); font-weight: 600; cursor: pointer; }
.lib-design { display: flex; flex-direction: column; gap: 10px; }
.lib-design__heading { margin: 10px 0 0; font-size: 16px; color: #303030; }
.lib-download { align-self: flex-start; }

/* ---------------------------------------------------------------- Back bar */
/* A plain Back on screens without their own back control (Jenn, October 5). */
.backbar { padding: 10px var(--inset) 0; }
.backbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 12px 0 4px;
  border: 0;
  background: none;
  color: var(--nanz-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.backbar__btn:active { opacity: .6; }

/* ----------------------------------------------------------------- View as */
/* docs/view-as.md: the bar on every screen while a manager views as someone. */
.view-as-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 480px);
  padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px) 16px;
  transform: translateX(-50%);
  background: #8a5a00;
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
}
.view-as-bar strong { font-weight: 700; }
.view-as-bar button {
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--white);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
body.is-viewing-as { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }
body.is-viewing-as .toast,
body.is-viewing-as .update-bar { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); }
.view-as__status { padding: 8px 4px; color: var(--ink-soft); }
.view-as__current { margin-left: 6px; font-size: 11px; font-weight: 700; color: #8a5a00; text-transform: uppercase; letter-spacing: .05em; }
.order-notes__readonly { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #6b4600; font-size: 14px; line-height: 1.4; }

/* ---------------------------------------------------------- Notifications */
/* docs/notifications.md: the bell beside Browse, the inbox sheet, unread notes. */
.notify-bell { position: relative; }
.notify-bell__count {
  position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent-orange); color: var(--white);
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box;
  box-shadow: 0 0 0 2px var(--nanz-blue);
}
.notify-sheet {
  width: min(480px, 100vw); max-height: min(86dvh, 720px); margin: auto auto 0; padding: 0;
  border: 0; border-radius: 16px 16px 0 0; background: var(--page); color: var(--ink); box-sizing: border-box;
}
@media (min-width: 560px) { .notify-sheet { margin: auto; border-radius: 16px; } }
.notify-sheet::backdrop { background: #0006; }
.notify-sheet__panel { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.notify-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.notify-sheet__header h2 { margin: 0; font-size: 20px; }
.notify-sheet__header-actions { display: flex; align-items: center; gap: 8px; }
.notify-sheet__link { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--nanz-blue); font: inherit; font-size: 14px; }
.notify-sheet__close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink-soft); font-size: 26px; line-height: 1; }
.notify-sheet__setup, .notify-sheet__note { margin: 0 0 12px; padding: 12px; border-radius: var(--radius-panel); background: var(--white); box-shadow: 0 0 0 1px var(--hairline); font-size: 14px; line-height: 1.45; }
.notify-sheet__setup p { margin: 0 0 10px; }
.notify-sheet__setup ol { margin: 0; padding-left: 20px; }
.notify-sheet__setup--on p { margin-bottom: 8px; }
.notify-sheet__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-sheet__button { min-height: 44px; padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: 8px; background: var(--white); color: #343434; font: inherit; font-size: 15px; }
.notify-sheet__button--primary { width: 100%; border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); font-weight: 600; }
.notify-sheet__button--quiet { border-color: transparent; color: var(--ink-soft); }
.notify-sheet__button:disabled { opacity: 0.6; }
.notify-sheet__message { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.notify-sheet__empty { margin: 8px 0; font-size: 14px; color: var(--ink-soft); }
.notify-sheet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notify-item {
  width: 100%; min-height: 56px; display: grid; grid-template-columns: 10px 1fr auto; align-items: start; gap: 10px;
  padding: 12px; border: 0; border-radius: var(--radius-panel); background: var(--white); box-shadow: 0 0 0 1px var(--hairline);
  color: inherit; font: inherit; text-align: left;
}
.notify-item__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notify-item--unread .notify-item__dot { background: var(--accent-orange); }
.notify-item__copy { display: grid; gap: 2px; min-width: 0; }
.notify-item__title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.notify-item--unread .notify-item__title { color: #222; }
.notify-item__body { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.notify-item__time { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.order-notes__item--unread { box-shadow: 0 0 0 2px var(--accent-orange); }
.order-notes__new { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--accent-orange); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }

/* Production sort and status (October 6: FileMaker's Jobs In Production, Jenn's sorts). */
.production-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.production-sort select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--tap);
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(34, 48, 65, 0.18);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.production__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #5b6675);
}
.production-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
}
.production-card__status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip-neutral-bg);
  color: var(--chip-neutral-fg);
  font-size: 10.5px;
  font-weight: 600;
}
.production-card__sales {
  min-width: 0;
  overflow-wrap: anywhere;
}
.production-card__sales .production-card__label {
  display: inline;
  margin: 0 6px 0 0;
}
/* ------------------------------------------ detail: mark as incoming */
/* docs/mark-incoming.md. Same card and buttons as Add note. */

.order-incoming { margin: 22px var(--inset) 0; }
.order-incoming__heading { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.order-incoming__card { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--panel); border-radius: var(--radius-panel); }
.order-incoming__state { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.order-incoming__state--on { color: var(--ink); font-weight: 600; }
.order-incoming__confirm { display: flex; flex-direction: column; gap: 8px; }
.order-incoming__confirm p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.order-incoming__hint { color: var(--chip-warn-fg) !important; font-size: 14px !important; }
.order-incoming__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.order-incoming__button { min-height: var(--tap); padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-incoming__button--primary { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.order-incoming__button--primary:active { background: var(--nanz-blue-deep); }
.order-incoming__button:disabled { opacity: 0.5; cursor: default; }
.order-incoming__readonly { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #6b4600; font-size: 14px; line-height: 1.4; }
.order-incoming__status { margin: 0; font-size: 14px; line-height: 1.4; }
.order-incoming__status:empty { display: none; }
.order-incoming__status--ok { color: var(--chip-good-fg); }
.order-incoming__status--error { color: #a3290f; }
/* Order dates (NH-3970, docs/fm-writes.md): under the title card, managers and the order's salesperson. */
.order-dates { margin: 8px 0 4px; }
.order-dates__open { min-height: var(--tap); padding: 8px 12px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.order-dates__open:disabled { opacity: 0.5; cursor: default; }
.order-dates__card { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--panel); border-radius: var(--radius-panel); }
.order-dates__field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.order-dates__field input { min-height: var(--tap); padding: 8px 10px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.order-dates__confirm { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.order-dates__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.order-dates__button { min-height: var(--tap); padding: 10px 14px; border: 1px solid #b7b7b7; border-radius: var(--radius-field); background: var(--white); color: #343434; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-dates__button--primary { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.order-dates__button:disabled { opacity: 0.5; cursor: default; }
.order-dates__readonly { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #6b4600; font-size: 14px; line-height: 1.4; }
.order-dates__status { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.order-dates__status:empty { display: none; }
.order-dates__status--ok { color: var(--chip-good-fg); }
.order-dates__status--error { color: #a3290f; }
.pipeline-card__incoming { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--chip-good-bg, #e4f3e8); color: var(--chip-good-fg); font-size: 10.5px; font-weight: 650; }

/* ------------------------------------------ browse: email buttons open in */
/* web/mail-links.js (Jenn, October 6). A per-device choice under the Browse rows. */
.email-client {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--white);
  min-width: 0;
}
.email-client__legend { padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.email-client__options { display: flex; gap: 8px; margin-top: 4px; }
.email-client__option { flex: 1 1 0; min-width: 0; }
.email-client__option input { position: absolute; opacity: 0; pointer-events: none; }
.email-client__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 8px 10px;
  border: 1px solid #b7b7b7;
  border-radius: var(--radius-field);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.email-client__option input:checked + span { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.email-client__option input:focus-visible + span { outline: 2px solid var(--nanz-blue); outline-offset: 2px; }
.email-client__note { margin: 8px 0 0; font-size: 12px; color: var(--muted, #5b6675); }

/* ------------------------------------------ pipeline: past due shortcut, $0 jobs */
.pipeline-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px var(--inset) 0; }
.pipeline-shortcut {
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid #b7b7b7;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.pipeline-shortcut[aria-pressed="true"] { border-color: var(--nanz-blue); background: var(--nanz-blue); color: var(--white); }
.pipeline-card__no-amount { color: var(--muted, #5b6675); font-weight: 500; }
.pipeline-filters__check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pipeline-filters__check input { width: 20px; height: 20px; }

/* ------------------------------------------------------------ Carl Review hub */
/* docs/review-hub.md. Rows reuse the Browse rows; a link queue is a real <a>. */

a.view-picker__row { box-sizing: border-box; color: inherit; text-decoration: none; }
.review-hub__count { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 112, 207, 0.08); color: var(--nanz-blue); font-size: 12px; font-weight: 600; line-height: 1.4; }
