/* ===== shell additions ===== */
.topbtns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bellbtn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.bellbtn[aria-expanded='true'] {
  background: var(--tint);
  color: var(--tint-fg);
  border-color: var(--teal);
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}
.bellpanel {
  position: fixed;
  right: 16px;
  top: 64px;
  width: min(380px, calc(calc(100vw / var(--zm, 1)) - 32px));
  max-height: calc(70vh / var(--zm, 1));
  overflow: auto;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  padding: 8px;
}
.bellpanel .nhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.bellpanel .nhead b {
  font-family: var(--display);
  font-size: 16px;
}
.nitem {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--r);
  padding: 8px;
  cursor: pointer;
  position: relative;
}
.nitem:hover {
  background: var(--sunk);
}
.nitem.unread::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}
.nic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-fg);
  display: grid;
  place-items: center;
}
.nt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 14px;
}
.nt span {
  font-size: 12.5px;
  color: var(--muted);
}
.newmenu {
  position: fixed;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: min(360px, calc(calc(100vw / var(--zm, 1)) - 32px));
}
.newmenu button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.newmenu button:hover {
  background: var(--sunk);
}
.newmenu button svg {
  color: var(--teal);
}
.whoami {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rail-line);
}
.whoami .me {
  border: 0;
  padding: 0;
  margin: 0;
}
.whoami .mebtns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 0 2px;
}
.rail .linkbtn {
  background: none;
  border: 0;
  color: var(--rail-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.rail .linkbtn:hover {
  color: var(--rail-strong);
}

/* layers stack */
.layer {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  display: flex;
  justify-content: flex-end;
}
.layer.center {
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.panel.wide {
  width: min(760px, 100%);
}
.modal.wide {
  width: min(680px, 100%);
}
.panel .tabs {
  margin-top: -4px;
}

/* small grids */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px 14px;
}
.kv2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}
.kv2 div {
  background: var(--sunk);
  border-radius: var(--r);
  padding: 8px 12px;
  min-width: 0;
}
.kv2 span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.kv2 b {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-top: 2px;
}
/* the note under a figure sits on its own lines, never run on after the amount (owner, 18/11/2026) */
.kv2 small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
/* tiles of a sum: a colour on the edge, like late and done lines, never the whole box (owner, 19/11/2026) */
.kv2 .kvc {
  padding-left: 15px;
  box-shadow: inset 4px 0 0 var(--kc, var(--line));
}
.kv2 .kv-held {
  --kc: var(--info);
}
.kv2 .kv-plus {
  --kc: var(--ok);
}
.kv2 .kv-less {
  --kc: var(--warn);
}
.kv2 .kv-tot {
  --kc: var(--teal);
}
.kv2 .kv-tot b {
  color: var(--teal);
}
.badgeRAG {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.rag-g {
  background: var(--ok);
}
.rag-a {
  background: #e39b2b;
}
.rag-r {
  background: var(--bad);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
.row-gap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* a tick box and its words (nothing else in the label): long words wrap beside the box, never onto a line of their
   own under it (owner, 23/11/2026: "something being wonky not inline") */
label.row-gap:has(> input:is([type='checkbox'], [type='radio'])):not(
    :has(> :is(input:not([type='checkbox']):not([type='radio']), select, textarea, button, div, .btn))
  ) {
  flex-wrap: nowrap;
  align-items: flex-start;
}
label.row-gap > input:is([type='checkbox'], [type='radio']) {
  flex: none;
}
.spacer {
  flex: 1;
}

/* checklist + steps */
.check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.check li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
}
.check li:hover {
  background: var(--sunk);
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
}
.check li.done b {
  color: var(--muted);
  text-decoration: line-through;
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  position: relative;
}
.steps li .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  z-index: 1;
}
.steps li.done .dot {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.steps li.block .dot {
  border-color: var(--bad);
}
.steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 30px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}
.steps li.done:not(:last-child)::before {
  background: var(--teal);
}
.steps .dot svg.i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.steps small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* diary */
.dtools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.week {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(110px, 1fr));
  min-width: 860px;
  position: relative;
}
.weekwrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.week .hd {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-align: center;
  font-size: 13px;
}
.week .hd small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.week .hd.today {
  color: var(--teal);
}
.week .tcol {
  border-right: 1px solid var(--line);
}
.week .tcol div {
  height: var(--px, 48px);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 2px 6px 0 0;
}
.week .dcol {
  position: relative;
  border-right: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% var(--px, 48px);
  cursor: copy;
}
.week .dcol.today {
  background-color: color-mix(in srgb, var(--tint) 40%, transparent);
}
.appt {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
  border-left: 3px solid;
  text-align: left;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}
.appt b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt span {
  color: inherit;
  opacity: 0.8;
}
.appt,
.chip,
.legendT span,
.legendT button,
.ev2 {
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  border-color: var(--c);
  color: var(--fg);
}
.t-viewing {
  --c: #19a498;
}
.t-valuation {
  --c: #3d7cc9;
}
.t-photography {
  --c: #c2508a;
}
.t-inspection {
  --c: #d08a1e;
}
.t-checkin {
  --c: #8a5bc4;
}
.t-checkout {
  --c: #d0533f;
}
.t-job {
  --c: #7a8c89;
}
.t-call {
  --c: #c9a800;
}
.t-task {
  --c: #9aa5a4;
}
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.month .mh {
  padding: 8px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.month .mc {
  min-height: 96px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  min-width: 0;
}
.month .mc.out {
  background: var(--sunk);
  color: var(--muted);
}
.month .mc.today .dn {
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.month .mc .dn {
  font-weight: 600;
  font-size: 12px;
}
.month .chip {
  font-size: 11px;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid;
}
.daylist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legendT {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.legendT span,
.legendT button {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-left: 3px solid var(--c);
  display: inline-flex;
  align-items: center;
}
.legendT button {
  cursor: pointer;
}
.legendT button:hover {
  background: color-mix(in srgb, var(--c) 30%, var(--surface));
}
.staffpick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.staffpick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  background: var(--surface);
}
.staffpick label {
  position: relative;
}
.staffpick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  left: 0;
  top: 0;
}
.staffpick label:has(input:checked) {
  background: var(--tint);
  border-color: var(--teal);
  color: var(--tint-fg);
}
.staffpick label:has(input:focus-visible) {
  outline: 2px solid var(--signal);
}

/* reminder */
.remind {
  border-top: 6px solid var(--signal);
}
.remind .mbell {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-fg);
  display: grid;
  place-items: center;
  flex: none;
}
.shake {
  animation: nudge 0.25s ease-in-out;
}

/* goals */
.goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.goal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.goal .top2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.goal .figr {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}
.goal .figr small {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.gmeter {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: var(--sunk);
}
.gmeter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal), var(--signal));
}
.gmeter .pace {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--fg);
  opacity: 0.55;
  border-radius: 2px;
}
.goal .s {
  font-size: 12px;
  color: var(--muted);
}
.goal .s.ok {
  color: var(--ok);
}
.goal .s.warn {
  color: var(--warn);
}
.goal .tick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.goal .tick input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
}
.fbbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tint-fg);
  background: var(--tint);
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}
.fbbtn .cnt {
  background: var(--bad);
  color: #fff;
  border-radius: 9px;
  min-width: 17px;
  height: 17px;
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  cursor: pointer;
  flex: 0 1 280px;
  min-width: 0;
}
.tm .avatar {
  grid-row: 1 / span 2;
}
.tm.on {
  border-color: var(--teal);
  background: var(--tint);
}
.tm small {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}
.slotg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.slotg .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
}
.slotg.empty .n {
  background: var(--sunk);
  color: var(--muted);
}

/* chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 12px;
  max-height: calc(46vh / var(--zm, 1));
  overflow: auto;
}
.evt {
  align-self: center;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--sunk);
  border-radius: 999px;
  padding: 3px 12px;
}
.bubwrap {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  gap: 3px;
}
.bubwrap.me {
  align-self: flex-end;
  align-items: flex-end;
}
.bub {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
}
.bubwrap.me .bub {
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubwrap.them .bub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.bmeta {
  font-size: 11px;
  color: var(--muted);
}
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg);
}
.fic {
  width: 26px;
  height: 30px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #5a6d6a;
}
.fic.pdf {
  background: #c2412d;
}
.fic.doc {
  background: #2b62a6;
}
.fic.img {
  background: #8a5bb8;
}
.fic.xls {
  background: #2e7d46;
}

/* inspections */
.rooms {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.roomlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roomlist button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
}
.roomlist button.on {
  border-color: var(--teal);
  background: var(--tint);
}
.roomlist button small {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
}
.roomlist button .pill {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.ph2 {
  aspect-ratio: 4/3;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 600;
  background: radial-gradient(circle at 70% 30%, var(--surface) 0 12%, transparent 13%),
    linear-gradient(160deg, var(--tint), var(--sunk) 60%, var(--line));
  border: 1px solid var(--line);
  max-width: 100%;
}
.ph2 span {
  background: var(--surface);
  border-radius: 5px;
  padding: 1px 6px;
}
.ph2.vid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-left: 16px solid var(--teal);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.ph2.add {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: var(--surface);
  color: var(--teal);
  cursor: pointer;
  font-weight: 600;
}
.ratings {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ratings button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
.ratings button.on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.compare .col2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* receipt */
.receipt {
  background: #fff;
  color: #14211f;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.receipt .half {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.receipt .half + .half {
  border-left: 1px dashed #9aa9a6;
}
.receipt b {
  font-family: var(--display);
}
.receipt .rl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 8px;
  align-items: center;
}
.part select,
.part input {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}

/* dashboard extras */
.dashseg {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.grid2b {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.minibar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 130px;
}
.minibar .mb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.minibar .pair {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}
.minibar .pair i {
  display: block;
  width: 40%;
  border-radius: 4px 4px 0 0;
}
.minibar small {
  font-size: 11px;
  color: var(--muted);
}
.lockline {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.stars {
  display: inline-flex;
  gap: 1px;
  color: #e3a21a;
  letter-spacing: 1px;
}
.dup {
  border: 1px solid var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}
.matrix td,
.matrix th {
  padding: 7px 10px;
  text-align: center;
}
.matrix td:first-child,
.matrix th:first-child {
  text-align: left;
}
.matrix input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}
@media (max-width: 1100px) {
  .grid2b {
    grid-template-columns: minmax(0, 1fr);
  }
  .rooms {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .part {
    grid-template-columns: minmax(0, 1fr) 110px auto;
  }
  .receipt {
    grid-template-columns: minmax(0, 1fr);
  }
  .receipt .half + .half {
    border-left: 0;
    border-top: 1px dashed #9aa9a6;
  }
}
.btn.danger {
  background: var(--bad);
  color: #fff;
}
.btn.danger:hover {
  filter: brightness(0.95);
}
@media (max-width: 820px) {
  .whoami {
    margin: 0;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid var(--rail-line);
    flex-direction: row;
    align-items: center;
    flex: none;
  }
  .rail .linkbtn {
    white-space: nowrap;
  }
}
/* the £ sign always has its own space, whatever box the money field sits in */
.prefix > input {
  padding-left: 28px !important;
}
.prefix::before {
  left: 12px;
  pointer-events: none;
}
/* search pickers for contacts, staff and properties */
.combo {
  position: relative;
  min-width: 0;
}
.combo > svg.i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.combo > input {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 12px 9px 36px !important;
  width: 100%;
  min-width: 0;
}
.combo > input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--tint);
}
.combo > input::-webkit-search-cancel-button {
  cursor: pointer;
}
.combolist {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 4px;
  max-height: 280px;
  overflow: auto;
}
.combolist button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--fg);
}
.combolist button b {
  font-weight: 600;
  font-size: 13.5px;
}
.combolist button small {
  font-size: 12px;
  color: var(--muted);
}
.combolist button.on,
.combolist button:hover {
  background: var(--sunk);
}
.combolist .more {
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--muted);
}
/* the memorandum form: whose email and phone go on it; a tenant's address on Edit contact */
.mosreach {
  margin: -4px 0 10px;
}
.nchome {
  margin: 4px 0 2px;
}
/* Sub-agents > Commission and the sub-agent's My commission: To pay | Paid */
.sacomtabs {
  margin: 4px 0 10px;
}
.sacomsum {
  margin: 0 0 10px;
}
/* the Let agreed "Full name" box: finds applicants by name, with Add as a new applicant */
.lafind {
  position: relative;
}

/* the current time across the diary */
.week .tcol {
  position: relative;
}
.nowline {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid color-mix(in srgb, #d0533f 45%, transparent);
  z-index: 3;
  pointer-events: none;
}
.nowline.today {
  border-top-color: #d0533f;
}
.nowline.today::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0533f;
}
.nowtag {
  position: absolute;
  right: 2px;
  transform: translateY(-50%);
  background: #d0533f;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 5px;
  z-index: 4;
}
.nowrow {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.nowrow time {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: #d0533f;
}
.nowrow span {
  height: 2px;
  background: #d0533f;
  border-radius: 2px;
  position: relative;
}
.nowrow span::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0533f;
}

/* calendar fills the screen; the date in the middle opens a date picker */
body[data-route='diary'] .content {
  max-width: none;
}
.dpick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--r);
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.dpick b {
  font-family: var(--display);
}
.dpick svg {
  color: var(--teal);
}
.dpick:hover {
  border-color: var(--teal);
}
.dpick input {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  pointer-events: none;
  height: 1px;
  width: 100%;
  border: 0;
  padding: 0;
}
.week .appt.short span {
  display: none;
}
.week .appt.short {
  justify-content: center;
}
/* contacts: search first, group tiles, contact cards */
.chero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.chero:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--tint);
}
.chero svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.chero input {
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 17px;
  color: var(--fg);
  width: 100%;
  min-width: 0;
}
.cgroups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.cgroup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: center;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--fg);
  font: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.cgroup:hover {
  border-color: var(--g);
  transform: translateY(-1px);
}
.cgroup .gic {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--g) 14%, transparent);
  color: var(--g);
}
.cgroup b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.cgroup .gn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--g);
}
.cgroup .gav {
  grid-column: 2 / span 2;
  display: flex;
}
.cgroup .gav i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
}
.cgroup .gav i:first-child {
  margin-left: 0;
}
.cgroup .gav i.more {
  background: var(--sunk);
  color: var(--muted);
}
.ccards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.ccard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ccard:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.ccard .cav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.ccard .cbody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ccard .cbody b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard .cmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ccard small {
  font-size: 12.5px;
  color: var(--muted);
}
.ccard .cquick {
  display: flex;
  gap: 6px;
}
.ccard .cquick .iconbtn {
  width: 32px;
  height: 32px;
  text-decoration: none;
}
.cletter {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 6px 2px 0;
  border-bottom: 1px solid var(--line);
}
.ctitle {
  font-family: var(--display);
  font-size: 16px;
}
@media (max-width: 480px) {
  .ccard {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ccard .cquick {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
.cgroup.call {
  background: var(--g);
  color: #fff;
  border-color: var(--g);
}
.cgroup.call .gic {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.cgroup.call .gn {
  color: #fff;
}
.caz {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 14px;
}
.caz button,
.caz span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.caz button {
  background: var(--tint);
  color: var(--tint-fg);
  border: 0;
  cursor: pointer;
}
.caz button:hover {
  filter: brightness(0.95);
}
.caz span {
  color: var(--muted);
  opacity: 0.45;
}
.cletter {
  scroll-margin-top: 80px;
}
.cgroup.call .gav i {
  border-color: var(--g);
}
.cgroup.cnew {
  border-style: dashed;
  --g: var(--teal);
  background: transparent;
}
.cgroup.cnew .gic {
  background: var(--tint);
  color: var(--tint-fg);
}
.cgroup.cnew small {
  color: var(--muted);
  font-size: 12px;
}
.gswatch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gswatch label {
  position: relative;
  cursor: pointer;
}
.gswatch input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
}
.gswatch span {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 2px transparent;
  transition: box-shadow 0.15s;
}
.gswatch input:checked + span {
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 5px var(--g);
}
.gswatch input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
.gpeople {
  margin-top: 8px;
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 4px;
  padding: 6px;
}
.gpeople label {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.gpeople label[hidden] {
  display: none;
}
.gpeople label:hover {
  background: var(--sunk);
}
.gpeople input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
}
.gpeople .cav.sm {
  grid-row: 1 / span 2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.gpeople b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpeople small {
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpeople label:has(input:checked) {
  background: var(--tint);
  border-color: var(--teal);
}
.gpeople label:has(input:checked) .cav.sm {
  box-shadow: 0 0 0 2px var(--teal);
}
.gpeople label:has(input:focus-visible) {
  outline: 2px solid var(--teal);
}
.cgroup.cnew .gic {
  grid-row: 1;
}
/* VIP contacts: gold tint that sits on the surface colour, so it works in Signature, Light and Dark */
:root {
  --gold: #c99a2e;
}
.ccard.vip {
  background: color-mix(in srgb, var(--gold) 13%, var(--surface));
  border-color: color-mix(in srgb, var(--gold) 55%, var(--surface));
}
.ccard.vip:hover {
  border-color: var(--gold);
}
.ccard.vip .cav {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--gold);
}
.vipstar {
  color: var(--gold);
  margin-right: 5px;
}
.vipsw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: var(--surface);
}
.vipsw .sw {
  width: 34px;
  height: 20px;
}
.vipsw .sw:checked {
  background: var(--gold);
}
.vipsw.on {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 13%, var(--surface));
  color: color-mix(in srgb, var(--gold) 70%, var(--fg));
}
.panel:has(.vipsw.on) .panelhead {
  background: color-mix(in srgb, var(--gold) 13%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--gold) 45%, var(--surface));
}
.vipsw .sw::after {
  width: 14px;
  height: 14px;
}
.vipsw .sw:checked::after {
  left: 17px;
}
.ccard:has(.llfigs) {
  grid-template-rows: auto auto;
}
.llfigs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.llfigs span {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  color: var(--muted);
  min-width: 0;
}
.llfigs b {
  font-family: var(--display);
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard.vip .llfigs {
  border-top-color: color-mix(in srgb, var(--gold) 40%, var(--surface));
}
.ccard:has(.llfigs) .cav {
  grid-row: 1;
  grid-column: 1;
}
.ccard:has(.llfigs) .cbody {
  grid-row: 1;
  grid-column: 2;
}
.ccard:has(.llfigs) .cquick {
  grid-row: 1;
  grid-column: 3;
}
.ccard:has(.llfigs) .llfigs {
  grid-row: 2;
}
.bigsw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: var(--surface);
}
.bigsw .sw {
  width: 34px;
  height: 20px;
}
.bigsw .sw::after {
  width: 14px;
  height: 14px;
}
.bigsw .sw:checked::after {
  left: 17px;
}
.bigsw.on,
.bigsw.auto {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--tint-fg);
}
.bigsw.auto {
  padding: 5px 12px;
  cursor: default;
}
.bigsw.auto .i {
  width: 15px;
  height: 15px;
}
.cgrp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.gtag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.gx {
  border: 0;
  background: none;
  color: var(--muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.gx:hover {
  background: var(--sunk);
  color: var(--fg);
}
.gx .i {
  width: 12px;
  height: 12px;
}
.cgrp .link .i {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
}
/* contact cards: labels never run under the quick buttons. On a narrow card the buttons move under the details. */
.ccard {
  container-type: inline-size;
}
.ccard .cmeta .pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ccard .cbody {
  overflow: hidden;
}
@container (max-width:380px) {
  .ccard .cquick {
    grid-column: 2;
    grid-row: 2;
  }
  .ccard:has(.llfigs) .cquick {
    grid-column: 2;
    grid-row: 2;
  }
  .ccard:has(.llfigs) .llfigs {
    grid-row: 3;
  }
}
/* group view: title row first, group buttons always on their own row underneath */
.toolbar.ctool {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.gq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px 4px;
  margin: 4px 0 14px;
  background: var(--sunk);
}
.gq h4 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}
.gqgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  /* a row's labels sat right on the boxes above them (owner, 23/11/2026: nothing "wonky") */
  gap: 12px 14px;
}
.gqgrid .field:has(textarea) {
  grid-column: 1 / -1;
}
/* "Other notes" on an applicant's wants: a little box, two lines tall */
.gqgrid .field textarea {
  min-height: 58px;
}
/* the note beside what an applicant wants (Match, the call list): their words in the page's own ink */
.mnote {
  margin: 2px 0 0;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.gqsub {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.gtag.auto .i {
  width: 12px;
  height: 12px;
  color: var(--muted);
  margin-left: 2px;
}
.cglinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: flex-end;
  width: 100%;
}
.gqf[hidden] {
  display: none;
}

/* ---------- properties: list (11/10/2026 redesign) ---------- */
.ptools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.psearch {
  flex: 1 1 320px;
}
.psearch input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font: inherit;
  color: var(--fg);
  min-width: 0;
}
.ptools-r {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.ptools-r select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}
.pview button {
  display: grid;
  place-items: center;
  padding: 5px 9px;
}
.pview .i {
  width: 16px;
  height: 16px;
}
.pshown {
  margin: 14px 0 10px;
}
.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.pcard {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: inherit;
  font: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.pcard:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.pimg {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sunk);
}
.pimg img,
.prmain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pst {
  position: absolute;
  top: 10px;
  left: 10px;
}
.pst .pill {
  padding: 2px 9px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.pcount {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.pcount .i {
  width: 13px;
  height: 13px;
}
.part {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
}
.part svg {
  width: 78%;
  height: 82%;
}
.part.let {
  background: linear-gradient(160deg, #2c7a8c, #16454f);
}
.part.sale {
  background: linear-gradient(160deg, var(--teal), var(--rail));
}
.part.land {
  background: linear-gradient(160deg, #8c7a44, #4a3f22);
}
.part.com {
  background: linear-gradient(160deg, #4a6478, #22323f);
}
:root[data-mode='light'] .part.sale {
  background: linear-gradient(160deg, #1c9c90, #0c4f4a);
}
.pbody {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.pprice {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pprice small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.pbody h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.paddr {
  font-size: 12.5px;
  color: var(--muted);
}
.pfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--fg);
  margin-top: 8px;
}
.pfacts > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.pfacts .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pfacts .ptype {
  color: var(--muted);
}
.pfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  min-width: 0;
}
.pref {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pflag {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  text-align: right;
}
.pflag.warn {
  color: var(--warn);
}
td .pflag {
  margin-left: 0;
  text-align: left;
}
.prowmain {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pthumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: block;
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pthumb .part svg {
  width: 90%;
  height: 90%;
}

/* ---------- properties: the record ---------- */
.prback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.prback .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prback .i {
  width: 15px;
  height: 15px;
}
.prhero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px;
}
.prgal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.prmain {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sunk);
}
.prnone {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.prnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #14211f;
}
.prnav.l {
  left: 10px;
}
.prnav.r {
  right: 10px;
}
.prthumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.prthumbs > button:not(.prdelph) {
  width: 72px;
  height: 50px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--sunk);
}
/* the Administrator switch at the bottom of a role: a red stripe on its edge (owner, 19/11/2026) */
.trig.trigadmin {
  box-shadow: inset 4px 0 0 var(--bad);
}
.prthumbs > button.on:not(.prdelph) {
  border-color: var(--teal);
}
/* photos are put in order by dragging: a teal line shows where it will land */
[data-phdrag][draggable='true'] {
  cursor: grab;
}
[data-phdrag].dragging {
  opacity: 0.4;
}
[data-phdrag].dropL {
  box-shadow: -4px 0 0 var(--teal);
}
[data-phdrag].dropR {
  box-shadow: 4px 0 0 var(--teal);
}
.prthumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.praddph {
  width: auto;
  height: 50px;
  padding: 0 14px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}
.praddph:hover {
  border-color: var(--teal);
}
.prthumbs > .prdelph {
  margin-left: auto;
  white-space: nowrap;
  width: auto;
  height: auto;
  color: var(--bad);
}
.prsum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 4px 0;
}
.prsum h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
  line-height: 1.2;
}
.prprice {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.1;
}
.prprice small {
  display: block;
  font-family: var(--body, inherit);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.prprice span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.pfacts.big {
  font-size: 14px;
  gap: 8px 16px;
  margin: 6px 0 10px;
}
.pfacts.big .i {
  width: 18px;
  height: 18px;
}
.prsum .actions {
  padding-top: 4px;
}
.prglance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 4px 0 8px;
}
.prglance > div {
  background: var(--sunk);
  padding: 10px 12px;
  min-width: 0;
}
.prglance b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prglance span {
  font-size: 11.5px;
  color: var(--muted);
}
.pagent {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.prstage {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.prstage.wd {
  justify-content: space-between;
}
.prsteps {
  display: flex;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: auto;
}
.prsteps li {
  flex: 1;
  position: relative;
  min-width: 96px;
}
.prsteps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--line);
}
.prsteps li.done:not(:last-child)::after {
  background: var(--teal);
}
.prsteps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}
.prsteps .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.prsteps .dot .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.prsteps li.done .dot {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.prsteps li.done button {
  color: var(--fg);
}
.prsteps li.on .dot {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 0 4px var(--tint);
}
.prsteps li.on button {
  color: var(--teal);
}
.prsteps button:hover .dot {
  border-color: var(--teal);
}
.prcols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}
.prmainc {
  min-width: 0;
}
.prtab {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.prtab > .actions {
  margin: 0;
}
.prside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.prdl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.prdl > div {
  padding: 10px 12px;
  min-width: 0;
  box-shadow:
    1px 0 0 var(--line),
    0 1px 0 var(--line);
}
.prdl dt {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.prdl dd {
  margin: 0;
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.prdesc {
  line-height: 1.6;
  white-space: pre-line;
}
.prfeat {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
}
.prfeat li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
}
.prfeat .i {
  width: 15px;
  height: 15px;
  color: var(--teal);
  margin-top: 2px;
  stroke-width: 2.5;
}
.prbar {
  height: 6px;
  border-radius: 99px;
  background: var(--sunk);
  overflow: hidden;
  margin-top: 6px;
}
.prbar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
}
.prppl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prppl li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.prppl li > div {
  min-width: 0;
}
.prppl small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.prav {
  background: var(--tint);
  color: var(--tint-fg);
}
.prlead {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prmini {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prmini li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .prcols {
    grid-template-columns: minmax(0, 1fr);
  }
  .prhero {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .prglance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prsum h1 {
    font-size: 21px;
  }
  .prprice {
    font-size: 24px;
  }
  .ptools-r {
    margin-left: 0;
  }
  .prstage {
    padding: 12px;
  }
  .prsteps li {
    min-width: 78px;
  }
  .prsteps button {
    font-size: 11.5px;
  }
}

/* ---------- add property: steps ---------- */
.wbar {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.wbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
}
.wbar button span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  border: 1px solid var(--line);
  font-size: 12px;
}
.wbar button.on {
  color: var(--fg);
}
.wbar button.on span {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.wbar button.done span {
  background: var(--tint);
  border-color: var(--teal);
  color: var(--tint-fg);
}
.wstep {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wstep div[data-for]:not(.frow) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.frow > div[data-for] {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
}
.frow > div[data-for] > .field {
  flex: 1;
}
.prdocb {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.link.danger {
  color: var(--bad);
}
.pdepts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pdept {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.pdept:hover {
  border-color: var(--muted);
}
.pdic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--sunk);
  color: var(--muted);
}
.pdic .i {
  width: 20px;
  height: 20px;
}
.pdept b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.pdept small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.pdept > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.pdept em {
  font-style: normal;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}
.pdept.let.on {
  border-color: #2c7a8c;
  box-shadow: inset 0 0 0 1px #2c7a8c;
  background: color-mix(in srgb, #2c7a8c 7%, var(--surface));
}
.pdept.let.on .pdic {
  background: #2c7a8c;
  color: #fff;
}
.pdept.let.on em {
  color: #2c7a8c;
}
.pdept.sale.on {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}
.pdept.sale.on .pdic {
  background: var(--teal);
  color: #fff;
}
.pdept.sale.on em {
  color: var(--teal);
}
@media (max-width: 640px) {
  .pdept {
    padding: 12px;
    gap: 10px;
  }
  .pdept small {
    display: none;
  }
  .pdic {
    width: 34px;
    height: 34px;
  }
  .pdept b {
    font-size: 16px;
  }
}
.prprep {
  border-color: color-mix(in srgb, var(--warn) 45%, var(--line));
}
.prprepl {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 16px;
}
.prprepl li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  min-width: 0;
}
/* a row's name is never narrower than its longest word (owner, 22/11/2026: "EPC link" was squeezed to one letter a
   line by the words beside it, in a narrow column). What a row offers goes under the name, at the right, when there
   is no room beside it. */
.prprepl li {
  flex-wrap: wrap;
}
.prprepl li > span:nth-child(2) {
  flex: 1 1 4.5em;
  min-width: auto;
}
.prprepl li > :nth-child(n + 3) {
  margin-left: auto;
  max-width: 100%;
}
.prprepl .prsub {
  display: block;
  margin-top: 1px;
}
.prprepl .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.prprepl li.done .dot {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.prprepl .dot .i {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.prprepl li.done > span:nth-child(2) {
  color: var(--muted);
}
/* the go-live list in groups (owner, 19/11/2026): Basic information, Details, Media, Before it goes live */
.prgh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  flex-wrap: wrap;
}
.prgh b {
  font-size: 14px;
}
.prgh .note {
  margin-right: auto;
}
.prgrp .prprepl {
  margin-top: 6px;
}
.prprepl li.opt:not(.done) .dot {
  border-style: dashed;
}
.prprepl li.opt:not(.done) > span:nth-child(2) {
  color: var(--muted);
}
/* the Rightmove upload pack: number, what, the words, Copy */
.rmpack {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rmpack > li {
  display: grid;
  grid-template-columns: 28px minmax(120px, 190px) minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rmpack > li:first-child {
  border-top: 0;
}
.rmpack .rmn {
  color: var(--muted);
  font-size: 12.5px;
  padding-top: 2px;
}
.rmpack .rmk {
  font-size: 13.5px;
}
.rmpack .rmv {
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rmpack .rmv .rmdesc p:last-child,
.rmpack .rmv .rmfeat {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .rmpack > li {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .rmpack .rmv {
    grid-column: 2 / -1;
  }
}
.kiref {
  margin: 6px 0 0;
  font-weight: 600;
}
.kihead {
  margin-top: 18px;
}
.prmissing {
  margin: 8px 0 10px;
  padding-left: 20px;
}

/* ---------- tenancies (11/10/2026 redesign) ---------- */
.tkpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.tkpi {
  background: var(--surface);
  padding: 14px 16px;
  min-width: 0;
}
.tkpi b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.tkpi span {
  font-size: 12.5px;
  color: var(--muted);
}
.tkpi.bad b {
  color: var(--bad);
}
.tkpi.warn b {
  color: var(--warn);
}
.tterm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}
.tterm .prbar {
  margin-top: 4px;
}
td .pill + small {
  margin-top: 4px;
}
.thero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
}
.tprop {
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--sunk);
  align-self: start;
}
.tprop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tsum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tsum h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 4px;
}
.tsum .actions {
  margin-top: 8px;
}
.tstats {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tstats > div {
  background: var(--sunk);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tstats span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tstats b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tstats b small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.tstats small {
  font-size: 12px;
  color: var(--muted);
}
.tstats .bad b,
.tstats .bad > small {
  color: var(--bad);
}
.tsteps .tstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
  text-align: center;
}
.tsteps li.done .tstep {
  color: var(--fg);
}
.tsteps li.on .tstep {
  color: var(--teal);
}
.tnext {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13.5px;
}
.tnext > span {
  flex: 1;
  min-width: 0;
  color: var(--fg);
}
.tnext .link {
  color: var(--warn);
}
.tmonth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tmonth > div {
  padding: 12px;
  border-radius: var(--r);
  background: var(--sunk);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tmonth span {
  font-size: 12px;
  color: var(--muted);
}
.tmonth b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.tmonth .bad b {
  color: var(--bad);
}
.tmonth .ok b {
  color: var(--ok);
}
.tsched {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tsched li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.tsched li:first-child {
  border-top: 0;
}
.tsched li b {
  font-family: var(--display);
  font-size: 16px;
}
.tsched li > span:not(.pill) {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.tsched li:not(.on):not(.next) b {
  color: var(--muted);
}
.tchecks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tchecks li {
  display: flex;
  align-items: center;
  /* a step's buttons drop under its words when there is no room beside them (owner, 22/11/2026: a long document name
     was drawn over the words on an iPad), and sit to the right as they do on a wide screen */
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.tchecks li > :not(label) {
  flex: none;
}
.tchecks li > .tproof {
  flex: 0 1 auto;
  min-width: 0;
}
.tchecks li > .link,
.tchecks li > .btn {
  white-space: nowrap;
}
/* a narrow card (a phone, or the checklist beside another column on an iPad): the date stays beside the words, and
   every button goes underneath */
.tchecks {
  container-type: inline-size;
}
@container (max-width: 600px) {
  .tchecks li > .nw:last-child {
    order: 1;
  }
  .tchecks li > :not(label):not(.nw:last-child) {
    order: 2;
  }
  .tchecks li > label {
    flex-basis: calc(100% - 90px);
  }
}
.tchecks li:first-child {
  border-top: 0;
}
.tchecks label {
  display: flex;
  align-items: center;
  gap: 12px;
  /* the words keep 300px (or the whole line on a phone): never squeezed to a word a line */
  flex: 1 1 300px;
  min-width: 0;
  cursor: pointer;
}
.tchecks label > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tchecks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tchecks .tnum {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}
.tchecks li.done .tnum {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.tchecks .tnum .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.tchecks label:hover .tnum {
  border-color: var(--teal);
}
.tchecks input:focus-visible + .tnum {
  box-shadow: 0 0 0 3px var(--tint);
}
.tchecks b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
}
.tchecks small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.tdates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tdates li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 10px;
  font-size: 13.5px;
}
.tdates span {
  color: var(--muted);
}
.tdates b {
  text-align: right;
}
.tdates small {
  grid-column: 2;
  text-align: right;
  font-size: 11.5px;
  color: var(--warn);
}
@media (max-width: 1100px) {
  .tkpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .tstats b {
    white-space: normal;
    font-size: 17px;
  }
  .prdl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thero {
    grid-template-columns: minmax(0, 1fr);
  }
  .tprop {
    aspect-ratio: 16/9;
  }
  .tstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tkpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tmonth {
    grid-template-columns: minmax(0, 1fr);
  }
  .tsum h1 {
    font-size: 21px;
  }
}
.prsummary {
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.cnt {
  display: block;
  text-align: right;
}
.cnt.near {
  color: var(--warn);
  font-weight: 600;
}
.phgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.phgrid:empty {
  display: none;
}
.phtile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sunk);
  border: 2px solid transparent;
}
.phtile.main {
  border-color: var(--teal);
}
.phtile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phtile > .pill {
  position: absolute;
  top: 8px;
  left: 8px;
  /* on a photo: a plain white label so the coloured text can be read */
  padding: 2px 9px;
  background: var(--surface);
}
.phacts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.15s;
}
.phtile:hover .phacts,
.phtile:focus-within .phacts {
  opacity: 1;
}
@media (hover: none) {
  .phacts {
    opacity: 1;
  }
}
.phdrop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.phdrop b {
  color: var(--teal);
  font-size: 14px;
}
.phdrop .i {
  width: 22px;
  height: 22px;
  color: var(--teal);
}
.phdrop:hover,
.phdrop.over,
.prmain.over {
  border-color: var(--teal);
  background: var(--tint);
}
.prmain.over {
  outline: 2px dashed var(--teal);
  outline-offset: -6px;
}
.pdepts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pdept.val.on {
  border-color: #8a5a9e;
  box-shadow: inset 0 0 0 1px #8a5a9e;
  background: color-mix(in srgb, #8a5a9e 7%, var(--surface));
}
.pdept.val.on .pdic {
  background: #8a5a9e;
  color: #fff;
}
.pdept.val.on em {
  color: #8a5a9e;
}
.pval {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.pval.big {
  font-size: 18px;
}
@media (max-width: 900px) {
  .pdept small {
    display: none;
  }
}
@media (max-width: 640px) {
  .pdepts {
    gap: 8px;
  }
  .pdept {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }
  .pdept em {
    font-size: 18px;
  }
}
.pkgbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: none;
}
.frow > .pkgbox {
  flex: 2 1 260px;
}
.pkgbox > .field {
  flex: none;
}
.pkgcf .field {
  flex: 1 1 120px;
}
.pkgc {
  display: flex;
  /* the tick sits level with the first line of its words, not halfway down two lines (owner, 23/11/2026: nothing
     "wonky" or "not inline") */
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.pkgc input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.pkgc > input:is([type='checkbox'], [type='radio']) {
  flex: none;
  margin: 2px 0 0; /* (a 20px line - the 16px box) / 2 */
}
.pkgcf {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.flabel {
  font-weight: 600;
  font-size: 13px;
}
.sfdef {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2, var(--bg));
  color: var(--muted);
  font-size: 14px;
}
.pdepts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pdept.agreed.on {
  border-color: var(--ok, #2e7d4f);
  box-shadow: inset 0 0 0 1px var(--ok, #2e7d4f);
  background: color-mix(in srgb, var(--ok, #2e7d4f) 7%, var(--surface));
}
.pdept.agreed.on .pdic {
  background: var(--ok, #2e7d4f);
  color: #fff;
}
.pdept.agreed.on em {
  color: var(--ok, #2e7d4f);
}
.pmoved {
  margin: -4px 0 12px;
}
.pmoved a {
  color: var(--teal);
  font-weight: 600;
}
@media (max-width: 1180px) {
  .pdept small {
    display: none;
  }
}
@media (max-width: 640px) {
  .pdepts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rmhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}
.rmhead h1 {
  font-family: var(--display);
  font-size: 28px;
  margin: 4px 0 6px;
  line-height: 1.2;
}
.rmhead .eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rmprice {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.rmphotos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rmphotos figure {
  margin: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.rmphotos figure.main {
  grid-column: span 2;
  grid-row: span 2;
}
.rmphotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rmphotos figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
}
.rmsum {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.rmdesc p {
  line-height: 1.65;
  margin: 0 0 10px;
  max-width: 75ch;
}
.rmfeat {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}
.rmhead + .card,
.rmhead ~ .card {
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .rmphotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rmfeat {
    columns: 1;
  }
  .rmhead h1 {
    font-size: 22px;
  }
}
#rmOrigNote {
  margin-top: 12px;
}
button.deal {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
button.deal:active {
  cursor: pointer;
}
button.deal:hover {
  border-color: var(--muted);
}
.deal .dnext {
  color: var(--fg);
  font-size: 12px;
}
.deal .dnext::before {
  content: 'Next: ';
  color: var(--muted);
}
.deal .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.colempty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 2px;
}
.combolist .comboadd {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.combolist .comboadd:hover {
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}
.combolist .comboadd .i {
  width: 16px;
  height: 16px;
}
.laperson {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface);
}
.lahead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.lasteps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--teal) 6%, var(--surface));
}
.lastep {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.lastep input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}
.lastep small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.lappl {
  margin-top: 10px;
}
.prprepl li small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.prprepl li.done > span:nth-child(2) b {
  color: var(--fg);
}
.insdue {
  margin-bottom: 14px;
}
.insdue .side {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inscard {
  margin-bottom: 14px;
}
.tproof {
  /* one line, and a name too long for its place ends in dots (never drawn over what is beside it) */
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tproof:hover {
  border-color: var(--teal);
}
.tproof .i {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  vertical-align: -2px;
}
.wstep > .field,
.wstep > div > .field {
  flex: none;
}
.wstep .frow > .field {
  flex: 1 1 180px;
}
.btn.danger-quiet {
  background: transparent;
  color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent);
}
.btn.danger-quiet:hover {
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}
/* status bar stages that follow offers or the tenancy: shown, never clicked */
.prsteps li.auto button {
  cursor: default;
  opacity: 0.55;
}
.prsteps li.auto .dot {
  border-style: dashed;
}
.prauto {
  flex-basis: 100%;
  margin-top: -4px;
}
/* storage full: the toast turns red and stays longer */
.toast.bad {
  background: var(--bad);
  color: #fff;
}
.toast.bad svg.i {
  color: #fff;
}
/* phone width: long emails wrap in the panel header so the close button stays on screen */
.panelhead > div {
  min-width: 0;
}
.panelhead p,
.panelhead h2 {
  overflow-wrap: anywhere;
}
.panelhead .iconbtn[data-close] {
  flex: none;
}
.boardhint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .chart svg text {
    font-size: 20px;
  }
  .chart svg text.tot,
  .chart svg .sofar {
    display: none;
  }
}
/* Team tasks card: one group per person, team tasks first */
.ttgroup + .ttgroup {
  margin-top: 12px;
}
.ttgroup > .label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.warnt {
  color: var(--warn);
}

.tnext.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.tnext.bad .link {
  color: var(--bad);
}
.tnext .row-gap {
  flex-wrap: wrap;
}

/* Accounts: money in and out, collect and pay, statements */
.pos {
  color: var(--ok);
}
/* "Redo the agreement" (22/11/2026): the copies it replaces, and the line under a replaced copy */
.redolist {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.redolist li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.redolist li small,
small.redone {
  display: block;
}
/* red in every list: a list's own grey for small text must not win */
small.neg.redone {
  color: var(--bad);
}
.neg {
  color: var(--bad);
}
/* amber text: due soon or waiting (LATER-12) */
.amber {
  color: var(--warn);
}
.kpi .v.pos {
  color: var(--ok);
}
.kpi .v.neg {
  color: var(--bad);
}
.chart .bin {
  fill: var(--ok);
}
.chart .bout {
  fill: var(--bad);
  opacity: 0.85;
}
table.tight {
  min-width: 0 !important;
  width: 100%;
}
table.tight td,
table.tight th {
  padding: 6px 6px;
  font-size: 12px;
  white-space: nowrap;
}
td.negt {
  color: var(--bad);
}
tr.dim td {
  opacity: 0.55;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cstep {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.cpdays {
  padding: 0;
}
.cpday {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.cpday:first-child {
  border-top: 0;
}
.cpday.today {
  background: color-mix(in srgb, var(--teal) 7%, transparent);
}
.cpdate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}
.cpdate b {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}
.cpdate span {
  font-size: 12px;
  color: var(--muted);
}
.cpdate em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 2px;
}
.cplist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cpi {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.cpi:first-child {
  border-top: 0;
}
.cpi b {
  font-weight: 600;
}
.cpi p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 0;
}
.cpi .cpdir {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cpi.cin .cpdir {
  background: var(--ok-bg);
  color: var(--ok);
}
.cpi.cout .cpdir {
  background: var(--bad-bg);
  color: var(--bad);
}
.cpi .cpdir .i {
  width: 15px;
  height: 15px;
}
.cpi .side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cpi .amt {
  font-weight: 600;
  min-width: 84px;
  text-align: right;
}
.stmake {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.stmake .field {
  margin: 0;
  min-width: 180px;
}
.stmt .sthead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.stmt .sthead h3 {
  font-size: 20px;
}
.sttable {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.sttable th:nth-child(1) {
  width: 92px;
}
.sttable th:nth-child(3),
.sttable th:nth-child(4) {
  width: 96px;
}
.sttable td:nth-child(2) {
  overflow-wrap: anywhere;
}
.sttable th {
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #9aa9a6;
  padding: 6px 4px;
}
.sttable td {
  padding: 6px 4px;
  border-bottom: 1px solid #e3e8e7;
  vertical-align: top;
}
.sttable td small {
  display: block;
  color: #5e706c;
}
.sttable .r {
  text-align: right;
}
.sttable tfoot td {
  border: 0;
  font-weight: 500;
}
.sttable tr.due td {
  border-top: 2px solid #0e5c56;
  padding-top: 8px;
}
@media (max-width: 640px) {
  .cpi {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .cpi .side {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .cpday {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 10px;
  }
}
.paper.stmt {
  white-space: normal;
  max-width: none;
}
/* rent: collect, pay, done */
.rrmonth {
  min-width: 130px;
  text-align: center;
}
.rrsteps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rrsec {
  padding: 0;
  overflow: hidden;
}
.rrhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.rrhead h3 {
  font-size: 16px;
}
.rrhead .side {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.rrhead .side b {
  font-family: var(--display);
  font-size: 17px;
}
.rrn {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.rrlist {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--sunk);
}
.rri {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.rri .rrside {
  padding-top: 2px;
}
.rrmain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rrmain p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.rrside {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rramt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  min-width: 84px;
  text-align: right;
}
.rrtag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px !important;
  color: var(--fg) !important;
}
.rrtag svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex: none;
}
.rrdocs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.rrdocs {
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.rrdoc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--sunk);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--fg);
}
.rrdoc .rrdi svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  display: block;
}
.rrdoc .rrdn {
  font-weight: 700;
  font-size: 12.5px;
}
.rrdoc .rrdw {
  color: var(--muted);
}
.rrdoc .rrst {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
}
.rrdoc .rrst svg {
  width: 13px;
  height: 13px;
}
.rrdoc .rrst.no {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}
.rrdoc .rrst.ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}
.rrdoc .rrund {
  color: var(--muted);
}
.rrnone {
  padding: 16px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.rrcall {
  display: flex;
  gap: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
}
.rrcall svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex: none;
  margin-top: 2px;
}
.rrcall p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
table.rrbreak {
  width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: fixed;
}
table.rrbreak td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
table.rrbreak td.r {
  width: 110px;
  text-align: right;
  white-space: nowrap;
}
table.rrbreak tfoot td {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal);
  font-weight: 700;
  border-bottom: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
table.rrbreak tfoot td.r {
  font-size: 16px;
  letter-spacing: 0;
  font-family: var(--display);
}
@media (max-width: 760px) {
  .rri {
    flex-direction: column;
    align-items: stretch;
  }
  .rrside {
    justify-content: flex-start;
  }
  .rramt {
    text-align: left;
    min-width: 0;
  }
  .rrhead {
    flex-wrap: wrap;
  }
}
/* the North Lane statement and receipt layout, always on white like the PDF */
.nlpage {
  background: #e9eeed;
  padding: 18px;
  border-radius: 8px;
  overflow: auto;
  max-height: calc(70vh / var(--zm, 1));
}
.nldoc {
  background: #fff;
  color: #14211f;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 48px 26px;
  font-family: var(--body);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.5;
}
.nldoc .nlwm {
  width: 150px;
  display: block;
}
.nldoc .nlrule {
  border: 0;
  border-top: 2px solid #11756d;
  margin: 22px 0 12px;
}
.nldoc .nlkick {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #11756d;
}
.nldoc h3 {
  font-size: 20px;
  color: #11756d;
  margin: 4px 0 2px;
  font-family: var(--body);
}
.nldoc .nldate {
  margin: 0;
  font-size: 11px;
  color: #5a6d6a;
}
.nldoc .nlbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dde3e2;
  background: #f6f8f8;
  margin: 16px 0 18px;
}
.nldoc .nlbox > div {
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nldoc .nlbox > div + div {
  border-left: 1px solid #dde3e2;
}
.nldoc .nlbox span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #11756d;
}
.nldoc .nlbox b {
  font-size: 13px;
}
.nldoc .nlper {
  font-size: 11.5px;
  margin: 0 0 10px;
}
.nldoc .nlper span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5a6d6a;
  margin-right: 10px;
}
.nldoc .nltab {
  width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}
.nldoc .nltab th {
  background: #11756d;
  color: #fff;
  text-align: left;
  font-size: 11px;
  padding: 8px 10px;
  border: 1px solid #11756d;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-family: var(--body);
}
.nldoc .nltab th:last-child,
.nldoc .nltab td:last-child {
  text-align: right;
  width: 130px;
}
.nldoc .nltab td {
  padding: 9px 10px;
  border: 1px solid #34403e;
  color: #5a6d6a;
  font-size: 11px;
  white-space: normal;
  background: #fff;
}
.nldoc .nltab tr.b td {
  color: #14211f;
  font-weight: 700;
}
.nldoc .nltab tfoot td {
  background: #eaf4f2;
  border: 1px solid #11756d;
  color: #11756d;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 13px 12px;
}
.nldoc .nltab tfoot td:last-child {
  font-size: 19px;
  letter-spacing: 0;
}
.nldoc .nlpara {
  color: #5a6d6a;
  font-size: 11px;
  margin: 18px 0 0;
}
.nldoc .nlfoot {
  color: #5a6d6a;
  font-size: 10.5px;
  font-style: italic;
  border-top: 1px solid #dde3e2;
  margin: 16px 0 0;
  padding-top: 12px;
}
.nldoc .nlbottom {
  margin-top: 56px;
  border-top: 1px solid #dde3e2;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.nldoc .nlbottom b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #11756d;
  font-size: 10px;
}
.nldoc .nlbottom img {
  width: 12px;
}
.nldoc .nlbottom span {
  font-size: 9px;
  color: #5a6d6a;
}
@media (max-width: 640px) {
  .nlpage {
    padding: 6px;
  }
  .nldoc {
    padding: 20px 16px;
  }
  .nldoc .nlbox {
    grid-template-columns: 1fr;
  }
  .nldoc .nlbox > div + div {
    border-left: 0;
    border-top: 1px solid #dde3e2;
  }
  .nldoc .nltab th:last-child,
  .nldoc .nltab td:last-child {
    width: 92px;
  }
}
/* the invoice to the seller's solicitor, in North Lane's own layout (mos.js NL.sinvHtml) */
.nldoc.nlsinv {
  padding: 30px 44px 22px;
}
.nlsinv .sitop {
  display: flex;
  justify-content: flex-end;
}
.nlsinv .sitop img {
  width: 172px;
  display: block;
}
.nlsinv .sirule {
  border: 0;
  border-top: 2px solid #11756d;
  margin: 10px 0 26px;
}
.nlsinv .sihead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}
.nlsinv .sihead h3 {
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.1;
}
.nlsinv .sihead dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.nlsinv .sihead dl div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.nlsinv .sihead dt {
  font-size: 11px;
  color: #5a6d6a;
}
.nlsinv .sihead dd {
  margin: 0;
  font-size: 14px;
}
.nlsinv .siboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
}
.nlsinv .siboxes > div {
  background: #e2f1ef;
  padding: 14px 14px 18px;
}
.nlsinv .siboxes span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #11756d;
  margin-bottom: 8px;
}
.nlsinv .siboxes b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.nlsinv .siboxes p {
  margin: 0;
  font-size: 13px;
}
.nlsinv .siboxes p.m,
.nlsinv .siboxes p.r i {
  color: #5a6d6a;
  font-style: normal;
}
.nlsinv .siboxes p.m,
.nlsinv .siboxes p.r {
  font-size: 12px;
}
.nlsinv .sitab {
  width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}
.nlsinv .sitab th {
  background: #11756d;
  color: #fff;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  font-family: var(--body);
  font-weight: 700;
  text-transform: none;
}
.nlsinv .sitab th:last-child,
.nlsinv .sitab td:last-child {
  text-align: right;
  width: 130px;
}
.nlsinv .sitab td {
  padding: 11px 12px 12px;
  border-bottom: 1px solid #d6e2e0;
  vertical-align: top;
  font-size: 13px;
  white-space: normal;
  background: #fff;
}
.nlsinv .sitab td b {
  display: block;
  font-size: 14px;
}
.nlsinv .sitab td small {
  display: block;
  color: #5a6d6a;
  font-size: 11px;
  margin-top: 3px;
}
.nlsinv .sitab tfoot td {
  background: #e2f1ef;
  border-bottom: 2px solid #11756d;
  color: #11756d;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-align: right;
  padding: 12px;
}
.nlsinv .sitab tfoot td:last-child {
  font-size: 20px;
  letter-spacing: 0;
}
.nlsinv h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #11756d;
  margin: 28px 0 8px;
  font-family: var(--body);
}
.nlsinv .sipay {
  width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  border-top: 2px solid #11756d;
  border-bottom: 2px solid #11756d;
}
.nlsinv .sipay th {
  text-align: left;
  width: 200px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #5a6d6a;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid #d6e2e0;
  background: none;
  text-transform: none;
  font-family: var(--body);
}
.nlsinv .sipay td {
  font-size: 13.5px;
  padding: 10px 0;
  border-bottom: 1px solid #d6e2e0;
  white-space: normal;
}
.nlsinv .sipay tr:last-child th,
.nlsinv .sipay tr:last-child td {
  border-bottom: 0;
}
.nlsinv .sipara {
  font-size: 13px;
  margin: 26px 0 0;
}
.nlsinv .sisign {
  font-size: 13px;
  margin: 0;
}
.nlsinv .sifoot {
  margin-top: 60px;
  border-top: 1px solid #d6e2e0;
  padding-top: 10px;
  text-align: center;
  font-size: 9.5px;
  color: #5a6d6a;
}
.nlsinv .sifoot b {
  color: #11756d;
}
@media (max-width: 640px) {
  .nlsinv .sihead {
    flex-direction: column;
  }
  .nlsinv .sihead dl {
    align-items: flex-start;
  }
  .nlsinv .siboxes {
    grid-template-columns: 1fr;
  }
  .nlsinv .sipay th {
    width: 120px;
  }
}
/* email preview */
.empv .form textarea#emBody {
  min-height: 230px;
  font-size: 13.5px;
  line-height: 1.55;
}
.emfile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--sunk);
}
.emfile .emic {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #c8433a;
  color: #fff;
  flex: none;
}
.emfile .emic svg {
  width: 18px;
  height: 18px;
}
.emfile > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.emfile b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.emfile small {
  color: var(--muted);
  font-size: 12px;
}
.emfile .side {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.empv .mfoot .emmark,
.empv .mfoot .emsent {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.empv .mfoot .emsent svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
}
.empv .note svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
@media (max-width: 640px) {
  .emfile {
    flex-wrap: wrap;
  }
  .emfile > div {
    flex-basis: calc(100% - 46px);
  }
  .emfile .side {
    width: 100%;
    padding-left: 46px;
  }
}

/* owner's full name on property cards */
.powner {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  min-width: 0;
}
.powner span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.powner b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.rrtag .rrx {
  color: var(--bad);
}
.rrdoc {
  justify-content: space-between;
  row-gap: 6px;
}
.rrdoc .rrdl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  flex-wrap: wrap;
}
.rrdoc .rrda {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.logcount {
  margin: 4px 0 8px;
}
b.login {
  color: var(--ok);
}
b.logout {
  color: var(--fg);
}
.logkeep {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.logkeep svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex: none;
}
tr.logdel td {
  background: color-mix(in srgb, var(--bad) 9%, transparent) !important;
}
tr.logdel td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}
.logdeltag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--bad);
  font-weight: 700;
  font-size: 11.5px;
}
@media (max-width: 1199px) {
  .logdeltag {
    min-width: 190px;
    max-width: 240px;
  }
}
.logdeltag svg {
  width: 12px;
  height: 12px;
}
b.logstrike {
  color: var(--bad);
  text-decoration: line-through;
}
b.logadj {
  color: var(--muted);
}
b.login,
b.logout,
b.logstrike,
b.logadj {
  white-space: nowrap;
}
.rrdue {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px !important;
  color: var(--muted) !important;
}
.rrdue svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex: none;
  margin-right: -8px;
}
.rrdue b {
  color: var(--fg);
  font-weight: 600;
}
/* late rent, even by one day: the whole card goes red, like VIP contacts go gold */
.rri.late {
  background: color-mix(in srgb, var(--bad) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--bad) 55%, var(--surface));
  box-shadow: inset 4px 0 0 var(--bad);
}
.rri.late .rrmain > b {
  color: var(--bad);
}
.rri.late .rramt {
  color: var(--bad);
}
.rri.late .rrdoc {
  background: color-mix(in srgb, var(--bad) 5%, var(--surface));
}
.rri.soon {
  --due: #1e8e45;
}
.rri.today {
  --due: #d9730d;
}
.rri.soon,
.rri.today {
  background: color-mix(in srgb, var(--due) 20%, var(--surface));
  border-color: var(--due);
  box-shadow: inset 6px 0 0 var(--due);
}
.rri.soon .rrmain > b,
.rri.soon .rramt,
.rri.today .rrmain > b,
.rri.today .rramt {
  color: var(--due);
}
.rri.soon .rrdoc,
.rri.today .rrdoc {
  background: color-mix(in srgb, var(--due) 8%, var(--surface));
}
/* coloured text only, never white on a fill (Abaan 14/11/2026: "Due in 6 days" was white and hard to read) */
.rri.soon .pill,
.rri.today .pill {
  background: none;
  color: var(--due);
  font-weight: 700;
}
/* unsent receipts and statements: green while there is time, orange on the day, red when late (coloured text) */
.rrdoc.e-soon .rrst.no {
  background: none;
  color: #1e8e45;
  font-weight: 700;
}
.rrdoc.e-today .rrst.no {
  background: none;
  color: #d9730d;
  font-weight: 700;
}
.rrdoc.e-late .rrst.no {
  background: none;
  color: var(--bad);
  font-weight: 700;
}
.rrlater {
  margin: -6px 0 14px;
  text-align: center;
}
.rrago {
  font-style: normal;
  color: var(--muted);
  margin-left: 2px;
}
.rrago:before {
  content: '· ';
}
.bkpick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
}
.bkopt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--surface);
}
.bkopt:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}
.bkopt span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bkopt small {
  color: var(--muted);
  font-size: 12.5px;
}
.bkline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px;
}
.bkwarn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warn);
}
.bkwarn.bad {
  color: var(--bad);
}
.bkwarn.info {
  color: var(--muted);
}
.bkwarn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
/* extra lettings packages */
.srow input.pkname {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--fg);
  width: min(260px, 100%);
  margin-bottom: 4px;
  display: block;
}
.srow.pkoff input.pkname {
  color: var(--muted);
}
/* pay the landlord: amount and bank details on one page */
.pdamt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--tint-fg);
  margin: 4px 0 12px;
}
.pdamt span {
  flex: 1;
  font-weight: 600;
}
.pdamt b {
  font-size: 24px;
  white-space: nowrap;
}
.pdtab {
  font-size: 13px;
  margin-bottom: 14px;
}
.pdtab p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.pdtab p b {
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
}
.pdtab p.tot {
  color: var(--fg);
  font-weight: 700;
  border-bottom: 0;
}
.pdtab p.tot b {
  font-weight: 700;
}
.pdh {
  font-size: 15px;
  margin: 6px 0 6px;
}
.pdrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.pdrow .pdl {
  width: 130px;
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.pdrow .pdv {
  flex: 1;
  font-size: 16px;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.pdwarn {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sunk);
}
.pdwarn p {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 560px) {
  .pdrow .pdl {
    width: 84px;
  }
  .pdamt b {
    font-size: 20px;
  }
}
/* pay page: bank details beside the breakdown */
/* a go button ("Continue" on a confirm) is teal, as every go button; green is only for "done" text (owner's rule) */
.btn.go {
  background: var(--teal);
  color: #fff;
}
.btn.go:hover {
  filter: brightness(0.95);
}
.pdgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
.pdbank {
  position: sticky;
  top: 0;
}
.pdbank .pdamt {
  margin-top: 0;
}
.pdbank .pdh {
  margin-top: 2px;
}
.pdbank .pdrow {
  padding: 6px 0;
}
.pdbank .pdrow .pdl {
  width: 112px;
}
.pdbank .pdrow .pdv {
  font-size: 15px;
}
.pdform .rrbreak {
  margin-top: 0;
}
@media (max-width: 860px) {
  .pdgrid {
    grid-template-columns: 1fr;
  }
  .pdbank {
    position: static;
  }
}
.modal.wide.paywide {
  width: min(940px, 100%);
}
.pdbank .pdrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 7px 0;
}
.pdbank .pdrow .pdl {
  width: auto;
  grid-column: 1;
  font-size: 12px;
}
.pdbank .pdrow .pdv {
  grid-column: 1;
  font-size: 16px;
}
.pdbank .pdrow button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.pdbank .pdamt b {
  font-size: 26px;
}
/* landlord reports */
.lrcard {
  margin-bottom: 22px;
}
.lrsub {
  font-size: 16px;
  margin: 6px 0 12px;
}
.lrtypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}
.lrtype {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--surface);
}
.lrtype input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lrtype .tic {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sunk);
  color: var(--teal);
}
.lrtype small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.lrtype.on {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 25%, transparent);
  background: var(--tint);
}
.lrform {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lrpre {
  flex-wrap: wrap;
}
.lrmade {
  margin-top: 18px;
}
.lrmade h4 {
  font-size: 15px;
  margin: 0 0 2px;
}
.lrview.modal.wide {
  width: min(980px, 100%);
}
.lrdoc .lrkpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.lrdoc .lrkpis div {
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lrdoc .lrkpis span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tint-fg);
  font-weight: 700;
}
.lrdoc .lrkpis b {
  font-size: 18px;
  color: var(--tint-fg);
}
.lrdoc .lrh {
  font-size: 14px;
  margin: 16px 0 6px;
}
.lrwrap {
  overflow-x: auto;
}
.lrdoc .lrtab td.r,
.lrdoc .lrtab th.r {
  text-align: right;
  white-space: nowrap;
}
.lrdoc .lrtab tr.lrnone td {
  color: var(--bad);
  font-style: italic;
  background: var(--bad-bg);
}
.lrdoc .lrtab tfoot td {
  font-weight: 700;
}
.lratt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0;
}
.lrdoc .lrtab {
  table-layout: auto;
}
.lrdoc .lrtab th,
.lrdoc .lrtab td,
.lrdoc .lrtab th:last-child,
.lrdoc .lrtab td:last-child {
  width: auto;
  text-align: left;
  border-color: var(--line, #d6e2df);
  padding: 7px 9px;
}
.lrdoc .lrtab th.r,
.lrdoc .lrtab td.r {
  text-align: right;
}
.lrdoc .lrtab th {
  border-color: #11756d;
}
.lrdoc .lrtab tfoot td,
.lrdoc .lrtab tfoot td:last-child {
  font-size: 11px;
  letter-spacing: 0;
  padding: 9px;
}
.lrdoc .lrtab tr.lrnone td {
  background: #fbf4f2;
  color: #963c2d;
}
.lrtype {
  align-items: start;
}
/* referrals */
.rfparts {
  margin-bottom: 16px;
}
.rfpgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.rfp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.rfp.on {
  border-color: var(--teal);
  background: var(--tint);
}
.rfp .link {
  align-self: flex-start;
}
.rfpname {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rfpname small {
  color: var(--muted);
  font-size: 12px;
}
.rfpname:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.rfmore {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 4px;
}
.rfhint {
  margin: -4px 0 6px;
}
.rfhist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rfhist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
b.bad {
  color: var(--bad);
}
.rftel {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
}
a.rftel:hover {
  color: var(--teal);
}
.rftel svg {
  width: 14px;
  height: 14px;
}
/* Properties journey: one strip per side, next step and days in stage on every card */
.pdepts.jsides {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jstrip {
  display: flex;
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
.jstep {
  position: relative;
  flex: 1 1 0;
  min-width: 118px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  padding: 12px 18px 12px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.jstep + .jstep {
  border-left: 1px solid var(--line);
}
.jstep:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.jstep:hover {
  background: var(--tint);
}
.jstep:hover::after {
  background: var(--tint);
}
.jn {
  grid-row: 1/3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--tint);
  color: var(--muted);
}
.jn .i {
  width: 14px;
  height: 14px;
}
.jstep b {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.jstep em {
  grid-row: 1/3;
  grid-column: 3;
  font-style: normal;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}
.jstep small {
  grid-column: 2;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.jstep.on {
  background: color-mix(in srgb, var(--jc) 9%, var(--surface));
  box-shadow: inset 0 -3px 0 var(--jc);
}
.jstep.on::after {
  background: color-mix(in srgb, var(--jc) 9%, var(--surface));
}
.jstep.on .jn {
  background: var(--jc);
  color: #fff;
}
.jstep.on em {
  color: var(--jc);
}
.jstrip.let {
  --jc: #2c7a8c;
}
.jstrip.sale {
  --jc: var(--teal);
}
.jstep.done .jn {
  background: var(--ok-bg);
  color: var(--ok);
}
.jnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: var(--r);
  background: var(--tint);
  min-width: 0;
}
.jnext .btn {
  flex: none;
}
.jdays {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
  line-height: 1.3;
}
.jdays .i {
  width: 14px;
  height: 14px;
  flex: none;
}
.jdays.amber {
  color: var(--warn);
  font-weight: 600;
}
.jdays.red {
  color: var(--bad);
  font-weight: 600;
}
.pcard.amber {
  border-color: color-mix(in srgb, var(--warn) 55%, var(--line));
}
.pcard.amber .jnext {
  background: var(--warn-bg);
}
.pcard.red {
  border-color: color-mix(in srgb, var(--bad) 60%, var(--line));
}
.pcard.red .jnext {
  background: var(--bad-bg);
}
.pcard:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
td .jdays {
  display: flex;
  margin-top: 3px;
}
@media (max-width: 640px) {
  .jstep {
    flex: 0 0 auto;
    min-width: 142px;
    padding: 10px 16px 10px 10px;
  }
  .jnext {
    flex-wrap: wrap;
  }
}
.jdays > span {
  min-width: 0;
}
.jsub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.jsub .i {
  width: 12px;
  height: 12px;
}
/* rent due tasks for North Lane Real Estate */
.t-rent {
  --c: #0e5e57;
}
.appt.done,
.chip.done,
.ev.done {
  opacity: 0.6;
}
.appt.done b,
.chip.done,
.ev.done b {
  text-decoration: line-through;
}
.appt.done span .i,
.ev.done b .i {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 3px;
}
.appt.t-rent.late,
.appt.t-dep.late {
  box-shadow: inset 3px 0 0 var(--bad);
}
.t-dep {
  --c: #24446e;
}
.rentcal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* Move to business account */
.imp {
  color: var(--bad);
  font-weight: 700;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.mvtop {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.mvbig {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  margin: 4px 0 6px;
  color: var(--teal);
}
.mvkinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
}
.mvkinds span {
  display: flex;
  flex-direction: column;
}
.mvkinds small {
  font-size: 11.5px;
  color: var(--muted);
}
.mvkinds b {
  font-size: 15px;
}
.mvact {
  text-align: right;
}
.mvact p {
  margin: 6px 0 0;
}
tr.gone td {
  color: var(--muted);
}
tr.gone b {
  text-decoration: line-through;
}
@media (max-width: 640px) {
  .mvact {
    text-align: left;
  }
}
/* Today's takings card */
.tkhow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: -2px 0 10px;
}
.tkhow span {
  display: flex;
  flex-direction: column;
}
.tkhow small {
  font-size: 11.5px;
  color: var(--muted);
}
.tkhow b {
  font-size: 15px;
}
.tk {
  border-left: 3px solid transparent;
  padding-left: 10px !important;
}
.tk.ok {
  border-left-color: var(--ok);
}
.tk.bad {
  border-left-color: var(--bad);
}
.tk > div {
  min-width: 0;
  flex: 1;
}
.tkdot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-right: 10px;
}
.tkdot .i {
  width: 13px;
  height: 13px;
}
.tk.ok .tkdot {
  background: var(--ok-bg);
  color: var(--ok);
}
.tk.bad .tkdot {
  background: var(--bad-bg);
  color: var(--bad);
}
.tk .side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tkamt {
  font-weight: 600;
  white-space: nowrap;
}
.list li.tk {
  display: flex;
  align-items: center;
  gap: 0;
}
.list li.tk .side {
  margin-left: auto;
  padding-left: 10px;
}
@media (max-width: 640px) {
  .list li.tk {
    flex-wrap: wrap;
  }
  /* the name and receipt take the line (a basis of 0 let the amount's full-width row squeeze them to one letter) */
  .list li.tk > div {
    flex: 1 1 auto;
  }
  .list li.tk .side {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}

/* v112: the line you came to from the dashboard lights up for a moment */
.rri.flash {
  animation: rrflash 1.8s ease-out;
}
tr.flash td {
  animation: trflash 1.8s ease-out;
}
@keyframes trflash {
  0%,
  50% {
    background: color-mix(in srgb, var(--teal) 22%, var(--surface));
  }
  100% {
    background: transparent;
  }
}
@keyframes rrflash {
  0%,
  40% {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    transform: scale(1.01);
  }
  100% {
    outline: 3px solid transparent;
    outline-offset: 6px;
    transform: none;
  }
}

/* v114: pro rata */
.proview:empty {
  display: none;
}
.proview {
  margin: 2px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunk);
}
.proview p {
  margin: 0;
  font-size: 13px;
}
.proline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.proline b {
  font-size: 14.5px;
}

/* e-signing */
.sgedit.modal {
  width: min(1180px, 100%);
  height: calc(calc(100vh / var(--zm, 1)) - 32px);
}
.sgedgrid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  min-height: 0;
  flex: 1;
}
.sgside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.sgwhos {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sgwhos button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  color: var(--fg);
}
.sgwhos button.on {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--tint-fg);
  font-weight: 600;
}
.sgtypes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sgselbox {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}
.sgpages {
  overflow: auto;
  background: var(--sunk);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  min-height: 0;
}
.sgpage {
  position: relative;
  width: 100%;
  max-width: 794px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  background: #fff;
  user-select: none;
  touch-action: none;
}
.sgpage img {
  width: 100%;
  display: block;
}
.sgpgno {
  position: absolute;
  right: 8px;
  bottom: -20px;
  font-size: 11px;
  color: var(--muted);
}
.sgbox {
  position: absolute;
  border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border-radius: 4px;
  cursor: move;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sgbox span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c);
  padding: 0 4px;
  white-space: nowrap;
  pointer-events: none;
}
.sgbox.on {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent);
}
.sgrs {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  background: var(--c);
  cursor: nwse-resize;
  border-radius: 2px 0 3px 0;
}
.sgdot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.sgrows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sgrow {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.sgrow .sgwho {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sgrow .sgwho small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgrow select {
  width: auto;
}
.sgord {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.sgord input {
  width: 52px;
}
.sgppl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.sgp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  background: var(--sunk);
  color: var(--muted);
  border: 1px solid var(--line);
}
.sgp em {
  font-style: normal;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 10px;
}
.sgp svg {
  width: 12px;
  height: 12px;
}
.sgp.signed {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: transparent;
}
.sgp.sent,
.sgp.opened {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: transparent;
}
.sgord2 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  font-weight: 700;
  flex: none;
  margin-right: 10px;
}
.sgord2 svg {
  width: 14px;
  height: 14px;
}
.sgpeople li {
  align-items: center;
}
.sgcode {
  margin-top: 4px;
  font-size: 13px;
}
.sgcode .mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.sghist summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
}
.sgsign.modal {
  width: min(900px, 100%);
  height: calc(calc(100vh / var(--zm, 1)) - 32px);
  padding: 0;
  gap: 0;
  border-top: 0;
  overflow: hidden;
}
.sghead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #0e3b37;
  color: #fff;
  font-size: 13.5px;
}
.sghead > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sghead .small {
  opacity: 0.7;
  margin-right: auto;
}
.sghead .sgurl {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.sghead > span:first-child:not(.sgurl) {
  margin-right: auto;
}
.sghead .iconbtn,
.sghead button {
  color: #fff;
}
.sgbody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f6f5;
  color: #1d2b2a;
}
.sggate {
  margin: auto;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
}
.sggate img {
  width: 180px;
}
.sggate h2 {
  font-size: 24px;
  color: #0e5e57;
}
.sggate .muted {
  color: #5f716e;
}
/* a signature the server did not save: red text, never a filled box (SEC-183) */
.sggate h2.bad {
  color: #b83a2a;
}
.sgcodein {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 28px;
  letter-spacing: 0.35em;
  text-align: center;
  width: 260px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #b9c8c5;
  background: #fff;
  color: #1d2b2a;
  text-transform: uppercase;
}
.sgcodein:focus {
  outline: 0;
  border-color: #11756d;
}
.btn.big {
  padding: 13px 26px;
  font-size: 16px;
  border-radius: 12px;
}
.sgtick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f3e7;
  color: #2e7d46;
  display: grid;
  place-items: center;
}
.sgtick svg {
  width: 32px;
  height: 32px;
}
.sgbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid #dfe6e4;
  font-weight: 600;
  font-size: 13.5px;
}
.sgread {
  flex: 1;
  border-radius: 0;
  background: #e4e9e8;
}
.sgf {
  position: absolute;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font: inherit;
  padding: 0;
}
.sgf span {
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
  white-space: nowrap;
}
.sgf img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sgf.mine {
  border: 2px dashed #c98a00;
  background: rgba(255, 204, 64, 0.28);
  color: #7a5200;
  cursor: pointer;
  animation: sgpulse 2s ease-in-out infinite;
}
.sgf.mine.set {
  border: 1px solid rgba(17, 117, 109, 0.35);
  background: transparent;
  animation: none;
}
.sgf.mine.set span {
  color: #16314d;
  font-size: 12.5px;
  font-weight: 500;
}
.sgf.theirs {
  border: 1px dashed #b9c8c5;
  background: rgba(200, 210, 208, 0.18);
  color: #8a9a97;
}
.sgf.theirs.set {
  border: 0;
  background: transparent;
}
.sgf.theirs.set span {
  color: #16314d;
  font-size: 12.5px;
  font-weight: 500;
}
.sgf.t-tick svg {
  width: 80%;
  height: 80%;
  color: #16314d;
}
.sgf.flash {
  box-shadow: 0 0 0 4px rgba(201, 138, 0, 0.5);
}
@keyframes sgpulse {
  50% {
    background: rgba(255, 204, 64, 0.12);
  }
}
.sgfoot {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  border-top: 1px solid #dfe6e4;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.sgfoot label {
  flex: 1;
  min-width: 240px;
  align-items: flex-start;
}
.sgstyles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.sgstyles button {
  border: 1px solid var(--line);
  background: #fff;
  color: #16314d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 30px;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
}
.sgstyles button.on {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--tint);
}
.sgpad {
  width: 100%;
  height: auto;
  aspect-ratio: 3/1;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
@media (max-width: 760px) {
  .sgedgrid {
    grid-template-columns: 1fr;
  }
  .sgside {
    max-height: calc(34vh / var(--zm, 1));
  }
  .sgrow {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .sghead .small {
    display: none;
  }
  .sghead .sgurl {
    margin-right: auto;
  }
  .sgfoot .btn.big {
    width: 100%;
    justify-content: center;
  }
}
.kpi.click {
  cursor: pointer;
}
.kpi.click:hover {
  border-color: var(--teal);
}
/* ---------- v119 signing, laid out like DocuSign ---------- */
.sgfull {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  animation: pop 0.18s ease-out;
}
.sgtop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  flex: none;
}
.sgtop > b {
  font-size: 16px;
}
.sgtopr {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sgcrumb {
  font-size: 14px;
  color: var(--muted);
}
.sgcrumb b {
  color: var(--fg);
}
.sgsetup {
  flex: 1;
  overflow: auto;
  padding: 24px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.sgsec {
  width: min(860px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sgsec h3 {
  font-size: 17px;
  margin: 0;
}
.sgdocs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.sgdoc {
  width: 170px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
}
.sgdoc img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.sgdoc > div {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sgdoc b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgdoc span {
  font-size: 12px;
  color: var(--muted);
}
.sgdoc .iconbtn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.sgdrop {
  flex: 1;
  min-width: 220px;
  min-height: 190px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}
.sgdrop:hover,
.sgdrop.over {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--tint-fg);
}
.sgdrop.busy {
  opacity: 0.6;
  pointer-events: none;
}
.sgdropic svg {
  width: 30px;
  height: 30px;
  transform: rotate(-90deg);
}
.sgtplpick {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sgchk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.sgchk input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}
.sgrc {
  display: flex;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
}
.sgrcord input {
  width: 46px;
  text-align: center;
  font-weight: 700;
}
.sgrcmain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sgrchead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sgrchead > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sgrchead small {
  color: var(--muted);
  font-size: 12px;
}
.sgrcr {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sgrcr select {
  width: auto;
}
.sgav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
}
.sgcount {
  text-align: right;
}
.sgul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
/* add boxes */
.sgedgrid2 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px 1fr 150px;
}
.sgpal {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sgpal h3 {
  margin: 0;
  font-size: 16px;
}
.sgpalhead {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sgpalg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sgpb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: none;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  cursor: grab;
  text-align: left;
  touch-action: none;
  user-select: none;
}
.sgpb:hover {
  background: var(--sunk);
  border-color: var(--line);
}
.sgpb svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.sgwho2 {
  position: relative;
}
.sgwhobtn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.sgwhobtn > span:not(.sgav) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sgwhobtn small,
.sgwholist small {
  color: var(--muted);
  font-size: 11.5px;
}
.sgdn {
  transform: rotate(-90deg);
  width: 16px;
  height: 16px;
}
.sgwholist {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.sgwholist button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.sgwholist button:hover {
  background: var(--sunk);
}
.sgwholist button > span:not(.sgav) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sgwholist button > svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}
.sgmid {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--sunk);
}
.sgtools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.sgtools select {
  width: auto;
}
.sgsep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}
.sgredo svg {
  transform: scaleX(-1);
}
.sgpages2 {
  flex: 1;
  overflow: auto;
  padding: 18px;
}
.sgzoom {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.sgzoom .sgpage {
  max-width: min(794px, 100%);
}
.sgzoom[style*='width'] .sgpage {
  max-width: none;
}
.sgbox {
  position: absolute;
  border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 16%, #fff);
  border-radius: 4px;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  touch-action: none;
}
.sgbox > span {
  font-size: 10.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 80%, #000);
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sgbox .sgbig {
  font-size: 12px;
}
.sgbox .sgbig svg,
.sgf .sgbig svg {
  width: 13px;
  height: 13px;
}
.sgbox.snd {
  border-style: dashed;
}
.sgbox .sgv {
  color: #16314d;
  font-weight: 500;
  font-size: 11.5px;
}
.sgbox.t-tick {
  justify-content: center;
}
.sgbox.t-tick svg {
  width: 80%;
  height: 80%;
  color: #16314d;
}
.sgbox.on {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent);
  z-index: 2;
}
.sgh {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--c);
  border-radius: 50%;
}
.sgh.nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}
.sgh.ne {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}
.sgh.sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}
.sgh.se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}
.sgfloat {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 6px 8px;
}
.sgfloat select {
  width: auto;
  max-width: 150px;
  padding: 4px 8px;
  font-size: 13px;
}
.sgghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 18%, #fff);
  color: color-mix(in srgb, var(--c) 80%, #000);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.sgthumbs {
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sgthd {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  margin-top: 4px;
}
.sgthd b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgthd span {
  color: var(--muted);
}
.sgth {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sgth:hover {
  border-color: var(--teal);
}
.sgth img {
  width: 100%;
  display: block;
}
.sgth span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d2b2a;
  padding: 0 5px;
  border-radius: 4px;
}
.sgtog {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.sgtog input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sgtog span {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: 0.15s;
  flex: none;
}
.sgtog span::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sgtog input:checked + span {
  background: var(--teal);
}
.sgtog input:checked + span::after {
  left: 18px;
}
.sgtog.sm {
  font-size: 12.5px;
  gap: 6px;
}
.sgtog.sm span {
  width: 30px;
  height: 17px;
}
.sgtog.sm span::after {
  width: 13px;
  height: 13px;
}
.sgtog.sm input:checked + span::after {
  left: 15px;
}
/* the signer's view */
.sgsign2 .sgbody {
  position: relative;
}
.sgbar2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid #dfe6e4;
  flex: none;
}
.sgbar2 > span:first-child {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  min-width: 0;
}
.sgbar2 small {
  color: #5f716e;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgprog {
  font-size: 13px;
  color: #5f716e;
  font-weight: 600;
}
.sgread2 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 76px;
}
.sgread2 .sgread {
  --z: 100%;
  padding: 18px;
}
.sgread2 .sgread .sgpage {
  width: var(--z);
  max-width: none;
}
@media (min-width: 900px) {
  .sgread2 .sgread .sgpage {
    width: calc(var(--z) * 0.82);
    max-width: none;
  }
}
.sgrail {
  background: #fff;
  border-left: 1px solid #dfe6e4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  gap: 4px;
}
.sgrail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: #425552;
  font: inherit;
  font-size: 11px;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.sgrail button:hover {
  background: #eef3f2;
}
.sgrail svg {
  width: 20px;
  height: 20px;
}
.sgf.mine.t-sig,
.sgf.mine.t-ini {
  border-radius: 6px;
}
.sgf.mine .sgbig {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
input.sgf,
select.sgf {
  border: 2px dashed #c98a00;
  background: rgba(255, 204, 64, 0.28);
  color: #16314d;
  font-size: 12px;
  padding: 0 6px;
  border-radius: 4px;
  animation: sgpulse 2s ease-in-out infinite;
  min-height: 0;
  height: auto;
  box-shadow: none;
  width: auto;
}
input.sgf.set,
select.sgf.set {
  border: 1px solid rgba(17, 117, 109, 0.35);
  background: rgba(255, 255, 255, 0.6);
  animation: none;
}
input.sgf:focus,
select.sgf:focus {
  outline: 0;
  border-color: #11756d;
  border-style: solid;
}
label.sgf.t-tick {
  cursor: pointer;
}
label.sgf.t-tick input {
  width: 90%;
  height: 90%;
  margin: 0;
  accent-color: #11756d;
}
.sgover {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(10, 30, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pop 0.2s ease-out;
}
.sgrev {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #fff;
  color: #1d2b2a;
  border-radius: 18px;
  border-top: 6px solid #19a498;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.sgrev img {
  width: 150px;
}
.sgrev h3 {
  margin: 0;
  font-size: 20px;
  color: #0e5e57;
}
.sgrev p {
  margin: 0;
}
.sgrevmsg {
  white-space: pre-wrap;
  background: #f4f6f5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.sgdisc {
  background: #f4f6f5;
  border-radius: 10px;
  padding: 10px 12px;
}
.sgrev .link {
  font-size: inherit;
}
.sgrevfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sgmw {
  position: relative;
}
.sgmenu {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #dfe6e4;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.sgrevfoot .sgmenu {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 4px);
}
.sgmenu button {
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #1d2b2a;
  cursor: pointer;
}
.sgmenu button:hover {
  background: #eef3f2;
}
.sgready {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    opacity 0.25s;
  width: min(620px, calc(100% - 32px));
  background: #0e3b37;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.sgready.on {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sgready > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sgready span {
  font-size: 13px;
  opacity: 0.8;
}
.sgready b {
  font-size: 16px;
}
.sgtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.sgtabs button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.sgtabs button.on {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.sgstyles2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}
.sgstyles2 button {
  display: grid;
  grid-template-columns: 1fr 110px;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: #16314d;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  border-left: 4px solid #0e7c72;
}
.sgstyles2 button.on {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--tint);
}
.sgsb {
  grid-column: 1/3;
  font-size: 11.5px;
  font-weight: 600;
  color: #0e5e57;
}
.sgsn {
  font-size: 30px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}
.sgsi {
  font-size: 28px;
  line-height: 1.25;
}
.sgsid {
  grid-column: 1/3;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #5f716e;
}
.sguprev {
  max-width: 100%;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
}
.sgdl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}
.sgdl dt {
  color: var(--muted);
}
.sgdl dd {
  margin: 0;
}
/* the Signing page and the dashboard */
.sghome {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.sgtiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sgtile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--fg);
  text-align: left;
}
.sgtile b {
  font-size: 24px;
  font-family: Outfit, Figtree, sans-serif;
}
.sgtile span {
  font-size: 12.5px;
  color: var(--muted);
}
.sgtile:hover {
  border-color: var(--teal);
}
.sgtile.on {
  border-color: var(--teal);
  background: var(--tint);
}
.sgtile.bad b {
  color: var(--bad);
}
.sgtile.ok b {
  color: var(--ok);
}
.sgdone {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--ok);
  margin-bottom: 14px;
  animation: pop 0.3s ease-out;
}
.sgdone .sgtick {
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--ok-bg);
  color: var(--ok);
}
.sgdone .sgtick svg {
  width: 22px;
  height: 22px;
}
.sgdone > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sgdone p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.sgdonea {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .sgedgrid2 {
    grid-template-columns: 230px 1fr;
  }
  .sgthumbs {
    display: none;
  }
}
@media (max-width: 760px) {
  .sgedgrid2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sgpal {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: calc(38vh / var(--zm, 1));
  }
  .sgpalg {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sgpb {
    padding: 6px 8px;
    font-size: 13px;
    border-color: var(--line);
  }
  .sghome {
    grid-template-columns: 1fr;
  }
  .sgread2 {
    grid-template-columns: 1fr;
  }
  .sgrail {
    display: none;
  }
  .sgbar2 {
    flex-wrap: wrap;
  }
  .sgbar2 > span:first-child {
    width: 100%;
  }
  .sgtop {
    padding: 8px 12px;
  }
  .sgtop > b,
  .sgcrumb {
    font-size: 13.5px;
  }
  .sgsetup {
    padding: 14px 12px 60px;
  }
  .sgsec {
    padding: 16px;
  }
  .sgdoc {
    width: calc(50% - 6px);
  }
  .sgrc {
    flex-wrap: wrap;
  }
  .sgrcr {
    flex-wrap: wrap;
  }
  .sgdone {
    flex-wrap: wrap;
  }
  .sgstyles2 button {
    grid-template-columns: 1fr 70px;
  }
  .sgsn {
    font-size: 24px;
  }
}
.sgsec > .field,
.sgsec .sgaddp .field,
.sgpal .field,
.sgsec > div > .field {
  flex: none;
}
.sgrcord input,
.sgrcr select,
.sgfloat select,
.sgtools select {
  font: inherit;
  font-size: 13.5px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 10px;
}
.sgrcord input {
  width: 50px;
  padding: 6px 4px;
}
.sgrcord input:focus,
.sgrcr select:focus,
.sgfloat select:focus,
.sgtools select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--tint);
}
.sghead .iconbtn {
  background: rgba(255, 255, 255, 0.14);
}
.sghead .iconbtn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.sgf.set:not(.t-sig):not(.t-ini):not(.t-tick) {
  justify-content: flex-start;
}
.sgf.set > span {
  font-size: 13px;
  color: #16314d;
  font-weight: 500;
}
.sgf img {
  object-position: left center;
}
.sgread .sgpage,
.sgpages2 .sgpage {
  container-type: inline-size;
}
.sgf.set > span,
input.sgf,
select.sgf {
  font-size: clamp(6px, 1.64cqw, 13px);
}
.sgf .sgbig,
.sgbox .sgbig {
  font-size: clamp(7px, 1.5cqw, 12px);
}
.sgbox > span {
  font-size: clamp(6px, 1.35cqw, 10.5px);
}
@media (max-width: 760px) {
  .sgread2 .sgread {
    padding: 10px;
  }
}
.sgrc.open {
  border-style: dashed;
  border-left-style: solid;
  background: color-mix(in srgb, var(--c) 5%, var(--surface));
}
.sgslot {
  flex: none;
}
.sgnote {
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: var(--teal) !important;
  font-weight: 600;
}
.sgnote svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.sglist li > .side,
#sgTpls li > .side,
.sghome li > .side {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.sglist li > .side .pill,
.sglist li > .side .btn {
  white-space: nowrap;
}
.sglist li > .side .pill {
  margin-right: 4px;
}
@media (max-width: 760px) {
  .sglist li {
    grid-template-columns: 1fr;
  }
  .sglist li > .side {
    grid-row: auto;
    grid-column: 1;
    justify-content: flex-start;
    margin-top: 8px;
  }
}
/* ---------- v127: Signing laid out like North Lane Sign ---------- */
.sgtiles2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.sgtile2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font: inherit;
  color: var(--fg);
}
.sgtile2 i {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.sgtile2 b {
  font:
    600 30px/1.1 Outfit,
    Figtree,
    sans-serif;
}
.sgtile2 span {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}
.sgtile2:hover {
  border-color: var(--teal);
}
.sgtile2.on {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal) inset;
}
.sgdesk {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sgrail2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 84px;
}
.sgrail2 > .label {
  margin: 18px 10px 6px;
}
.sgrail2 > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.sgrail2 > button svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}
.sgrail2 > button span {
  flex: 1;
  min-width: 0;
}
.sgrail2 > button em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}
.sgrail2 > button:hover {
  background: var(--sunk);
}
.sgrail2 > button.on {
  background: var(--tint);
  color: var(--tint-fg);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--teal);
}
.sgrail2 > button.on svg {
  color: var(--teal);
}
.sgstart {
  position: relative;
}
.sgstart > summary {
  list-style: none;
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-size: 15px;
}
.sgstart > summary::-webkit-details-marker {
  display: none;
}
.sgstart > summary .sgdn {
  transform: rotate(-90deg);
}
.sgstartm {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.sgstartm button {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.sgstartm button:hover {
  background: var(--sunk);
}
.sgstartm svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 2px;
  flex: none;
}
.sgstartm b {
  display: block;
  font-size: 14px;
}
.sgstartm small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.sgmainh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sgmainh h2 {
  margin: 0;
  font-size: 22px;
}
.sgq {
  width: min(320px, 100%);
}
.card.sgtcard {
  padding: 0;
  overflow: hidden;
}
.sgtcard > .empty {
  margin: 18px;
}
.sgtblw {
  overflow-x: auto;
}
.sgtbl {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.sgtbl th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sgtbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sgtbl tbody tr:last-child td {
  border-bottom: 0;
}
.sgtbl tr.click {
  cursor: pointer;
}
.sgtbl tr.click:hover td {
  background: var(--sunk);
}
.sgsubj b {
  display: block;
  font-size: 14.5px;
}
.sgsubj small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.sgsubj small:not(.muted) {
  color: var(--fg);
  opacity: 0.75;
}
.sgst2 {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.sgwhen {
  white-space: nowrap;
}
.sgwhen small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.sgact {
  text-align: right;
  white-space: nowrap;
}
.sgact .btn + .btn {
  margin-left: 6px;
}
.sgsubj:has(.sgdocic) {
  position: relative;
  padding-left: 60px;
}
.sgdocic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.sgdocic svg {
  width: 16px;
  height: 16px;
}
.btn.sgsignbtn {
  background: #f2be4b;
  color: #3d2a00;
  border: 1px solid #e0a43a;
}
.btn.sgsignbtn:hover {
  background: #edb232;
}
.btn.sgsignbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.sgsignbtn svg {
  color: #3d2a00;
}
/* one document as a page */
.sgenv {
  overflow: auto;
}
.sgenvb {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 22px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sgbackl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 2px;
  cursor: pointer;
  align-self: flex-start;
}
.sgbackl svg {
  width: 16px;
  height: 16px;
}
.sgenvh {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.sgenvh h1 {
  font:
    600 26px/1.25 Outfit,
    Figtree,
    sans-serif;
  margin: 8px 0 4px;
}
.sgenvh p {
  margin: 0;
}
.sgenva {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card.sgc {
  padding: 0;
  overflow: hidden;
}
.sgch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.sgch h3 {
  margin: 0;
  font-size: 17px;
}
.sgkv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 22px;
  padding: 18px 20px;
}
.sgkv small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 3px;
}
.sgkv span {
  font-size: 14.5px;
  font-weight: 500;
}
.sgrcp {
  display: grid;
  grid-template-columns: 4px 30px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.sgrcp:last-child {
  border-bottom: 0;
}
.sgsw {
  align-self: stretch;
  border-radius: 3px;
  background: var(--c);
}
.sgord3 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.sgord3 svg {
  width: 15px;
  height: 15px;
}
.sgwho b {
  display: block;
  font-size: 15px;
}
.sgwho small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.sgwho .sgcode {
  margin: 6px 0 0;
}
.sgrst {
  text-align: right;
  min-width: 0;
}
.sgrst > b {
  display: block;
  font-size: 14px;
}
.sgrst > small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sgrsb {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sgk-ok {
  color: var(--ok);
}
.sgk-warn {
  color: var(--warn);
}
.sgk-bad {
  color: var(--bad);
}
.sgk-info {
  color: var(--info);
}
.sgk-muted {
  color: var(--muted);
}
.sgdthumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 20px;
}
.sgdthumb {
  width: 130px;
  text-align: left;
  color: var(--fg);
}
/* the picture opens the document on screen; View and Download are under it (esign.js NL.sgSee) */
.sgdthumb .sgdpic {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.sgdthumb .sgdbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
}
.sgdthumb .sgdbtns .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sgdthumb .sgdbtns .i {
  width: 14px;
  height: 14px;
}
.sgdthumb img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.sgdthumb .sgdpic:hover img {
  border-color: var(--teal);
}
.sgdthumb b {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}
.sgdthumb small {
  font-size: 12px;
}
.sgmsg {
  margin: 0;
  padding: 16px 20px;
  white-space: pre-wrap;
}
.sghist .sgtbl td {
  font-size: 13.5px;
}
/* the three steps and the footer */
.sgsteps {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
}
.sgsteps span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sgsteps i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.sgsteps i svg {
  width: 13px;
  height: 13px;
}
.sgsteps span.on {
  color: var(--teal);
  font-weight: 600;
}
.sgsteps span.on i {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.sgsteps span.done {
  color: var(--fg);
}
.sgsteps span.done i {
  border-color: var(--teal);
  color: var(--teal);
}
.sgsteps em {
  width: 28px;
  height: 1.5px;
  background: var(--line);
}
.sgtop .sgtopr {
  margin-left: 0;
  min-width: 80px;
  justify-content: flex-end;
}
.sgwzfoot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
/* recipients as rows */
.sgrc {
  display: block;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 8px;
  background: none;
}
#sgPpl > .sgrc:first-child {
  border-top: 0;
}
.sgrc.open {
  background: none;
}
.sgrclab {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sgrcg {
  display: grid;
  grid-template-columns: 62px 4px minmax(170px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 150px auto;
  gap: 10px;
  align-items: end;
}
.sgrcg.noord {
  grid-template-columns: 4px minmax(170px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 150px auto;
}
.sgrcg > .field {
  margin: 0;
}
.sgrcg input,
.sgrcg select {
  width: 100%;
}
.sgrcbar {
  align-self: stretch;
  width: 4px;
  border-radius: 3px;
  background: var(--c);
}
.sgrc.open .sgrcbar {
  background: repeating-linear-gradient(var(--c) 0 6px, transparent 6px 10px);
}
.sgrcn {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  min-width: 0;
}
.sgrcn b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgrcn small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sgrcstaff {
  grid-column: span 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  align-self: center;
}
.sgrcg .sgslot {
  grid-column: span 3;
}
.sgrcr {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 42px;
}
.sgsetup .sgkv {
  padding: 0;
}
.sgsec0 {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 6px;
}
.sgsec0 > h3 {
  padding: 0 22px;
}
.sgsec0 .sgrcp:first-of-type {
  border-top: 1px solid var(--line);
}
.sgsndr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sgsndr small {
  width: 100%;
  color: var(--muted);
  font-size: 12.5px;
}
.sgrevnote {
  width: min(860px, 100%);
  margin: 0;
}
/* the box editor: palette, pages on a table, properties on the right */
.sgedgrid2 {
  grid-template-columns: 250px minmax(0, 1fr) 280px;
}
.sgpb .sgpi {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
  display: grid;
  place-items: center;
  flex: none;
}
.sgpb .sgpi svg {
  width: 16px;
  height: 16px;
  color: var(--c);
}
.sgpages2 {
  background: color-mix(in srgb, var(--line) 75%, var(--bg));
}
.sgprops {
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sgprops h3 {
  margin: 0;
  font-size: 16px;
}
.sgprops > .label {
  margin-top: 10px;
}
#sgProps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#sgProps .field {
  flex: none;
  margin: 0;
}
.sgpropnote {
  margin: 0;
  background: var(--tint);
  color: var(--tint-fg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.sgsum {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.sgsum i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.sgsum span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sgpropwarn {
  margin: 0;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
}
.sgprops .sgth {
  width: 120px;
}
/* signing: teal bar, a review bar across the top, yellow tags beside the boxes */
.sghead {
  background: #11756d;
  min-height: 60px;
  padding: 10px 18px;
}
.sghead > span.sgwm {
  margin-right: 8px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 3px;
}
.sgwm b {
  font:
    800 15px/1 Outfit,
    Figtree,
    sans-serif;
  letter-spacing: 0.01em;
}
.sgwm small {
  font-size: 7.5px;
  letter-spacing: 0.32em;
  margin-top: 3px;
}
.sghead > span.sghd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  margin-right: auto;
  min-width: 0;
}
.sghd b {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.sghd small {
  font-size: 12.5px;
  opacity: 0.82;
}
.sghead .sgchip {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  white-space: nowrap;
}
.sgchip svg {
  width: 14px;
  height: 14px;
}
.sghead .btn.sghbtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}
.sghead .btn.sghbtn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sghead .sgmenu button {
  color: #1d2b2a;
}
.sgconsent {
  display: flex;
  flex-direction: row;
  align-self: stretch;
  text-align: left;
  margin: 0;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #dfe6e4;
  color: #1d2b2a;
  flex: none;
  width: auto;
  max-height: none;
  border-radius: 0;
  border-top: 0;
  overflow: visible;
}
.sgcl {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sgcl > b {
  font-size: 15px;
}
.sgconsent .sgrevmsg {
  background: none;
  padding: 0;
  color: #5f716e;
}
.sgconsent .sgchk {
  margin-top: 4px;
}
.sgconsent .sgdisc {
  max-width: 720px;
}
.sgwait .sgbar2 {
  display: none;
}
.sgwait .sgf.mine {
  pointer-events: none;
}
.sgwait .sgtag {
  display: none;
}
.sgf.mine,
input.sgf,
select.sgf {
  border: 1.5px solid #e0a43a;
  background: #fff4cf;
  color: #6b4a00;
  animation: none;
}
.sgtag {
  position: absolute;
  z-index: 3;
  transform: translateY(-50%);
  background: #f2be4b;
  color: #3d2a00;
  border: 0;
  font:
    700 clamp(7px, 1.35cqw, 12px) / 1 Figtree,
    sans-serif;
  padding: 0.45em 1.25em 0.45em 0.75em;
  clip-path: polygon(0 0, calc(100% - 0.65em) 0, 100% 50%, calc(100% - 0.65em) 100%, 0 100%);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 3px 0 0 3px;
}
.sgtag.r {
  padding: 0.45em 0.75em 0.45em 1.25em;
  clip-path: polygon(0.65em 0, 100% 0, 100% 100%, 0.65em 100%, 0 50%);
  border-radius: 0 3px 3px 0;
}
.sgtag.cur {
  animation: sgnudge 1.2s ease-in-out infinite;
}
.sgtag.r.cur {
  animation-name: sgnudger;
}
@keyframes sgnudge {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(-5px, -50%);
  }
}
@keyframes sgnudger {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(5px, -50%);
  }
}
@media (max-width: 1000px) {
  .sgedgrid2 {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sgprops {
    display: none;
  }
  .sgsteps span:not(.on) {
    font-size: 0;
    gap: 0;
  }
  .sgsteps em {
    width: 14px;
  }
}
@media (max-width: 900px) {
  .sgdesk {
    grid-template-columns: minmax(0, 1fr);
  }
  .sgrail2 {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sgrail2 > .label {
    display: none;
  }
  .sgrail2 > .sgstart {
    width: 100%;
  }
  .sgrail2 > button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .sgrail2 > button svg {
    display: none;
  }
  .sgrail2 > button span {
    flex: none;
  }
  .sgrail2 > button.on {
    box-shadow: none;
    border-color: var(--teal);
  }
  .sgrcg,
  .sgrcg.noord {
    grid-template-columns: 1fr 1fr;
    border-left: 4px solid var(--c);
    padding-left: 12px;
  }
  .sgrcbar {
    display: none;
  }
  .sgrcg .sgrcn,
  .sgrcg .sgslot,
  .sgrcstaff {
    grid-column: 1/-1;
  }
  .sgrcg .sgrcord {
    grid-column: 1;
  }
}
@media (max-width: 760px) {
  .sgtiles2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sgtile2 {
    padding: 12px 14px;
  }
  .sgtile2 b {
    font-size: 24px;
  }
  .sgtbl,
  .sgtbl tbody {
    display: block;
  }
  .sgtbl thead {
    display: none;
  }
  .sgtbl tr {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .sgtbl tbody tr:last-child {
    border-bottom: 0;
  }
  .sgtbl td {
    border: 0;
    padding: 0;
    min-width: 0;
    display: block;
  }
  .sgtbl td.sgsubj {
    grid-column: 1/-1;
  }
  .sgtbl td.sgact {
    grid-column: 1/-1;
    text-align: left;
  }
  .sgtbl td.sgact:empty {
    display: none;
  }
  .sgenvb {
    padding: 12px 14px 50px;
  }
  .sgenvh h1 {
    font-size: 21px;
  }
  .sgrcp {
    grid-template-columns: 4px 28px minmax(0, 1fr);
    padding: 12px 14px;
  }
  .sgrst {
    grid-column: 3;
    text-align: left;
  }
  .sgrsb {
    justify-content: flex-start;
  }
  .sgtop .sgsteps {
    display: none;
  }
  .sgwzfoot {
    padding: 10px 12px;
  }
  .sgwzfoot .btn {
    flex: 1;
    justify-content: center;
  }
  .sghead .sgchip,
  .sghead > span.sgwm {
    display: none;
  }
  .sghd small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .sgkv {
    grid-template-columns: 1fr 1fr;
  }
  .sgrcg .sgrcord {
    max-width: 90px;
  }
  .sgconsent {
    flex-direction: column;
    align-items: stretch;
  }
  .sgconsent .btn {
    justify-content: center;
  }
}
.combo.off {
  opacity: 0.6;
}
.combo.off input {
  cursor: not-allowed;
  background: var(--sunk);
}
/* v132 roles: tick, middle or cross for every permission, like Discord */
.trikey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.trikey span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trikey .trk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  padding: 0;
}
.trikey .trk svg.i {
  width: 14px;
  height: 14px;
  margin: 0;
}
.trk i {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}
.trk.yes {
  background: var(--ok);
  color: #fff;
}
.trk.no {
  background: var(--bad);
  color: #fff;
}
.trk.mid {
  background: var(--sunk);
  color: var(--muted);
  border: 1px solid var(--line);
}
.trisearch {
  margin-bottom: 12px;
  flex: none;
}
.trig {
  padding-bottom: 6px;
}
.trig .cardhead {
  flex-wrap: wrap;
  gap: 8px;
}
.trall {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.trirow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.trirow > div {
  min-width: 0;
}
.trirow b {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.trirow .d {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.trio {
  display: block;
  font-size: 12px;
  color: var(--ok);
  margin-top: 3px;
}
.tri {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--sunk);
}
.tri label {
  position: relative;
  cursor: pointer;
}
.tri input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.tri label > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  color: var(--muted);
  transition:
    background 0.12s,
    color 0.12s;
}
.tri label + label > span {
  border-left: 1px solid var(--line);
}
.tri .i {
  width: 15px;
  height: 15px;
}
.tri i {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
}
.tri .tno input:checked + span {
  background: var(--bad);
  color: #fff;
}
.tri .tyes input:checked + span {
  background: var(--ok);
  color: #fff;
}
.tri .tmid input:checked + span {
  background: var(--card, #fff);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tri input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.tri.off {
  opacity: 0.55;
}
.tri.off label {
  cursor: not-allowed;
}
.triclash {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--ok-bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 12.5px;
}
.triclash b {
  color: var(--ok);
}
@media (max-width: 640px) {
  .trirow {
    flex-wrap: wrap;
  }
  .tri label > span {
    width: 42px;
  }
}
/* v133 career ladders and giving roles */
.ladder {
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lsteps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.lsteps .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.lsteps span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  color: var(--muted);
}
.lsteps span.past {
  color: var(--fg);
}
.lsteps span.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}
.ladder .actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.givepick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
}
.givepick label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13.5px;
}
.givepick label small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
}
.givepick label:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}
/* v135 promotions: scheduled moves and the congratulations pop-up */
.lmcongrats {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.lmcongrats input {
  margin-top: 3px;
}
.lmcongrats b {
  display: block;
  font-weight: 600;
}
.lmcongrats small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.lmcongrats:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, transparent);
}
.lmplan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 0 0 10px;
  border-radius: 10px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 13px;
}
.lmplan span {
  flex: 1;
  min-width: 0;
}
.lmplan .i {
  width: 15px;
  height: 15px;
}
.modal.congrats {
  position: relative;
  overflow: hidden;
  max-width: 460px;
  text-align: center;
  padding: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 16%, var(--card, #fff)) 0%, var(--card, #fff) 55%);
}
.congrats .confetti,
.congrats .balloons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.congrats .balloons {
  z-index: 0;
}
.cgin {
  position: relative;
  z-index: 1;
  padding: 38px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cgbadge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--teal) 40%, transparent);
  margin-bottom: 6px;
}
.cgbadge .i {
  width: 32px;
  height: 32px;
}
.cgkick {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
}
.congrats h2 {
  font-size: 26px;
  margin: 0;
}
.cgline {
  font-size: 16px;
  margin-top: 4px;
}
.cgsub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}
/* v141 cash in the office */
.cashtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-left: 4px solid var(--teal);
}
.cashtop.old {
  border-left-color: var(--warn);
}
.cashtop > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cashv {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cashpick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  margin-bottom: 10px;
}
.cashpick label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.cashpick label > span {
  flex: 1;
  min-width: 0;
}
.cashpick small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.cashpick label:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, transparent);
}

/* v143 Match page and client screen */
.mtools {
  flex-wrap: wrap;
  gap: 10px;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.mtile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.mtile:hover {
  box-shadow: 0 8px 24px rgba(12, 79, 74, 0.12);
  transform: translateY(-2px);
}
.mimg {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--sunk);
  overflow: hidden;
}
.mimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mimg .part {
  height: 100%;
}
.mimg .part svg {
  width: 100%;
  height: 100%;
}
.mwhen {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  color: #fff;
  background: var(--ok);
}
.mwhen.soon {
  background: #b7791f;
}
.mimg .mwhen {
  position: absolute;
  top: 10px;
  left: 10px;
}
.mbody {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
/* a pop-up's own body shares the name: it lines up with the pop-up's title, not 14px further in like a Match card's
   words, and the search-first pop-ups' words sit a form's gap above their boxes (owner, 23/11/2026: nothing "not
   inline") */
.modal > .mbody {
  padding: 0;
}
.modal.pick > .mbody {
  gap: 14px;
}
.mprice {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mprice small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.mprice.big {
  font-size: 26px;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.maddr {
  font-size: 15px;
}
.marea {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.mfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--fg);
  margin-top: 4px;
}
.mfacts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mfacts svg,
.mfits svg,
.moff svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.mfits,
.moff {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
}
.moff {
  color: #9a5b00;
}
.mtacts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}
.mmatch {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 20px;
  align-items: start;
}
.mfilter {
  position: sticky;
  top: 12px;
}
.mfilter .frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mfilter .frow > [hidden] {
  display: none;
}
/* Match > Match a person: each row of "What they want" spaced from the one above, like a form (the labels sat on the
   boxes above them) */
.mfilter > :is(.field, .frow, [data-mfres]) + :is(.field, .frow, [data-mfres]),
.mfilter :not(.frow) > :is(.field, .frow, [data-mfres]) + :is(.field, .frow, [data-mfres]) {
  margin-top: 10px;
}
.mchk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 6px 0 12px;
}
.mfbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mtitle {
  margin: 4px 0 12px;
  font-size: 16px;
}
.mtitle small {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}
.mgrid + .mtitle {
  margin-top: 26px;
}
.mpubbar {
  margin-top: 20px;
  text-align: center;
}
@media (max-width: 860px) {
  .mmatch {
    grid-template-columns: 1fr;
  }
  .mfilter {
    position: static;
  }
}
/* client screen */
.layer.publayer {
  padding: 0;
  background: rgba(8, 30, 28, 0.6);
}
.pubscreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: auto;
}
.pubtop {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: linear-gradient(120deg, #11756d, #0c4f4a);
  color: #fff;
  flex-wrap: wrap;
}
.pubtop img {
  height: 38px;
}
.pubtop b {
  display: block;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.pubtop small {
  letter-spacing: 0.2em;
  font-size: 10px;
  color: #bfe3de;
}
.btn.pubclose {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.pubmain {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}
.pubmain h1 {
  font-size: 28px;
  margin: 0 0 20px;
}
.pubempty {
  color: var(--muted);
  font-size: 16px;
}
.mtile.pub .mprice {
  font-size: 22px;
}
.pubdetail {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  width: min(980px, calc(calc(100vw / var(--zm, 1)) - 32px));
  max-height: calc(calc(100vh / var(--zm, 1)) - 40px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.pubdimg {
  position: relative;
  background: var(--sunk);
  min-height: 320px;
}
.pubdimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pubdimg .part,
.pubdimg .part svg {
  width: 100%;
  height: 100%;
}
.pubnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pubnav.l {
  left: 12px;
}
.pubnav.r {
  right: 12px;
}
.pubnav svg {
  width: 18px;
  height: 18px;
}
.pubcount {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 99px;
}
.pubdbody {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pubdhead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pubdhead h2 {
  margin: 8px 0 2px;
  font-size: 22px;
}
.pubdhead p {
  margin: 0;
  color: var(--muted);
}
.pubfacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.pubfacts div {
  background: var(--sunk);
  border-radius: 10px;
  padding: 8px 10px;
}
.pubfacts span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pubsum {
  font-weight: 600;
  margin: 0;
}
.pubdesc {
  margin: 0;
  color: var(--fg);
  line-height: 1.55;
}
.pubdfoot {
  margin-top: auto;
}
@media (max-width: 760px) {
  .pubdetail {
    grid-template-columns: 1fr;
  }
  .pubdimg {
    min-height: 220px;
    aspect-ratio: 3 / 2;
  }
  .pubtop {
    padding: 12px 16px;
  }
  .pubmain {
    padding: 18px 16px;
  }
  .btn.pubclose {
    margin-left: auto;
  }
  .pubdhead {
    flex-direction: column;
  }
  .mprice.big {
    align-items: flex-start;
  }
}

.pubwrap {
  display: grid;
  grid-template-columns: minmax(270px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}
.pubside {
  position: sticky;
  top: 90px;
}
.pubfilter h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.pubfilter [data-mfres][hidden] {
  display: none;
}
.pubcount2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.pubh2 {
  font-size: 20px;
  margin: 28px 0 14px;
}
@media (max-width: 860px) {
  .pubwrap {
    grid-template-columns: 1fr;
  }
  .pubside {
    position: static;
  }
}

.pubside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pubfind {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.pubrecent h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.publist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.pubwho {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.pubwho:hover {
  border-color: var(--teal);
  background: var(--tint);
}
.pubwho b {
  letter-spacing: 0.04em;
}
.pubwho span {
  font-size: 12px;
  color: var(--muted);
}
.pubpicked {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--tint-fg);
  font-size: 14px;
}
.pubpicked svg {
  width: 16px;
  height: 16px;
}
.pubpicked .link {
  margin-left: auto;
}

/* v152 job role on the welcome banner */
.hellorole {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--hello-fg) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hello-fg) 28%, transparent);
  color: var(--hello-fg);
  position: relative;
  top: -2px;
}
#helloClock {
  font-variant-numeric: tabular-nums;
}

/* available from date on a property being got ready */
.pravail,
.pavail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pravail {
  margin: 8px 0 4px;
}
.pravail > span {
  flex: 1;
}
.pravail b,
.pavail b {
  color: var(--fg);
}
.pavail {
  margin-top: 6px;
}
.pravail .i,
.pavail .i {
  width: 15px;
  height: 15px;
}
.mappedit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 4px 0 8px;
}
/* the inventory step ticks itself from the check-in report, so it isn't clickable */
.tchecks label.tauto {
  cursor: default;
}
.tchecks li:not(.done) label.tauto:hover .tnum {
  border-color: var(--line);
}
/* a no-show in the week view */
.appt.noshow {
  opacity: 0.6;
  text-decoration: line-through;
}
/* a cancelled appointment stays in the calendar, crossed out (owner 22/11/2026); "Cancelled" in red is not crossed */
.appt.off,
.chip.off,
.ev.off {
  --c: var(--muted);
  opacity: 0.75;
}
.appt.off b,
.appt.off time,
.appt.off .aw,
.ev.off b,
.chip.off {
  text-decoration: line-through;
}
.cfl.off {
  color: var(--bad);
}
.legendT.calkey .kd.off {
  background: var(--muted);
}
/* Keys locked behind a passcode */
.keylock {
  text-align: center;
  padding: 40px 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.keylock > .i {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

/* Match > Call list: properties on the left, people to ring on the right */
.mcalls {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.mclist ul,
.mclist2 {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mclist {
  position: sticky;
  top: 86px;
  max-height: calc(calc(100vh / var(--zm, 1)) - 110px);
  overflow: auto;
}
.mcprop {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.mcprop:hover {
  background: var(--tint);
}
.mcprop.on {
  background: var(--tint);
  border-color: var(--teal);
}
.mcth {
  width: 54px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
  background: var(--line);
}
.mcth img,
.mcth svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mcpt {
  flex: 1;
  min-width: 0;
}
.mcpt b {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcpt small {
  color: var(--muted);
  font-size: 12px;
}
.mcn {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.mcall {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.mclist2 .mcall:first-child {
  border-top: 0;
}
.mcmain {
  flex: 1;
  min-width: 0;
}
.mcmain p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.mcnum {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.mclast {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mclast .i {
  width: 13px;
  height: 13px;
}
.mcall.o-keen .mclast {
  color: var(--ok);
}
.mcall.o-no .mclast {
  color: var(--bad);
}
.mcside {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: none;
}
@media (max-width: 900px) {
  .mcalls {
    grid-template-columns: 1fr;
  }
  .mclist {
    position: static;
    max-height: 320px;
  }
  .mcall {
    flex-wrap: wrap;
  }
}

/* property brochure: a preview of two A4 pages, printed from a hidden frame */
.brwrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.brbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brbar > div {
  display: flex;
  flex-direction: column;
}
.brpages {
  flex: 1;
  overflow: auto;
  padding: 24px 16px 60px;
  display: grid;
  justify-content: center;
  gap: 24px;
  grid-template-columns: minmax(0, 794px);
}
.brpage {
  width: 794px;
  max-width: 100%;
  min-height: 1123px;
  background: #fff;
  color: #14211f;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  padding: 40px 52px 70px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}
.brhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.brwm {
  height: 40px;
  width: auto;
}
.brhead.sm .brwm {
  height: 26px;
}
.brkick {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #11756d;
}
.brwhere {
  font-weight: 600;
  color: #5a6d6a;
  font-size: 12.5px;
}
.brcover {
  height: 400px;
  border-radius: 6px;
  overflow: hidden;
  background: #11756d;
}
.brcover img,
.brart,
.brart svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brtitle {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dde3e2;
}
.brtitle h1 {
  font-size: 30px;
  margin: 0;
  line-height: 1.15;
  color: #14211f;
}
.brtitle p {
  margin: 4px 0 0;
  color: #5a6d6a;
}
.brprice {
  text-align: right;
  white-space: nowrap;
}
.brprice b {
  display: block;
  font-size: 26px;
  color: #11756d;
}
.brprice small {
  color: #5a6d6a;
}
.brfacts {
  font-weight: 600;
  margin: 14px 0 6px;
}
.brfacts i {
  font-style: normal;
  color: #11756d;
  margin: 0 8px;
}
.bravail {
  color: #11756d;
  font-weight: 700;
  margin: 0 0 6px;
}
.brsum {
  font-size: 15px;
  margin: 12px 0;
}
.brpage h2 {
  font-size: 16px;
  color: #11756d;
  margin: 22px 0 8px;
}
.brfeat {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 18px;
}
.brfeat li {
  break-inside: avoid;
  margin-bottom: 4px;
}
.brfeat li::marker {
  color: #11756d;
}
.brgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.brgrid.n1 {
  grid-template-columns: 1fr;
}
.brgrid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.brgrid.n1 img {
  height: 320px;
}
.brdesc {
  margin: 0;
}
.brdl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  margin: 0;
}
.brdl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #dde3e2;
}
.brdl dt {
  color: #5a6d6a;
}
.brdl dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.brview {
  margin-top: 24px;
  background: #e8f2f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: grid;
  gap: 2px;
}
.brview b {
  color: #11756d;
  font-size: 16px;
}
.brnote {
  font-size: 11px;
  color: #5a6d6a;
  margin-top: 18px;
}
.brfoot {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 26px;
  border-top: 1px solid #dde3e2;
  padding-top: 8px;
  font-size: 10.5px;
  color: #5a6d6a;
  text-align: center;
}
body.brprint {
  background: #fff;
  margin: 0;
}
body.brprint .brpages {
  padding: 0;
  gap: 0;
  display: block;
  overflow: visible;
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body.brprint .brpage {
    width: 210mm;
    height: 297mm;
    min-height: 0;
    box-shadow: none;
    page-break-after: always;
    overflow: hidden;
  }
}
@media (max-width: 840px) {
  .brpage {
    padding: 24px 20px 70px;
    min-height: 0;
  }
  .brcover {
    height: 240px;
  }
  .brtitle {
    flex-direction: column;
  }
  .brprice {
    text-align: left;
  }
  .brfeat,
  .brdl {
    columns: 1;
    grid-template-columns: 1fr;
  }
}

/* Needs attention summary */
.attlist li.attcat > .side {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.attlist li.attcat > .side svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s;
}
.attlist li.attcat.on > .side svg {
  transform: rotate(90deg);
}
.attlist .attn {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.attlist .attn.bad {
  background: var(--bad-bg, #fdecec);
  color: var(--bad, #c0392b);
}
.attlist .attn.warn {
  background: var(--warn-bg, #fdf3e2);
  color: var(--warn, #b7791f);
}
.attlist .attn.info {
  background: var(--info-bg, #eaf2fb);
  color: var(--info, #2b6cb0);
}
.attlist li.attitems {
  display: block;
  padding: 0 0 12px 14px;
  border-left: 3px solid var(--line);
  margin-left: 2px;
}
.attlist li.attitems ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.attlist li.attitems li {
  padding: 8px 0;
}

/* Dashboard layout: one pool of cards spread over two even columns by NL.dashLayout */
.dgrid {
  align-items: start;
}
.dgrid.two {
  align-items: stretch;
}
.dgrid.two .dcol > .dcard:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.dgrid.two .dcol > .dcard:last-child > .card {
  flex: 1 1 auto;
}
.dslim {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.dslim:empty {
  display: none;
}
/* scoped to the dashboard: the calendar's day columns are also called .dcol, and an empty day must still show */
.dgrid > .dcol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.dgrid > .dcol:empty {
  display: none;
}
.dcard {
  min-width: 0;
}
.dcard .cardhead h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dic {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--tint-fg);
}
.dic svg {
  width: 15px;
  height: 15px;
}
.dcard.slim > .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.dcard.slim .cardhead {
  margin: 0;
  flex: 1 1 auto;
}
.dcard.slim p.note {
  margin: 0;
}
.dcard.slim .cardhead > :not(h3) {
  display: none;
}
@media (max-width: 1100px) {
  .dgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .content > .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .content > .kpis .card {
    padding: 12px 14px;
  }
  .content > .kpis .kpi .v {
    font-size: 22px;
  }
}

/* Compliance page: one card per property */
.cptiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cptile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-left: 4px solid var(--line);
}
.cptile b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}
.cptile span {
  font-size: 12.5px;
  color: var(--muted);
}
.cptile.bad {
  border-left-color: var(--bad);
}
.cptile.bad b {
  color: var(--bad);
}
.cptile.warn {
  border-left-color: var(--warn);
}
.cptile.warn b {
  color: var(--warn);
}
.cptile.info {
  border-left-color: var(--info);
}
.cptile.ok {
  border-left-color: var(--ok, #2f855a);
}
.cplist {
  padding: 0;
  overflow: hidden;
}
.cpline {
  border-top: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--line);
}
.cpline:first-child {
  border-top: 0;
}
.cpline.cp-bad {
  box-shadow: inset 4px 0 0 var(--bad);
}
.cpline.cp-warn {
  box-shadow: inset 4px 0 0 var(--warn);
}
.cpline.cp-info {
  box-shadow: inset 4px 0 0 var(--info);
}
.cpline.cp-ok {
  box-shadow: inset 4px 0 0 var(--ok);
}
.cpline.on {
  background: var(--sunk);
}
.cpsum {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(0, 2fr) minmax(150px, 1fr) 18px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 16px 11px 20px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.cpsum:hover .cpwhere b {
  color: var(--teal);
}
.cpwhere,
.cpnext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cpwhere b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cpwhere small,
.cpnext small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cpnext b {
  font-size: 13px;
  font-weight: 600;
}
.cpnext b.bad {
  color: var(--bad);
}
.cpnext b.warn {
  color: var(--warn);
}
.cpnext b.info {
  color: var(--info);
}
.cpnext b.ok {
  color: var(--ok);
  font-weight: 500;
}
.cptags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.cptag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--sunk);
  color: var(--muted);
}
.cptag i {
  font-style: normal;
  font-weight: 500;
}
.cptag svg {
  width: 12px;
  height: 12px;
}
.cptag.ok {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ok);
}
.cptag.bad {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bad);
}
.cptag.warn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--warn);
}
.cptag.info {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--info);
}
.cpchev svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s;
}
.cpline.on .cpchev svg {
  transform: rotate(90deg);
}
.cpmore {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 14px 20px;
}
.cpmore .cprows li {
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) auto;
  gap: 14px;
  align-items: center;
}
.cpmore .cpn {
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .cpmore .cprows li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .cpmore .cpn {
    justify-content: space-between;
  }
}
#cpkind {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  padding: 8px 12px;
}
.cpll {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
.cpll svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: none;
}
.cpll a {
  color: inherit;
}
.cpll.warn {
  color: var(--warn);
}
.cprows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cprows li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sunk);
  border-left: 3px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cprows li.cps-bad {
  border-left-color: var(--bad);
}
.cprows li.cps-warn {
  border-left-color: var(--warn);
}
.cprows li.cps-info {
  border-left-color: var(--info);
}
.cpn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cpstep {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cpbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cpok {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.cpok svg {
  width: 15px;
  height: 15px;
  color: var(--ok, #2f855a);
  flex: none;
  margin-top: 1px;
}
@media (max-width: 760px) {
  .cpsum {
    grid-template-columns: minmax(0, 1fr) 18px;
    row-gap: 8px;
  }
  .cptags,
  .cpnext {
    grid-column: 1;
  }
  .cpnext {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
  }
  .cpchev {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 1100px) {
  .cptiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* sale progression: who does each step, and both solicitors */
.steps .stwho {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 1px;
  background: var(--tint);
  color: var(--tint-fg);
}
.steps .stwho.sol {
  background: var(--sunk);
  color: var(--muted);
}
.solgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.solside {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.solside .cardhead {
  margin-bottom: 8px;
}
.solside h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.solside .kv dd {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .solgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the big Sale progression button on an agreed sale */
.btn.prsale {
  padding: 10px 18px;
  font-size: 15px;
}
.btn.prsale small {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 500;
}
.solref {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--tint-fg);
  font-size: 12.5px;
}
.solref svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Right to Rent */
.rtlist li.rtrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rtlist li.rtrow > div {
  flex: 1 1 240px;
  min-width: 0;
}
.rtlist li.rtrow small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.rtlist li.rtrow small.rtsub {
  color: var(--ink-2, var(--muted));
}
.rtlist li.rtrow .side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}
.rtfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.rtfoot .note {
  margin: 0;
}

/* Settings: orange and red day counts side by side */
.stkpair {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stkpair label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- inspections, redone for phones first ---------- */
.instiles .cptile {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.instiles .cptile:not(.bad):not(.warn):not(.info) b {
  color: var(--muted);
}
.instools .seg {
  flex: 0 0 auto;
}
.irlist {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.irow {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.irow:first-child {
  border-top: 0;
}
.irow.book {
  cursor: default;
}
.irow:hover .imain b {
  color: var(--teal);
}
.irow.book:hover .imain b {
  color: inherit;
}
.irow .imain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.irow .imain b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.irow .imain small {
  color: var(--muted);
  font-size: 12.5px;
}
.irow .side {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.itag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--sunk);
  color: var(--fg);
}
.itag.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.itag.info {
  background: var(--info-bg);
  color: var(--info);
}
.itag.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.iprog {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--sunk);
  overflow: hidden;
  margin-top: 4px;
  max-width: 240px;
}
.iprog i {
  display: block;
  height: 100%;
  background: var(--teal);
}
.inschoose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 12px;
}
.inschoose button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.inschoose button.ok {
  border-left-color: var(--ok);
}
.inschoose button.info {
  border-left-color: var(--info);
}
.inschoose button.warn {
  border-left-color: var(--warn);
}
.inschoose button:hover {
  background: var(--tint);
}
.inschoose b {
  font-size: 15.5px;
}
.inschoose small {
  color: var(--muted);
  font-size: 12.5px;
}

/* the inspection itself: a full-height screen on a phone, a wide panel on a computer */
.insrun {
  width: min(720px, 100%);
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  animation: slide 0.22s ease-out;
}
/* tablets: the whole screen, with the steps kept to a comfortable width */
@media (min-width: 761px) and (max-width: 1100px) {
  .insrun {
    width: 100%;
  }
  .insrun .irbody,
  .insrun .irfoot {
    padding-left: max(20px, calc((100% - 760px) / 2));
    padding-right: max(20px, calc((100% - 760px) / 2));
  }
}
.irhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.irtitle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.irtitle .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.irtitle b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.irtitle small {
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.idot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}
.idot.ok {
  background: var(--ok);
}
.idot.info {
  background: var(--info);
}
.idot.warn {
  background: var(--warn);
}
.irbar {
  height: 4px;
  background: var(--sunk);
}
.irbar i {
  display: block;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s;
}
.irbody {
  gap: 14px;
}
body:has(.irfoot) .toast {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
}
.irfoot {
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.irfoot .btn {
  min-height: 48px;
  justify-content: center;
}
.irwide {
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.irnext {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.irprog {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.irprog b {
  color: var(--fg);
}
/* the progress line with "Cancel the check-in" beside it, at the top where it is seen (19/11/2026) */
.irprogrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.irprogrow .btn {
  margin-top: 10px;
}
.irsteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.irsteps button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.irsteps button:hover {
  border-color: var(--teal);
}
.irsteps button > .i:last-child {
  color: var(--muted);
}
.irn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.irn .i {
  width: 16px;
  height: 16px;
}
.irsteps .done .irn,
.irn.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.irst {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.irst b {
  font-size: 15px;
  font-weight: 600;
}
.irst small {
  color: var(--muted);
  font-size: 12.5px;
}
.ircond {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ircond.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ircond.col {
  grid-template-columns: 1fr;
}
.ircond button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.ircond.col button {
  align-items: flex-start;
  text-align: left;
  min-height: 52px;
  padding: 10px 14px;
}
.ircond button b {
  font-size: 15.5px;
}
.ircond button small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}
.ircond button.on.ok,
.irchips button.on.ok {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}
.ircond button.on.warn,
.irchips button.on.warn {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn);
}
.ircond button.on.bad,
.irchips button.on.bad {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: var(--bad);
}
.irchips button.on.grey {
  background: var(--sunk);
  border-color: var(--muted);
  color: var(--fg);
}
.ircond button.on small {
  color: inherit;
}
.irilist,
.irqlist {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}
.irilist > li,
.irqlist > li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.irilist > li:first-child,
.irqlist > li:first-child {
  border-top: 0;
}
.irilist small.irworse {
  color: var(--bad);
  font-weight: 600;
}
.irilist > li.worse {
  box-shadow: inset 3px 0 0 var(--bad);
  padding-left: 10px;
}
.irirow,
.irq {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.irq b {
  flex: 1 1 180px;
  font-weight: 600;
  font-size: 14.5px;
}
.irin {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.irin b {
  font-weight: 600;
  font-size: 14.5px;
}
.irin small {
  color: var(--muted);
  font-size: 12px;
}
.irin .irnote {
  color: var(--fg);
  opacity: 0.8;
}
.irchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.irchips button {
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.iriopen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.iriopen textarea {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 12px;
  width: 100%;
  min-height: 64px;
  resize: vertical;
}
.iriopen textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--tint);
}
.irthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}
.irthumb {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: var(--sunk);
  cursor: pointer;
}
.irthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.irthumb.out img {
  opacity: 0.35;
}
.irthumb em {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(8, 24, 22, 0.75);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
}
.irvid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.irphbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.irthumbs + .irphbtns {
  margin-top: 0;
}
/* LATER-8 (GDPR-017): what not to capture, by the camera buttons */
.irphhint {
  margin: 8px 0 0;
}
.card > .btn.irwide {
  width: 100%;
}
.irnum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.irnum > span {
  font-weight: 600;
  display: flex;
  flex-direction: column;
}
.irnum > span small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.irstep {
  display: flex;
  align-items: center;
  gap: 6px;
}
.irstep button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.irstep b {
  min-width: 34px;
  text-align: center;
  font-size: 18px;
}
.irmeter.off {
  opacity: 0.8;
}
.irnone {
  margin-top: 8px;
}
.irwas summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  cursor: pointer;
  list-style: none;
}
.irwas summary::-webkit-details-marker {
  display: none;
}
.irwas[open] summary {
  margin-bottom: 8px;
}
.irmore {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2px 0 6px;
}
/* the day's times under a time box (diary.js NL.timePick) */
.tpick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(8, 24, 22, 0.18);
  padding: 8px;
  margin-top: -4px;
  max-width: 100%;
}
.tpick .tphead {
  margin: 4px 8px 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tpick ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 248px;
  overflow: auto;
}
.tpick li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}
.tpick li b {
  font-weight: 600;
  flex: none;
}
.tpick li span {
  font-size: 12px;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpick li:hover {
  background: var(--sunk);
}
.tpick li.busy {
  color: var(--muted);
}
.tpick li.busy span {
  color: var(--warn);
}
.tpick li.on {
  background: var(--tint);
  color: var(--tint-fg);
}
.tpick .tpnote {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 6px 2px;
}
/* Book appointment: date, start, how long and (when picked) the exact end fit on one line */
#bWhenRow > .field {
  flex-basis: 130px;
}
.prend h3 {
  color: var(--warn);
}
.prend p {
  margin: 6px 0 0;
}
.irkept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 6px;
}
.irkept .i {
  flex: none;
  margin-top: 2px;
}
.tnext.ok {
  background: var(--ok-bg);
  color: var(--ok);
  margin-top: 0;
}
.tnext.warn {
  margin-top: 0;
}
.irbody > .tnext {
  margin-top: 0;
}
.irdone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ok-bg);
  border-radius: var(--r-lg);
}
.irtick {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #fff;
}
.irdone b {
  font-size: 16px;
  color: var(--ok);
}
.irdone small {
  display: block;
  color: var(--fg);
  font-size: 12.5px;
}
.irsend {
  list-style: none;
  margin: 0;
  padding: 0;
}
.irsend > li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.irsend > li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.irsend > li > div {
  flex: 1;
  min-width: 0;
}
.irsend b {
  display: block;
  font-weight: 600;
}
.irsend small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.irsend .actions {
  margin-top: 8px;
}
.irissues li p {
  overflow-wrap: anywhere;
}
/* one photo on its own */
.layer.center:has(> .irview) {
  padding: 0;
}
.irview {
  position: fixed;
  inset: 0;
  background: #0b1312;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.irvbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
}
.irvimg {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.irvimg img,
.irvimg video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.irvfoot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.irvfoot input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}
.irvcap {
  padding: 10px 16px 18px;
}

/* a step left unfinished: what is still needed is marked red */
.insrun .need {
  border-color: var(--bad) !important;
  box-shadow: 0 0 0 3px var(--bad-bg);
}
.insrun .field.need {
  border: 1px solid var(--bad);
  border-radius: var(--r);
  padding: 8px;
}
.insrun .irilist > li.need,
.insrun .irqlist > li.need {
  box-shadow: inset 3px 0 0 var(--bad);
  padding-left: 10px;
}
.irneedtx {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}
.irneedtx svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.irneedbar {
  margin: 0;
}
.irfoot .btn.primary.wait {
  background: var(--sunk);
  color: var(--muted);
  border-color: var(--line);
}
.irsteps button.locked {
  background: var(--sunk);
  color: var(--muted);
}
.irsteps button.locked b {
  color: var(--muted);
}

/* the report: an A4 sheet on screen, and when printed */
.irdoc {
  width: 794px;
  max-width: 100%;
  background: #fff;
  color: #14211f;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  padding: 36px 48px 44px;
  font-size: 13px;
  line-height: 1.5;
}
.irdhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dde3e2;
}
.irdhead .brwm {
  height: 30px;
}
.irdhead > span {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #11756d;
  text-align: right;
}
.irdhead small {
  display: block;
  color: #5a6d6a;
  font-weight: 600;
}
.irdoc h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.irdaddr {
  color: #5a6d6a;
  font-size: 15px;
  margin: 2px 0 14px;
}
.irddl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0 0 16px;
}
.irddl dt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6d6a;
}
.irddl dd {
  margin: 0;
  font-weight: 600;
}
.irdsum {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  background: #e8f2f0;
  color: #0e625b;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.irdkey {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 11.5px;
  color: #5a6d6a;
  margin: 10px 0 4px;
}
.irdoc h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  background: #e8f2f0;
  color: #11756d;
  padding: 6px 10px;
  border-radius: 4px;
  margin: 22px 0 10px;
  break-after: avoid;
}
.irdoc h2 span {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
}
.irdt {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.irdt th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6d6a;
  border-bottom: 1px solid #dde3e2;
  padding: 5px 6px;
}
.irdt td {
  padding: 6px;
  border-bottom: 1px solid #eef2f1;
  vertical-align: top;
}
.irdt td small {
  display: block;
  color: #5a6d6a;
}
.irdt .r {
  text-align: right;
}
.irdt tr.worse td {
  background: #fbe4e0;
}
.irdt tr {
  break-inside: avoid;
}
.irdc {
  font-weight: 700;
}
.irdc.ok {
  color: #2e7d46;
}
.irdc.warn {
  color: #a65f00;
}
.irdc.bad {
  color: #b83a2a;
}
.irdc.grey {
  color: #5a6d6a;
}
.irdoc .muted {
  color: #5a6d6a;
}
.irdwas {
  font-size: 12px;
  color: #5a6d6a;
  margin: -4px 0 6px;
}
.irdnote {
  background: #f3f7f6;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
}
.irdiss {
  color: #b83a2a;
  margin: 6px 0;
}
.irdph {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}
.irdph figure {
  margin: 0;
  break-inside: avoid;
}
.irdph img,
.irdvid {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.irdvid {
  display: grid;
  place-items: center;
  background: #e8f2f0;
  color: #11756d;
  font-size: 11px;
  text-align: center;
}
.irdph figcaption {
  font-size: 10.5px;
  color: #5a6d6a;
  line-height: 1.3;
  margin-top: 2px;
}
.irdbox {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #11756d;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
}
.irdbox span {
  color: #5a6d6a;
  font-size: 12px;
}
.irdsign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 12px;
}
.irdsign > div {
  display: flex;
  flex-direction: column;
  break-inside: avoid;
}
.irdsign span {
  font-weight: 600;
}
.irdsign i {
  font-style: normal;
  font-size: 11px;
  color: #5a6d6a;
  border-top: 1px solid #5a6d6a;
  margin-top: 30px;
  padding-top: 3px;
}
.irdoc .brfoot {
  position: static;
  margin-top: 28px;
}
body.irprint .irdoc {
  page: irdoc;
}
@media print {
  @page irdoc {
    size: A4;
    margin: 12mm 14mm;
  }
  body.irprint .irdoc {
    width: auto;
    padding: 0;
    box-shadow: none;
  }
}
@media (max-width: 760px) {
  .irow {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 14px;
  }
  .irow .side {
    justify-content: space-between;
  }
  .irow .side .btn {
    min-height: 40px;
  }
  .insrun {
    width: 100%;
    box-shadow: none;
  }
  .irbody {
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 20px);
    gap: 12px;
  }
  .irbody > .card {
    padding: 14px;
  }
  .ircond button small {
    display: none;
  }
  .irchips {
    width: 100%;
  }
  .irchips button {
    flex: 1;
    min-width: 0;
    height: 44px;
  }
  .irphbtns .btn {
    flex: 1 1 140px;
    min-height: 44px;
    justify-content: center;
  }
  .irdoc {
    padding: 20px 16px 28px;
  }
  .irddl,
  .irdsign {
    grid-template-columns: minmax(0, 1fr);
  }
  .irdph {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .irdt {
    font-size: 11.5px;
  }
  .instools .seg {
    flex: 1 1 auto;
  }
}

/* v185: item 20 tidy-up */
.results .nonego {
  margin-top: 8px;
}
small.block {
  display: block;
}
small.jage.warn {
  color: var(--warn);
  font-weight: 600;
}
small.jage.bad {
  color: var(--bad);
  font-weight: 600;
}
.timeline .tdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  color: var(--teal);
  flex: none;
}
.timeline .tdot .i {
  width: 14px;
  height: 14px;
}
/* v185: deposit return */
.deprow {
  display: grid;
  grid-template-columns: auto 1fr 130px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.deprow .prefix input {
  width: 100%;
}
.depl {
  color: var(--bad);
}
@media (max-width: 560px) {
  .deprow {
    grid-template-columns: auto 1fr 100px;
  }
}
/* v185: moving out */
.moveout {
  list-style: none;
  margin: 0;
  padding: 0;
}
.moveout > li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.moveout > li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.moveout > li > div {
  flex: 1;
  min-width: 0;
}
.moveout b {
  display: block;
  font-weight: 600;
}
.moveout small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.moveout .irn {
  width: 26px;
  height: 26px;
}
.moveout .side {
  flex: 0 0 auto;
}
/* v185: right now on a person's page */
.rnlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rnlist > li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
}
.rnlist > li:first-child {
  border-top: 0;
}
.rnlist > li.click {
  cursor: pointer;
}
.rnlist > li.click:hover {
  background: var(--sunk);
}
.rnlist > li > div {
  flex: 1;
  min-width: 0;
}
.rnlist b {
  font-weight: 600;
}
.rnlist p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rnlist p b.bad {
  color: var(--bad);
}
.rnlist p b.warn {
  color: var(--warn);
}
.rnic {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  color: var(--ok);
}
.rnic .i {
  width: 15px;
  height: 15px;
}
.rn-bad .rnic {
  background: var(--bad-bg);
  color: var(--bad);
}
.rn-warn .rnic {
  background: var(--warn-bg);
  color: var(--warn);
}
.rn-info .rnic {
  background: var(--info-bg, var(--sunk));
  color: var(--info, var(--fg));
}
.rn-grey .rnic {
  background: var(--sunk);
  color: var(--muted);
}
.rnlist .side {
  color: var(--muted);
  align-self: center;
}

/* v185: a document's own file, shown in the CRM */
.docview .docframe {
  width: 100%;
  height: min(calc(70vh / var(--zm, 1)), 760px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.docview .docimg {
  max-height: calc(70vh / var(--zm, 1));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunk);
  text-align: center;
}
.docview .docimg img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* a PDF's pages as pictures, one under the other (17/11/2026) */
.docview .docpages {
  height: min(calc(70vh / var(--zm, 1)), 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunk);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.docview .docpages img {
  max-width: 100%;
  height: auto;
  display: block;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* v185: bank details that were changed and not confirmed yet */
.pdwarn.bkrisk {
  background: var(--bad-bg);
  margin-bottom: 12px;
}
.pdwarn.bkrisk > svg,
.pdwarn.bkrisk b {
  color: var(--bad);
}
.pdwarn.bkrisk p {
  color: var(--fg);
}

/* the page sits flush to the window edges (the browser's own 8px margin is taken off) */
body {
  margin: 0;
}
/* the phone menu: on a phone the side menu folds into a Menu button that opens it full screen */
.railtop {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menubtn {
  display: none;
}
@media (max-width: 820px) {
  .rail {
    display: block;
    overflow: visible;
  }
  .railtop {
    justify-content: space-between;
  }
  .menubtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rail-hover);
    color: var(--rail-strong);
    border: 1px solid var(--rail-line);
    border-radius: 10px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .rail:not(.open) .nav,
  .rail:not(.open) .whoami {
    display: none;
  }
  .rail.open {
    position: fixed;
    inset: 0;
    z-index: 90;
    height: calc(100dvh / var(--zm, 1));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
  }
  .rail.open .nav {
    flex-direction: column;
  }
  .rail.open .nav .label {
    display: block;
  }
  .rail.open .nav a {
    padding: 11px 10px;
    font-size: 16px;
    white-space: normal;
  }
  .rail.open .whoami {
    flex-direction: column;
    align-items: stretch;
    border-left: 0;
    border-top: 1px solid var(--rail-line);
    padding: 14px 0 0;
    margin-top: 6px;
  }
  .rail.open .whoami .me {
    display: flex;
  }
  .rail.open .whoami label {
    display: block;
  }
  .rail.open .whoami select {
    width: 100%;
  }
  body.menuopen {
    overflow: hidden;
  }
}
/* the five Tenancies figures fill their rows on smaller screens, with no empty grey box */
@media (max-width: 1100px) {
  .tkpis > :nth-child(5):last-child {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .tkpis > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* v188: the receipt or statement you just made waits at the top of Email tenants or Email landlords in blue, so it stands
   apart from the green, orange and red due colours until it is emailed */
.rri.mine {
  background: color-mix(in srgb, var(--info) 14%, var(--surface));
  border-color: var(--info);
  box-shadow: inset 6px 0 0 var(--info);
}
.rri.mine .rrmain > b,
.rri.mine .rramt {
  color: var(--info);
}
.rri.mine .rrdoc {
  background: color-mix(in srgb, var(--info) 6%, var(--surface));
}
.rrtag.rrmine {
  color: var(--info) !important;
  font-weight: 600;
}
.tabhot {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--info);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.rrn svg {
  width: 15px;
  height: 15px;
}
/* on Collect rent and Pay landlords a receipt only says it is not emailed yet; the emailing is on its own tab */
.rrdoc .rrst:not(.no):not(.ok) {
  background: var(--sunk);
  color: var(--muted);
}

/* prescribed information: who it must go to */
.pilist {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pilist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.pilist li svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

/* contact profile tabs and labelled notes */
.ctabs {
  margin: 4px 0 14px;
}
.list li.cold {
  opacity: 0.62;
}
.nhead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nhead .ntag,
.ntag {
  font-size: 11px;
}
.nsec summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.nsec summary::-webkit-details-marker {
  display: none;
}
.nsec.nold {
  background: var(--sunk);
  border-style: dashed;
}
.timeline li.nold {
  opacity: 0.6;
}
.nguide {
  margin: 0 0 12px;
}
.nguide.nold {
  opacity: 1;
  color: var(--muted);
}
.hdl.ok {
  color: var(--ok);
}
.hdl.warn {
  color: var(--warn);
}
.hdl.bad {
  color: var(--bad);
  font-weight: 600;
}
/* arrears steps */
.arrsteps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.arrs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--sunk);
  color: var(--muted);
  white-space: nowrap;
}
.arrs small {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.85;
}
.arrs svg {
  width: 12px;
  height: 12px;
}
.arrs.ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}
.arrs.warn {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.arrs.bad {
  background: color-mix(in srgb, var(--bad) 14%, transparent);
  color: var(--bad);
  font-weight: 600;
}
.arrplan {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--ok);
}
.arrplan svg {
  width: 12px;
  height: 12px;
}
/* a payment plan not being kept (LATER-16): red text, no fill */
.arrplan.bad {
  color: var(--bad);
}
/* move-out checklist */
.mochk {
  display: grid;
  gap: 8px;
  margin: 4px 0 6px;
}
.mochk label {
  align-items: flex-start;
  line-height: 1.35;
}
.mochk input {
  margin-top: 3px;
}

/* v191 branches: the switch in the top bar (Directors), transfers, and extension numbers on the welcome banner */
.branchbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.branchbtn .i {
  width: 16px;
  height: 16px;
  color: var(--teal);
}
.branchbtn.away {
  border-color: var(--warn);
  background: var(--warn-bg);
}
.branchbtn .brnot {
  font-size: 11px;
  font-weight: 600;
  color: var(--warn);
}
.brpick li.on {
  background: color-mix(in srgb, var(--teal) 7%, transparent);
}
.trline {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.trline .link,
dd .link[data-a='trAsk'],
dd .link[data-a='trCancel'] {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent);
}
.extline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--hello-muted);
}
.extline .i {
  width: 15px;
  height: 15px;
}
.extline b {
  color: var(--hello-fg);
  font-weight: 600;
}
.extline .extall {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.extline .link {
  color: var(--hello-fg);
  text-decoration: underline;
}
.extgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 14px;
}
@media (max-width: 820px) {
  .branchbtn span:not(.brnot) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* v192 sub-agents: their portal (nothing of North Lane's shows), the sign-in screens, and the pack */
.subportal .search,
.subportal .topbtns {
  visibility: hidden;
}
.sagate {
  max-width: 560px;
  margin: 24px auto;
  padding: 24px;
}
.sagate h2 {
  margin: 4px 0 8px;
}
.sagate .form {
  margin-top: 14px;
}
.saqr {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 8px 0;
}
.saqr .qr {
  width: 148px;
  height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  flex: none;
}
.saqr > div {
  flex: 1;
  min-width: 200px;
}
.saqr code {
  font-size: 13px;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.sagrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.sacard {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.sacard:hover {
  border-color: var(--teal);
}
.saimg {
  display: grid;
  place-items: center;
  flex: none;
  height: 150px;
  overflow: hidden;
  background: var(--sunk);
  color: var(--muted);
}
.saimg img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.sabody {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  align-items: flex-start;
}
.sabody small {
  color: var(--muted);
}
.sameta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}
.sachk {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 14px;
  font-size: 13px;
}
.sachk li {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--bad);
}
.sachk li.done {
  color: var(--ok);
}
.sachk .i {
  width: 15px;
  height: 15px;
  flex: none;
}
.saphotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
.saphotos figure {
  margin: 0;
}
.saphotos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}
.saphotos figcaption {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}
.link.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

/* v194: memorandum of sale in North Lane's own layout, bigger type */
.nldoc.nlmos {
  max-width: 700px;
  padding: 34px 44px 26px;
  font-size: 14px;
}
.nlmos .mosban {
  display: block;
  width: 62%;
  margin: 0 auto 26px;
}
.nlmos h3 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #14211f;
  margin: 0;
}
.nlmos .moskick {
  display: block;
  text-align: center;
  color: #11756d;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 4px 0 8px;
}
.nlmos h4 {
  color: #11756d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 20px 0 7px;
}
.mostab {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.mostab th,
.mostab td {
  text-align: left;
  vertical-align: middle;
  padding: 8px 12px;
  border-bottom: 1px solid #d6dedc;
  font-size: 14px;
}
.mostab th {
  width: 34%;
  white-space: normal;
  overflow-wrap: break-word;
  background: #e8f1ef;
  font-family: var(--body);
  font-weight: 700;
  color: #14211f;
  text-transform: none;
  letter-spacing: 0;
}
.mostab td {
  overflow-wrap: anywhere;
}
.mostab tbody tr:last-child td {
  border-bottom: 1px solid #d6dedc;
}
.mostab td .tbc {
  color: #8a9a97;
  font-style: italic;
}
.nlmos .mosnote {
  margin: 26px 0 0;
  font-size: 12px;
}
.nlmos .mosnote b {
  color: #11756d;
}
.nlmos .mosfoot {
  margin-top: 40px;
  border-top: 1px solid #d6dedc;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-size: 10.5px;
  color: #11756d;
}
.nlmos .mosfoot span + span {
  color: #5a6d6a;
  font-size: 9.5px;
}
@media (max-width: 640px) {
  .nldoc.nlmos {
    padding: 22px 16px;
  }
  .mostab th {
    width: 40%;
  }
  .mostab th,
  .mostab td {
    font-size: 13px;
    padding: 7px 8px;
  }
}
.mosh {
  margin: 14px 0 6px;
  font-size: 13.5px;
}

/* sub-agent portal: My calendar, one week as seven day columns (a list on phones) */
.sawk {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.sawkd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.sawkd.today {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.sawkh {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sawkh b {
  font-size: 16px;
  color: var(--fg);
  margin-left: 2px;
}
.sawke {
  font-size: 12px;
  color: var(--muted);
}
.sacal {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.sacal b {
  font-size: 12px;
}
.sacal span,
.sacal small {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sacal small {
  color: var(--muted);
}
.sacal.off span {
  text-decoration: line-through;
  color: var(--muted);
}
@media (max-width: 860px) {
  .sawk {
    grid-template-columns: 1fr;
  }
  .sawkd {
    min-height: 0;
  }
}

/* phone and email links read like the rest of the CRM's links, not the browser's blue */
:where(a[href^='tel:'], a[href^='mailto:']) {
  color: var(--teal-ink);
  text-decoration: none;
  font-weight: 500;
}
:where(a[href^='tel:'], a[href^='mailto:']):hover {
  text-decoration: underline;
}

/* ---------- Settings > Terms of business ---------- */
.tobthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}
.tobthumbs img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.tobprev {
  display: grid;
  gap: 14px;
  max-height: calc(70vh / var(--zm, 1));
  overflow: auto;
}
.tobprev img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}

/* a link that looks like a button never shows the link underline */
a.btn,
a.btn:hover {
  text-decoration: none;
}

/* Settings > Appearance: the logos */
.brandthumb {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}
.brandthumb.ondark {
  background: #11756d;
}

/* ---------- the customer hand-over (js/app/handover.js, SEC-007): staff's password brings the device back ---------- */
.hoback {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  overflow-y: auto;
}
.hocard {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}
.hocard .howm {
  display: block;
  width: 150px;
  margin-bottom: 18px;
}
.hocard h2 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 6px;
}
.hocard > p {
  margin: 0 0 16px;
  color: var(--muted);
}
.hocard form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hocard .hoerr {
  margin: 0;
  color: var(--bad);
  font-size: 13.5px;
}
.hocard .hobtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* ---------- two-step sign-in (js/app/signin.js, SEC-016): the QR code to scan, the key, backup codes ---------- */
.tssteps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.qrbox {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}
.qrbox .qr {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.tskey {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  word-break: break-word;
}
.bcodes {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
}
@media (max-width: 420px) {
  .bcodes {
    grid-template-columns: 1fr;
  }
}
.tsmodal {
  margin-bottom: 12px;
}
/* LATER-3 (SEC-070): a temporary password the server made, shown once to read out */
.temppw {
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-align: center;
  user-select: all;
}
/* owner, 19/11/2026: the password rule under a new password: grey until each part is there, then green */
.pwrule {
  list-style: none;
  margin: -4px 0 12px;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.pwrule li {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pwrule .i {
  width: 14px;
  height: 14px;
  opacity: 0.35;
}
.pwrule li.ok {
  color: var(--ok);
}
.pwrule li.ok .i {
  opacity: 1;
}
/* NEXT-17: the caller page's reminder to confirm who is calling (grey text, no fill) */
.rnwho {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}
.rnwho .i {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
/* NEXT-17: everything about one person, gathered for a rights request */
.prsplace {
  margin: 14px 0 4px;
}
.prsitem {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.prsitem pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11.5px;
  max-height: 220px;
  overflow: auto;
  margin: 6px 0 0;
}
.prsticks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-size: 12.5px;
}
.prsticks label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.prsticks input[type='text'] {
  min-width: 0;
  flex: 1 1 160px;
}

/* NEXT-7 (SEC-018): after refused saves the page stops reloading and says so above the screen, with Try again */
.notsaving {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
}
.notsaving p {
  margin: 0;
  flex: 1 1 260px;
}
.notsaving b {
  color: var(--bad);
}
.notsaving[hidden] {
  display: none;
}

/* the emails the CRM sends by itself (emails.js, 14/11/2026): their state is coloured text only, no filled pills */
.rrdoc .rrst,
.rrdoc .rrst.no,
.rrdoc .rrst.ok,
.rrdoc .rrst:not(.no):not(.ok) {
  background: none;
  padding: 2px 0;
}
.rrdoc .rrst.ok,
.mailst.ok {
  color: var(--ok);
}
.rrdoc .rrst.bad,
.mailst.bad,
.mailbad {
  color: var(--bad);
  font-weight: 700;
}
.rrdoc .rrst.wait,
.mailst.wait {
  color: var(--muted);
}
.mailst {
  font-weight: 600;
}
.mailbad {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mailbad svg {
  width: 14px;
  height: 14px;
}
.empv .mailto {
  margin: 4px 0 0;
  font-weight: 600;
  word-break: break-word;
}
/* the email rows on an appointment (viewings.js, insp.js; owner, 21/11/2026: "format everything correctly here"):
   the state and its links sit on one line, level with each other, in the row's own text size */
.kv dd.mailrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px 14px;
}
.kv dd.mailrow .rrst {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.kv dd.mailrow .rrst svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.kv dd.mailrow .rrst.ok {
  color: var(--ok);
}
.kv dd.mailrow .rrst.wait {
  color: var(--muted);
}
.kv dd.mailrow .rrst.bad {
  color: var(--bad);
}
.kv dd.mailrow .link,
.kv dd.mailrow .small {
  font-size: inherit;
  line-height: inherit;
}
/* "Confirmed" / "Not confirmed" on the appointment reads at the row's size, not the calendar chip's */
.kv dd .cfl {
  font-size: inherit;
}
/* the search box in Settings and its results (settings.js, 21/11/2026) */
.setsearch {
  display: flex;
  max-width: 560px;
  margin: 0 0 14px;
}
.setres li {
  display: block;
}
.setres li p {
  margin: 2px 0 0;
}
.setres .setwhere {
  font-size: 12px;
  color: var(--muted);
}
.setres mark {
  background: none;
  color: var(--teal);
  font-weight: 700;
}
.setflash {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 8px;
}
/* an email opened as it went, with Send again (emails.js NL.mailShow, 21/11/2026) */
.mailshow .mswhen {
  margin: 0 0 4px;
  color: var(--muted);
}
/* its state sits level with the words after it (an inline-flex box otherwise sits on its icon's bottom edge) */
.mailshow .mswhen .stx {
  vertical-align: bottom;
}
.mailshow .mailread {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
}
.mailshow .msruns {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13px;
}
.mailshow .msruns li {
  padding: 3px 0;
  color: var(--muted);
}
.mailshow .msruns li b {
  color: var(--fg);
}
.mailshow .msruns li.on b {
  color: var(--teal);
}
.irsend .iragain {
  margin-top: 4px;
}

/* desk phone calls (calls.js, 14/11/2026): the note at the bottom right, and the full information sheet */
.callnote {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, calc(calc(100vw / var(--zm, 1)) - 32px));
}
.callcard {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal, #0f766e);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  cursor: pointer;
}
.callcard.ringing {
  cursor: default;
  border-left-color: var(--warn);
}
.callcard .cchd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.callcard .cchd b {
  flex: 1;
}
.callcard .ccic svg {
  width: 16px;
  height: 16px;
}
.callcard.ringing .ccic {
  color: var(--warn);
  animation: ccring 1s ease-in-out infinite;
}
@keyframes ccring {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-14deg);
  }
  75% {
    transform: rotate(14deg);
  }
}
.callcard .cctime {
  color: var(--muted);
  font-size: 12px;
}
.callcard .ccwho {
  margin: 6px 0 4px;
}
.callcard .ccwho b {
  display: block;
  font-size: 15px;
}
.callcard .ccwho small {
  color: var(--muted);
}
.callcard .ccdo {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--teal, #0f766e);
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.callcard.ringing .ccdo {
  color: var(--muted);
  font-weight: 500;
}
.callcard .ccdo svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}
.callcard .btn {
  margin-top: 8px;
}
.callsheet .csgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .callsheet .csgrid {
    grid-template-columns: 1fr;
  }
}
.callsheet .cswho {
  display: flex;
  gap: 12px;
  align-items: center;
}
.callsheet .cswho > div {
  flex: 1;
  min-width: 0;
}
.callsheet .cswho h3 {
  margin: 0;
}
.callsheet .cswho p {
  margin: 2px 0 0;
}
.callsheet .cini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  font-weight: 700;
}
.callsheet h4 {
  margin: 16px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.callsheet .cslist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.callsheet .cslist li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.callsheet .cslist li span {
  font-size: 12.5px;
  color: var(--muted);
}
.callsheet .cslist .csnote {
  font-weight: 500;
}
.callsheet .bad,
.callnotes + td .bad {
  color: var(--bad);
  font-weight: 600;
}
.callsheet .csside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callsheet .csside textarea {
  width: 100%;
}
.callsheet .csend {
  align-self: stretch;
  justify-content: center;
}
.callsheet .csend:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.callsheet .csnone {
  padding: 12px 0;
}
td .ok {
  color: var(--ok);
  font-weight: 600;
}
td .warn {
  color: var(--warn);
  font-weight: 600;
}
td .bad {
  color: var(--bad);
  font-weight: 600;
}
.callnotes {
  max-width: 360px;
  white-space: pre-wrap;
}

/* a state in coloured text only, anywhere (Form 4A checked, a Section 13 notice's email) */
.stx {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.stx svg {
  width: 14px;
  height: 14px;
}
.stx.ok {
  color: var(--ok);
}
.stx.bad {
  color: var(--bad);
}
.stx.wait {
  color: var(--warn);
}

/* Prepare the tenancy agreement (agreeprep.js) and the HMO question (agreements.js) */
.apmodal {
  max-width: 920px;
}
.apbody {
  max-height: min(calc(68vh / var(--zm, 1)), 760px);
  overflow-y: auto;
  padding-right: 4px;
}
.apsec {
  border-top: 1px solid var(--line);
  padding: 14px 0 6px;
}
.apsech {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.apsech h3 {
  margin: 0;
  font-size: 15px;
}
.apperson {
  padding: 8px 0 4px;
}
.apperson + .apperson {
  border-top: 1px dashed var(--line);
}
.approle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.aprad {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 10px;
}
.apgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 18px;
  margin-top: 6px;
}
.billshare {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 4px;
}
.field .billshare label,
.billshare label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
}

/* Keys (owner, 15/11/2026, look B): the list on the left, the set picked on the right */
.kys {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}
.kyl,
.kyp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.kyl {
  overflow: hidden;
  position: sticky;
  top: 86px;
  max-height: calc(calc(100vh / var(--zm, 1)) - 110px);
  overflow-y: auto;
}
.kysearch {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.kysearch input {
  width: 100%;
}
.kyr {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.kyr:hover {
  background: var(--tint);
}
.kyr.on {
  background: var(--tint);
  box-shadow: inset 3px 0 0 var(--teal);
}
.kyr .tg {
  font-weight: 700;
  width: 52px;
  flex: none;
}
.kyr .ad {
  flex: 1;
  min-width: 0;
}
.kyr .ad b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kyr small,
.kynone {
  font-size: 12.5px;
}
.kynone {
  padding: 16px;
}
.kb {
  color: var(--bad) !important;
}
.kw {
  color: var(--warn) !important;
}
.ki {
  color: var(--muted) !important;
}
.kyp {
  padding: 22px 24px;
  min-width: 0;
}
.kyempty {
  padding: 40px 24px;
  text-align: center;
}
.kycap {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.kyp h2 {
  margin: 0;
  font-size: 22px;
}
.kyp h2 .link {
  font: inherit;
}
.kysub {
  color: var(--muted);
  margin: 4px 0 14px;
}
.kyf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 12px 0 16px;
}
.kyf .l {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.kyf .v {
  font-weight: 600;
}
.kyf .kywide {
  grid-column: 1 / -1;
}
.kyform {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px 16px;
  background: var(--sunk);
  margin: 6px 0 4px;
}
.kyform h4,
.kyh h4 {
  margin: 0 0 14px;
  font-size: 15px;
}
.kyphone {
  border-left: 3px solid var(--bad);
  padding: 4px 0 4px 14px;
  margin: 6px 0 12px;
}
.kyphone p {
  margin: 4px 0 8px;
}
.kyphone .field {
  max-width: 260px;
}
.kyh {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.kye {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kye span:first-child {
  color: var(--muted);
}
@media (max-width: 860px) {
  .kys {
    grid-template-columns: 1fr;
  }
  .kyl {
    position: static;
    max-height: none;
  }
  .kye {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Dashboard Tasks (owner, 15/11/2026, look A): a full-width list with Mine / Set for others */
.tkcard {
  margin: 16px 0;
}
.tkside {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.tktabs {
  display: flex;
  gap: 18px;
}
.tktabs button {
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  padding: 2px 0 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tktabs button.on {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.tkr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tktick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: none;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--teal);
  cursor: pointer;
  padding: 0;
}
.tktick:hover,
.tktick.on {
  border-color: var(--teal);
}
.tktick svg {
  width: 14px;
  height: 14px;
}
.tkt {
  flex: 1;
  min-width: 0;
}
.tkt b {
  display: block;
  font-weight: 600;
}
.tkt small {
  color: var(--muted);
  font-size: 13px;
}
.tkdue {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.tkdone .tkt b {
  text-decoration: line-through;
  color: var(--muted);
}
/* the sign-out form: two even columns, notes across both, the buttons on their own line under a rule */
.kygrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}
.kygrid .field {
  margin: 0;
  flex: none;
  min-width: 0;
}
.kygrid .field input,
.kygrid .field select,
.kygrid .field textarea {
  width: 100%;
  box-sizing: border-box;
}
.kygrid .kywide {
  grid-column: 1 / -1;
}
.kygrid textarea {
  min-height: 72px;
  resize: vertical;
}
.kyform .kyphone {
  margin: 14px 0 0;
}
.kyacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .kygrid {
    grid-template-columns: 1fr;
  }
}
.tkcard .cardhead h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ko {
  color: var(--ok) !important;
}

/* the signer's code page: the way to get a new code, and the locked message (owner, 15/11/2026) */
.nowrap {
  white-space: nowrap;
}
.sghelp {
  margin: 18px auto 0;
  max-width: 360px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}
.sghelp-on {
  color: var(--fg);
  font-weight: 600;
}
.sglocked {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  max-width: 360px;
  margin: 8px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  border-radius: 10px;
}
.sglocked .i {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--bad);
  margin-top: 2px;
}
.sglocked b {
  color: var(--bad);
}
.sglocked p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.sglockrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sglockrow .neg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sglockrow .i {
  width: 15px;
  height: 15px;
}
.sgsendto {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--warn);
}
.sgsendto .i {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
}

/* ---------- Contacts as a split view (prototype v204-v205, 5 Nov; brought into the fixed version 15/11/2026) ---------- */
/* v204: Contacts the Reapit way. Three tabs, clean lists, type picked as Applicant, Contact or Company */
.ctabsx .tabs {
  margin: 0 0 14px;
}
.ctpick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 4px;
}
.ctpick.many {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.ctpick .bkopt:has(input:checked) {
  background: transparent;
  border-color: var(--teal);
}
.ctpick .bkopt:has(input:checked) b {
  color: var(--teal);
}
@media (max-width: 640px) {
  .ctpick {
    grid-template-columns: 1fr;
  }
}
.ctlab {
  font-weight: 600;
  font-size: 13px;
}
.ctbox {
  margin-bottom: 4px;
}
.ctsub {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  font-weight: 400;
}
.ctwarn {
  color: var(--warn);
}
.ctbad {
  color: var(--bad);
}
a.ctlink {
  color: inherit;
  text-decoration: none;
}
a.ctlink:hover {
  color: var(--teal);
  text-decoration: underline;
}
.calso {
  margin: -4px 0 12px;
}
.calso .link {
  font-size: inherit;
}
.ctool {
  flex-wrap: wrap;
}
.cmore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.cgrp .gtag {
  font-weight: 600;
  margin-right: 10px;
}
.field .ctpick .bkopt input {
  width: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  height: auto;
  min-height: 0;
  background: none;
  accent-color: var(--teal);
}
.ctbox .hint {
  display: block;
  margin-bottom: 10px;
}

/* v205: Contacts split view. The list on the left, the person on the right */
.content:has(> .csplit) {
  padding: 0;
  max-width: none;
  gap: 0;
}
.csplit {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
}
.cleft {
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cltop {
  padding: 20px 20px 0;
}
.clhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.clhead h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.csearch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--bg);
}
.csearch .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
}
.csearch input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  color: var(--fg);
}
.csearch:focus-within {
  border-color: var(--teal);
}
.ctabs2 {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}
.ctabs2 button {
  background: none;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.ctabs2 button.on {
  color: var(--teal);
  border-color: var(--teal);
}
.ctabs2 em {
  font-style: normal;
  font-weight: 500;
  margin-left: 5px;
  opacity: 0.8;
}
.cshowrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cshowrow select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  padding: 2px 4px;
  cursor: pointer;
  max-width: 230px;
}
.calso {
  padding: 8px 20px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.calso .link {
  font-size: inherit;
}
.clist {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.crow {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.crow:hover,
.crow.on {
  background: var(--bg);
}
.crow.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
}
.cini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--fg);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex: none;
}
.cini.lg {
  width: 56px;
  height: 56px;
  font-size: 19px;
}
.crow b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crow small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crow em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  margin-top: 2px;
}
.crow em.bad {
  color: var(--bad);
}
.crow em.warn {
  color: var(--warn);
}
.cvip {
  color: var(--gold, #b8892b);
}
.cnone {
  padding: 20px;
}
.clist .cmore {
  padding: 12px 20px;
  margin: 0;
}
.cright {
  overflow: auto;
  min-height: 0;
  background: var(--bg);
}
.cpick0 {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}
.cpick0 .i {
  width: 28px;
  height: 28px;
}
.cpick0 b {
  color: var(--fg);
  font-size: 16px;
}
.cphead {
  padding: 24px 32px 0;
}
.chd {
  display: flex;
  gap: 16px;
  align-items: center;
}
.chd h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.panelhead .chd h2 {
  font-size: 22px;
}
.chd .cvip {
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: 3px;
}
.chd p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
}
.chd p.chdreach {
  margin-top: 1px;
}
.cbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: flex-start;
}
.cpbody {
  padding: 16px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panelhead {
  position: relative;
  z-index: 2;
}
.panel:has(.vipsw.on) .panelhead {
  background: var(--surface);
}
.chdwrap {
  min-width: 0;
  flex: 1;
}
.cmorem {
  position: relative;
}
.cmorem > summary {
  list-style: none;
  cursor: pointer;
}
.cmorem > summary::-webkit-details-marker {
  display: none;
}
.cmorem > summary .i {
  transform: rotate(90deg);
  width: 12px;
  height: 12px;
}
.cmenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 6px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cmenu .btn {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  width: 100%;
}
.cmenu .btn:hover {
  background: var(--bg);
}
.cmenu .vipsw,
.cmenu .bigsw {
  padding: 6px 10px;
  border: 0;
  background: transparent;
}
.ctodo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ctodo li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ctodo li:first-child {
  border-top: 0;
}
.ctodo li.ok {
  color: var(--muted);
}
.ctk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
}
.ctodo li.ok .ctk {
  border-color: var(--muted);
}
.ctk .i {
  width: 12px;
  height: 12px;
}
.qahits {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 4px;
}
.qah {
  font-size: 12.5px;
  color: var(--muted);
  padding: 9px 12px;
}
.qar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.qar b {
  display: block;
  font-size: 14px;
}
.qar small {
  color: var(--muted);
  font-size: 12.5px;
}
.qar + .qah {
  border-top: 1px solid var(--line);
}
.qanote {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}
.cback {
  display: none;
}
@media (max-width: 960px) {
  .csplit {
    grid-template-columns: minmax(0, 1fr);
    height: auto !important;
  }
  .csplit.has-sel .cleft {
    display: none;
  }
  .csplit:not(.has-sel) .cright {
    display: none;
  }
  .cback {
    display: inline-flex;
    margin: 14px 16px 0;
  }
  .clist,
  .cright {
    overflow: visible;
  }
  .cltop {
    padding: 16px 16px 0;
  }
  .cshowrow,
  .calso,
  .crow {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cphead {
    padding: 12px 16px 0;
  }
  .cpbody {
    padding: 12px 16px 32px;
  }
  .chd h2 {
    font-size: 22px;
  }
}
.qaoth {
  display: block;
  margin-top: 6px;
}
.ctpick.dim {
  opacity: 0.45;
}
.qaothbox {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
}
.qaothbox .frow {
  margin-bottom: 4px;
}
.cbtns a.btn {
  text-decoration: none;
}
.qaoth {
  display: inline-flex !important;
  align-self: flex-start;
  text-align: left;
}

/* the property's Documents tab (prototype v198) */
.dstate {
  font-weight: 600;
}
/* the property's Documents tab */
.dacts {
  align-items: center;
  flex-wrap: wrap;
}
.dmore {
  position: relative;
}
.dmore summary {
  list-style: none;
  cursor: pointer;
}
.dmore summary::-webkit-details-marker {
  display: none;
}
.dmorem {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.14));
  padding: 6px;
}
.dmorem button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
}
.dmorem button:hover {
  background: var(--sunk);
}
.dmorem button .i {
  flex: none;
  margin-top: 2px;
}
.dmorem button span {
  display: flex;
  flex-direction: column;
}
.dmorem button small {
  color: var(--muted);
}
.dgroup .cardhead {
  align-items: baseline;
}
.dlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.dline:first-child {
  border-top: 0;
}
.dline.click {
  cursor: pointer;
}
.dlic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sunk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.dlic.neg {
  color: var(--bad);
}
.dlmain {
  flex: 1;
  min-width: 0;
}
.dlmain b {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlmain small {
  display: block;
  color: var(--muted);
}
.dlact {
  flex: none;
  white-space: nowrap;
  font-size: 12.5px;
}
@media (max-width: 700px) {
  .dline {
    flex-wrap: wrap;
  }
  .dlact {
    width: 100%;
    padding-left: 38px;
    white-space: normal;
  }
}
/* search first, then pick */
.pick .pkres {
  margin-top: 6px;
  min-height: 60px;
}
.pklist li p {
  margin: 2px 0 0;
}

/* v202: History on every record, empty pages that say what to do first */
.histside .timeline li {
  gap: 8px;
}
.histside .timeline p {
  font-size: 13px;
}
.histkinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.histkinds .btn.on {
  border-color: var(--teal);
  color: var(--teal);
}
.hist .pill {
  font-size: 11px;
}
.hist p .link {
  text-align: left;
  font: inherit;
  color: inherit;
}
.hist p .link:hover {
  color: var(--teal);
}
.empty.first {
  padding: 36px 20px;
}
.empty.first .actions {
  justify-content: center;
  margin-top: 14px;
}
.histsearch {
  margin-bottom: 10px;
}

/* Repair jobs as a split view (prototype v208) */
.jsplit {
  grid-template-columns: 400px minmax(0, 1fr);
}
/* an iPad or a phone: one column, as for Contacts (this rule came after the narrow one and kept two columns, so Repair
   jobs and Offers showed their list in a 400px strip with an empty space beside it, and a job or offer opened in that
   same strip: owner, 23/11/2026, nothing "wonky") */
@media (max-width: 960px) {
  .jsplit {
    grid-template-columns: minmax(0, 1fr);
  }
}
.jsplit .clist {
  display: flex;
  flex-direction: column;
}
.jsplit .ctabs2 {
  gap: 13px;
}
.jsplit .ctabs2 button {
  white-space: nowrap;
  font-size: 13.5px;
}
.jsplit .ctabs2 em {
  margin-left: 4px;
}
.jrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.jrow:hover,
.jrow.on {
  background: var(--bg);
}
.jrow.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
}
.jrow:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.jrow b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jrow small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jrow em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 3px;
  color: var(--fg);
}
.jrow em.tl {
  color: var(--teal);
}
.jrow em.warn,
.jage2.warn {
  color: var(--warn);
}
.jrow em.bad,
.jage2.bad {
  color: var(--bad);
}
/* Offers as a split view (owner, 19/11/2026): the list like Repair jobs, the offer on the right without its pop-out */
.ofsplit .clhead h1,
.jsplit .clhead h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* How this page works, as a small round info button beside the title (as on Tenancies) */
.ofsplit .clhead .phhelp,
.jsplit .clhead .phhelp {
  font-size: 0;
  gap: 0;
  padding: 4px;
}
.ofsplit .clhead .phhelp .i,
.jsplit .clhead .phhelp .i {
  width: 15px;
  height: 15px;
}
.opage .kv dd small {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.opage .kv dd small:not([class]) {
  color: var(--muted);
}
/* a property's own Offers tab (owner, 22/11/2026): the Offers page for that home only, in a card */
.pofsplit {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.pofleft {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.pofleft .ctabs2 {
  margin: 0;
  padding: 4px 20px 0;
  gap: 16px;
}
.pofleft .ctabs2 button {
  white-space: nowrap;
}
.pofnone {
  padding: 16px 20px;
  margin: 0;
}
.pofright {
  min-width: 0;
  background: var(--bg);
}
.pofright .cpick0 {
  min-height: 260px;
}
.pofright .jpage {
  padding: 20px 24px 28px;
}
@media (max-width: 1180px) {
  .pofsplit {
    grid-template-columns: minmax(0, 1fr);
  }
  .pofleft {
    border-right: 0;
  }
  .pofsplit.has-sel .pofleft,
  .pofsplit:not(.has-sel) .pofright {
    display: none;
  }
  .pofright .cback {
    display: inline-flex;
    margin: 0;
  }
}
@media (max-width: 600px) {
  .pofright .jpage {
    padding: 14px 14px 24px;
  }
  .pofleft .ctabs2 {
    padding: 4px 14px 0;
    gap: 14px;
  }
  .pofleft .jrow {
    padding: 12px 14px;
  }
}
/* on a phone the offer uses the width: the page's own gutter, and All offers in line with the title */
@media (max-width: 960px) {
  .opage {
    padding: 12px 16px 32px;
  }
  .opage .cback {
    margin: 0;
  }
}
.jrow em.ok {
  color: var(--ok);
}
.jrow em.muted {
  color: var(--muted);
  font-weight: 500;
}
.jage2 {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.jage2 i {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--bad);
}
.jkeep {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: auto 0 0;
  padding: 14px 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.jkeep .i {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}
.jkeep .link {
  font-size: inherit;
}
.jpage {
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jhd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.jhd > div {
  min-width: 0;
}
.jkick {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.jhd h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.jhd p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
}
.jpanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* the steps */
.jsteps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
}
.jsteps li {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  padding: 0 2px;
}
.jsteps li::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.jsteps li:first-child::before {
  display: none;
}
.jsteps li.done::before,
.jsteps li.now::before {
  background: var(--teal);
}
.jsteps i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.jsteps i .i {
  width: 14px;
  height: 14px;
}
.jsteps .done i {
  border-color: var(--teal);
  color: var(--teal);
}
.jsteps .now i {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.jsteps .done {
  color: var(--fg);
}
.jsteps .skip {
  color: var(--muted);
}
.jsteps .skip i {
  border-color: var(--line);
  color: var(--muted);
}
.jsteps .now {
  color: var(--teal);
  font-weight: 600;
}
/* the one next step */
.jnext {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--surface);
}
.jnext.shut {
  border-left-color: var(--line);
}
.jntx {
  min-width: 0;
}
.jntx b {
  font-size: 15px;
  display: block;
}
.jntx p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.45;
}
.jntx p.jlate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.jntx p.jlate .i {
  width: 14px;
  height: 14px;
}
.jntx p.jlate.warn {
  color: var(--warn);
}
.jntx p.jlate.bad {
  color: var(--bad);
}
.jnbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: none;
  max-width: 55%;
}
.jdamp {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--warn);
}
.jdamp .i {
  width: 16px;
  height: 16px;
  flex: none;
}
.jdamp .link {
  font-size: inherit;
}
.jgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.jgrid > .card:only-child {
  grid-column: 1 / -1;
}
.jtxt {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 4px;
  white-space: pre-line;
}
.jtold .kv {
  margin-top: 12px;
}
.jtold .kv dd,
.jwork .kv dd,
.jmoney .kv dd {
  text-align: left;
}
.jtold .kv,
.jwork .kv,
.jmoney .kv {
  grid-template-columns: 130px minmax(0, 1fr);
}

/* the one next step at the top of every property, tenancy and sale (js/nextstep.js) */
.nsbox {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: var(--surface);
  margin: 0 0 16px;
}
.nsbox.t-bad {
  border-left-color: var(--bad);
}
.nsbox.t-warn {
  border-left-color: var(--warn);
}
.nsbox.t-ok {
  border-left-color: var(--ok);
}
.nsbox.t-quiet {
  border-left-color: var(--line);
}
.nsmain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.nstx {
  min-width: 0;
}
.nsword {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 2px;
}
.t-bad .nsword {
  color: var(--bad);
}
.t-warn .nsword {
  color: var(--warn);
}
.t-ok .nsword {
  color: var(--ok);
}
.t-quiet .nsword {
  color: var(--muted);
}
.nstx b {
  display: block;
  font-size: 15.5px;
}
.nstx p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.45;
}
.nsbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: none;
  max-width: 60%;
  align-items: center;
}
.nsrest {
  border-top: 1px solid var(--line);
}
.nsrest summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nsrest summary::-webkit-details-marker {
  display: none;
}
.nsrest summary .i {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.nsrest[open] summary .i {
  transform: rotate(90deg);
}
.nsrest ul {
  list-style: none;
  margin: 0;
  padding: 0 16px 8px;
}
.nsrest li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.nsrest li > div {
  flex: 1;
  min-width: 0;
}
.nsrest li b {
  font-size: 13.5px;
  display: block;
  font-weight: 600;
}
.nsrest li small {
  color: var(--muted);
  font-size: 12.5px;
}
.nsdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  flex: none;
}
.nsdot.bad {
  border-color: var(--bad);
}
.nsdot.warn {
  border-color: var(--warn);
}
.nsline.bad {
  color: var(--bad);
}
.nsline.warn {
  color: var(--warn);
}
.nsline.ok {
  color: var(--ok);
}
.panel .nsbox,
.modal .nsbox {
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .nsmain {
    flex-direction: column;
    align-items: stretch;
  }
  .nsbtns {
    max-width: none;
    justify-content: flex-start;
  }
  .nsrest li {
    flex-wrap: wrap;
  }
  .nsrest li .nsbtns {
    width: 100%;
  }
}
/* v210 page titles: no intro; a small link to the FAQ for the page */
.pagehead h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phhelp {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  letter-spacing: 0;
}
.phhelp:hover {
  border-color: var(--teal);
}
.phhelp .i {
  width: 14px;
  height: 14px;
}
/* v210 Help and FAQ */
.faqsearch {
  margin: 4px 0 12px;
}
.faqsearch .psearch.big {
  width: 100%;
  max-width: none;
  padding: 12px 14px;
  font-size: 15px;
}
.faqsearch .psearch.big input {
  font-size: 15px;
}
.faqlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.faqi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faqi > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto 16px;
  gap: 4px 14px;
  align-items: center;
  padding: 13px 16px;
}
.faqi > summary::-webkit-details-marker {
  display: none;
}
.faqi > summary .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.15s;
}
.faqi[open] > summary .i {
  transform: rotate(90deg);
}
.faqi > summary:hover .faqq {
  color: var(--teal);
}
.faqq {
  font-weight: 600;
}
.faqmeta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.faqmeta .faqok {
  color: var(--ok);
}
.faqmeta .faqwait {
  color: var(--warn);
}
.faqa {
  padding: 0 16px 14px;
  line-height: 1.55;
}
.modal .faqa {
  padding: 0;
}
.faqa p {
  margin: 0 0 8px;
}
.faqa ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.faqa li {
  margin: 2px 0;
}
.faqlaw {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 0 !important;
}
.faqlaw .i {
  width: 15px;
  height: 15px;
}
.faqlaw.ok {
  color: var(--ok);
}
.faqlaw.warn {
  color: var(--warn);
}
.faqbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.faqasks {
  margin: 12px 0;
}
.faqlawwait {
  color: var(--warn);
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 8px 0 0;
}
.faqlawwait .i {
  width: 15px;
  height: 15px;
}
.faqfix,
.faqcount {
  margin: 10px 0 0;
}
.faqstill {
  margin: 14px 0 0;
}
.faqnone {
  margin-top: 12px;
}
.faqnone p {
  margin: 6px 0 12px;
}
@media (max-width: 760px) {
  .faqi > summary {
    grid-template-columns: 1fr 16px;
  }
  .faqmeta {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }
}
/* Done, next: the small bar while a work list is being worked through (js/flow.js) */
#flowbar {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  font-size: 13.5px;
  max-width: calc(calc(100vw / var(--zm, 1)) - 32px);
}
#flowbar b {
  color: var(--teal);
}
#flowbar .fbdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  flex: none;
}
#flowbar .link {
  flex: none;
}
.cpref {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  margin-left: 8px;
  vertical-align: 1px;
  white-space: nowrap;
}
.cpref .i {
  width: 14px;
  height: 14px;
}
.chd .cpref {
  font-size: 14px;
  vertical-align: 3px;
}
.crow .cpref {
  margin-left: 5px;
}
.prefsw .i {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 3px;
}
/* a contractor's trades: one tick each (contacts.js multiPick) */
.trpick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 14px;
  margin-top: 4px;
}
.field .trpick label.trbox {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
}
.field .trpick label.trbox input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--teal);
}
.field:has(.trpick) {
  grid-column: 1 / -1;
}
/* the box under a contractor's "Other" tick */
.trother {
  margin-bottom: 8px;
  margin-top: 8px;
  max-width: 440px;
}
.trother .field {
  margin: 0;
}
/* v210 calendar: readable tiles; colour only says the state (late red, done green), the icon says the kind */
.t-viewing,
.t-valuation,
.t-photography,
.t-inspection,
.t-checkin,
.t-checkout,
.t-job,
.t-call,
.t-task,
.t-rent,
.t-dep {
  --c: var(--muted);
}
.appt,
.chip,
.legendT span,
.legendT button,
.ev2 {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--c) !important;
  color: var(--fg);
}
.appt.late,
.chip.late,
.ev2.late {
  --c: var(--bad);
}
.appt.done,
.chip.done,
.ev.done {
  --c: var(--ok);
}
.appt.t-rent.late,
.appt.t-dep.late {
  box-shadow: none;
}
.legendT span .i,
.legendT button .i,
.chip .i {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
  color: var(--muted);
}
.week .appt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.week .appt:hover {
  border-color: var(--teal) !important;
}
.appt .at,
.appt .aw {
  opacity: 1;
}
.appt .at {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.appt .at .i {
  width: 12px;
  height: 12px;
  flex: none;
}
.appt .at time {
  font-weight: 700;
  color: var(--fg);
}
.appt .at em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.week .appt b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.25;
}
.appt .aw {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.week .appt.tiny {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}
.week .appt.tiny span.at {
  display: flex;
  flex: none;
}
.week .appt.tiny .at em,
.week .appt.tiny .aw {
  display: none;
}
.week .appt.tiny b {
  -webkit-line-clamp: 1;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.week .appt.block .at em {
  color: var(--fg);
  font-weight: 600;
}

/* v210 calendar key: plain icons and words under the calendar; the coloured edge on a tile only ever means late (red) or done (green) */
.legendT.calkey {
  margin-top: 10px;
  gap: 4px 14px;
}
.legendT.calkey span {
  border: 0 !important;
  background: none !important;
  padding: 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.legendT.calkey .kd {
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -2px;
}
.legendT.calkey .kd.late {
  background: var(--bad);
}
.legendT.calkey .kd.done {
  background: var(--ok);
}
.week .appt.tiny {
  padding: 0 6px;
}
.week .appt.tiny .at em {
  display: none;
}
.week .appt.tiny.block .at em {
  display: inline;
  color: var(--fg);
  font-weight: 600;
}
.week .appt.mid .aw {
  display: none;
}
.week .appt.mid b {
  -webkit-line-clamp: 1;
}
.week .appt.short {
  padding: 1px 6px;
  gap: 0;
  justify-content: center;
}
.week .appt.short .at {
  font-size: 11px;
  line-height: 13px;
}
.week .appt.short b {
  -webkit-line-clamp: 1;
  font-size: 12px;
  line-height: 14px;
}
.week .appt.short .aw {
  display: none;
}
.week .appt.tiny .at {
  font-size: 11px;
}
.week .appt.tiny b {
  font-size: 12px;
}
.week .appt.short span.at {
  display: flex;
}
.slot .blk {
  font-weight: 600;
  color: var(--fg);
}
.month .chip b {
  font-weight: 700;
}
button.card.kpi {
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
button.card.kpi:hover {
  border-color: var(--teal);
}
.tktot {
  font-weight: 700;
  color: var(--ok);
}
/* Tenancies: one big list, and the tenancy on the whole screen (21/11/2026; a split view like Contacts from v213 until
   then). The list and the tenancy take turns at every width (tensplit.js): .has-sel is the tenancy. The tenancy lays
   itself out by its own width (container queries). The shared pieces are Contacts' and Repair jobs' (.csplit, .cleft,
   .ctabs2, .cshowrow, .jrow, .cright). */
.tensplit {
  grid-template-columns: minmax(0, 1fr);
}
.tensplit.has-sel .cleft,
.tensplit:not(.has-sel) .cright {
  display: none;
}
.tensplit .clist,
.tensplit .cright {
  overflow: visible;
}
.tensplit .cleft {
  border-right: 0;
}
.tensplit .cltop {
  padding: 22px 28px 0;
}
.tensplit .csearch {
  max-width: 560px;
}
.tensplit .cshowrow,
.tensplit .calso {
  padding-left: 28px;
  padding-right: 28px;
}
/* a line: the home's first photo, the address, who, where it is up to, the rent */
/* (only the Tenancies list: Offers uses the same line with two parts, and was squeezed by this until 22/11/2026) */
.tensplit .trow {
  grid-template-columns: 76px minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(96px, auto);
  align-items: center;
  gap: 4px 20px;
  padding: 12px 28px;
}
.tensplit .trow .pthumb {
  width: 76px;
  height: 54px;
}
.tensplit .trow .twho span,
.tensplit .trow .tst span {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tensplit .trow .tst em {
  margin-top: 2px;
}
/* a narrow window or a phone: the photo, then the address, who and where it is up to under each other */
@media (max-width: 860px) {
  .tensplit .cltop {
    padding: 16px 16px 0;
  }
  .tensplit .cshowrow,
  .tensplit .calso {
    padding-left: 16px;
    padding-right: 16px;
  }
  .tensplit .trow {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: 'ph main rent' 'ph who rent' 'ph st rent';
    align-items: start;
    gap: 1px 12px;
    padding: 12px 16px;
  }
  .tensplit .trow .pthumb {
    grid-area: ph;
    width: 64px;
    height: 46px;
    margin-top: 2px;
  }
  .tensplit .trow .tmain {
    grid-area: main;
  }
  .tensplit .trow .twho {
    grid-area: who;
  }
  .tensplit .trow .tst {
    grid-area: st;
  }
  .tensplit .trow .trr {
    grid-area: rent;
  }
  .tensplit .trow .tmain small,
  .tensplit .trow .twho small {
    display: none;
  }
  .tensplit .trow .twho span,
  .tensplit .trow .tst span {
    font-size: 12.5px;
    color: var(--muted);
  }
}
/* five tabs: on a narrow screen the row slides sideways, so the last tab is never cut off */
.tensplit .ctabs2 {
  gap: 13px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tensplit .ctabs2::-webkit-scrollbar {
  display: none;
}
/* (a row that slides cuts off what hangs below it, so the line under the tabs is drawn inside the row here) */
.tensplit .ctabs2 {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--line);
}
.tensplit .ctabs2 button {
  margin-bottom: 0;
}
.tensplit .ctabs2 button {
  white-space: nowrap;
  font-size: 13.5px;
}
.tensplit .ctabs2 em {
  margin-left: 4px;
}
.tensplit .clhead h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* How this page works, as a small round info button beside the title */
.tensplit .clhead .phhelp {
  font-size: 0;
  gap: 0;
  padding: 4px;
}
.tensplit .clhead .phhelp .i {
  width: 15px;
  height: 15px;
}
.tensplit .cshowrow b {
  color: var(--fg);
  font-weight: 600;
}
.trow .trr {
  text-align: right;
  white-space: nowrap;
}
.trow .trr b {
  font-variant-numeric: tabular-nums;
}
.trow .trr small.bad {
  color: var(--bad);
  font-weight: 600;
}
.tpage {
  padding: 22px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  container: tpage / inline-size;
}
.tpage .prback {
  margin: 0;
}
/* where it is up to, in the same plain words as its line on the left, and the fee package as information */
.tsum .tstate {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
.tsum .tpkg {
  font-size: 12px;
  color: var(--muted);
}
.tpage .prstage,
.tpage .prcols {
  margin-top: 0;
}
.tcols > .tabs {
  grid-column: 1 / -1;
  gap: 0;
}
.tcols > .tabs button {
  padding: 9px 11px;
}
.tcols .prtab {
  margin-top: 0;
}
@container tpage (max-width: 1040px) {
  .tcols {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
  .thero {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  .tstats b {
    white-space: normal;
    font-size: 18px;
  }
}
@container tpage (max-width: 680px) {
  .tcols {
    grid-template-columns: minmax(0, 1fr);
  }
  .thero {
    grid-template-columns: minmax(0, 1fr);
  }
  .tprop {
    aspect-ratio: 2/1;
  }
  .tstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tsum h1 {
    font-size: 21px;
  }
  .prdl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tmonth {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .tpage {
    padding: 12px 16px 32px;
  }
}
/* the tenancy page on the right of the split keeps its two columns while there is room, then stacks */
@container tpage (max-width: 1040px) {
  .tpage .prcols {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
}
@container tpage (max-width: 760px) {
  .tpage .prcols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the viewing emails on an appointment (viewings.js NL.viewMailRows): coloured text, no pills */
.kv .rrst {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.kv .rrst svg {
  width: 13px;
  height: 13px;
}
.kv .rrst.ok {
  color: var(--ok);
}
.kv .rrst.bad {
  color: var(--bad);
}
.kv .rrst.wait {
  color: var(--muted);
}

/* Document log: a line's latest note or flag (doclog.js), coloured text only */
.lognote {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.lognote svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
}
.lognote.bad {
  color: var(--bad);
  font-weight: 600;
}
.lognotes {
  margin-bottom: 12px;
}
.lognotes b.bad {
  color: var(--bad);
}
.lognotes b.ok {
  color: var(--ok);
}
.dtbuilt {
  margin-top: 10px;
}
.dtbuilt summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

/* Signing: the office's own note on a signing (never shown to signers), as coloured text in the list */
.sgsubj small.sgofnote {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--warn);
  font-weight: 600;
}
.sgsubj small.sgofnote svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
}

/* Rent and payments, This month as a split view (Abaan picked look A, 17/11/2026). Colours are text only: no pink
   boxes, no filled pills. */
.rssplit {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.rsleft {
  padding: 0;
  overflow: hidden;
}
.rsgrp {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rsrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.rsrow:hover {
  background: var(--sunk);
}
.rsrow.on {
  background: var(--tint);
  box-shadow: inset 3px 0 0 var(--teal);
}
.rsl,
.rsr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rsr {
  text-align: right;
  flex: none;
}
.rsrow b {
  font-weight: 600;
}
.rsrow small {
  font-size: 12px;
  color: var(--muted);
}
.rsrow small.bad,
.rstot small.bad,
.rssteps .bad {
  color: var(--bad);
}
.rsrow small.warn,
.rstot small.warn,
.rssteps .warn {
  color: var(--warn);
}
.rsrow small.tl,
.rstot small.tl,
.rssteps .tl {
  color: var(--teal);
}
.rsrow small.ok,
.rstot small.ok,
.rssteps .ok {
  color: var(--ok);
}
.rsnone {
  margin: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.rsmore {
  margin: 0;
  padding: 8px 16px 12px;
}
.rsright {
  padding: 20px 22px;
  min-width: 0;
}
.rshead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.rshead h2 {
  margin: 0;
  font-size: 21px;
}
.rshead p {
  margin: 2px 0 0;
}
.rstot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}
.rstot b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}
.rssteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 16px 0 6px;
}
.rssteps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 0;
  border-top: 3px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.rssteps li b {
  color: var(--fg);
  font-weight: 600;
}
.rssteps li.now {
  border-color: var(--teal);
}
.rssteps li.dn {
  border-color: var(--ok);
}
/* the tenancy's lines in the right panel: the same rows as before, without the coloured boxes */
.rsitems {
  margin: 0;
  padding: 0;
}
.rsitems .rri,
.rsitems .rri.late,
.rsitems .rri.soon,
.rsitems .rri.today {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0;
  margin: 0;
}
.rsitems .rri.late .rrmain > b,
.rsitems .rri.soon .rrmain > b,
.rsitems .rri.today .rrmain > b {
  color: var(--fg);
}
.rsitems .rri .rrmain > b {
  font-size: 15px;
}
.rsitems .rri .rrdoc {
  background: none;
  border: 0;
  border-top: 1px dashed var(--line);
  border-radius: 0;
  padding: 8px 0 0;
}
.rsopen {
  margin: 10px 0 0;
}
.rspick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}
.rspick b {
  color: var(--fg);
  font-size: 16px;
}
.rphead {
  margin: 0 0 10px;
  font-size: 16px;
}
.rpgap {
  height: 22px;
}
@media (max-width: 900px) {
  .rssplit {
    grid-template-columns: minmax(0, 1fr);
  }
  .rssteps {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Arrears: tenant and property in one column, the steps as coloured text (no filled pills) */
.arrrow td small {
  display: block;
}
.arrs,
.arrs.ok,
.arrs.warn,
.arrs.bad {
  background: none;
  padding: 0 10px 0 0;
  border-radius: 0;
}
.rsitems,
.rsitems .rri {
  background: none;
}
.rsitems .rri {
  display: block;
}
.rsitems .rri .rrmain > b {
  display: none;
}
.rsitems .rri .rrside {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}
.rsitems .rsmon {
  list-style: none;
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}
.rsitems .rsmon + .rri {
  border-top: 0;
  padding-top: 4px;
}
.arrrow td:first-child {
  text-align: left;
}
.arrrow td:first-child .link {
  text-align: left;
}
/* deposit paid in parts (depplan.js): coloured text only */
.dpltab td small {
  display: block;
  color: var(--muted);
}
.dpls.ok,
.rsdep .ok {
  color: var(--ok);
}
.dpls.bad,
.rsdep .bad {
  color: var(--bad);
}
.dpls.warn,
.rsdep .warn {
  color: var(--warn);
}
.dpls.tl,
.rsdep .tl {
  color: var(--teal);
}
.dpview {
  margin: 6px 0 4px;
}
.dpview tr.b td {
  font-weight: 600;
}
.rsitems .rsdep p {
  margin: 0 0 8px;
}
.dpltab {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.dpltab th,
.dpltab td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.dpltab th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.dpltab .r {
  text-align: right;
  width: 120px;
}

/* three number boxes share the row evenly on a computer or an iPad (Rent and payments > Collect rent; and Complaints,
   Match and Referrals, which left an empty fourth place at the end, or one box alone on a second row on an iPad:
   owner, 23/11/2026, nothing "wonky") */
@media (min-width: 700px) {
  .kpis.kpis3,
  .kpis:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Calls > Call someone (18/11/2026): find a person by name or number and call them from your desk phone */
.calldial {
  margin-bottom: 18px;
}
.calldial .cardhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.calldial .psearch {
  max-width: 520px;
  width: 100%;
}
.calldial .cdres {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-width: 640px;
}
.calldial .cdres li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
}
.calldial .cdres li:first-child {
  border-top: 0;
}
.calldial .cdres small {
  display: block;
  color: var(--muted);
}
.calldial .cdhow,
.calldial .cdnone {
  margin: 10px 0 0;
}
.calllogh {
  margin: 4px 0 10px;
}

/* the window card (A3) preview, 18/11/2026 */
.winview .winpages {
  display: flex;
  justify-content: center;
}
.winview .winpages img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh / var(--zm, 1) - 240px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
/* Keys > Log: plain read-only lines under each day (18/11/2026) */
.keylog {
  max-width: 860px;
}
.klday {
  margin: 18px 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.kllist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.klline {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}
.klline:first-child {
  border-top: 0;
}
.klline p {
  margin: 0;
  font-size: 14px;
}
.klline small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.klnone {
  padding: 16px 0;
}
.klnote .i {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 6px;
}
/* the marketing pack preview: the pages one under the other, scrolling inside the pop-up */
.mpview .mppages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: calc(100vh / var(--zm, 1) - 220px);
  overflow-y: auto;
  padding: 16px;
  background: var(--sunk);
}
.mpview .mppages img {
  width: 100%;
  max-width: 620px;
  height: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
/* the key box code, big enough to read out (18/11/2026) */
.kbcode {
  margin: 4px 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
/* what was checked of a buyer's position: a tick list (18/11/2026) */
.postick {
  border: 0;
  padding: 0;
  margin: 4px 0 12px;
  display: grid;
  gap: 8px;
}
.postick legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.postick label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.postick input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}
/* Record an offer: the "connected to North Lane" tick under the Checked ticks sits in line with them and a normal gap
   below (it stood 2px further in, with a 45px gap above it: owner, 23/11/2026, nothing "not inline") */
.postick:has(+ label.row-gap) {
  margin-bottom: 0;
}
.postick + label.row-gap {
  font-weight: 500;
}
.postick + label.row-gap > input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}
/* an email signature as it will look (18/11/2026) */
.sigview {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  background: #fff;
  color: #222;
  overflow: auto;
  max-height: 260px;
  font-family: Calibri, Arial, sans-serif;
  font-size: 14px;
}
.sigview img {
  max-width: 100%;
  height: auto;
}
/* the name under the side bar opens My account; under it only My activity and Sign out (Abaan, 18/11/2026). Anything
   else put there (the demo's own button) is shown inside My account instead */
.whoami button.me {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border-radius: var(--r);
  padding: 6px 4px;
}
.whoami button.me:hover,
.whoami button.me:focus-visible {
  background: color-mix(in srgb, var(--rail-strong) 8%, transparent);
}
.whoami .me .avatar {
  flex: none;
  font-size: 14px;
}
.whoami .me > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.whoami .me #meRole {
  display: block;
}
.whoami .me .meopen {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--rail-muted);
}
.whoami > :not(.me):not(.mebtns),
.whoami .mebtns > :not([data-a='myActivity']):not([data-a='signOut']) {
  display: none;
}
.acctlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acctlist .btn {
  justify-content: flex-start;
  width: 100%;
}
.sigpick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.sigpick label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
}
/* the My signature | office switch above an email's signature is a switch like any other: its two buttons side by
   side (the rule above is for the list of choices in My account, and had stacked them: put right 21/11/2026) */
.seg.sigpick {
  display: inline-flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
}
.sigpick label span {
  font-weight: 400;
  display: block;
  font-size: 12px;
  color: var(--muted);
}
/* a signature's own tables are laid out as in an email, not like the CRM's lists */
.sigview table {
  width: auto;
  min-width: 0;
}
.sigview td {
  padding: 0;
  border: 0;
  vertical-align: top;
}
.sigview td img {
  max-width: none;
}
/* a new set's tag, given by the CRM */
.nktag {
  margin: 6px 0 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
}
/* the builders to ask for a price (jobflow.js) */
.jabuild {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
.jabuild .mchk {
  margin: 4px 0;
}

/* a mortgage referral's "For the broker" box (mortref.js) */
.mgl {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.mgdl .mgwide {
  grid-column: 1 / -1;
}
.ptupd .btn {
  width: auto;
}
/* a long details box in a pop-up scrolls with the pop-up, never squashed and cut off */
.modal > .prdl {
  flex-shrink: 0;
}
/* a partner's usual fees (referrals.js) */
.rffees {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.rffeerow {
  align-items: end;
}
.rffeerow .iconbtn {
  margin-bottom: 6px;
}
/* a Founder looking at a sub-agent's account (subagents.js, saPeek): the read-only line at the top */
.sapeek {
  align-items: center;
  margin-bottom: 16px;
}
.sapeek > div {
  flex: 1;
}
/* while looking, only moving around and opening things shows: nothing that would change their account */
.subpeek
  #view
  [data-a]:not([data-a='saPeekEnd']):not([data-a='scWeek']):not([data-a='scOpen']):not([data-a='spOpen']):not(
    [data-a='subCommTab']
  ) {
  display: none;
}
/* the last bank statement check, as separate parts (money.js) */
.bklast {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
}

/* role names in Settings > Roles: a proper rounded bubble with the dot and the name inside it, the rank beside it (owner, 19/11/2026) */
.rolehead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.pill.rolepill {
  padding: 3px 11px 3px 9px;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--rc);
  background: color-mix(in srgb, var(--rc) 14%, transparent);
}

/* Settings > Fees and commission: each person's two figures side by side (owner, 19/11/2026) */
.compair {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
}
.comone {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.comone small {
  font-size: 11.5px;
  color: var(--muted);
}
.comone .prefix input {
  width: 110px;
}

/* Commission to approve, right under the greeting (owner, 19/11/2026): a stripe on the edge, never a filled box */
.leadtop {
  margin-bottom: 14px;
  box-shadow: inset 4px 0 0 var(--warn);
}
.leadtop ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.leadtop li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.leadtop li:first-child {
  border-top: 0;
  padding-top: 0;
}
.leadtop li > div {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.leadtop li > div:hover b {
  color: var(--teal);
}
.leadtop li b {
  font-weight: 600;
}
.leadtop li p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.leadtopa {
  display: flex;
  gap: 6px;
  flex: none;
}
@media (max-width: 700px) {
  .leadtop li {
    flex-wrap: wrap;
  }
}

/* a call you made, ringing: They answered / No answer on the note; the person a Call button brought to Calls */
.callcard .ccbtns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.calldial .cdfor {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 var(--teal);
  background: var(--tint);
  font-size: 13.5px;
}
.calldial .cdfor svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}

/* Features on a property (owner, 19/11/2026): pick-many buttons for heating, parking and the rest */
.pickgrp {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}
.pickgrp legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}
.pickchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pickchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.pickchip:hover {
  border-color: var(--teal);
}
.pickchip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.pickchip svg {
  width: 14px;
  height: 14px;
  display: none;
}
.pickchip.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.pickchip.on svg {
  display: block;
}

/* the Rightmove link on a property, and what the window card still needs (19/11/2026) */
.rmlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
section.card > .rmlink {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.rmlink .rmlinkt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}
.rmlink .rmlinkt a {
  overflow-wrap: anywhere;
}
.rmlink .rmlinkt .bad {
  color: var(--bad);
}
.winview .winneeds {
  margin: 0 0 12px;
}
.winview .winneeds p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: 13px;
}
.winview .winneeds input {
  width: 80px;
}
/* Book appointment > Photography with an outside photographer (19/11/2026): open their calendar, then the time */
.bkgo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}
.bkgo .hint {
  margin: 0;
}
.bkask {
  margin: 4px 0 2px;
}

/* ---------- confirmations (owner 19/11/2026): "Confirmed" green, "Not confirmed" orange, words only ---------- */
.cfl {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cfl.ok,
.cfi.ok {
  color: var(--ok);
}
.cfl.warn,
.cfi.warn {
  color: var(--warn);
}
.appt .at .cfl,
.week .appt.short .at .cfl,
.week .appt.tiny .at .cfl {
  display: inline;
  flex: none;
  margin-left: 4px;
  opacity: 1;
}
.cfi {
  font-style: normal;
  margin-left: 4px;
}
.chip .cfi .i {
  color: inherit;
  margin-right: 0;
  width: 12px;
  height: 12px;
}
/* done in the calendar is light blue (owner 19/11/2026), so green only ever means confirmed */
.appt.done,
.chip.done,
.ev.done {
  --c: #1aa9cc;
}
.legendT.calkey .kd.done {
  background: #1aa9cc;
}
/* an appointment that has happened (owner, 22/11/2026: "whys thiss not gone blue itss been done?"): blue like Done,
   over Late, and not crossed out or faded (crossed out is Cancelled) */
.appt.held,
.chip.held,
.ev.held {
  --c: #1aa9cc;
}

/* ---------- viewings: how it went, the no-show tally and Let agreed (owner 19/11/2026) ---------- */
.nstag {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bad);
  white-space: nowrap;
}
ul.list li.vrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vrow .vmain {
  flex: 1;
  min-width: 0;
}
.vrow .vfb {
  margin-top: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--fg);
}
.vrow .vside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}
.vrow .vst {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vrow .vla {
  min-width: 0;
}
.fbq .fbqbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.fbq .fbq-ok,
.fbq .fbq-ok .i {
  color: var(--ok);
}
.fbq .fbq-bad,
.fbq .fbq-bad .i {
  color: var(--bad);
}
.fbq .fbqmore {
  margin-top: 10px;
}
@media (max-width: 560px) {
  ul.list li.vrow {
    flex-wrap: wrap;
  }
  .vrow .vside {
    align-items: flex-start;
  }
}

/* ---------- tenancy applications (apply.js, applyform.js) ---------- */
.aptone {
  font-weight: 600;
  font-size: 13px;
}
.aptone.ok {
  color: var(--ok);
}
.aptone.warn {
  color: var(--warn);
}
.aptone.bad {
  color: var(--bad);
}
.aptone.teal {
  color: var(--teal);
}
.aptone.grey {
  color: var(--muted);
  font-weight: 500;
}
.apcmpwrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.apcmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 13.5px;
}
.apcmp th,
.apcmp td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.apcmp thead th {
  font-family: var(--display);
  font-size: 15px;
  border-bottom: 2px solid var(--line);
}
.apcmp tbody th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 150px;
  white-space: nowrap;
}
.apcmp tr.apacts td,
.apcmp tr.apacts th {
  border-bottom: 0;
}
.apper + .apper {
  margin-top: 4px;
}
.apticks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apticks.sm {
  font-size: 13px;
}
.aptick {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.aptick.on {
  color: var(--ok);
  font-weight: 600;
}
.aptick small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.aptick .i {
  width: 16px;
  height: 16px;
}
.apview .apbody {
  padding: 4px 22px 8px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.apperson {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.apphead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.apphead p {
  margin: 2px 0 0;
}
.apperson h4,
.apview h4 {
  margin: 14px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}
.apgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.apans span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.apans b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.apsigned {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.apways {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.apways .btn {
  justify-content: center;
}
.aptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.aptable th {
  white-space: normal;
  overflow-wrap: anywhere;
}
.apdoc .aptable td {
  height: 30px;
}
.aptable th,
.aptable td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
}
.aplist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .apgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .apphead {
    flex-direction: column;
  }
}

/* the applicant's form: their own page (#apply/...), a device handed to them, or a paper form typed in */
body.afpage {
  background: var(--bg);
}
.afwrap {
  min-height: 100vh;
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg);
}
.afwrap.afdevice {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
}
.afwrap.afinmodal {
  min-height: 0;
  padding: 0 0 8px;
  background: transparent;
  max-height: calc(100vh - 160px);
  overflow: auto;
}
.afcard {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.afinmodal .afcard {
  box-shadow: none;
  max-width: none;
}
.afhead {
  background: var(--rail);
  color: var(--rail-fg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.afbrand {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--rail-sub);
}
.afbrand b {
  color: var(--rail-strong);
  font-family: var(--display);
  font-size: 16px;
}
.afprop b {
  display: block;
  color: var(--rail-strong);
  font-size: 15px;
}
.afprop span {
  font-size: 13px;
}
.afprog {
  height: 5px;
  background: var(--sunk);
}
.afprog span {
  display: block;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s;
}
.afstep {
  margin: 12px 22px 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.afbody {
  padding: 8px 22px 18px;
}
.afbody h1 {
  font-family: var(--display);
  font-size: 22px;
  margin: 10px 0 14px;
}
.afbody h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin: 14px 0 6px;
}
.afgood {
  background: var(--tint);
  border-radius: var(--r);
  padding: 4px 16px 10px;
  margin: 12px 0;
}
.afgood ul,
.afdecl ul {
  padding-left: 18px;
  margin: 6px 0;
}
.afgood li,
.afdecl li {
  margin: 6px 0;
  line-height: 1.45;
}
.afdecl {
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 16px;
  margin-bottom: 14px;
}
.aflead {
  font-weight: 600;
  margin-bottom: 14px;
}
.afnote {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.affield {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.affield > label,
.affield > legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  margin-bottom: 6px;
}
.afopt {
  font-weight: 400;
  color: var(--muted);
}
.afhint {
  font-size: 12.5px;
  color: var(--muted);
}
.affield input,
.affield textarea {
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg);
  width: 100%;
  box-sizing: border-box;
}
.affield input:focus,
.affield textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.afmoney {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.afmoney span {
  padding: 0 4px 0 12px;
  color: var(--muted);
}
.afmoney input {
  border: 0;
}
.afpicks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.afpick {
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  min-height: 44px;
}
.afpicks.big .afpick {
  flex: 1 1 0;
  border-radius: var(--r-sm);
}
.afpick.on {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--teal-ink);
  font-weight: 700;
}
.afbad input,
.afbad textarea,
.afbad .afpick,
.afbad .afmoney,
.afcheck.afbad {
  border-color: var(--bad);
}
.aferr {
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}
.afrow {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px 2px;
  margin-bottom: 12px;
}
.afrowhead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.aflink {
  background: none;
  border: 0;
  color: var(--bad);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.afadd {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}
.afcheck {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 600;
  cursor: pointer;
}
.afcheck input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--teal);
  flex: none;
}
.afsig {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 34px;
  color: var(--teal-ink);
  margin: -6px 0 6px;
  overflow-wrap: anywhere;
}
.afsig.sm {
  font-size: 21px;
  margin: 0 4px 0 0;
}
.afbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  bottom: 0;
}
.afbar .btn {
  min-height: 46px;
  min-width: 110px;
  justify-content: center;
}
.afdone {
  text-align: center;
  padding: 30px 26px 30px;
}
.afok {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 28px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .afwrap {
    padding: 0 0 24px;
  }
  .afcard {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
  .afbody {
    padding: 6px 16px 16px;
  }
  .afhead {
    padding: 16px;
  }
  .afbar {
    padding: 12px 16px;
  }
  .afstep {
    margin: 12px 16px 0;
  }
}

/* the printed application form (apply.js NL.appPrintHtml): his paper form's layout */
body.approot {
  background: #fff;
  color: #14211f;
  font-family: var(--body);
}
.apdoc {
  max-width: 190mm;
  margin: 0 auto;
  padding: 12mm 0;
  font-size: 10.5pt;
}
.apdoc header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #11756d;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.apdoc header img {
  height: 34px;
}
.apdoc h1 {
  font-family: var(--display);
  color: #11756d;
  font-size: 18pt;
  margin: 0;
}
.apdoc h2 {
  color: #11756d;
  font-size: 12pt;
  margin: 14px 0 6px;
}
.apdoc h2 small {
  font-weight: 400;
  color: #5a6d6a;
  font-size: 9pt;
}
.apdoc h3 {
  font-size: 10pt;
  margin: 10px 0 4px;
}
.apgood {
  border: 1px solid #d6e2df;
  background: #f3f7f6;
  padding: 6px 10px;
  margin: 8px 0;
}
.apgood p {
  margin: 4px 0;
}
.apbs {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid #d6e2df;
  border-top: 1px solid #d6e2df;
}
.apb {
  flex: 1 1 30%;
  min-width: 30%;
  border-right: 1px solid #d6e2df;
  border-bottom: 1px solid #d6e2df;
  padding: 4px 6px 6px;
  min-height: 34px;
  box-sizing: border-box;
}
.apb.w {
  flex-basis: 100%;
}
.apb span {
  display: block;
  font-size: 7pt;
  font-weight: 700;
  color: #11756d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.apb b {
  font-weight: 500;
}
.apbreak {
  break-before: page;
}
@media print {
  .apdoc {
    padding: 0;
  }
}

/* 20/11/2026 (v91) */
/* Exit on the applicant's form, in the dark header */
.afright {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.afexit {
  background: none;
  border: 1px solid color-mix(in srgb, var(--rail-strong) 45%, transparent);
  color: var(--rail-strong);
  border-radius: var(--r);
  padding: 5px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}
.afexit:hover,
.afexit:focus-visible {
  background: color-mix(in srgb, var(--rail-strong) 14%, transparent);
}
/* which signature an email ends with: My signature or the office's */
.sigtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
/* Let agreed: referencing waits until ticked; Skip says it is not being done */
.lasteprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.lasteprow .btn {
  flex: none;
}
.lastep input:disabled + span {
  opacity: 0.6;
}
.lawait,
.maxnote {
  color: var(--warn);
}
/* Start a tenancy: up to 10 tenants, each with their own guarantor */
.ntrow {
  align-items: flex-end;
}
.ntrow > .field {
  flex: 1 1 220px;
}
/* each tenant's row spaced like the rest of the form (the second tenant's label sat on the first tenant's box) */
.ntrow + .ntrow {
  margin-top: 14px;
}
.ntrm {
  flex: none;
  margin-bottom: 14px;
}
.ntaddp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}
/* Add property: the further owners one under another, and the EPC and register step (owner, 22/11/2026), spaced as
   the form's other rows are */
#apOwners2,
#apRegBox,
#apRegL {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#apOwners2:empty {
  display: none;
}
/* the words beside "Add another owner" go under it when there is no room beside (a phone) */
.apaddp {
  flex-wrap: wrap;
}
#apOwnLeft {
  flex: 1 1 260px;
}
#apEpcRBox {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
}
#apEpcRBox > .field {
  flex: 1;
}
/* the terms of business form: the register numbers still to add, their button and what happens without them
   (owner, 22/11/2026) */
#tbRegBox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
}
#tbRegBox p {
  margin: 0;
}
/* a referencing report for each tenant and each guarantor */
.refups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.refon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.refon span {
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
/* where to pay, on an invoice (rentrun.js NL.payBank) */
.nldoc .nlbank {
  border: 1px solid #dde3e2;
  background: #f6f8f8;
  margin: 16px 0 4px;
  padding: 11px 14px;
}
.nldoc .nlbank > span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #11756d;
}
.nldoc .nlbank dl {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 4px 12px;
  margin: 8px 0 0;
  font-size: 11px;
}
.nldoc .nlbank dt {
  color: #5a6d6a;
}
.nldoc .nlbank dd {
  margin: 0;
  font-weight: 700;
  color: #14211f;
}
/* Settings > Bank details */
.cobank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 10px 0 0;
}
.cobank dt {
  color: var(--muted);
}
.cobank dd {
  margin: 0;
  font-weight: 600;
}

/* the rental property register (register.js): the Register tab of a Fully managed home. Coloured text only */
.rghead {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.rghead div {
  display: flex;
  flex-direction: column;
}
.rghead > div > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rghead b {
  font-size: 15px;
  margin-top: 3px;
}
.rghead b .muted,
.rghead b .small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.rgsec {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 16px 0 2px;
}
.rgrow {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rgsec + .rgrow {
  border-top: 0;
}
.rgrow small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.rgrow .link {
  text-align: left;
}
.rgsteps {
  margin: 0 0 12px;
  padding-left: 22px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .rgrow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* a long written answer in a label and value list (an applicant's Other notes): the label, then the answer under it
   across the whole list, read from the left like a sentence */
.kv dt.kvwide {
  grid-column: 1 / -1;
}
.kv dd.kvwide {
  grid-column: 1 / -1;
  margin-top: -4px;
  text-align: left;
}

/* the application form: who goes on a step and who does not, said as a short list above the Add button */
.afwho {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.afwho p {
  margin: 0 0 6px;
}
.afwho ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.afwho li {
  margin: 0 0 4px;
}
.afwho p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Start a tenancy, First payment box: what is left to pay once the holding deposit has come off (lettings.js
   NL.holdOffHtml) */
.prohold {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.prohold span b {
  font-size: inherit;
}

/* the agreement check page: an answer the CRM works out by itself ("Deposit paid", agreeprep.js) */
.apauto {
  margin: 6px 0 0;
  font-weight: 600;
}
.apauto .muted {
  display: block;
  margin-top: 3px;
  font-weight: 400;
}

/* ---------- every screen size: phone, iPad, laptop, big screen (owner, 22/11/2026: "go through whole crm fix any
   formatting issues for ipad computer pc different sizes and phones") ---------- */
/* Tables. A column of words is never squeezed to a word a line: a cell that holds a name, an address or a sentence
   keeps a readable width, and a table that then no longer fits slides sideways inside its own box. That is for a
   phone and an iPad, where sliding with a finger is natural: on a laptop (1200 wide and up) no table is made to
   slide by these rules (checked against version 126 at 1280 and 1366 wide). The conditions sit in :where() so they
   weigh nothing: the later rule wins, and one class on a cell (docname, tdlong) beats them */
@media (max-width: 1199px) {
  .tablewrap
    td:where(:not(.nw):not(.r)):where(:has(> b), :has(> small), :has(> button.link:not(.small)), :has(> .pflag)) {
    min-width: 150px;
  }
  .tablewrap td:where(:not(.nw):not(.r):has(> small:not(:empty))) {
    min-width: 180px;
  }
  .tablewrap td:where(:not(.nw):not(.r):not(:has(*))) {
    min-width: 100px;
  }
  /* the six months under the Accounts chart are figures, not words */
  .chart .tablewrap td {
    min-width: 0;
  }
}
/* A laptop or a big screen (1200 wide and up): a table slides sideways only when nothing else can be done. Before it
   does, a long heading goes onto two lines ("OWN-LEAD SALES COMPLETED" made Accounts > Commission a third wider
   than a laptop), and a table is as narrow as the box it is in: the width a table is never narrower than (680, or
   what the page asks for, such as 860 for the Document log) is for phones and iPads. On a laptop it made a
   tenancy's Documents and Deposit tabs, Settings > Team and Sub-agents slide (the last two by 4 and 6 pixels) */
@media (min-width: 1200px) {
  .tablewrap th {
    white-space: normal;
  }
  .tablewrap table {
    min-width: 0 !important;
  }
  /* the row of links at the end of a line (View, New version, Wrong file, Flag or note) goes onto two lines before
     the table slides: on the Document log's ID tab it was cut off at the right while "For" was a word a line */
  .tablewrap td.r.nw:has(> .link) {
    white-space: normal;
  }
}
/* a laptop: a little less air between columns, so a seven-column list fits without scrolling */
@media (max-width: 1440px) {
  .tablewrap th,
  .tablewrap td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tablewrap th:first-child,
  .tablewrap td:first-child {
    padding-left: 14px;
  }
  .tablewrap th:last-child,
  .tablewrap td:last-child {
    padding-right: 14px;
  }
}
/* a small laptop (1280 wide): Settings > Team and Sub-agents were a few pixels too wide for their box */
@media (min-width: 1200px) and (max-width: 1320px) {
  .tablewrap th:not(:first-child),
  .tablewrap td:not(:first-child) {
    padding-left: 8px;
  }
  .tablewrap th:not(:last-child),
  .tablewrap td:not(:last-child) {
    padding-right: 8px;
  }
}
/* Properties as a list: a valuation with both figures goes on two lines, and the home keeps room for its address */
.tablewrap td:where(:not(.nw):not(.r):has(> .prowmain)) {
  min-width: 214px;
}
/* Document log: the document's name keeps its room beside the long row of links */
.tablewrap td.docname {
  min-width: 250px;
}
/* a cell that holds only a sentence (what a payment or an invoice was for) keeps room for it. core.js table() puts
   "tdlong" on every cell of 38 letters or more that is words alone */
.tablewrap td.tdlong {
  min-width: 180px;
}
@media (max-width: 1199px) {
  .tablewrap td.tdlong {
    min-width: 220px;
  }
}
/* Document log: the line that says a document was removed wraps under its number (it made that column half the page
   wide, and squeezed the document's name) */
.logdeltag {
  display: flex;
  align-items: flex-start;
  min-width: 150px;
  max-width: 190px;
  white-space: normal;
  line-height: 1.35;
}
.logdeltag svg {
  flex: none;
  margin-top: 2px;
}
/* a link that runs onto a second line lines up with what is around it (a button's words are centred otherwise) */
.link {
  text-align: inherit;
}
/* the message at the foot of the screen: on a phone it uses the width of the screen (it was half as wide, and five
   lines tall) */
@media (max-width: 640px) {
  .toast {
    left: 12px;
    right: 12px;
    transform: none;
    width: fit-content;
    max-width: none;
    margin: 0 auto;
  }
}
/* "Signed by everyone" on the dashboard: the words keep their room and the buttons go underneath on a phone */
.sgdone {
  flex-wrap: wrap;
}
.sgdone > div:nth-child(2) {
  flex: 1 1 240px;
}
/* Settings > Connections on a phone: "Not connected yet" and its button go under the words, not beside them */
@media (max-width: 640px) {
  .conn {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .conn > .side {
    grid-row: auto;
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 6px;
  }
}
/* a link never runs out of the box it is in: a long email address breaks onto the next line */
.link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.kv dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* the stage strip on Properties and Pipeline: a stage is never narrower than its own words and count (they ran into
   the next stage on an iPad). The strip slides sideways when the stages do not all fit */
.jstep {
  min-width: max-content;
}
/* a property card's next step: the words keep room, and the button goes under them when the card is narrow */
.jnext {
  flex-wrap: wrap;
}
.jnext > .jdays {
  flex: 1 1 170px;
}
/* the yellow or red line at the top of a tenancy: its link goes under the words on a phone */
.tnext {
  flex-wrap: wrap;
}
.tnext > span {
  flex: 1 1 200px;
}
/* Rent and payments, the three steps of a rent: under each other when there is no room side by side */
.rssteps {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/* a plain list with something on the right (Settings > Contact types): on a phone the right-hand part goes under */
@media (max-width: 640px) {
  .list li {
    grid-template-columns: minmax(0, 1fr);
  }
  .list li > .side {
    grid-row: auto;
    grid-column: 1;
    text-align: left;
    justify-self: start;
  }
}
/* "How this page works" stays on one line beside or under the page's name; on a phone a long name ("Rent and
   payments", "Land & Commercial") keeps its own line and the link goes under it, instead of the name breaking in two
   with the link floating beside it (owner, 23/11/2026: nothing "wonky") */
.phhelp {
  white-space: nowrap;
}
.pagehead h1 {
  flex-wrap: wrap;
  row-gap: 6px;
}
/* Tenancies on a phone: "Rent roll" goes under "Show" when both don't fit, instead of squeezing beside the box */
.cshowrow {
  flex-wrap: wrap;
  gap: 4px 12px;
}
.cshowrow > span {
  white-space: nowrap;
}
/* a note's tags go onto the next line when there are too many for a phone */
.nhead {
  flex-wrap: wrap;
}
/* "Commission to approve" on the dashboard: the question keeps its room, Approve and Decline go under it on a phone */
.leadtop li {
  flex-wrap: wrap;
}
.leadtop li > div {
  flex: 1 1 220px;
}
.timeline .ntag {
  white-space: normal;
}
/* Properties on a phone or an upright iPad shows the cards (properties.js NL.narrowList), so the switch is put away */
@media (max-width: 999px) {
  .pview {
    display: none;
  }
}
/* a phone or an upright iPad: the menu bar across the top keeps its own height. On a page shorter than the screen
   (Contacts, Jobs, Offers) it was stretched into an empty dark block */
@media (max-width: 820px) {
  .app {
    grid-template-rows: auto minmax(0, 1fr);
  }
}
/* a coloured dot stays beside its words (a tenancy's Property box: the dot sat on a line of its own above
   "5 of 8 need attention" on an iPad) */
.badgeRAG {
  flex: none;
}
.kv dd > .row-gap:has(> .badgeRAG) {
  flex-wrap: nowrap;
  align-items: baseline;
}
/* Pipeline: a stage's count and fee stay together on one line ("2 · £4,394.50") */
.colhead span {
  white-space: nowrap;
}
/* a small red or amber line that starts with a warning sign: a gap between the sign and the words (a tenancy's
   People box: "Unknown no longer owns..." had the sign touching the first word) */
p.small > svg.i:first-child {
  margin-right: 4px;
}

/* ---------- Delete property: a quiet link at the foot of the property page (owner 22/11/2026: "kinda hidden") ---------- */
.prdel {
  margin: 2px 0 0;
  text-align: center;
}
.prdel .link {
  color: var(--muted);
  font-weight: 500;
}
.prdel .link .i {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
}
.prdel .link:hover {
  color: var(--bad);
}

/* the owner's order of a sale (owner, 22/11/2026; sales.js NL.saleSteps): the steps still to come and the ones not
   needed in grey, the step you are on ringed in teal, and on the sale the progression's ticks under their step */
.tchecks.ssteps li.todo b,
.tchecks.ssteps li.skip b {
  color: var(--muted);
  font-weight: 500;
}
.tchecks.ssteps li.skip .tnum {
  border-style: dashed;
}
/* it stays ringed with the mouse over it (owner, 22/11/2026: the ring went grey on the step and came back to the left
   of it) */
.tchecks.ssteps li.now .tnum,
.tchecks.ssteps li.now label.tauto:hover .tnum {
  border-color: var(--teal);
  color: var(--teal);
}
.tchecks.ssteps li > .row-gap {
  flex-wrap: wrap;
  justify-content: flex-end;
  /* three buttons on a phone wrap onto a second line in place of running off the left edge */
  max-width: 100%;
  min-width: 0;
}
.tchecks.ssteps li > ul.ssub {
  flex: 1 1 100%;
  order: 5;
  margin: 2px 0 0 38px;
}
/* the progression's own rows keep their layout (a dot, the words, the button) inside the steps list */
.tchecks.ssteps ul.ssub li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  justify-content: normal;
  border-top: 0;
  padding: 6px 0;
}
@media (max-width: 600px) {
  .tchecks.ssteps li > ul.ssub {
    margin-left: 0;
  }
  .tchecks.ssteps ul.ssub li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .tchecks.ssteps ul.ssub li > :nth-child(n + 3) {
    grid-column: 2;
    justify-self: start;
  }
}

/* a box the terms of business still need (terms.js NL.tobGate): marked on Edit property */
.tobneed .field.err select,
.tobneed .field.err input {
  border-color: var(--bad);
}
.tobneed .field.err > label {
  color: var(--bad);
}
.tobneed .wbar button.need {
  color: var(--bad);
}

/* the AML evidence rows (owner, 22/11/2026: "add more ... foamt it better"): one under another, spaced as the form's
   rows are, the first lined up with the ones that can be taken off */
.evrows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evrow .evgap {
  visibility: hidden;
}
@media (max-width: 640px) {
  .evrow .evgap {
    display: none;
  }
  .evrows .evrow + .evrow {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}

/* the offers a viewer made, on the viewing (owner, 22/11/2026: "offer made for") */
.fboffers {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fboffers li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.fboffers .fbost {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.fboffers .fbost .pill {
  white-space: normal;
}

/* the memorandum form: ask the seller or the buyer for what's missing (owner, 22/11/2026) */
.mosask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 12px;
  margin: 0 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
}
.mosask > b {
  flex: 1 0 100%;
  font-weight: 600;
}
.mosaskrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mosaskrow > span {
  min-width: 46px;
}

/* a sub-agent's sign-in on their panel: the buttons under its state, on the right (subagents.js slRow) */
.slbtns {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
}
/* a sub-agent's own portal: "My activity" is about staff (their account page is My account) */
.subportal:not(.subpeek) .mebtns [data-a='myActivity'] {
  display: none;
}

/* tenanted, or someone else lives there (owner, 22/11/2026; properties.js NL.occLine): in amber words under the
   address and on booking a viewing, with who to ring; the tick that they agreed the time under it */
.occline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--warn);
}
.occline > svg,
.occline > .i {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.occline b {
  font-weight: 600;
}
.occline a {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.bkocc {
  margin: 0 0 12px;
}
.bkocc .occline {
  margin: 0 0 8px;
}
.bkoccok {
  font-weight: 500;
}
#apOccSay {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--warn);
  margin: 6px 0 12px;
}
#apOccSay > svg,
#apOccSay > .i {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.occok {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.occok.ok {
  color: var(--ok);
}
.occok.warn {
  color: var(--warn);
}
.occok > svg {
  flex: none;
  width: 15px;
  height: 15px;
}

/* a price nobody has set yet (owner, 22/11/2026: "if asking price is 0 it just is not set"): "Not set" in grey */
.pprice .pnone,
.prprice .pnone {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* a sub-agent's home in the office (owner, 22/11/2026 17:32: "highlight its sub agent"; subagents.js NL.subTag): their
   name in their colour, on the list, the cards and under the address */
.psub {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--sc, var(--teal));
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.psub > svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.psub b {
  font-weight: 600;
}
:root[data-theme='dark']:not([data-mode='signature']):not([data-mode='light']) .psub,
:root[data-mode='dark'] .psub {
  color: color-mix(in srgb, var(--sc, var(--teal)) 55%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-mode='signature']):not([data-mode='light']) .psub {
    color: color-mix(in srgb, var(--sc, var(--teal)) 55%, #fff);
  }
}
.psubline {
  margin: 8px 0 0;
}
.pcard .psubline {
  margin: 0 0 6px;
}
.subviews .vrow.off b,
.subviews .vrow.off p {
  text-decoration: line-through;
  color: var(--muted);
}

/* ---------- a sub-agent's hours (owner, 22/11/2026 18:12) ----------
   Their calendar is the office's week (NL.weekGrid), with the times they are not free shaded; each day's heading says
   its hours (amber when that day was changed on its own, red when not free) and opens that day's hours. */
.week .hd .wkday {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
}
.week .hd .wkday:hover,
.week .hd .wkday:focus-visible {
  color: var(--teal);
  outline: none;
}
.week .hd .wkday:focus-visible {
  box-shadow: 0 0 0 2px var(--teal);
}
.week .hd .wkhrs {
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
}
.week .hd .wkhrs.chg {
  color: var(--warn);
}
.week .hd .wkhrs.no {
  color: var(--bad);
}
.wkoff {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--muted) 16%, transparent) 0 6px,
    transparent 6px 12px
  );
}
.wkoff em {
  position: sticky;
  top: 8px;
  display: block;
  padding: 8px 6px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.week .appt.byoff {
  border-style: dashed;
  border-width: 1.5px;
}
.legendT.calkey .kd.wkfreek {
  width: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legendT.calkey .kd.wkoffk {
  width: 12px;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--muted) 35%, transparent) 0 3px,
    transparent 3px 6px
  );
  border: 1px solid var(--line);
}
.legendT.calkey .kd.byoffk {
  width: 12px;
  background: transparent;
  border: 1.5px dashed var(--muted);
}
.sahours .kv dd .block + .block {
  margin-top: 4px;
}
.sahours .hrschg {
  color: var(--warn);
}
.sahours .hrsno,
.hrsrow .hrsno {
  color: var(--bad);
  font-weight: 600;
}
.hrsweek {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
}
.hrsrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 40px;
}
.hrsrow .hrsday {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 130px;
  font-weight: 600;
}
.hrsrow .hrst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hrsrow .hrst[hidden],
.hrsrow .hrsno[hidden],
.hrsrow[hidden] {
  display: none;
}
.hrsrow select {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 10px;
  width: auto;
  min-width: 96px;
}
.hrsrow select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--tint);
}
.hrsrow input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}
#sdTimes {
  margin: 0 0 8px;
}
#sdTimes .hrsday {
  width: auto;
}
/* the booking form: the sub-agent who does the viewing, in their colour, and the quiet link that gives it back to us */
.bksub {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--sc, var(--teal));
  border-radius: 8px;
  background: color-mix(in srgb, var(--sc, var(--teal)) 7%, transparent);
}
.bksub > svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--sc, var(--teal));
}
.bksub b {
  color: var(--sc, var(--teal));
}
.bksub p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
:root[data-theme='dark']:not([data-mode='signature']):not([data-mode='light']) .bksub b,
:root[data-mode='dark'] .bksub b,
:root[data-theme='dark']:not([data-mode='signature']):not([data-mode='light']) .bksub > svg,
:root[data-mode='dark'] .bksub > svg {
  color: color-mix(in srgb, var(--sc, var(--teal)) 55%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-mode='signature']):not([data-mode='light']) .bksub b,
  :root:not([data-theme='light']):not([data-mode='signature']):not([data-mode='light']) .bksub > svg {
    color: color-mix(in srgb, var(--sc, var(--teal)) 55%, #fff);
  }
}
.bkself {
  margin: 4px 0 0;
  text-align: right;
}
.bkself .link {
  color: var(--muted);
  font-weight: 500;
}
.tpick li.tpnone {
  cursor: default;
  color: var(--bad);
  font-weight: 600;
}
.tpick li.tpnone:hover {
  background: none;
}

/* ---------- a Flag beside a box on a sub-agent's forms (owner, 22/11/2026 18:19), and the flagged lists ---------- */
.field.hasflag {
  position: relative;
}
.field.hasflag > label {
  padding-right: 78px;
}
.flagbtn {
  position: absolute;
  top: -3px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.flagbtn .i {
  width: 13px;
  height: 13px;
}
.flagbtn:hover,
.flagbtn:focus-visible {
  color: var(--warn);
}
.flagbtn.on {
  color: var(--warn);
}
.flagbtn.on .i path:last-child {
  fill: currentColor;
}
.field.flagged input:not(.flagnote input),
.field.flagged select,
.field.flagged textarea,
.field.flagged .prefix {
  border-color: var(--warn);
}
.flagnote input {
  margin-top: 6px;
  font-size: 13px;
}
.flagsaid {
  margin: 4px 0 0;
  color: var(--ok);
}
.subflags .list b .i {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
td small.amber .i {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
}
.sachk li.flag {
  color: var(--warn);
}
.sachk li.flag small {
  font-size: 11px;
}

/* someone a sub-agent handed over (subagents.js NL.subPing): a ping on the home for each person until they open it */
.sping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sping::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: spingPulse 1.8s ease-out infinite;
}
@keyframes spingPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sping::before {
    animation: none;
  }
}
.psubline .sping {
  margin-left: 0;
  margin-top: 4px;
}
.subleads .list li > div > b + .sping {
  margin-left: 6px;
}
.slsure {
  margin-top: 6px;
  font-weight: 600;
}
.pdept .sping {
  display: flex;
  margin: 4px 0 0;
}
/* a sub-agent's rates in their portal (My commission): sales and lets, a line each */
.kpis .kpi .v.sarates {
  flex-direction: column;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.35;
}

/* a referral's own invoice (referrals.js rfInvLine, rfInv; owner, 23/11/2026) */
td small.rfinv {
  display: block;
  margin-top: 4px;
  max-width: 170px;
  white-space: normal;
}
small.rfinv .link {
  font-size: inherit;
}
.rfinvb {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* View account details (owner, 23/11/2026): the second button on the welcome banner, and the page it opens */
.hello .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hello .btn.hellosec {
  background: transparent;
  color: var(--hello-fg);
  border: 1px solid color-mix(in srgb, var(--hello-fg) 45%, transparent);
}
.hello .btn.hellosec:hover {
  background: color-mix(in srgb, var(--hello-fg) 12%, transparent);
}
.acctlist .btn.acpick {
  height: auto;
  padding: 12px 14px;
  align-items: flex-start;
  text-align: left;
  white-space: normal;
}
.acctlist .btn.acpick > svg {
  margin-top: 2px;
  flex: none;
}
.acctlist .btn.acpick span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acctlist .btn.acpick small {
  font-weight: 400;
  color: var(--muted);
}
body.acprint {
  background: #fff;
  margin: 0;
}
body.acprint img {
  display: block;
  width: 210mm;
  height: 297mm;
  page-break-after: always;
}
/* the lead landlord tick beside each owner on a home to let with two or more owners (owner, 23/11/2026), and their
   name picked out in teal text on the property's People card */
.aplead {
  flex: none;
  align-self: flex-end;
  white-space: nowrap;
  margin-bottom: 11px;
}
.aplead[hidden] {
  display: none;
}
.leadll {
  color: var(--teal);
  font-weight: 600;
}
/* the first owner's tick lines up with the ticks under it, which sit before their Remove link (not on a phone, where
   Remove goes under the box) */
@media (min-width: 560px) {
  .apown1:has(+ #apOwners2 .aprow) .aplead {
    margin-right: 58px;
  }
}
/* Cash in the office: Mark as banked and Report a discrepancy side by side, and a discrepancy's difference in
   coloured text (owner, 23/11/2026) */
.cashtop > .cashbtns {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cdshort {
  color: var(--bad);
  font-weight: 600;
}
.cdover {
  color: var(--warn);
  font-weight: 600;
}
.cdwait {
  color: var(--warn);
}

/* Catch-up mode is on (core.js NL.catchUpShow; owner, 23/11/2026): one amber line under the top bar, on every page */
.cubar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px 24px;
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.cubar .i {
  width: 16px;
  height: 16px;
  flex: none;
}
.cubar .link {
  font-weight: 600;
}
@media (max-width: 820px) {
  .cubar {
    padding: 8px 16px;
  }
}
/* Settings > Catch-up mode and Export everything */
.cuon {
  color: var(--warn);
  font-weight: 600;
}
.cuon .i {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}
.exlist {
  margin: 4px 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cucard > p {
  margin: 0 0 8px;
}
.cucard > .actions {
  margin-top: 12px;
}
/* eye check of every screen (owner, 23/11/2026: "a formatting issue something being wonky not inline"):
   - Report an issue: the Gas Safe tick, the contractor row and the price notes spaced like the rest of the form (the
     tick sat right on "Contractor")
   - Goals on a phone: each person's card takes the full width instead of stopping short of the edge */
#njConBox:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#njConBox > :empty {
  display: none;
}
@media (max-width: 600px) {
  .team > .tm {
    flex-basis: 100%;
  }
}
/* Accounts > Income (owner, 27/11/2026: our income for everyone; the costs and staff pay are on a page only Admins
   see). The income chart: a column for each month, split by type, with that month's target as a dashed line.
   Its three colours were checked with a palette validator, every pair against every other, on the card they are
   drawn on (white, and #132220 in the dark theme): told apart by colour-blind readers (worst pair 10.6 light, 12.0
   dark, where 8 is the mark to reach), by everyone else (20.3 light, 17.2 dark, where 15 is the least), and each at
   least 3:1 against the card. Teal and blue are the CRM's own (--signal, --info in the light themes; --teal in the
   dark one). Change one and check the three again: a blue and a violet of the same lightness look the same to many
   people. Never red, amber or green here: those say late, due soon and done everywhere else. */
:root {
  --inc-1: #19a498;
  --inc-2: #2b62a6;
  --inc-3: #9f86e2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-mode='signature']):not([data-mode='light']) {
    --inc-1: #1c9c90;
    --inc-2: #336bb8;
    --inc-3: #a289e6;
  }
}
:root[data-theme='dark']:not([data-mode='signature']):not([data-mode='light']),
:root[data-mode='dark'] {
  --inc-1: #1c9c90;
  --inc-2: #336bb8;
  --inc-3: #a289e6;
}
.inc1 {
  background: var(--inc-1);
}
.inc2 {
  background: var(--inc-2);
}
.inc3 {
  background: var(--inc-3);
}
.incchart {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 8px;
  /* room above for the top line's figure, and below for the names of the months */
  padding: 14px 0 28px;
}
.incaxis {
  position: relative;
  height: 200px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.incaxis span {
  position: absolute;
  right: 0;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(50%);
}
.incplot {
  position: relative;
  height: 200px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.incgrid {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}
/* a month: the whole band is what you point at, not only the thin column in it */
.inccol {
  outline: none;
  cursor: default;
}
.incband {
  position: relative;
  height: 100%;
  border-radius: var(--r-sm);
}
.inccol:hover .incband,
.inccol:focus-visible .incband {
  background: color-mix(in srgb, var(--sunk) 60%, transparent);
}
.inccol:focus-visible .incband {
  box-shadow: inset 0 0 0 2px var(--teal);
}
.incstack {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  margin-left: -12px;
  min-height: 2px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.incstack i {
  flex: 0 1 0;
  min-height: 0;
}
.incstack i:last-child {
  border-radius: 4px 4px 0 0;
}
/* the month's target: dashed, with a hair of the card's colour round it so it reads across a column too */
.inctgt {
  position: absolute;
  left: 50%;
  width: 76%;
  max-width: 44px;
  height: 0;
  border-top: 2px dashed var(--fg);
  box-shadow: 0 0 0 1px var(--surface);
  transform: translate(-50%, 1px);
}
.inclab {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
/* the month's figures, shown while it is pointed at or tabbed to: on the side of the chart away from the month */
.inctip {
  display: none;
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  min-width: 190px;
  max-width: 62%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
}
.inctip.l {
  right: auto;
  left: 4px;
}
.inccol:hover .inctip,
.inccol:focus-visible .inctip {
  display: grid;
}
.inctip b {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--muted);
}
.inctip .k {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}
.inctip .k.tgt {
  height: 0;
  border-radius: 0;
  border-top: 2px dashed var(--fg);
}
.inctip .v {
  font-weight: 600;
  color: var(--fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.inctip .n {
  color: var(--muted);
}
.inctip .rule {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}
/* the colour a row of the table is drawn in (none for the total and the target, which keep the same indent) */
.incdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
}
.legend i.lg.tgt {
  height: 0;
  width: 14px;
  border-radius: 0;
  border-top: 2px dashed var(--fg);
}
@media (max-width: 640px) {
  .incchart {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 6px;
  }
  .incstack {
    width: 18px;
    margin-left: -9px;
  }
  .inclab .sofar {
    display: none;
  }
  /* on a phone the figures sit above the chart, the width of it, so they never cover the month they are for */
  .inctip,
  .inctip.l {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
  }
}
/* "Only Admins see this page": grey information text with a lock, never a filled pill */
.privnote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.privnote svg.i {
  width: 15px;
  height: 15px;
  flex: none;
}
