/* ============================================================
   Lift Hub · one stylesheet
   Light pages in the spirit of liftvideoproduction.com.au, using the
   seven Lift brand colours from brand/brand.css: Plum for text and
   structure, Slate for body copy, Marble for lines, Smoke for the page,
   Scarlet only for the main action and accents, Mustard sparingly.
   ============================================================ */
:root {
  --scarlet: #F30031;
  --crimson: #CD1B2F;
  --plum: #311924;
  --slate: #4D4348;
  --marble: #BCB2B8;
  --smoke: #f9f9f9;
  --mustard: #FCA74A;
  --white: #ffffff;

  /* Lines and tints, lightened from Marble */
  --line: #dcd4d8;   /* card edges and dividers: firmer so cards stand off the page */
  --line-2: #e9e3e6;
  --tint: #f3f0f2;
  --page: #f1eef0;   /* page background, a step darker than Smoke so white cards read */
  --pink: #fff4f6;

  /* Status colours (functional only) */
  --green: #0f8a4a;
  --green-bg: #e3f4ea;
  --green-ink: #0f5e34;
  --amber: #c98200;
  --amber-bg: #fff3dc;
  --amber-ink: #6b4e00;
  --red: #F30031;
  --red-bg: #fde4ea;
  --red-ink: #8a0d25;

  --radius: 12px;
  --radius-sm: 8px;
  --btn-radius: 6px;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--plum);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; }
a { color: var(--plum); }
a:hover { color: var(--scarlet); }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--plum); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--scarlet); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--plum); color: var(--white); padding: 10px 14px; border-radius: var(--btn-radius); z-index: 100; }
.skip-link:focus { top: 12px; color: var(--white); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }
.page-pad { padding-top: 32px; padding-bottom: 64px; }
.site-main { flex: 1; outline: none; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.loading { color: var(--slate); }
.accent { color: var(--scarlet); }
.icon { display: inline-flex; vertical-align: -2px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- headlines: bold Poppins, tight, sentence case ---------- */
.display, .display-dark {
  font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; color: var(--plum);
}
.page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.section-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: var(--btn-radius); padding: 12px 22px; min-height: 46px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-red { background: var(--scarlet); color: var(--white); }
.btn-red:hover, .btn-red:active { background: var(--crimson); color: var(--white); }
.btn-outline, .btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover, .btn-ghost:hover { background: var(--plum); color: var(--white); }
.btn-dark { background: var(--plum); color: var(--white); }
.btn-dark:hover { background: var(--slate); color: var(--white); }
.btn-small { padding: 8px 14px; min-height: 38px; font-size: 13px; }
.btn-block { width: 100%; }
.link-button {
  background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--scarlet);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--crimson); }
.link-button.danger { color: var(--red-ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span, .field > label, .field-label { font-size: 12px; font-weight: 600; color: var(--slate); }
.field input, .field select, .field textarea, .search-box input {
  width: 100%; border: 1px solid #d8d1d5; background: var(--white); border-radius: var(--btn-radius);
  padding: 10px 12px; font-size: 14px; min-height: 44px; color: var(--plum);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(49, 25, 36, 0.12); }
.field textarea { resize: vertical; line-height: 1.45; }
.field input[readonly] { background: var(--tint); }
.field input::placeholder { color: #9b9096; }
.hint { font-size: 12px; color: var(--slate); font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--scarlet); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin: 8px 0; }
.notice-error { background: var(--red-bg); color: var(--red-ink); }
.notice-ok { background: var(--green-bg); color: var(--green-ink); }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.menu-button { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-label {
  display: block; padding: 25px 4px 24px 12px; border-bottom: 3px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav-item:not(.has-menu) .nav-label { padding-right: 12px; }
.nav-label.is-active { border-bottom-color: var(--scarlet); }
.nav-toggle {
  border: 0; background: none; padding: 6px; margin-right: 4px; cursor: pointer; color: var(--plum);
  border-radius: var(--btn-radius); display: flex; align-items: center;
}
.nav-toggle:hover { color: var(--scarlet); background: var(--tint); }
.nav-item.is-open .nav-toggle .icon { transform: rotate(180deg); }
.menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; margin-top: -1px;
  background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 32px rgba(49, 25, 36, 0.1); padding: 10px;
}
.nav-item.is-open .menu { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .nav-item.has-menu:hover .menu { display: block; }
}
.menu-head { font-size: 12px; font-weight: 600; color: var(--slate); padding: 6px 10px 8px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  padding: 10px; border-radius: var(--btn-radius); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--plum);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--tint); color: var(--plum); }
.menu-item.is-soon { color: var(--slate); }
.soon-tag { font-size: 11px; font-weight: 600; color: var(--slate); background: var(--tint); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

.header-tools { flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; gap: 14px; min-width: 0; }
.search { position: relative; width: 100%; max-width: 300px; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--smoke); border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 0 12px; color: var(--slate); }
.search-box input { border: 0; background: transparent; padding: 9px 0; min-height: 42px; font-size: 14px; outline: none; }
.search-box:focus-within { border-color: var(--plum); }
.search-wide { max-width: 520px; background: var(--white); margin-top: 22px; }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, 90vw); list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(49, 25, 36, 0.12); z-index: 30;
}
.search-result a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--btn-radius); text-decoration: none; }
.search-result a:hover, .search-result.is-active a { background: var(--tint); color: var(--plum); }
.sr-kind { font-size: 11px; font-weight: 600; color: var(--scarlet); }
.sr-title { font-size: 14px; font-weight: 500; }
.search-empty { padding: 10px; font-size: 13px; color: var(--slate); }

.avatar-wrap { position: relative; flex: none; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--plum); color: var(--white); font-size: 13px; font-weight: 600;
}
.avatar-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(49, 25, 36, 0.12); padding: 8px; z-index: 30;
}
.avatar-name { padding: 8px 10px 10px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.avatar-name span { display: block; font-weight: 400; font-size: 12px; color: var(--slate); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-row { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); }
.demo-flag { position: fixed; bottom: 12px; left: 12px; background: var(--amber-bg); color: var(--amber-ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; z-index: 50; }

/* ---------- sign-in gate ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--smoke); }
.gate-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--scarlet); border-radius: var(--radius); padding: 40px 36px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(49, 25, 36, 0.06); }
.gate-logo { height: 42px; width: auto; align-self: flex-start; }
.gate-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.gate p { color: var(--slate); }
.gate-email { display: flex; flex-direction: column; gap: 8px; }
.gate-email label { font-size: 12px; font-weight: 600; color: var(--slate); }
.gate-email input { border: 1px solid #d8d1d5; border-radius: var(--btn-radius); padding: 10px 12px; min-height: 46px; }
.gate .link-button { align-self: flex-start; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(49, 25, 36, 0.05), 0 6px 18px rgba(49, 25, 36, 0.05); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow-wrap: break-word; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-title-sm { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card-link { font-size: 13px; font-weight: 600; color: var(--scarlet); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- home ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 36px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 24px; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-text { display: flex; flex-direction: column; gap: 8px; }
.hero-date { font-size: 15px; font-weight: 500; color: var(--slate); }
.hero-summary { font-size: 16px; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
/* The Lift Way: the values as the website sets them (About page). Mist and mauve are
   the website's own panel colours for this section. */
.lift-way { margin-top: 28px; }
.lw-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.lw-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; }
.lw-tile { position: relative; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.lw-num { font-size: 11px; font-weight: 700; opacity: 0.7; }
.lw-mark { font-weight: 700; font-size: 30px; line-height: 0.98; letter-spacing: -0.035em; text-transform: lowercase; }
.lw-line { margin: auto 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.lw-safety { background: #D9CFD3; color: var(--plum); }
.lw-safety .lw-bang { color: var(--scarlet); }
.lw-win { background: var(--plum); color: #D9CFD3; }
.lw-pod { position: relative; display: inline-block; letter-spacing: 0.12em; padding: 0 2px 6px; }
.lw-pod svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 0.45em; }
.lw-ordinary { background: var(--scarlet); color: var(--plum); }
.lw-strike { text-decoration: line-through; text-decoration-thickness: 0.09em; }
.lw-focus { background: #6A5E65; color: #D9CFD3; }
.lw-blur { filter: blur(1.5px); transition: filter 0.4s ease; }
.lw-focus:hover .lw-blur { filter: none; }
.lw-team { background: var(--plum); color: var(--scarlet); border-left: 1px solid rgba(217, 207, 211, 0.15); }
.lw-team .lw-line { color: #D9CFD3; }
@media (prefers-reduced-motion: reduce) { .lw-blur { transition: none; } }
@media (max-width: 900px) {
  .lw-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
  .lw-tile { flex: 0 0 62%; scroll-snap-align: start; min-height: 170px; }
}
.hero-rocks {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--smoke); border: 1px solid var(--line); border-left: 4px solid var(--scarlet);
  border-radius: var(--radius-sm); padding: 10px 12px 10px 16px;
}
.hero-rocks-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-rocks-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hero-rocks-text span, .hero-rocks-note { font-size: 13px; color: var(--slate); }

/* Three even columns: Lift Time | shoots and announcements | team and coming up */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.board-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.runsheet { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.run { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.run:first-child { border-top: 0; padding-top: 0; }
.run-date {
  flex: none; width: 54px; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.run.is-today .run-date { border-color: var(--scarlet); color: var(--scarlet); }
.run-dow, .run-mon { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.run-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.run-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.run-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.run-line { font-size: 13px; color: var(--slate); }
.run-link { font-size: 13px; font-weight: 600; }
.run-title a { text-decoration: none; }
.run-title a:hover { color: var(--scarlet); }
.run.is-late .run-date { border-color: var(--scarlet); background: var(--scarlet); color: var(--white); }
.run-more { font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line-2); }

.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann { padding: 14px 16px; background: var(--smoke); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.ann.is-pinned { background: var(--pink); border-left: 4px solid var(--scarlet); }
.ann-title { font-size: 15px; font-weight: 600; }
.ann-body { font-size: 14px; color: var(--slate); line-height: 1.55; }
.ann-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--slate); margin-top: 4px; }
.ann-actions { display: flex; gap: 14px; }
.ann-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--smoke); }

.team-list, .coming-list, .directory { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar-sm { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; }
.person-line { font-size: 13px; color: var(--slate); }
.coming-list li { font-size: 14px; color: var(--slate); }
.coming-list strong { color: var(--plum); font-weight: 600; }

/* ---------- Lift Time card: white, with a Scarlet top edge ---------- */
.timecard { gap: 14px; scroll-margin-top: 16px; border-top: 4px solid var(--scarlet); }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tc-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tc-day {
  background: var(--white); color: var(--plum); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; padding: 6px 10px; max-width: 170px; cursor: pointer;
}
.tc-nudge p { font-size: 13px; color: var(--plum); background: #fff6ec; border-left: 3px solid var(--mustard); border-radius: var(--radius-sm); padding: 8px 12px; }
.tc-list { display: flex; flex-direction: column; gap: 8px; }
.tc-empty { font-size: 14px; color: var(--slate); }
.tc-entry {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; background: var(--smoke); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--plum); cursor: pointer;
}
.tc-entry:hover { border-color: var(--plum); }
.tc-entry-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tc-entry-job { font-size: 14px; font-weight: 600; }
.tc-entry-sub { font-size: 12px; color: var(--slate); overflow-wrap: anywhere; }
.tc-entry-hours { font-weight: 700; font-size: 16px; flex: none; }
.tc-form, .tc-edit { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tc-edit { padding: 12px; border: 1px solid var(--plum); border-radius: var(--radius-sm); }
.tc-form-head { font-size: 13px; font-weight: 600; color: var(--slate); display: flex; justify-content: space-between; align-items: baseline; }
.tc-close-form { font-size: 13px; }
.tc-open-form { margin-top: 4px; }
.tc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.tc-why { font-size: 12px; color: var(--red-ink); }
.tc-edit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-week { display: flex; flex-direction: column; gap: 6px; }
.tc-week-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.tc-week-row span:first-child { color: var(--slate); font-weight: 500; }
.tc-open { font-size: 13px; font-weight: 600; }

.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bar-light { height: 5px; }
.bar-fill { height: 100%; background: var(--scarlet); border-radius: 3px; }

/* ---------- page band (Tools, Systems, Client guides, Admin) ---------- */
.page-band { background: var(--white); border-bottom: 1px solid var(--line); }
.band-inner { padding-top: 40px; padding-bottom: 30px; }
.band-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.band-intro { color: var(--slate); max-width: 720px; margin-top: 10px; font-size: 16px; }
.crumbs { font-size: 13px; color: var(--slate); margin-bottom: 14px; }
.crumbs a { color: var(--slate); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.filter-chip {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 36px;
  border: 1px solid #d8d1d5; background: var(--white); color: var(--plum); font-weight: 500;
}
.filter-chip:hover { border-color: var(--plum); }
.filter-chip.is-on { border-color: var(--plum); background: var(--plum); color: var(--white); font-weight: 600; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.recent-label { font-size: 13px; font-weight: 600; color: var(--slate); margin-right: 6px; }
.recent-link { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--smoke); border: 1px solid var(--line); text-decoration: none; }

/* ---------- tools ---------- */
.tool-groups { display: flex; flex-direction: column; gap: 44px; }
.tool-group { scroll-margin-top: 16px; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
.group-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tiles-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 14px; min-height: 172px; transition: border-color 0.15s, box-shadow 0.15s;
}
a.tile:hover { border-color: var(--plum); box-shadow: 0 10px 24px rgba(49, 25, 36, 0.08); color: var(--plum); }
.tile.is-off { border-style: dashed; background: transparent; color: var(--slate); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.monogram {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--plum); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.tile.is-off .monogram { background: var(--tint); color: var(--slate); }
.tile-body { display: flex; flex-direction: column; gap: 4px; }
.tile-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile-desc { font-size: 13px; color: var(--slate); line-height: 1.5; }
.tile-coming { font-size: 12px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill-live { background: var(--green-bg); color: var(--green-ink); }
.pill-building { background: var(--amber-bg); color: var(--amber-ink); }
.pill-planned { background: var(--tint); color: var(--slate); }
.status-anchor { background: var(--plum); color: var(--white); }
.status-active { background: var(--green-bg); color: var(--green-ink); }
.status-paused, .status-dormant { background: var(--amber-bg); color: var(--amber-ink); }
.status-past { background: var(--tint); color: var(--slate); }
.status-dont_pursue { background: var(--white); color: var(--red-ink); border: 1px solid #f0c3cc; }
.pill-outline { border: 1px solid var(--marble); color: var(--plum); background: var(--white); }

/* ---------- tools list ---------- */
.tools-page { display: flex; flex-direction: column; gap: 20px; }
.tool-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool-list li + li { border-top: 1px solid var(--line-2); }
.tool-item { display: flex; align-items: center; padding-left: 8px; }
.tool-item .tool-row { flex: 1; min-width: 0; padding-left: 8px; }
.tool-item:hover { background: var(--smoke); }
.tool-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; text-decoration: none; }
.tool-row:hover { background: var(--smoke); color: var(--plum); }
.tool-row-name { font-weight: 600; font-size: 15px; }
.tool-row-desc { font-size: 14px; color: var(--slate); }
.tool-row-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--plum);
  border: 2px solid var(--plum); border-radius: var(--btn-radius); padding: 6px 12px; }
.tool-row:hover .tool-row-open { background: var(--plum); color: var(--white); }
.tool-links, .tool-coming { font-size: 14px; color: var(--slate); }
.tool-links strong, .tool-coming strong { color: var(--plum); }
@media (max-width: 700px) {
  .tool-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tool-row-desc { grid-column: 1; grid-row: 2; }
  .tool-row-open { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- placeholders ---------- */
.coming-soon { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.coming-soon li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cs-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link-card .btn { align-self: flex-start; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perk { background: var(--smoke); border: 1px solid var(--line-2); border-left: 4px solid var(--scarlet); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.perk strong { display: block; color: var(--plum); font-size: 15px; margin-bottom: 4px; }
.perk p { margin: 0; color: var(--slate); line-height: 1.5; }
.perk-points { margin: 8px 0 0; padding-left: 18px; color: var(--slate); line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }

/* ---------- client guides index ---------- */
.stats { display: flex; gap: 12px; margin: 0; }
.stats div { background: var(--smoke); border: 1px solid var(--line); border-left: 4px solid var(--scarlet); border-radius: var(--radius-sm); padding: 10px 16px; min-width: 110px; }
.stats dt { font-size: 12px; color: var(--slate); }
.stats dd { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
/* client guides index: names only, starred first */
.client-page { display: flex; flex-direction: column; gap: 28px; }
.client-head { font-size: 13px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.client-hint { margin: 0; font-size: 14px; }
.client-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.client-tile { display: flex; align-items: center; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding-left: 4px; }
.client-tile:hover { border-color: var(--plum); }
.client-tile a { flex: 1; min-width: 0; padding: 12px 14px 12px 2px; font-weight: 600; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.client-tile a:hover { color: var(--plum); }
/* client guide brand kit */
.kit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kit-title { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.kit-meta { font-size: 12px; color: var(--slate); }
.kit-missing { font-size: 14px; background: #fff6ec; border-left: 3px solid var(--mustard); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0; }
.kit-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 200px)); gap: 12px; }
.kit-doc { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-decoration: none; }
.kit-doc:hover { border-color: var(--plum); color: var(--plum); }
.kit-doc-img { aspect-ratio: 3 / 4; background: var(--smoke); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kit-doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.kit-doc-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.kit-read { font-size: 13px; font-weight: 600; color: var(--scarlet); display: inline-flex; gap: 4px; align-items: center; }
.kit-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kit-example { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-decoration: none; min-width: 0; }
.kit-example:hover { border-color: var(--plum); color: var(--plum); }
.kit-example-img { aspect-ratio: 16 / 9; background: var(--smoke); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kit-example-img img { width: 100%; height: 100%; object-fit: cover; }
.kit-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kit-logos li { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.kit-logo-img { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 4px;
  background-color: #eee; background-image: linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%), linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.kit-logo-img img { max-width: 90%; max-height: 84px; object-fit: contain; }
.kit-ext { font-weight: 700; font-size: 13px; color: var(--slate); }
.kit-play { font-weight: 700; font-size: 14px; color: var(--white); background: var(--plum); border-radius: var(--btn-radius); padding: 8px 14px; text-decoration: none; }
.kit-play:hover { background: var(--scarlet); color: var(--white); }
.kit-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.kit-files { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kit-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; }
.kit-files li + li { border-top: 1px solid var(--line-2); }
.kit-dl { font-size: 13px; font-weight: 600; color: var(--plum); border: 1px solid var(--plum); border-radius: var(--btn-radius); padding: 4px 10px; text-decoration: none; justify-self: start; }
.kit-dl:hover { background: var(--plum); color: var(--white); }
@media (max-width: 600px) { .kit-files li { grid-template-columns: minmax(0, 1fr) auto; } .kit-files .kit-meta { grid-column: 1; } }
.guides-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.guides-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.guides-aside { display: flex; flex-direction: column; gap: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px; overflow-wrap: break-word;
}
a.guide-card:hover { border-color: var(--plum); color: var(--plum); }
.guide-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.guide-card-name { font-size: 16px; font-weight: 600; }
.guide-card-meta, .guide-card-has { font-size: 12px; color: var(--slate); }
.completeness { display: flex; flex-direction: column; gap: 6px; }
.guide-card-open { font-size: 13px; font-weight: 600; color: var(--scarlet); margin-top: auto; }
.empty { padding: 24px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--slate); }
.rule-list, .gap-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--slate); }
.rule-list a, .gap-list a { font-weight: 600; color: var(--plum); }
.key-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 13px; }
.key-list dt { font-weight: 600; }
.key-list dd { margin: 0; color: var(--slate); }

/* ---------- client guide page ---------- */
.guide-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.guide-hero-inner { padding-top: 30px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 22px; }
.guide-hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.guide-summary { color: var(--slate); max-width: 760px; margin-top: 12px; font-size: 16px; }
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fact-strip div { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.fact-strip dt { font-size: 12px; font-weight: 500; color: var(--slate); }
.fact-strip dd { margin: 2px 0 0; font-weight: 600; }
.fact-sub { display: block; font-size: 12px; font-weight: 400; color: var(--slate); }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc-head { font-size: 12px; font-weight: 600; color: var(--slate); padding: 0 10px 8px; }
.toc a { padding: 7px 10px; border-radius: var(--btn-radius); text-decoration: none; }
.toc a:hover { background: var(--white); }
.guide-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; overflow-wrap: anywhere; }
.guide-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.guide-section h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.guide-section h3 { font-size: 15px; font-weight: 600; }
.guide-section:has(.callout), .guide-section:has(.gaps) { padding: 0; border: 0; background: none; }
.callout { background: var(--pink); border-left: 4px solid var(--scarlet); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.callout ul, .gaps ul, .plain-list, .panel ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.key-tag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--scarlet); color: var(--white); padding: 1px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
.callout-soft { background: var(--smoke); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--slate); display: flex; flex-direction: column; gap: 6px; }
.gaps { border: 2px dashed var(--marble); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; color: var(--slate); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.contact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.contact-name { font-weight: 600; }
.contact-role, .contact-reach { font-size: 13px; color: var(--slate); }
.facts-list { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; color: var(--slate); overflow-wrap: anywhere; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.brand-card, .panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.brand-card dl { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.brand-card dt { font-weight: 600; }
.brand-card dd { margin: 0 0 4px; color: var(--slate); }
.small-link { font-size: 13px; font-weight: 600; }
.rules { display: flex; flex-direction: column; gap: 8px; }
.rule { display: flex; gap: 12px; font-size: 14px; align-items: baseline; }
.rule-kind { flex: none; width: 96px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: var(--btn-radius); text-align: center; background: var(--tint); }
.rule-always .rule-kind { background: var(--green-bg); color: var(--green-ink); }
.rule-never .rule-kind { background: var(--red-bg); color: var(--red-ink); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--tint); }
.link-list { margin: 0; padding-left: 18px; font-size: 14px; }
.two-col, .pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
details.state { border: 1px solid var(--line); border-radius: var(--radius-sm); }
details.state summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; list-style-position: inside; }
details.state[open] summary { border-bottom: 1px solid var(--line-2); }
.sites { list-style: none; margin: 0; padding: 4px 16px 10px; }
.sites li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.sites li:last-child { border-bottom: 0; }
.site-name { font-weight: 600; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--slate); }
.site-addr { font-size: 13px; color: var(--slate); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li::marker { font-weight: 700; color: var(--scarlet); }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.project-list li:last-child { border-bottom: 0; }
.project-title { font-weight: 600; }

/* ---------- edit form ---------- */
.edit-form { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.edit-set, .rows-set { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px 20px 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.edit-set legend, .rows-set legend { font-weight: 700; font-size: 16px; padding: 0 6px; }
.edit-set .rows-set { border-style: dashed; padding: 14px 16px; }
.edit-set .rows-set legend { font-size: 14px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item { display: flex; gap: 12px; align-items: flex-end; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.row-cells { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; align-items: end; }
.rows-set > .btn { align-self: flex-start; }
.sticky-actions { position: sticky; bottom: 0; background: var(--smoke); padding: 14px 0; display: flex; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; color: var(--slate); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.admin-table tr.is-archived td { color: var(--slate); }
.admin-table .pill { margin-left: 8px; }
.admin-form { margin-bottom: 16px; gap: 12px; }
.admin-form h3 { font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-row { gap: 12px; }
  .nav-label { padding-left: 8px; }
  .search { max-width: 220px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-row { flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .menu-button {
    display: flex; align-items: center; justify-content: center; order: 3;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--white); cursor: pointer;
  }
  .header-tools { order: 2; gap: 10px; flex: 1 1 0; }
  .search { max-width: none; min-width: 0; }
  .nav { order: 4; flex-basis: 100%; display: none; }
  .site-header.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 6px 0 8px; }
  .nav-item { border-top: 1px solid var(--line-2); }
  .nav-row { justify-content: space-between; }
  .nav-label { padding: 13px 4px; border-bottom: 0; border-left: 3px solid transparent; flex: 1; }
  .nav-label.is-active { border-left-color: var(--scarlet); padding-left: 10px; }
  .nav-toggle { padding: 12px; }
  .menu { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 8px; min-width: 0; }
  .menu-head { display: none; }
  .guides-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc-head { width: 100%; padding-left: 0; }
  .toc a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .board, .board-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .display, .display-dark { font-size: 34px; }
  .brand img { height: 30px; }
  .search-box input { font-size: 16px; } /* stops iOS zooming on focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  .hero-inner { padding-top: 28px; padding-bottom: 24px; gap: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-actions .hero-rocks { flex: 1 1 100%; justify-content: space-between; }
  .card, .guide-section { padding: 18px; }
  .callout, .gaps { padding: 16px 18px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 8px 12px; }
  .facts-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts-list dd { margin-bottom: 8px; }
  .row-item { flex-direction: column; align-items: stretch; }
  .rule { flex-direction: column; gap: 4px; }
  .admin-table { font-size: 13px; }
}

/* ---------- issues log ---------- */
.issues-page { display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin-left: 0; }
.issue-form { gap: 12px; }
.grid-issue { display: grid; grid-template-columns: 180px minmax(0, 1fr) 160px; gap: 12px; }
.issue-safety { background: #fff6ec; border-left: 3px solid var(--mustard); padding: 8px 12px; border-radius: var(--radius-sm); color: var(--plum); }
.issue-list { display: flex; flex-direction: column; gap: 12px; }
.issue { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.issue.is-urgent { border-left: 4px solid var(--scarlet); }
.issue.is-resolved { opacity: 0.85; }
.issue-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.issue-kind { background: var(--tint); color: var(--plum); }
.kind-safety .issue-kind { background: #fff3dc; color: var(--amber-ink); }
.issue-job { font-size: 12px; font-weight: 600; color: var(--slate); }
.issue-title { font-size: 16px; font-weight: 600; }
.issue-details { font-size: 14px; color: var(--slate); }
.issue-meta { font-size: 12px; color: var(--slate); }
.issue-updates { list-style: none; margin: 4px 0 0; padding: 10px 12px; background: var(--smoke); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.issue-reply { display: flex; gap: 8px; }
.issue-reply input { flex: 1; min-width: 0; border: 1px solid #d8d1d5; border-radius: var(--btn-radius); padding: 8px 10px; font-size: 13px; }
.issue-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.issue-mini li.is-urgent a { color: var(--scarlet); }
@media (max-width: 700px) {
  .grid-issue { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- process library: set like Gisele's Google Doc template (Archivo) ---------- */
.draft-tag { margin-left: 8px; vertical-align: 2px; }
.sysdoc {
  font-family: "Archivo", var(--font); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--plum);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 820px; padding: 48px 56px; display: flex; flex-direction: column; gap: 12px;
}
.sysdoc p, .sysdoc li { font-weight: 300; }
.sysdoc strong, .sysdoc-label { font-weight: 700; }
.sysdoc-draft { font-family: var(--font); font-size: 13px; background: #fff6ec; border-left: 3px solid var(--mustard); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.sysdoc-h1 { font-family: "Archivo Black", "Archivo", var(--font); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.sysdoc-meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.sysdoc-meta div { display: flex; gap: 6px; }
.sysdoc-meta dt { font-weight: 700; }
.sysdoc-meta dd { margin: 0; }
.sysdoc-h2 { font-family: "Archivo", var(--font); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.sysdoc-h3 { font-family: "Archivo", var(--font); font-weight: 500; font-size: 17px; }
.sysdoc-steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 14px; }
.sysdoc-steps li::marker { font-family: "Archivo Black", var(--font); color: var(--scarlet); }
.sysdoc-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sysdoc-examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sysdoc-examples li { background: var(--smoke); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 700px) {
  .sysdoc { padding: 24px 20px; }
  .sysdoc-examples { grid-template-columns: minmax(0, 1fr); }
}

/* library: playbook tabs, stage accordions, stars */
.proc-page { display: flex; flex-direction: column; gap: 18px; }
.proc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -2px; padding: 0 2px; }
.proc-tabs::-webkit-scrollbar { display: none; }
.proc-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 10px 12px 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--slate); cursor: pointer; white-space: nowrap; }
.proc-tab:hover { color: var(--plum); }
.proc-tab.is-on { color: var(--plum); border-bottom-color: var(--scarlet); }
.proc-tab-count { font-size: 11px; font-weight: 600; background: var(--tint); color: var(--slate); border-radius: 999px; padding: 1px 7px; }
.proc-panel { display: flex; flex-direction: column; gap: 10px; }
.proc-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proc-list li + li { border-top: 1px solid var(--line-2); }
.proc-row { display: flex; align-items: center; gap: 4px; padding-left: 8px; }
.proc-row:hover { background: var(--smoke); }
.proc-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 4px; text-decoration: none; }
.proc-link:hover { color: var(--plum); }
.proc-name { font-weight: 600; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proc-meta { font-size: 13px; color: var(--slate); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proc-video { font-size: 11px; font-weight: 600; color: var(--scarlet); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
.proc-draft { font-size: 11px; font-weight: 600; color: var(--slate); background: var(--tint); border-radius: 999px; padding: 1px 7px; }
.star-btn { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none;
  border-radius: 50%; color: #b9aeb4; cursor: pointer; }
.star-btn svg path { fill: none; }
.star-btn:hover { color: var(--plum); background: var(--tint); }
.star-btn.is-on { color: var(--mustard, #e8a33d); }
.star-btn.is-on svg path { fill: currentColor; }
.proc-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.proc-section > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.proc-section > summary::-webkit-details-marker { display: none; }
.proc-section > summary:hover { background: var(--smoke); border-radius: var(--radius); }
.proc-section-name { font-weight: 700; font-size: 16px; flex: 1; }
.proc-section-count { font-size: 13px; color: var(--slate); }
.proc-section .icon { transition: transform 0.15s; color: var(--slate); }
.proc-section[open] .icon { transform: rotate(180deg); }
.proc-section .proc-list { border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); }
.proc-empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.proc-empty p { margin: 0 0 4px; }
.sysdoc-shot { display: block; margin: 8px 0; max-width: 640px; }
.sysdoc-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sysdoc-title-row { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.sysdoc a { color: var(--plum); text-decoration: underline; text-underline-offset: 2px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ---------- videos in systems (Loom, YouTube, Vimeo, Drive) ---------- */
.video { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.video-step { max-width: 560px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--plum); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.is-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #3a2430, var(--plum)); color: var(--white); border: 2px dashed var(--plum-ph, #6a5260);
}
.video-play { width: 64px; height: 64px; border-radius: 50%; background: var(--scarlet); position: relative; }
.video-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--white); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-step .video-play { width: 48px; height: 48px; }
.video-step .video-play::after { left: 19px; top: 14px; border-left-width: 14px; border-top-width: 10px; border-bottom-width: 10px; }
.video-ph-brand { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.video-ph-text { font-family: var(--font); font-size: 13px; opacity: 0.8; text-align: center; padding: 0 16px; }
.video-label { font-size: 14px; margin: 0; }

/* ============================================================
   Website page (/website)
   ============================================================ */
.web-page { display: flex; flex-direction: column; gap: 20px; }
.web-links { font-size: 14px; }
.web-links a { color: var(--plum); font-weight: 600; }
.web-updated { margin-top: 8px; font-size: 13px; }
.web-action-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.web-action { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line-2); }
.web-action:first-child { border-top: 0; padding-top: 0; }
.web-action .pill { justify-self: start; }
.web-action-title { font-weight: 600; color: var(--plum); }
.web-action-detail { color: var(--slate); font-size: 14px; margin: 4px 0 6px; }
.web-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.web-stat { background: var(--smoke); border: 1px solid var(--line); border-left: 4px solid var(--scarlet); border-radius: var(--radius-sm); padding: 12px 16px; }
.web-stat-label { font-size: 12px; color: var(--slate); }
.web-stat-num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--plum); }
.web-stat-change { font-size: 12px; color: var(--slate); }
.web-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.web-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.web-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-bar-track { background: var(--tint); border-radius: 999px; height: 8px; overflow: hidden; }
.web-bar-fill { display: block; height: 100%; background: var(--plum); border-radius: 999px; }
.web-bar-num { text-align: right; font-weight: 600; }
.web-path { color: var(--plum); word-break: break-all; }
.web-table-wrap { overflow-x: auto; }
.web-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.web-table th { text-align: left; font-size: 12px; color: var(--slate); font-weight: 600; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.web-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
/* Squarespace-style traffic block */
.web-range { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.web-range button { font: inherit; font-size: 13px; font-weight: 500; color: var(--slate); background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.web-range button:hover { color: var(--plum); }
.web-range button.is-on { background: var(--white); color: var(--plum); font-weight: 600; box-shadow: 0 1px 3px rgba(49, 25, 36, 0.15); }
.web-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.web-tile { font: inherit; text-align: left; background: var(--white); border: 0; border-right: 1px solid var(--line-2); border-top: 3px solid transparent; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.web-tile:last-child { border-right: 0; }
.web-tile.is-pickable { background: var(--smoke); cursor: pointer; }
.web-tile.is-pickable:hover { background: var(--tint); }
.web-tile.is-pickable.is-on { background: var(--white); border-top-color: var(--scarlet); }
.web-tile-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.web-tile-num { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--plum); }
.web-change { font-size: 12px; color: var(--slate); min-height: 18px; }
.web-change.is-good { color: var(--green); font-weight: 600; }
.web-change.is-bad { color: var(--red-ink); font-weight: 600; }
.web-change-than { color: var(--slate); font-weight: 400; }
.web-arrow { font-size: 13px; }
.web-tiles-sm .web-tile { padding: 10px 16px 12px; }
.web-tiles-sm .web-tile-num { font-size: 22px; }
.web-chart-head { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.web-chart-title { font-size: 15px; font-weight: 600; color: var(--plum); }
.web-chart-sub { font-size: 13px; color: var(--slate); }
.web-chart { position: relative; width: 100%; min-height: 280px; }
.web-chart svg { display: block; touch-action: pan-y; }
.web-grid-line { stroke: var(--line-2); stroke-width: 1; }
.web-axis { font-family: var(--font); font-size: 11px; fill: var(--slate); }
.web-line { fill: none; stroke: var(--plum); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.web-area { fill: var(--plum); opacity: 0.05; }
.web-dot { fill: var(--white); stroke: var(--plum); stroke-width: 1.5; }
.web-dot-on { fill: var(--scarlet); stroke: var(--white); stroke-width: 2; }
.web-cross { stroke: var(--marble); stroke-width: 1; stroke-dasharray: 3 3; }
.web-hit { cursor: crosshair; }
.web-chart-tip { display: none; position: absolute; pointer-events: none; background: var(--plum); color: var(--white); font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(49, 25, 36, 0.2); }
.web-chart-tip strong { font-size: 14px; }
.web-chart-tip span { opacity: 0.8; }
.web-chart-missing { background: var(--smoke); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 28px; text-align: center; color: var(--slate); font-size: 14px; }
.web-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.web-sub { font-size: 14px; font-weight: 600; color: var(--plum); margin: 0 0 12px; }
.web-others { padding-top: 18px; border-top: 1px solid var(--line-2); }
@media (max-width: 720px) {
  .web-action { grid-template-columns: 1fr; gap: 6px; }
  .web-tile { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .web-tile-num { font-size: 26px; }
  .web-grid { grid-template-columns: 1fr; }
}

/* resolve straight from the Home card */
.issue-mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.issue-mini-text { min-width: 0; }
.issue-resolve { flex: none; font-size: 12px; font-weight: 500; color: var(--slate); text-decoration: none; opacity: 0.8; }
.issue-resolve:hover, .issue-resolve:focus-visible { color: var(--plum); text-decoration: underline; opacity: 1; }

/* ============================================================
   Sales (Lift CRM): pipeline board, deal and company pages, lists
   ============================================================ */
.pill-bad { background: var(--red-bg); color: var(--red-ink); }
.late-ink { color: var(--red-ink); font-weight: 600; }
.crm-band { padding-bottom: 0; }
.crm-band.is-slim { padding-top: 14px; }
.crm-tabs { display: flex; gap: 4px; margin-top: 22px; overflow-x: auto; }
.crm-band.is-slim .crm-tabs { margin-top: 0; }
.crm-tab { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.crm-tab:hover { color: var(--plum); }
.crm-tab.is-on { color: var(--plum); border-bottom-color: var(--scarlet); }
.crm-page { display: flex; flex-direction: column; gap: 18px; }
.crm-page > .band-intro { margin-top: 0; }
.crm-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.crm-owner { display: flex; align-items: center; gap: 10px; }
.crm-toolbar select, .crm-search { padding: 8px 12px; border: 1px solid #d8d1d5; border-radius: var(--btn-radius); background: var(--white); min-height: 38px; }
.crm-search { min-width: 240px; }
.crm-inline { margin-left: 8px; }

.crm-attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.crm-att { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.crm-att:hover { border-color: var(--plum); color: var(--plum); }
.crm-att.is-hot { border-left-color: var(--scarlet); }
.crm-att.is-warn { border-left-color: var(--mustard); }
.crm-att.is-clear { opacity: 0.7; }
.crm-att-num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.crm-att-label { font-size: 12px; color: var(--slate); font-weight: 500; }

.crm-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.crm-col { background: var(--tint); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.crm-col-head { display: flex; flex-direction: column; gap: 0; padding: 2px 4px 6px; }
.crm-col-name { font-weight: 700; font-size: 15px; }
.crm-col-meta { font-size: 12px; color: var(--slate); }
.crm-col-empty { font-size: 13px; color: var(--slate); padding: 8px 4px; }
.crm-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.crm-card:hover { border-color: var(--plum); color: var(--plum); box-shadow: 0 6px 16px rgba(49, 25, 36, 0.08); }
.crm-card.is-late { border-left: 4px solid var(--scarlet); }
.crm-card-co { font-size: 12px; font-weight: 600; color: var(--slate); }
.crm-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.crm-card-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.crm-card-next { font-size: 12px; color: var(--slate); }
.crm-card-next.late { color: var(--red-ink); font-weight: 600; }
.crm-card-next.warn { color: var(--amber-ink); font-weight: 600; }
.crm-card-stale { font-size: 11px; color: var(--amber-ink); }
.crm-initials { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: var(--white); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.crm-closed { margin-top: 8px; }
.crm-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.crm-mini li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crm-how li { display: block; color: var(--slate); }
.crm-how strong { color: var(--plum); margin-right: 4px; }

.crm-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.crm-step { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 14px; }
.crm-step small { font-weight: 400; font-size: 11px; color: var(--slate); }
.crm-step:hover { border-color: var(--plum); }
.crm-step.is-done { background: var(--tint); }
.crm-step.is-current { background: var(--plum); color: var(--white); border-color: var(--plum); }
.crm-step.is-current small { color: #e6dce1; }
.crm-step.is-closed { background: var(--amber-bg); color: var(--amber-ink); border-color: #f1d9a6; cursor: default; }

.crm-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.crm-next.is-late { border-left: 4px solid var(--scarlet); }
.crm-next-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 10px; align-items: end; }
.crm-form { display: flex; flex-direction: column; gap: 12px; }
.crm-form .field input, .crm-form .field select, .crm-form .field textarea,
.crm-next-grid .field input, .crm-contact-form input, .crm-note textarea, .crm-note select, .crm-tier-row input {
  padding: 9px 12px; border: 1px solid #d8d1d5; border-radius: var(--btn-radius); background: var(--white); width: 100%;
}
.crm-note { display: flex; flex-direction: column; gap: 8px; }
.crm-note select { width: auto; }
.crm-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.crm-tier { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.crm-tier.is-rec { border-color: var(--scarlet); background: var(--pink); }
.crm-tier strong { font-size: 18px; }
.crm-tiers-edit { display: flex; flex-direction: column; gap: 8px; }
.crm-tier-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 6px 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.crm-tier-row .check { font-size: 13px; }
.crm-tier-row .link-button { justify-self: end; }

.crm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.crm-tl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
.crm-tl-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); background: var(--tint); border-radius: 999px; padding: 3px 8px; text-align: center; align-self: start; }
.crm-tl.kind-job .crm-tl-kind, .crm-tl.kind-enquiry .crm-tl-kind { background: var(--green-bg); color: var(--green-ink); }
.crm-tl.kind-touch .crm-tl-kind { background: var(--pink); color: var(--red-ink); }
.crm-tl-text { white-space: pre-wrap; font-size: 14px; }
.crm-tl-meta { font-size: 12px; color: var(--slate); margin-top: 2px; }

.crm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.crm-people .pill { margin-left: 6px; }
.crm-contact-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--smoke); border-radius: var(--radius-sm); }
.crm-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 14px; }
.crm-kv dt { color: var(--slate); font-size: 13px; }
.crm-kv dd { margin: 0; }
.crm-table td .pill { margin-left: 0; }

.crm-enq.is-done { opacity: 0.75; }
.crm-enq-msg { white-space: pre-wrap; background: var(--smoke); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }
.crm-nur { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.crm-nur.is-target { border-left: 4px solid var(--scarlet); }
.crm-nur.is-due { background: #fffdfb; }
.crm-nur .section-title { font-size: 18px; margin-bottom: 0; }
.crm-nur .section-title a { text-decoration: none; }
.crm-nur-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.crm-nur-pills { margin: 0; gap: 6px; }
.crm-nur-actions { flex-direction: column; align-items: flex-end; }

.crm-modal-back { position: fixed; inset: 0; background: rgba(49, 25, 36, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 200; overflow-y: auto; }
.crm-modal { background: var(--white); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 560px; box-shadow: 0 20px 50px rgba(49, 25, 36, 0.25); display: flex; flex-direction: column; gap: 14px; }
.crm-modal.is-wide { max-width: 760px; }
.crm-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crm-modal-head h2 { font-size: 20px; font-weight: 700; }
.crm-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--slate); padding: 0 4px; }

@media (max-width: 900px) {
  .crm-layout { grid-template-columns: minmax(0, 1fr); }
  .crm-next-grid { grid-template-columns: minmax(0, 1fr); }
  .crm-board { grid-template-columns: repeat(5, minmax(220px, 80vw)); }
}
@media (max-width: 600px) {
  .crm-nur { grid-template-columns: minmax(0, 1fr); }
  .crm-nur-actions { flex-direction: row; align-items: center; }
  .crm-search { min-width: 0; width: 100%; }
  .crm-kv { grid-template-columns: 90px minmax(0, 1fr); }
}

/* Pipeline: where our leads come from (27 Oct 2026) */
.crm-sources .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crm-sources select { padding: 6px 10px; border: 1px solid #d8d1d5; border-radius: var(--btn-radius); background: var(--white); }
.crm-src-table td:first-child { min-width: 180px; }
.crm-src-name { display: block; font-weight: 600; }
.crm-src-bar { display: block; height: 6px; margin-top: 4px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 220px; }
.crm-src-bar span { display: block; height: 100%; background: var(--scarlet); border-radius: 999px; }

/* ============================================================
   Lift Social (/social). The page uses the Hub look; the post
   itself uses the SOCIAL style only: Clash Display, caps, the
   social palette (brand/social/Social-Style-Guide.md).
   ============================================================ */
@font-face { font-family: "Clash Display"; font-weight: 700; font-display: swap; src: url("/fonts/ClashDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 500; font-display: swap; src: url("/fonts/ClashDisplay-Medium.woff2") format("woff2"); }
.soc-head { margin-bottom: 20px; }
.soc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .soc-grid { grid-template-columns: 300px minmax(0, 1fr); } .soc-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 760px) { .soc-grid, .soc-right { grid-template-columns: 1fr; } }
.soc-left, .soc-drive, .soc-caption { padding: 18px; gap: 12px; }
.soc-right { display: flex; flex-direction: column; gap: 20px; }
.soc-field { gap: 6px; }
.soc-hint { font-size: 12px; color: var(--slate); line-height: 1.45; }
.soc-center { text-align: center; }
.soc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.soc-opt { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.soc-opt.on { background: var(--plum); border-color: var(--plum); color: var(--white); }
.soc-opt:disabled { opacity: .4; cursor: not-allowed; }
.soc-opt.on:disabled { opacity: .55; }
.soc-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-swatch { width: 44px; height: 30px; padding: 0; border-radius: 8px; border: 2px solid var(--line); display: flex; overflow: hidden; cursor: pointer; background: none; }
.soc-swatch span { flex: 1; }
.soc-swatch.on { border-color: var(--scarlet); }
.soc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.soc-nums { display: flex; flex-direction: column; gap: 6px; }
.soc-numrow { display: grid; grid-template-columns: 64px 1fr 24px; gap: 6px; align-items: center; }
.soc-numrow input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.soc-numhead { font-size: 11.5px; color: var(--slate); }
.soc-x { border: 0; background: none; color: var(--slate); font-size: 18px; cursor: pointer; line-height: 1; }
.soc-link { border: 0; background: none; padding: 0; color: var(--scarlet); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.soc-link:disabled { color: var(--marble); cursor: default; }
.soc-centre { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.soc-guidebar { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--slate); flex-wrap: wrap; justify-content: center; }
.soc-guidebar .soc-hint { max-width: 460px; }
.soc-postwrap { position: relative; box-shadow: 0 10px 30px rgba(49, 25, 36, .18); }
.soc-guide { position: absolute; inset: 0; pointer-events: none; font-size: 10.5px; color: #fff; }
.sg-sh { position: absolute; background: rgba(243, 0, 49, .38); display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; line-height: 1.2; }
.sg-ln { position: absolute; border: 2px dashed #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.soc-badge { position: absolute; top: 12px; right: 14px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; border-radius: 10px; padding: 2px 8px; }
.soc-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: flex-end; max-width: 560px; }
.soc-mini { width: 64px; position: relative; overflow: hidden; border-radius: 6px; border: 3px solid transparent; cursor: pointer; box-sizing: content-box; background: var(--tint); }
.soc-mini.on { border-color: var(--scarlet); }
.soc-mini > div { transform-origin: top left; position: absolute; top: 0; left: 0; pointer-events: none; }
.soc-mini-n { position: absolute; left: 4px; bottom: 2px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.soc-mini-x { position: absolute; top: 0; right: 2px; border: 0; background: none; color: #fff; font-size: 15px; cursor: pointer; text-shadow: 0 1px 2px #000; padding: 0; }
.soc-add { width: 64px; height: 80px; border: 2px dashed var(--line); background: var(--white); border-radius: 6px; color: var(--slate); font-size: 11.5px; cursor: pointer; line-height: 1.2; }
.soc-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; max-width: 560px; }
.soc-checks-warn { border-color: var(--scarlet); }
.soc-tick { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.soc-tick input { accent-color: var(--scarlet); width: 16px; height: 16px; }
.soc-actions { display: flex; gap: 8px; }
.soc-status { min-height: 20px; max-width: 560px; text-align: center; }
.soc-note { display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; background: var(--tint); color: var(--slate); }
.soc-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.soc-kind { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 12.5px; }
.soc-upload { display: block; border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; text-align: center; cursor: pointer; font-size: 12px; color: var(--slate); }
.soc-upload strong { display: block; color: var(--scarlet); font-size: 12.5px; }
.soc-upload:hover { border-color: var(--scarlet); }
.soc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 380px; overflow-y: auto; padding-right: 2px; }
.soc-tiles-big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: none; }
.soc-tile { aspect-ratio: 1; border-radius: 6px; border: 3px solid transparent; background: var(--tint) center / cover no-repeat; position: relative; cursor: pointer; padding: 0; overflow: hidden; }
.soc-tile.on { border-color: var(--scarlet); }
.soc-tile small { position: absolute; left: 4px; right: 4px; bottom: 3px; font-size: 9.5px; color: #fff; text-shadow: 0 1px 2px #000; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-play { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 9.5px; border-radius: 4px; padding: 1px 5px; }
.soc-modal { position: fixed; inset: 0; background: rgba(49, 25, 36, .55); z-index: 50; padding: 40px; }
.soc-modal-box { background: var(--white); border-radius: 14px; padding: 22px; max-width: 1100px; margin: 0 auto; max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.soc-more { align-self: center; }
.soc-checklist { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--slate); }
.soc-offscreen { position: fixed; left: -20000px; top: 0; pointer-events: none; }

.sp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.soc-trim { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.soc-trim-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.soc-trim-head .soc-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.soc-trim-row { display: grid; grid-template-columns: 44px 1fr 56px; gap: 8px; align-items: center; }
.soc-trim-row input[type=range] { width: 100%; accent-color: var(--scarlet); }
.soc-trim-lbl { color: var(--slate); }
.soc-trim-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* The post itself */
.sp { position: relative; overflow: hidden; font-family: "Clash Display", "Poppins", sans-serif; text-transform: uppercase; text-align: center; color: #fff; }
.sp-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)); }
.sp-border .sp-photo, .sp-border .sp-shade { inset: 26px; }
.sp-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; gap: 12px; }
.sp-big { font-weight: 700; font-size: 48px; line-height: .95; letter-spacing: -.005em; }
.sp-big-xl { font-size: 54px; }
.sp-big-quote { font-size: 36px; line-height: 1.02; }
.sp-small { font-weight: 500; font-size: 15px; letter-spacing: .04em; line-height: 1.15; }
.sp em { font-style: normal; }
.sp-smalltxt .sp-txt { justify-content: flex-end; padding-bottom: 40px; }
.sp-smalltxt .sp-small { font-size: 18px; }
.sp-stamp { position: absolute; top: 22px; left: 22px; font-weight: 500; font-size: 14px; line-height: 1.1; text-align: left; }
.sp-numlist { font-weight: 700; line-height: 1.02; }
.sp-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.sp-grid div { background-size: cover; background-position: center; position: relative; }
.sp-grid span { position: absolute; bottom: 8px; left: 0; right: 0; font-weight: 500; font-size: 13px; }
.sp-story .sp-big { font-size: 42px; }
.sp-story .sp-big-xl { font-size: 46px; }
.sp-story .sp-stamp { top: 96px; }
.sp-story.sp-smalltxt .sp-txt { padding-bottom: 150px; }
.soc-warn { color: var(--scarlet, #F30031); }
.soc-mini[draggable="true"] { cursor: grab; }
.soc-mini.drop-before { box-shadow: -4px 0 0 var(--scarlet, #F30031); }
.soc-mini.drop-after { box-shadow: 4px 0 0 var(--scarlet, #F30031); }
.soc-mini-arrows { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 3px; pointer-events: none; }
.soc-mini-arrow { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 16px; padding: 0; cursor: pointer; }
.soc-mini-arrow:hover { background: var(--scarlet, #F30031); }

/* ---------- tenders (Sales > Tenders), added 20 Nov 2026 ---------- */
.grid-tender { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 170px; gap: 12px; }
.tender-stats { font-size: 13px; color: var(--slate); margin: 0; }
.tender-score { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tender-score.is-hot { background: var(--green-bg); color: var(--green-ink); }
.tender-score.is-warm { background: var(--amber-bg); color: var(--amber-ink); }
.tender-score.is-cold { background: var(--tint); color: var(--slate); }
.tender-where { font-size: 12px; }
.tender-closes { font-size: 13px; font-weight: 600; color: var(--plum); }
.tender-why, .tender-flags { font-size: 14px; color: var(--slate); }
.tender-flags strong { color: var(--amber-ink); }
.tender-actions { align-items: center; }
.tender-status { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tender-status select { border: 1px solid #d8d1d5; border-radius: var(--btn-radius); padding: 6px 8px; font: inherit; font-weight: 400; }
.tender-outcome { display: flex; flex-direction: column; gap: 10px; background: var(--smoke); border-radius: var(--radius-sm); padding: 14px; }
@media (max-width: 700px) { .grid-tender { grid-template-columns: minmax(0, 1fr); } }
.web-chart-block { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 720px) {
  .web-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-tile { border-right: 1px solid var(--line-2); padding: 12px 14px; }
  .web-tile:nth-child(2n) { border-right: 0; }
  .web-range { flex-wrap: nowrap; }
  .web-range button { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
}

/* Sales · Calls booked tracker (crm-calls.js) */
.crm-calls-row { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.crm-calls-now { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.crm-calls-bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 14px; }
.crm-calls-bars li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--slate); }
.crm-calls-bar { display: block; width: 26px; background: var(--marble); border-radius: 4px 4px 0 0; }
.crm-calls-bars li.is-now .crm-calls-bar { background: var(--scarlet); }
.crm-calls-bars li.is-now { color: var(--plum); font-weight: 600; }
.crm-calls-n { font-weight: 600; color: var(--plum); }
