:root {
  color-scheme: light;
  --bg: #faf6ee;
  --ink: #362923;
  --sub: #6f5e52;
  --rule: #dacfc0;
  --soft: #f0e9dd;
  --wine: #743744;
  --wine-dark: #592834;
  --green: #38533e;
  --greenfill: #e2ebdd;
  --red: #94473d;
  --gold: #886023;
  --serif: Georgia, "Noto Serif", serif;
  --sans: Roboto, "Noto Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
}
body {
  font-size: 15px;
  line-height: 1.4;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
button,
button * {
  -webkit-tap-highlight-color: transparent;
}
svg {
  display: block;
}
.shell {
  max-width: 580px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: 0 18px 96px;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 17px 0 13px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brandmark {
  width: 25px;
  height: 33px;
  color: var(--wine);
}
.word {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -1.2px;
  line-height: 1;
}
.town {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.1px;
  color: var(--sub);
  margin-top: 5px;
}
.role,
.chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  background: #f1e2da;
  color: var(--wine);
}
.role {
  min-height: 38px;
}
.chip.ok {
  background: var(--greenfill);
  color: var(--green);
}
.chip.booked {
  background: #edddd8;
  color: #743e36;
}
.chip.hot {
  background: #fff0a7;
  color: #584500;
}
.chip.pending {
  background: #f1e7d4;
  color: #785823;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--wine);
}
.title {
  font: normal 42px/1.1 var(--serif);
  letter-spacing: -1.6px;
  margin: 6px 0 12px;
}
.hero-title {
  font: normal 52px/1.03 var(--serif);
  letter-spacing: -2.5px;
  margin: 4px 0 14px;
}
.sub {
  color: var(--sub);
  font-size: 13px;
}
.muted {
  color: var(--sub);
}
.heroimg {
  display: block;
  width: 100%;
  height: 130px;
  height: clamp(110px, 32vw, 196px);
  object-fit: cover;
  object-position: center 53%;
  border: 1px solid #e6d7bc;
  border-radius: 9px;
  background: #eedbbe;
}
.caption {
  font-size: 10px;
  color: var(--sub);
  margin: 8px 0 13px;
}
.line {
  height: 1px;
  background: var(--rule);
}
.extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.chips {
  display: flex;
  gap: 4px;
  align-items: center;
}
.area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 14px;
  border-top: 1px solid var(--rule);
  gap: 12px;
}
.area span:first-child {
  font-size: 13px;
  color: var(--sub);
}
.area strong {
  font: normal 25px var(--serif);
  letter-spacing: -0.7px;
}
.minicard {
  background: #f0e9de;
  width: 100%;
  padding: 7px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.mini {
  width: 38%;
  height: 75px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: #f6efdf;
  overflow: hidden;
  flex: none;
}
.mini svg {
  width: 100%;
  height: 100%;
}
.minititle {
  font: normal 22px var(--serif);
  letter-spacing: -0.7px;
}
.minicard .arr {
  margin-left: auto;
  margin-right: 9px;
  color: var(--wine);
}
.actionline {
  background: none;
  min-height: 53px;
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: var(--wine);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.actionline .end {
  margin-left: auto;
}
.primary,
.secondary,
.quiet,
.danger {
  min-height: 47px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 15px;
}
.primary {
  color: #fffaef;
  background: var(--wine);
}
.primary:active {
  background: var(--wine-dark);
}
.secondary {
  border: 1px solid #cbbca9;
  color: var(--ink);
  background: transparent;
}
.quiet {
  background: transparent;
  color: var(--wine);
}
.danger {
  color: #843c33;
  background: #f5e5df;
}
.wide {
  width: 100%;
}
.btns {
  display: flex;
  gap: 9px;
  margin: 14px 0;
}
.btns > * {
  flex: 1;
}
.btns .grow {
  flex: 2;
}
.gap {
  height: 12px;
}
.topgap {
  margin-top: 18px;
}
.lead-entry { padding: 20px 0; border-top: 1px solid var(--rule); }
.lead-heading, .lead-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-heading h2 { margin: 0; font: 500 23px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.lead-plot { color: var(--wine); font-weight: 650; white-space: nowrap; }
.lead-contact { margin: 12px 0; }
.lead-contact span { font-variant-numeric: tabular-nums; user-select: text; }
.lead-contact button { min-height: 44px; }
#leadquery { margin: 4px 0 14px; }
.lead-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.lead-delete { min-height: 44px; color: var(--wine); padding: 4px 9px; }
.tabs {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 580px;
  width: min(100%, 580px);
  display: flex;
  min-height: 64px;
  background: #faf6eefc;
  border-top: 1px solid var(--rule);
  padding: 3px 12px 6px;
}
.tabs button {
  flex: 1;
  min-height: 52px;
  background: none;
  font-size: 10px;
  color: var(--sub);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-items: center;
}
.tabs button.active {
  color: var(--wine);
  font-weight: 700;
}
.active .tabicon {
  background: #f2e2dc;
  border-radius: 12px;
}
.tabicon {
  padding: 3px 9px;
}
.ico {
  width: 19px;
  height: 19px;
  flex: none;
}
.role .ico,
.chip .ico {
  width: 14px;
  height: 14px;
}
.practicebar,
.syncwarn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0 6px;
  font-size: 11px;
  color: var(--sub);
}
.practicebar button {
  background: transparent;
  color: var(--wine);
  text-decoration: underline;
  margin-left: auto;
  font-size: 11px;
  padding: 4px 0;
}
.syncwarn {
  color: #7b441e;
  background: #fae9d9;
  padding: 8px;
  border-radius: 6px;
}
.pagehead {
  margin: 21px 0 10px;
}
.pagehead p {
  margin: 0;
}
.intro {
  margin-top: 17px;
}
.welcome {
  max-width: 465px;
  margin: 20px auto;
}
.welcome .heroimg {
  height: 165px;
  height: clamp(145px, 43vw, 220px);
}
.welcome h1 {
  font: normal 45px/1.02 var(--serif);
  margin: 18px 0 8px;
  letter-spacing: -1.8px;
}
.welcome .btns {
  margin-top: 22px;
}
.welcome p {
  font-size: 15px;
}
.field {
  display: block;
  margin: 12px 0;
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.search {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #cbbdac;
  border-radius: 7px;
  background: #fffaf2;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  padding: 11px 12px;
  min-height: 45px;
}
.field input:focus,
.field select:focus,
.search:focus {
  outline: 2px solid #a86c73;
  outline-offset: 1px;
}
.formerror {
  color: #973e34;
  font-size: 13px;
  min-height: 0;
}
.plainhead {
  font: normal 29px var(--serif);
  letter-spacing: -0.9px;
  margin: 13px 0;
}
.card {
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
}
.listrow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border-bottom: 1px solid var(--rule);
  padding: 14px 1px;
  min-height: 56px;
}
.listrow .maintext {
  font-size: 16px;
  font-weight: 600;
  display: block;
}
.listrow small {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}
.keyval {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.keyval span:first-child {
  font-size: 12px;
  color: var(--sub);
}
.keyval strong {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
}
.empty {
  padding: 27px 3px;
  color: var(--sub);
  text-align: left;
}
.empty .plainhead {
  margin: 0 0 7px;
  color: var(--ink);
}
.empty p {
  margin: 0;
}
.card .plainhead {
  margin: 4px 0;
}
.bottomaction {
  margin: 19px 0 4px;
}
.sectiontitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sectiontitle button {
  color: var(--wine);
  background: none;
  min-height: 40px;
  font-weight: 600;
}
.results {
  max-height: 255px;
  overflow: auto;
}
.results:empty {
  display: none;
}
.plan-page > .heroimg {
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  margin-bottom: 14px;
}
.plan-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 12px;
}
.plan-heading h1 {
  font: normal 35px/1.1 var(--serif);
  letter-spacing: -1.45px;
  margin: 0;
}
.map-count {
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}
.map-count b {
  color: var(--ink);
  font-weight: 650;
}
.map-search {
  position: relative;
  z-index: 2;
}
.map-search > .ico {
  position: absolute;
  left: 13px;
  top: 13px;
  color: var(--sub);
  pointer-events: none;
}
.map-search .search {
  margin: 0;
  padding-left: 41px;
}
.map-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 2;
  margin-top: 3px;
  max-height: 232px;
  border-radius: 8px;
  background: #fffbf4;
  box-shadow: 0 7px 18px #34271922;
}
.map-results:not(:empty) {
  border: 1px solid var(--rule);
}
.map-results .listrow {
  min-height: 48px;
  padding: 7px 12px;
}
.map-results .listrow:last-child {
  border-bottom: 0;
}
.no-result {
  padding: 12px;
  color: var(--sub);
}
.mapframe {
  position: relative;
  margin: 10px 0 0;
  height: calc(100vh - 398px);
  height: calc(100dvh - 398px);
  min-height: 220px;
  max-height: 575px;
  border: 1px solid #c3bdab;
  border-radius: 12px;
  overflow: hidden;
  background: #eeeddf;
}
/* Keep the selected parcel and its booking button above the bottom navigation. */
.plan-page[data-selected="true"]:not(.fullscreen) .mapframe {
  height: calc(100vh - 465px);
  height: calc(100dvh - 465px);
  min-height: 155px;
}
.mapframe > svg {
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.parcel polygon {
  fill: #d6e3cc;
  stroke: #788c70;
  stroke-width: 1.1;
  stroke-linejoin: round;
  cursor: pointer;
}
.parcel.reserved polygon {
  fill: #d8a2a1;
  stroke: #915960;
}
.parcel.chosen polygon {
  fill: #744051;
  stroke: #542538;
}
.parcel-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 7.4px;
  fill: #243929;
  pointer-events: none;
}
.parcel.reserved .parcel-label {
  fill: #522b34;
}
.parcel.chosen .parcel-label {
  fill: #fff9e9;
}
.selection-ring {
  fill: none;
  stroke: #55273a;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}
.book-tick {
  fill: none;
  stroke: #733748;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  pointer-events: none;
}
.chosen .book-tick {
  stroke: #fff9e9;
}
.heatpoint {
  fill: #c88a22;
  stroke: #6a4b1a;
  stroke-width: 0.85;
  pointer-events: none;
}
.overview .parcel-label,
.overview .book-tick {
  display: none;
}
.overview .heatpoint {
  stroke: #9f6a15;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.landmarks {
  display: none;
}
.overview .landmarks {
  display: inline;
}
.landmarks path {
  fill: none;
  stroke: #645e4d;
  stroke-width: 1;
}
.landmarks circle {
  fill: #655b49;
}
.landmarks text {
  font: 600 10px var(--sans);
  fill: #514b40;
  paint-order: stroke;
  stroke: #f9f4e5;
  stroke-width: 3;
  stroke-linejoin: round;
}
.map-north {
  position: absolute;
  top: 9px;
  left: 11px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #673b45;
  pointer-events: none;
}
.map-north span {
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
.map-north svg {
  width: 16px;
  height: 22px;
}
.mapctl {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbbfae;
  border-radius: 9px;
  overflow: hidden;
}
.mapctl button,
.map-fit,
.map-expand {
  color: #4d4036;
  background: #fffaf0;
  min-width: 40px;
  min-height: 40px;
}
.mapctl button {
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
.mapctl button + button {
  border-top: 1px solid #d6cdbd;
}
.map-fit,
.map-expand {
  position: absolute;
  bottom: 8px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-fit {
  left: 8px;
  padding: 0 9px;

  font-size: 12px;
}
.map-fit .ico {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}
.map-expand {
  right: 8px;
  padding: 0;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 5px;
  padding: 8px 1px;
  color: var(--sub);
  font-size: 11px;
}
.map-legend span {
  margin-right: 13px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.map-legend b {
  color: #473e35;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}
.map-legend i {
  display: inline-block;
  margin-right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid #7c9275;
  background: #d6e3cc;
}
.map-legend .pending-key, .chip.plot-pending {
  background: #FFD3A3;
  border-color: #ad713d;
  color: #39240e;
}
.map-legend .booked-key, .chip.plot-booked {
  background: #FF0000;
  border-color: #9e1717;
  color: #1a0808;
}
.map-legend .heat-key {
  border-radius: 50%;
  background: #fbdb30;
  border-color: #806a12;
}
.map-selection,
.map-hint {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fffbf3;
  padding: 11px 13px;
}
.map-selection-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.map-selection h2 {
  margin: 0;
  font: normal 26px/1.05 var(--serif);
  letter-spacing: -0.8px;
}
.map-area {
  display: block;
  margin-top: 3px;
  color: var(--sub);
  font-size: 13px;
}
.map-actions {
  display: flex;
  margin-top: 9px;
}
.map-actions > * {
  flex: 1;
  min-height: 43px;
}
.map-actions > * + * {
  margin-left: 7px;
}
.map-hint {
  display: flex;
  align-items: center;
}
.map-hint > .ico {
  color: var(--wine);
  margin-right: 10px;
}
.map-hint strong,
.map-hint span {
  display: block;
}
.map-hint strong {
  font-size: 14px;
}
.map-hint span {
  font-size: 12px;
  color: var(--sub);
}
.tabs button {
  position: relative;
}
.tab-pending {
  position: absolute;
  top: 1px;
  margin-left: 27px;
  min-width: 16px;
  padding: 0 4px;
  line-height: 16px;
  font-size: 9px;
  border-radius: 8px;
  background: var(--wine);
  color: #fffaf0;
}
.plot-confirm strong {
  display: inline-block;
  font: normal 24px var(--serif);
  margin: 3px 9px 0 0;
}
.plot-confirm span {
  font-size: 14px;
  color: var(--sub);
  white-space: nowrap;
}
body.plan-open {
  overflow: hidden;
}
.fullscreen-dims {
  display: none;
}
body.plan-open .shell > :not(#workspace),
body.plan-open #workspace > :not(.plan-page) {
  display: none;
}
.plan-page.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0;
  overflow: hidden;
}
.fullscreen > .heroimg,
.fullscreen .plan-heading,
.fullscreen .map-search,
.fullscreen .map-legend,
.fullscreen .map-hint {
  display: none;
}
.fullscreen .fullscreen-dims {
  display: inline;
}
.fullscreen #scene-mount,
.fullscreen #kr-original-uhd,
.fullscreen .kr-product {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.fullscreen .map-selection {
  flex: none;
  margin: 0;
  border-radius: 0;
  padding: 6px 12px;
}
.fullscreen .map-selection-top {
  align-items: center;
}
.fullscreen .map-selection h2 {
  font-size: 19px;
}
.fullscreen .map-actions {
  margin-top: 4px;
}
.fullscreen .map-selection .primary,
.fullscreen .map-selection .secondary {
  min-height: 40px;
}
@media (max-height: 430px) and (orientation: landscape) {
  .fullscreen .map-selection {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }
  .fullscreen .map-actions {
    margin: 0;
    gap: 6px;
  }
  .fullscreen .map-selection .chips {
    display: none;
  }
}
.maptext {
  pointer-events: none;
  user-select: none;
  font-family: Arial, sans-serif;
}
.sheetmask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  inset: 0;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: #211a185c;
  touch-action: none;
}
.sheet {
  position: relative;
  background: var(--bg);
  border-radius: 17px 17px 0 0;
  width: 100%;
  max-width: 580px;
  width: min(100%, 580px);
  box-shadow: 0 -8px 50px #33251b17;
}
.sheet-body {
  max-height: 94vh;
  max-height: 94dvh;
  padding: 20px 20px 25px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
}
.sheet::after {
  content: "";
  position: absolute;
  inset: 100% -1px auto;
  height: var(--sheet-tail, 0px);
  background: #f8efeb;
  pointer-events: none;
}
.sheethead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sheethead h2 {
  font: normal 30px/1.08 var(--serif);
  margin: 2px 0 8px;
}
.close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 23px;
}
.sheet p {
  margin: 8px 0;
}
.sheet .field:first-of-type {
  margin-top: 16px;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 14;
  bottom: 79px;
  left: 50%;
  transform: translateX(-50%);
  background: #392c27;
  color: #fffaed;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 3px 16px #30272222;
}
.teampanel {
  margin: 12px 0;
  height: 190px;
  background: #edeedc;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.teampanel svg {
  width: 100%;
  height: 100%;
}
.small {
  font-size: 12px;
}
.stack > * + * {
  margin-top: 9px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 600px) {
  body {
    background: #efe9df;
  }
  .shell {
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--rule);
  }
}
@media (max-width: 345px) {
  .shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .word {
    font-size: 20px;
  }
  .minititle {
    font-size: 18px;
  }
  .area strong {
    font-size: 21px;
  }
}
@supports (font-size: clamp(48px, 13vw, 74px)) {
  .hero-title {
    font-size: clamp(48px, 13vw, 74px);
  }
}

.welcome .field {
  margin-top: 14px;
  text-align: left;
}
.welcome .quiet {
  min-height: 42px;
}
#kr-original-uhd canvas,
#kr-original-uhd canvas *,
.map-selection {
  -webkit-tap-highlight-color: transparent;
}
#kr-original-uhd :focus-visible,
.map-selection :focus-visible {
  outline: 2px solid #714050;
  outline-offset: 2px;
}
.sheet .secondary.wide + .secondary.wide {
  margin-top: 8px;
}
.map-selection {
  animation: folio-arrive 0.18s ease-out;
}
#notice:not(:empty) {
  animation: notice-arrive .16s ease-out;
}
@keyframes notice-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes folio-arrive {
  from {
    opacity: 0.4;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.deal-preview {margin:14px 0;background:#f1ece1;border-radius:10px;padding:3px 12px}
.deal-preview .keyval:last-child strong {color:#713448}
.field textarea {width:100%;box-sizing:border-box;background:#fffdf9;color:#332a25;border:1px solid #cfc3ae;border-radius:8px;padding:12px;font:inherit;resize:vertical}
.agreed strong {white-space:pre-wrap;overflow-wrap:anywhere}
button { transition: opacity 105ms ease-out; }
button:active:not(:disabled) { opacity: .79; }
.plot-dimensions {display:inline}
.sharing-status {font-size:.82rem;text-align:right;margin:0 auto;padding:0 1rem;color:#634e43}
#work-status:not(:empty) {position:fixed;bottom:1.1rem;left:50%;transform:translateX(-50%);padding:.35rem .9rem;background:#51313a;color:#fff7e6;border-radius:16px;z-index:150;pointer-events:none;font-size:.8rem}
.resendstate {text-align:center;color:#705b55;padding:.75rem 0;font-variant-numeric:tabular-nums}
#transfer-progress {width:100%;accent-color:#784153}

/* Shared surfaces across the staff workspace. */
body.glass-page,
#overlay {
  --glass-panel: #fbf8f2;
  --glass-card: rgba(255, 254, 250, .76);
  --glass-field: rgba(255, 255, 253, .88);
  --glass-border: rgba(109, 83, 79, .19);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(119, 88, 77, .10);
  --glass-depth: 0 10px 30px -20px rgba(68, 35, 46, .42);
}
body.glass-page {
  background-color: #f2eee7;
  background-image:
    radial-gradient(ellipse at 100% 2%, rgba(195, 139, 154, .46), transparent 49%),
    radial-gradient(ellipse at 0% 57%, rgba(149, 179, 162, .38), transparent 45%),
    linear-gradient(140deg, #faf5eb 8%, #f0e7e1 58%, #f6efe6 100%);
  background-attachment: fixed;
}
.glass-page .shell {
  background: transparent;
  box-shadow: none;
  padding-bottom: 105px;
}
.glass-page .mast {
  border-color: var(--glass-border);
}
.glass-page .role,
.glass-page .secondary,
#overlay .secondary,
#overlay .close {
  color: #663746;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: linear-gradient(155deg, #fffdf9 0%, rgba(246, 234, 234, .75) 82%);
  box-shadow: var(--glass-edge);
}
.glass-page .role {
  min-height: 44px;
  border-radius: 24px;
}
.glass-page .welcome,
.glass-page .tabs,
#overlay .sheet {
  background: var(--glass-panel);
  border: 1px solid rgba(255, 255, 255, .91);
  box-shadow: var(--glass-edge), 0 0 0 1px var(--glass-border), var(--glass-depth);
}
.glass-page .welcome {
  padding: 15px 18px 20px;
  border-radius: 26px;
  margin: 19px auto;
}
.glass-page .welcome .heroimg {
  border-radius: 16px;
  border-color: var(--glass-border);
}
.glass-page .welcome h1 {
  margin-top: 20px;
}
.glass-page .pagehead {
  margin: 25px 2px 16px;
}
.glass-page .card,
.glass-page .listrow,
.glass-page .lead-entry,
.glass-page .empty,
#overlay .card,
#overlay .listrow,
#overlay .deal-preview {
  background: linear-gradient(125deg, rgba(255, 255, 255, .50), transparent 69%), var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: 17px;
  box-shadow: var(--glass-edge), var(--glass-depth);
}
.glass-page .listrow,
.glass-page .lead-entry,
#overlay .listrow {
  padding: 14px 16px;
  margin-top: 8px;
}
.glass-page .empty {
  padding: 23px 19px;
  margin: 13px 0;
}
.glass-page .primary,
#overlay .primary {
  color: #fffaf6;
  background: linear-gradient(150deg, #905262 0%, #743b4c 46%, #572c3c 100%);
  border: 1px solid #683547;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 231, 224, .47), 0 4px 12px -7px #552737;
}
.glass-page .danger,
#overlay .danger {
  border-radius: 15px;
  border: 1px solid #d9b4ae;
}
.glass-page .field input,
.glass-page .field select,
.glass-page .search,
#overlay .field input,
#overlay .field select,
#overlay .field textarea,
#overlay .search {
  color: #312725;
  border: 1px solid #afa29c;
  border-radius: 13px;
  background: var(--glass-field);
  box-shadow: inset 0 1px 3px rgba(79, 54, 50, .06);
}
.glass-page .tabs {
  --tab-count: 4;
  --tab-index: 0;
  isolation: isolate;
  bottom: 9px;
  width: calc(100% - 22px);
  max-width: 552px;
  min-height: 62px;
  padding: 4px;
  border-radius: 25px;
}
.glass-page .tabs button {
  min-width: 0;
  min-height: 51px;
  border-radius: 19px;
  padding: 3px 1px;
  gap: 1px;
  color: #544741;
}
.glass-page .tabs[data-role="admin"] { --tab-count: 5; }
.glass-page .tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / var(--tab-count));
  border-radius: 19px;
  background: linear-gradient(155deg, #fffdf9, #eddcde);
  box-shadow: var(--glass-edge), 0 2px 5px rgba(91, 56, 58, .12);
  transform: translate3d(calc(100% * var(--tab-index)), 0, 0);
  transition: transform 195ms cubic-bezier(.22,.78,.20,1);
  pointer-events: none;
}
.glass-page .tabs button.active { color: #603142; }
.tab-pending[hidden] { display: none; }
.glass-page .tabs .tabicon {
  border-radius: 0;
  background: transparent;
}
#overlay .sheet {
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
  box-shadow: var(--glass-edge), 0 -10px 40px rgba(47, 29, 34, .17);
}
#overlay .sheethead {
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
}
#overlay .close {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
}
.glass-page #notice:not(:empty) {
  color: #fffaf7;
  background: #513340;
  border: 1px solid #755461;
  border-radius: 14px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-page .welcome,
  .glass-page .tabs,
  #overlay .sheet {
    --glass-panel: linear-gradient(134deg, rgba(255, 255, 255, .84), rgba(255, 249, 244, .69) 46%, rgba(247, 235, 236, .77));
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  body.glass-page {
    background: #f8f4ef;
  }
  body.glass-page,
  #overlay {
    --glass-card: #fffcf8;
    --glass-field: #fff;
    --glass-border: #92847e;
    --glass-depth: 0 0 transparent;
  }
  .glass-page .welcome,
  .glass-page .tabs,
  #overlay .sheet {
    --glass-panel: #fffcf8;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

html.pull-enabled { overscroll-behavior-y: contain; }
#pull-status:not([hidden]) {
  position: fixed;
  z-index: 8;
  top: 8px;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dfd8da;
  background: #fff;
  color: #753349;
  box-shadow: 0 2px 6px rgba(42, 23, 31, .28);
  transform: translate(-50%, var(--pull-offset, 0px));
  pointer-events: none;
}
#pull-status[data-phase="loading"] { transform: translate(-50%, 42px); }
#app[inert] + #pull-status { visibility: hidden; }
.pull-wheel { width: 30px; height: 30px; fill: none; stroke-width: 3.2; }
.pull-track { stroke: #e8dce0; }
#pull-arc { stroke: currentColor; stroke-linecap: round; }
#pull-status[data-phase="loading"] #pull-arc { stroke-dasharray: 70 100; }
@keyframes pull-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  #pull-status[data-phase="loading"]:not(.still) .pull-wheel { animation: pull-spin .85s linear infinite; }
}
@media (forced-colors: active) {
  #pull-status:not([hidden]) { border-color: CanvasText; color: Highlight; background: Canvas; }
  .pull-track { stroke: GrayText; }
}
#pull-announcement {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.refresh-control { flex: 0 0 44px; height: 44px; display: grid; place-items: center; padding: 0; }
#overlay .staff-entry { display: grid; gap: 8px; overflow-wrap: anywhere; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.motion-lead-list { position: relative; }
/* The frosted tint stays visible while the panel travels over the map. */
#overlay .sheet {
  --glass-panel: linear-gradient(134deg, #fffdf9f3, #f7eeebed 65%, #f4e9ebf0);
}
#overlay .sheet.in-motion {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  #overlay .sheet { --glass-panel: #fffcf8; }
}
.device-still *, .device-still *::before, .device-still *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}
