/* ===========================================================================
   NANZ Order Portal — 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;
}

.card__orderno {
  text-align: center;
  font-size: 20px;
  font-weight: 700; /* FM applies TextStyleAdd(...; Bold) to line 1 only */
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.card__title {
  margin-top: 5px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* ----------------------------------------------------------- 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: 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);
}

.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-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;
}

/* --------------------------------------------------------- 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);
}

.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__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;
}

.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);
}

/* --------------------------------------------------------------- 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);
}
