:root {
  --paper: #fffcf2;
  --stone: #ccc5b9;
  --slate: #403d39;
  --charcoal: #252422;
  --orange: #eb5e28;
  --orange-dark: #c94e21;
  --panel: color-mix(in srgb, #ffffff 82%, var(--paper));
  --panel-warm: color-mix(in srgb, var(--paper) 92%, #ffffff);
  --ink: var(--charcoal);
  --red: var(--orange);
  --gold: var(--stone);
  --line: color-mix(in srgb, var(--stone) 78%, transparent);
  --shadow: 0 18px 42px color-mix(in srgb, var(--charcoal) 13%, transparent);
  --button-x: 18px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  interpolate-size: allow-keywords;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  overflow: hidden;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  padding: 8px var(--button-x);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--orange) 18%, transparent);
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: var(--charcoal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

button:not(:disabled):hover::after,
button:not(:disabled):focus-visible::after {
  opacity: 0.12;
}

button:not(:disabled):active::after {
  opacity: 0.2;
}

button:not(:disabled) {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.16s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

button:disabled::after {
  opacity: 0;
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible {
  outline: 0;
  transform: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--orange) 18%, transparent);
  filter: none;
}

button:not(:disabled):active {
  filter: none;
  transform: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--orange) 18%, transparent);
}

button.secondary {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
  box-shadow: none;
}

button.warning {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

button.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  padding-inline: var(--button-x);
}

.property-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 38px;
  white-space: nowrap;
}

.property-form button[type="submit"] .button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}

.property-form button[type="submit"] .loader {
  flex: 0 0 auto;
  margin-right: 0;
}

.loader {
  display: inline-block;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid color-mix(in srgb, var(--paper) 45%, transparent);
  border-top-color: var(--paper);
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

button > .loader:only-child {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  align-self: center;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  animation: none;
}

button > .loader:only-child::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

input,
select,
textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  outline: 2px solid color-mix(in srgb, var(--orange) 18%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 10%, transparent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 34px;
}

textarea {
  min-height: 42px;
  resize: none;
  line-height: 20px;
  padding-block: 10px;
}

textarea[name="notes"] {
  height: 84px;
  min-height: 84px;
}

label {
  display: grid;
  gap: 6px;
  align-content: start;
  grid-template-rows: auto 42px auto;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

label:has(textarea),
label:has(.phone-combo) {
  grid-template-rows: auto auto auto;
}

.label-text,
.issues-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.property-form label > .label-text {
  min-height: 18px;
  line-height: 18px;
}

.field-help {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
  cursor: help;
}

.currency-mark {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 18px;
  padding: 0 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.property-settings-strip {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.property-settings-strip label {
  grid-template-rows: auto 38px;
  gap: 6px;
}

.property-settings-strip select {
  height: 38px;
  min-height: 38px;
}

.property-settings-strip .label-text {
  white-space: nowrap;
}

.money-with-rate {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
  line-height: 1.05;
}

.money-with-rate small {
  color: var(--slate);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.fx-rate-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.catalogue-rate-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.fx-rate-note span,
.catalogue-rate-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--slate) 38%, var(--line));
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--stone) 18%, #ffffff);
  white-space: nowrap;
}

.catalogue-rate-note span {
  justify-content: flex-start;
  width: fit-content;
}

.address-validation {
  display: none;
}

.address-validation.valid {
  color: var(--ink);
  font-weight: 900;
}

.address-validation.invalid {
  color: var(--red);
  font-weight: 900;
}

.address-map-link {
  display: inline;
  margin-left: 6px;
  white-space: nowrap;
  text-transform: none;
}

.address-field {
  position: relative;
  z-index: 1;
}

.address-field:focus-within {
  z-index: 80;
}

.address-suggestions {
  display: grid;
  position: absolute;
  z-index: 90;
  top: 72px;
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.address-suggestions:empty {
  display: none;
}

.address-suggestion {
  appearance: none;
  -webkit-appearance: none;
  justify-content: flex-start;
  min-height: 36px;
  border: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 11px;
  outline: 0;
  box-shadow: none;
  text-decoration: none;
  transform: none;
  background-clip: padding-box;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  outline: 0;
  box-shadow: none;
  border: 0;
  text-decoration: none;
  transform: none;
}

.field-error {
  display: none;
  min-height: 0;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: none;
}

.invalid-field {
  border-color: var(--red);
  outline: 3px solid color-mix(in srgb, var(--red) 34%, transparent);
  background: color-mix(in srgb, var(--paper) 86%, var(--red));
  box-shadow: 0 0 0 1px var(--red);
}

label:has(.invalid-field) .label-text {
  color: var(--red);
}

.required-mark {
  display: inline-grid;
  place-items: center;
  height: 18px;
  box-sizing: border-box;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 0 6px;
  color: var(--red);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 22px 18px;
  background: var(--charcoal);
  color: var(--paper);
  border-right: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
}

.brand {
  display: grid;
  gap: 9px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
}

.brand-title {
  font-size: 27px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle,
.small-copy {
  color: var(--stone);
  font-size: 12px;
  line-height: 1.45;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  justify-content: start;
  width: 100%;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  color: var(--stone);
  text-align: left;
  box-shadow: none;
}

.nav button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 10px 22px color-mix(in srgb, #000 18%, transparent);
}

.nav button:not(:disabled):hover,
.nav button:not(:disabled):focus-visible {
  box-shadow: none;
}

.topic-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent);
  border-radius: 8px;
}

.sidebar-info {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--stone) 7%, transparent);
}

.sidebar-info article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, auto);
  gap: 8px;
  align-items: center;
}

.sidebar-info span {
  min-width: 0;
  color: var(--stone);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-info strong {
  min-width: 0;
  max-width: 124px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-info .account-row strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-status strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  overflow: visible;
}

.connection-status i {
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: var(--orange);
}

.connection-status.connected i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 4px solid color-mix(in srgb, var(--orange) 20%, transparent);
  opacity: 0.72;
  animation: connectionPulse 3.2s ease-in-out infinite;
}

.connection-status.connecting i {
  background: var(--stone);
}

.connection-status.interrupted i,
.connection-status.disconnected i {
  background: var(--stone);
}

@keyframes connectionPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.34;
    transform: scale(1.14);
  }
}

@keyframes connectionConnecting {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

.topic-value {
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.35;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: var(--charcoal);
  font-weight: 950;
}

.status-line {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.toolbar select {
  width: 220px;
}

.load-test-button {
  width: 132px;
  min-width: 132px;
}

.setup {
  max-width: 1040px;
  display: grid;
  gap: 20px;
  margin: 44px auto;
  padding: 0 20px;
}

.setup-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
}

.setup-controls label {
  width: 240px;
}

.setup-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

.hero-panel,
.setup-card,
.panel,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.modal.closing .modal-panel {
  animation: modalOut 0.18s ease both;
}

.hero-panel {
  padding: 44px;
  border-color: color-mix(in srgb, var(--charcoal) 28%, var(--line));
  background:
    linear-gradient(90deg, var(--orange) 0 7px, transparent 7px),
    var(--panel-warm);
}

.hero-panel h1 {
  margin: 0 0 10px;
  max-width: 720px;
  color: var(--charcoal);
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

.setup-card {
  display: grid;
  gap: 12px;
  padding: 22px 28px;
  align-content: start;
  background: #ffffff;
}

.setup .hero-panel,
.setup .setup-card {
  animation: none;
}

.setup-card button,
.connect-row button {
  min-width: 132px;
}

.connect-row button {
  width: 190px;
}

.setup-button-content {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.setup-button-content .loader {
  flex: 0 0 auto;
  margin: 0;
  vertical-align: 0;
}

.setup-card h2,
.panel h2,
.panel h3,
.modal-panel h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.setup-actions {
  display: grid;
  gap: 10px;
}

.connect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.setup-link-help {
  transform: none;
}

.quick-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.guide-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--paper) 86%, #ffffff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--charcoal) 7%, transparent);
}

.guide-step strong {
  display: block;
  margin-bottom: 6px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.upcoming-panel {
  margin-bottom: 14px;
  overflow: hidden;
}

.upcoming-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 8px 10px;
  margin-left: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) color-mix(in srgb, var(--stone) 28%, var(--paper));
}

.upcoming-grid::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.upcoming-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--stone) 28%, var(--paper));
}

.upcoming-grid::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--stone) 28%, var(--paper));
  border-radius: 999px;
  background: var(--slate);
}

.upcoming-grid::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

.upcoming-grid .empty {
  width: 100%;
  padding: 18px;
}

.upcoming-item {
  position: relative;
  flex: 0 0 min(330px, 86vw);
  display: grid;
  gap: 7px;
  align-content: start;
  align-items: start;
  justify-content: start;
  justify-items: start;
  min-height: 0;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  padding: 12px;
  scroll-snap-align: start;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--ink) 10%, transparent);
}

.upcoming-item:hover,
.upcoming-item:focus-visible {
  outline: 0;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--ink) 10%, transparent);
  transform: none;
}

.upcoming-item.completed {
  opacity: 0.72;
  background: color-mix(in srgb, var(--paper) 94%, #ffffff);
  box-shadow: inset 0 0 0 1px var(--slate);
}

.completed-tick {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.upcoming-topic {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.upcoming-date {
  width: max-content;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.upcoming-item strong,
.upcoming-item span,
.upcoming-item small {
  min-width: 0;
}

.upcoming-item small {
  color: color-mix(in srgb, var(--ink) 70%, var(--red));
  font-weight: 800;
}

.calendar-panel {
  min-height: calc(100vh - 140px);
}

.calendar-controls {
  display: grid;
  grid-template-columns: max-content 150px max-content max-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.calendar-controls button {
  min-height: 30px;
  padding: 4px var(--button-x);
}

.calendar-controls .muted {
  text-align: center;
  white-space: nowrap;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-weekdays span {
  padding: 6px 8px;
}

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  height: 198px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transition: height 0.75s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, background-color 0.24s ease;
  overflow: hidden;
}

.calendar-day.expanded {
  height: var(--expanded-height);
  min-height: 0;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10003;
  pointer-events: none;
}

.tutorial-scrim {
  position: fixed;
  inset: 0;
  z-index: 10003;
  pointer-events: none;
}

.tutorial-scrim path {
  fill: rgba(0, 0, 0, 0.68);
  pointer-events: auto;
}

.tutorial-ring {
  position: fixed;
  z-index: 10004;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--orange) 74%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.tutorial-highlight {
  position: relative;
  z-index: 10002;
}

.tutorial-card {
  position: fixed;
  z-index: 10005;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid color-mix(in srgb, var(--orange) 58%, var(--line));
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.tutorial-card::before {
  content: "";
  position: absolute;
  left: 28px;
  width: 16px;
  height: 16px;
  border-left: 1px solid color-mix(in srgb, var(--orange) 58%, var(--line));
  border-top: 1px solid color-mix(in srgb, var(--orange) 58%, var(--line));
  background: #ffffff;
  transform: rotate(45deg);
}

.tutorial-card.below::before {
  top: -9px;
}

.tutorial-card.above::before {
  bottom: -9px;
  transform: rotate(225deg);
}

.tutorial-progress {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.tutorial-card h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
}

.tutorial-card p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.tutorial-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.tutorial-actions button {
  min-height: 34px;
  padding: 7px 12px;
}

.tutorial-confetti {
  position: fixed;
  inset: 0;
  z-index: 10020;
  overflow: hidden;
  pointer-events: none;
}

.tutorial-confetti i {
  position: absolute;
  top: -16px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.65);
  border-radius: 2px;
  background: var(--color);
  box-shadow: 0 0 0 1px color-mix(in srgb, #000000 8%, transparent);
  opacity: 0;
  transform: translate3d(0, -12vh, 0) rotate(0deg);
  animation: tutorialConfettiFall var(--duration) cubic-bezier(0.12, 0.72, 0.22, 1) var(--delay) forwards;
}

.tutorial-confetti i.round {
  border-radius: 999px;
  height: var(--size);
}

@keyframes tutorialConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), var(--fall), 0) rotate(var(--spin));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-confetti i {
    animation-duration: 1.4s;
  }
}

.calendar-day.blank {
  visibility: hidden;
}

.calendar-day.today {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--orange) 32%, transparent);
}

.calendar-day.muted-month {
  opacity: 0.48;
}

.calendar-events {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  overflow: hidden;
  align-content: start;
  min-height: 0;
  padding-right: 2px;
  padding-bottom: 2px;
}

.calendar-day:not(.expanded) .calendar-events {
  grid-template-rows: 58px 58px 29px;
}

.calendar-day.expanded .calendar-events {
  grid-template-rows: none;
}

.calendar-day.collapsing .calendar-events {
  grid-template-rows: none;
}

.calendar-event-button {
  min-height: 58px;
  border-color: transparent;
  background: var(--charcoal);
  color: #ffffff;
  padding: 5px var(--button-x);
  text-align: left;
  display: grid;
  position: relative;
  gap: 2px;
  height: 58px;
  max-height: 58px;
  overflow: hidden;
  box-shadow: none;
  opacity: 1;
  transition: opacity 0.42s ease, height 0.75s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.75s cubic-bezier(0.16, 1, 0.3, 1), padding 0.75s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-day:not(.expanded) .calendar-event-extra {
  display: none;
  max-height: 0;
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.calendar-day.collapsing .calendar-event-extra {
  display: grid;
  max-height: 58px;
  min-height: 58px;
  height: 58px;
  padding-top: 5px;
  padding-bottom: 5px;
  opacity: 1;
  pointer-events: auto;
}

.calendar-event-button.completed {
  background: color-mix(in srgb, var(--ink) 62%, var(--paper));
  color: color-mix(in srgb, var(--paper) 82%, var(--gold));
  opacity: 0.78;
}

.calendar-event-button:not(:disabled):hover,
.calendar-event-button:not(:disabled):focus-visible {
  box-shadow: none;
}

.calendar-more {
  min-height: 29px;
  height: 29px;
  background: #ffffff !important;
  color: var(--slate) !important;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent) !important;
  border-radius: 999px;
  place-items: center;
  font-weight: 950;
  padding: 2px var(--button-x);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--ink) 7%, transparent) !important;
  align-self: stretch;
  margin-top: 0;
}

.calendar-more:not(:disabled):hover,
.calendar-more:not(:disabled):focus-visible {
  outline: 0;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--ink) 8%, transparent) !important;
}

.calendar-tick {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid !important;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.calendar-events span,
.calendar-events small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-events small {
  color: color-mix(in srgb, var(--paper) 82%, var(--gold));
  font-size: 10px;
}

.file-import {
  grid-template-rows: auto auto;
  margin-bottom: 10px;
}

.import-uploader {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  min-height: 164px;
  overflow: visible;
}

.panel > p.muted + .import-uploader {
  margin-top: 18px;
}

.import-uploader.has-files {
  grid-template-columns: minmax(0, min(calc((var(--file-count, 1) * 128px) + 20px), 660px)) minmax(180px, 1fr);
  align-items: start;
}

.import-uploader.has-files .import-drop-zone {
  height: 164px;
  min-height: 164px;
}

.import-drop-zone {
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  grid-template-rows: 1fr;
  min-height: 164px;
  height: 164px;
  border: 2px dashed color-mix(in srgb, var(--charcoal) 42%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 90%, #ffffff);
  box-shadow: none;
  text-align: center;
  cursor: pointer;
  text-transform: none;
}

.import-drop-zone.dragging {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 14%, transparent);
}

.import-drop-zone input {
  display: none;
}

.import-drop-zone.disabled {
  cursor: not-allowed;
  opacity: 0.72;
  border-style: solid;
}

.import-file-grid {
  display: flex;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0 10px;
  min-width: 0;
  max-width: 660px;
  height: 164px;
  align-items: stretch;
}

.import-file-grid:empty {
  display: none;
}

.import-uploader:not(.has-files) .import-file-grid {
  display: none;
}

.import-file-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  flex: 0 0 118px;
  width: 118px;
  height: 164px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  overflow: visible;
}

.import-file-card strong,
.import-file-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.import-file-card .photo-delete {
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  border-width: 1px;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: 11px;
}

.pdf-thumb {
  position: relative;
  width: 100%;
  height: 106px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 0;
  box-shadow: none;
  clip-path: inset(0 round 6px);
}

.pdf-thumb iframe,
.pdf-thumb span {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pdf-thumb span {
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.metric {
  min-height: 118px;
  display: grid;
  gap: 6px;
  align-content: space-between;
  border: 1px solid color-mix(in srgb, var(--stone) 86%, transparent);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--charcoal) 8%, transparent);
}

.metric:nth-child(2n) {
  background: #ffffff;
}

.metric:nth-child(3n) {
  background: #ffffff;
  color: var(--ink);
}

.metric-label {
  color: var(--slate);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-value {
  color: var(--charcoal);
  font-size: clamp(16px, 1.8vw, 25px);
  line-height: 1;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-note {
  color: var(--slate);
  min-height: 28px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.42fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 14px;
}

.map-panel {
  display: grid;
  padding: 0;
  overflow: hidden;
  min-height: 260px;
}

.map-panel.large {
  grid-column: 1 / -1;
}

.map-view-grid {
  display: grid;
  min-height: calc(100vh - 120px);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.table-wrap {
  max-height: calc(100vh - 330px);
  overflow: scroll;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) color-mix(in srgb, var(--stone) 28%, var(--paper));
}

.rent-roll-panel tbody tr:first-child td {
  border-top: 0;
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--stone) 28%, var(--paper));
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--stone) 28%, var(--paper));
  border-radius: 999px;
  background: var(--slate);
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

.table-wrap::-webkit-scrollbar-corner {
  background: transparent;
}

table {
  width: 100%;
  min-width: 1520px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
}

tbody tr {
  background: #ffffff;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--paper) 78%, #ffffff);
}

tr.selected {
  background: color-mix(in srgb, var(--orange) 9%, #ffffff);
  box-shadow: inset 5px 0 0 var(--orange);
}

.action-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  height: 100%;
  justify-content: center;
}

.action-cell button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  min-width: 54px;
  padding: 2px var(--button-x);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.action-cell [data-action="delete-property"] {
  width: 54px;
  height: 24px;
  min-width: 54px;
  min-height: 24px;
  padding: 2px var(--button-x);
  border-color: transparent;
  line-height: 1;
  box-sizing: border-box;
}

.delete-action {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.action-cell [data-action="delete-property"] .loader {
  flex: 0 0 auto;
  margin-right: 0;
  vertical-align: 0;
}

.table-action:not(:disabled):hover,
.table-action:not(:disabled):focus-visible {
  box-shadow: none;
}

.sort-button {
  display: inline-flex;
  gap: 4px;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: none;
  font-size: inherit;
  text-align: left;
  text-transform: uppercase;
}

.sort-button:not(:disabled):hover,
.sort-button:not(:disabled):focus-visible {
  box-shadow: none;
  transform: none;
  outline: 0;
}

.sort-label {
  min-width: 0;
}

.sort-arrow {
  display: inline-grid;
  width: 12px;
  min-width: 12px;
  place-items: center;
  margin-left: 0;
  font-size: 9px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.72;
}

.sort-button.active .sort-arrow {
  opacity: 1;
}

.status-pill,
.issue-pill {
  display: inline-block;
  min-width: 56px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--charcoal);
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
}

.comm-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.missing-data {
  min-height: 24px;
  border-color: var(--orange);
  background: transparent;
  color: var(--orange);
  padding: 3px var(--button-x);
  font-size: 10px;
  text-align: left;
}

.missing-data:not(:disabled):hover,
.missing-data:not(:disabled):focus-visible {
}

.issue-pill.open {
  background: var(--orange);
}

.side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.assistant-output {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, padding-top 0.28s ease;
}

.assistant-output.has-drafts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 16px;
  opacity: 1;
  transform: translateY(0);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.listing-grid > .empty {
  grid-column: 1 / -1;
}

.listing-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.listing-ready-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--ink) 18%, transparent);
}

.action-cell .listing-action,
.listing-action {
  display: inline-flex;
  position: relative;
  width: auto;
  min-width: 74px;
  flex: 0 0 auto;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 var(--button-x);
  font-size: 10px;
  overflow: hidden;
  vertical-align: middle;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-action[data-action="generate-listing"] {
  width: 100%;
  min-width: 0;
}

.listing-action[data-action="view-listing"],
.listing-action[data-action="reset-listing"] {
  width: 66px;
  min-width: 66px;
  padding-inline: 10px;
}

.listing-action:not(:disabled):hover,
.listing-action:not(:disabled):focus-visible {
  box-shadow: none;
}

.listing-action.is-generating,
.listing-action.is-generating:disabled {
  opacity: 0.56;
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
  box-shadow: none;
}

.listing-action:not(:disabled):active {
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 12%, transparent);
}

.listing-action-inner {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  line-height: 1;
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100%;
  pointer-events: none;
  text-align: center;
}

.listing-action.is-generating .listing-action-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.listing-action-text {
  display: block;
  line-height: 14px;
  white-space: nowrap;
}

.listing-action .loader {
  display: inline-block;
  position: relative;
  top: 0;
  align-self: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  justify-self: center;
  vertical-align: middle;
  border: 0;
  border-radius: 50%;
  animation: none;
}

.listing-action .loader::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.listing-action.is-generating .loader,
.listing-action.is-generating:disabled .loader {
  border: 0;
}

.listing-action.is-generating .loader::before,
.listing-action.is-generating:disabled .loader::before {
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
}

.listing-status {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
}

.listing-preview {
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-warm);
}

.friendly-log {
  display: grid;
  gap: 8px;
  overflow: hidden;
  animation: none;
}

@keyframes logReveal {
  from {
    max-height: 360px;
    opacity: 0.72;
  }
  to {
    max-height: 1600px;
    opacity: 1;
  }
}

.show-more-log {
  margin-top: 10px;
  width: max-content;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  padding: 2px 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-panel {
  display: grid;
  gap: 24px;
}

.settings-connection-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  grid-template-rows: auto 40px;
  gap: 12px;
  align-items: stretch;
  margin: 2px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.settings-connection-actions button {
  min-width: 0;
  width: auto;
  height: 40px;
  min-height: 40px;
  grid-column: auto;
  grid-row: 2;
  justify-self: start;
  margin-top: 0;
  padding: 0 var(--button-x);
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.sheet-link-label {
  display: contents;
}

.sheet-link-label .label-text {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.sheet-link-label .sheet-link-field {
  grid-column: 1;
  grid-row: 2;
}

.settings-connection-actions .warning {
  grid-column: 3;
  grid-row: 2;
}

.sheet-link-label .label-text {
  text-transform: uppercase;
}

.settings-connection-actions button:not(:disabled):hover,
.settings-connection-actions button:not(:disabled):focus-visible {
  box-shadow: none;
}

.settings-connection-actions button:not(:disabled):active {
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 12%, transparent);
  transform: none;
}

.sheet-link-field {
  height: 40px;
  min-width: 0;
  background: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-grid label {
  display: contents;
}

.settings-currency {
  width: 100%;
}

.settings-locale {
  width: 100%;
}

.settings-units {
  width: 100%;
}

.settings-grid .settings-currency .label-text {
  grid-column: 1;
  grid-row: 1;
}

.settings-grid .settings-currency select {
  grid-column: 1;
  grid-row: 2;
}

.settings-grid .settings-locale .label-text {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.settings-grid .settings-locale select {
  grid-column: 2;
  grid-row: 2;
}

.settings-grid .settings-units .label-text {
  grid-column: 3;
  grid-row: 1;
  white-space: nowrap;
}

.settings-grid .settings-units select {
  grid-column: 3;
  grid-row: 2;
}

.settings-reset-button {
  grid-column: 4;
  grid-row: 2;
  width: auto;
  height: 38px;
  min-height: 38px;
  align-self: stretch;
  justify-self: start;
  white-space: nowrap;
}

.settings-grid label:not(.settings-currency):not(.settings-locale):not(.settings-units) .label-text {
  grid-column: 4;
  grid-row: 1;
}

.settings-grid label:not(.settings-currency):not(.settings-locale):not(.settings-units) input {
  grid-column: 4;
  grid-row: 2;
}

.settings-grid .field-help {
  vertical-align: middle;
}

.settings-grid .label-text {
  align-self: end;
  min-height: 22px;
}

.settings-grid select,
.settings-grid input {
  height: 38px;
  align-self: stretch;
}

.notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-warm);
}

.notification-settings .panel-header {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.notification-settings h3 {
  margin: 0;
}

.switch-row {
  position: relative;
  display: inline-flex;
  grid-template-rows: none;
  width: max-content;
  min-width: 174px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--stone) 28%, #ffffff);
  transition: background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color;
}

.switch-row i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--charcoal);
  transform: translateY(-50%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.switch-row input:checked + i {
  background: var(--charcoal);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 18%, transparent);
}

.switch-row input:checked + i::before {
  background: #ffffff;
  transform: translate(20px, -50%);
}

.switch-row:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.notification-types input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--ink);
}

.notification-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 16px;
}

.notification-types {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.notification-types label {
  display: inline-flex;
  grid-template-rows: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
}

.notification-types label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-actions {
  display: flex;
  grid-column: 2;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
}

.notification-actions button {
  width: 154px;
  min-width: 154px;
  height: 40px;
  min-height: 40px;
  padding-block: 0;
}

.notification-actions .button-content {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.notification-actions .loader {
  margin-right: 0;
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  border-top-color: var(--ink);
}

.settings-intro {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0;
}

.settings-intro p {
  margin: 0;
}

.settings-intro p {
  color: var(--slate);
  line-height: 1.55;
}

.panel h3 + .friendly-log {
  margin-top: 0;
}

.tech-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0;
}

.tech-info article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--charcoal) 12%, transparent);
}

.tech-info span {
  color: var(--stone);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-info strong {
  font-size: 14px;
}

.analytics-page {
  display: grid;
  gap: 14px;
}

.analytics-page .panel-header {
  margin-bottom: 0;
}

.analytics-page .panel-header .muted {
  display: block;
  margin-top: 4px;
}

.analytics-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.analytics-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  border: 1px solid color-mix(in srgb, var(--stone) 86%, transparent);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--charcoal);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--charcoal) 8%, transparent);
  animation: none;
}

.analytics-card:nth-child(2) {
  background: #ffffff;
}

.analytics-card:nth-child(3) {
  background: #ffffff;
  color: var(--charcoal);
}

.analytics-card:nth-child(4) {
  background: #ffffff;
  color: var(--charcoal);
}

.analytics-card span,
.analytics-card small {
  color: var(--slate);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-card strong {
  color: var(--orange);
  font-size: clamp(20px, 2.35vw, 34px);
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-panel {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.analytics-panel > .empty {
  display: grid;
  min-height: 170px;
  place-items: center;
}

.analytics-panel.wide {
  grid-column: span 1;
}

.owner-visibility-panel {
  align-content: stretch;
}

.owner-visibility-panel .scorecard-grid {
  height: 100%;
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, 1fr);
}

.owner-visibility-panel .scorecard-grid strong {
  font-size: clamp(16px, 1.55vw, 19px);
  letter-spacing: 0;
}

.comparison-bars,
.rank-bars {
  display: grid;
  gap: 10px;
}

.comparison-row,
.rank-bars article {
  display: grid;
  grid-template-columns: 150px minmax(140px, 1fr) 96px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}

.comparison-row span,
.comparison-row strong,
.rank-bars span,
.rank-bars strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-row strong,
.rank-bars strong {
  text-align: right;
}

.comparison-row div,
.rank-bars div {
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stone) 46%, transparent);
  overflow: hidden;
}

.comparison-row i,
.rank-bars i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  animation: none;
}

.comparison-row.income i {
  background: var(--charcoal);
}

@keyframes barGrow {
  from {
    width: 0;
  }
}

.donut {
  --p: 0;
  width: 190px;
  aspect-ratio: 1;
  place-self: center;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), color-mix(in srgb, var(--stone) 42%, transparent) 0);
  animation: none;
}

.donut::before {
  content: "";
  position: absolute;
}

.donut > div {
  display: grid;
  position: relative;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel-warm);
}

.donut strong {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 86%;
  font-size: clamp(16px, 4.8vw, 24px);
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.donut span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 24px;
  line-height: 1;
  text-align: center;
}

.occupancy-wrap {
  display: grid;
  place-items: center;
}

.occupancy-orb {
  padding-top: 0;
  place-items: center;
}

.occupancy-orb::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.occupancy-orb strong {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 74px;
  max-width: 96px;
  height: 38px;
  border-radius: 999px;
  background: #ffffff;
  font-size: clamp(15px, 3.1vw, 19px);
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px color-mix(in srgb, var(--ink) 14%, transparent);
  transform: translateX(-50%);
}

.occupancy-orb span {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  width: 64%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.analytics-legend,
.risk-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-grid article {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.risk-grid strong {
  font-size: 30px;
  line-height: 1;
}

.stacked-chart {
  display: flex;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stone) 42%, transparent);
}

.stacked-chart i {
  width: var(--w);
  background: var(--c);
  animation: none;
}

.stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 850;
}

.stacked-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stacked-legend b {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.gauge {
  width: min(260px, 100%);
  aspect-ratio: 2 / 1;
  place-self: center;
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
  border-radius: 260px 260px 0 0;
  background:
    radial-gradient(circle at 50% 100%, #ffffff 0 44%, transparent 45%),
    conic-gradient(from 270deg at 50% 100%, var(--orange) calc(var(--p) * 0.5%), color-mix(in srgb, var(--stone) 42%, transparent) 0 50%, transparent 0);
  color: var(--ink);
  position: relative;
}

.gauge strong {
  display: grid;
  place-items: center;
  min-width: 74px;
  max-width: 96px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  font-size: clamp(15px, 3.1vw, 19px);
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

.gauge span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spark-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 170px;
}

.spark-bars article {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  height: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.spark-bars i {
  align-self: end;
  justify-self: center;
  width: 52%;
  height: var(--h);
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: var(--orange);
  animation: none;
}

@keyframes barGrowY {
  from {
    height: 0;
  }
}

.polar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.polar-list article,
.scorecard-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.polar-list article {
  border-top: 5px solid var(--c);
}

.follow-up-status-grid {
  display: grid;
  gap: 10px;
  height: 100%;
  align-content: stretch;
  grid-auto-rows: minmax(68px, 1fr);
}

.follow-up-status-grid article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.follow-up-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.follow-up-status-grid strong {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1;
}

.follow-up-status-grid small {
  color: var(--slate);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.polar-list strong,
.scorecard-grid strong {
  font-size: clamp(18px, 2.25vw, 22px);
  line-height: 1;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.type-mix-bars {
  display: grid;
  gap: 10px;
}

.type-mix-bars article {
  display: grid;
  gap: 6px;
  animation: none;
}

.type-mix-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}

.type-mix-bars span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-mix-bars strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, #ffffff);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.type-mix-bars i {
  display: block;
  width: var(--w);
  height: 12px;
  border-radius: 999px;
  background: var(--c);
  animation: none;
}

.friendly-log article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.friendly-log span {
  font-size: 12px;
}

.listing-card-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.listing-card-top > div {
  min-width: 0;
}

.listing-card-top > div:first-child {
  padding-right: 34px;
}

.listing-card-top strong,
.listing-card-top span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card-top .action-cell {
  display: grid;
  grid-template-columns: minmax(142px, 1fr) 66px 66px;
  gap: 6px;
  justify-content: start;
  align-items: center;
  padding-block: 3px;
  width: 100%;
  height: 44px;
  min-width: 0;
}

.listing-card-top span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.listing-card-top .listing-action-inner {
  display: inline-flex;
  margin-top: 0;
}

.listing-card-top .listing-action.is-generating .listing-action-inner {
  display: inline-flex;
}

.listing-card-top .listing-action-text {
  display: block;
  margin-top: 0;
}

.listing-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 9%, transparent);
  animation: none;
}

.draft-row strong {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-main {
  min-width: 0;
}

.draft-main span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-row dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.draft-row div:has(> dt) {
  min-width: 0;
}

.draft-row dt {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 70%, var(--paper));
}

.draft-row dd {
  margin: 1px 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.analyse-contracts-button,
.add-draft-button {
  width: auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 var(--button-x);
}

.analyse-contracts-button {
  width: 174px;
  min-width: 174px;
}

.add-draft-button {
  justify-self: start;
  min-width: 132px;
}

.analyse-contracts-button .button-content,
.add-draft-button .button-content {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.analyse-contracts-button .loader,
.add-draft-button .loader {
  flex: 0 0 auto;
  margin: 0;
  vertical-align: 0;
}

.analyse-contracts-button .loader {
  border-color: color-mix(in srgb, var(--paper) 48%, transparent);
  border-top-color: var(--paper);
}

.add-draft-button .loader {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  border-top-color: var(--ink);
}

.analyse-contracts-button:disabled.is-analysing,
.add-draft-button:disabled.is-adding {
  opacity: 0.56;
  box-shadow: none;
}

.add-draft-button:disabled:not(.is-adding) {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes draftIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #52c7d4;
  line-height: 0;
}

.google-map-frame-slot,
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: inherit;
}

.local-map {
  background: #52c7d4;
}

.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.views > section {
  display: none;
}

.views > section.active {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
}

.modal[hidden] {
  display: none;
}

.internet-blocker {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
}

.internet-blocker-panel {
  width: min(640px, 96vw);
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: modalIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.internet-blocker-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

.internet-blocker h2 {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.internet-blocker p {
  margin: 0 0 12px;
  color: var(--slate);
  line-height: 1.5;
}

.internet-blocker .internet-blocker-message {
  margin-top: 28px;
  margin-bottom: 28px;
  color: var(--ink);
  line-height: 1.55;
}

.internet-status-card {
  min-width: 176px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-warm);
}

.internet-status-card > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.internet-status-card strong {
  max-width: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.internet-status-card strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-transform: inherit;
}

.internet-blocker-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-panel {
  width: min(1180px, 96vw);
  height: min(860px, 92vh);
  max-height: min(860px, 92vh);
  overflow: auto;
  padding: 18px;
  animation: modalIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.compact-modal {
  width: min(560px, 100%);
  height: auto;
}

.catalogue-modal {
  width: min(1100px, 96vw);
}

.catalogue-modal .modal-top {
  margin-bottom: 21px;
}

.language-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.contract-language-note {
  margin: 8px 0 0;
  line-height: 1.45;
}

.contract-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 22px;
  margin: 28px 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  transition: none;
}

.contract-note-toggle input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.contract-note-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: none;
}

.contract-note-toggle .field-help {
  display: inline-grid;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}

.property-origin {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: fit-content;
  margin-top: 0;
  border: 1px solid color-mix(in srgb, var(--orange) 52%, var(--line));
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--orange) 10%, #ffffff);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.modal-title-stack {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.modal-title-stack h2 {
  margin: 0;
}

.catalogue-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.catalogue-title-row h2 {
  min-width: 0;
  margin: 0;
}

.property-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.catalogue-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
}

.catalogue-chip-row .property-origin,
.catalogue-chip-row .catalogue-rate-note {
  margin: 0;
}

.catalogue-chip-row .property-origin,
.catalogue-chip-row .catalogue-rate-note span {
  min-height: 24px;
  align-items: center;
}

.modal-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.modal-top-actions button {
  min-width: 92px;
}

.property-origin.imported {
  border-color: color-mix(in srgb, var(--slate) 48%, var(--line));
  background: color-mix(in srgb, var(--stone) 22%, #ffffff);
}

.catalogue-modal .property-origin {
  margin: 10px 0;
}

.catalogue-modal .modal-top .muted {
  margin: 10px 0;
}

.detail-list,
.issue-detail-list {
  display: grid;
  gap: 10px;
}

.detail-list p,
.issue-detail-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.detail-list span,
.issue-detail-list p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.form-section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 10%, transparent);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.form-section.is-open {
  z-index: 2;
  overflow: visible;
  border-color: color-mix(in srgb, var(--ink) 55%, var(--orange));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 16%, transparent);
}

.form-section.is-open:focus-within {
  z-index: 40;
}

.form-section + .form-section {
  margin-top: 12px;
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 36%, transparent);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.form-section:not(.is-open) .form-section-title {
  border-bottom: 0;
  background: color-mix(in srgb, var(--stone) 18%, #ffffff);
  color: var(--charcoal);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}

.section-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

.section-status-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-status.complete {
  background: #EB5E28;
  color: #ffffff;
}

.section-status.pending,
.section-status.incomplete,
.section-status:not(.complete) {
  background: #CCC5B9;
  color: var(--charcoal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--charcoal) 12%, transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  min-height: 0;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.7s ease, padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-section-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s ease;
}

.form-section.is-open .form-section-body {
  grid-template-rows: 1fr;
  overflow: visible;
  opacity: 1;
}

.form-section:not(.is-open) .form-grid {
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.form-section-body > .form-grid {
  min-height: 0;
  overflow: visible;
}

.form-subsection {
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.landlord-heading {
  grid-column: 1;
}

.tenant-heading {
  grid-column: 2;
}

.tenancy-heading {
  grid-column: 1 / -1;
  margin-top: 4px;
  background: var(--orange);
}

.form-section[data-section="tenancyRecord"] .landlord-field {
  grid-column: 1;
}

.form-section[data-section="tenancyRecord"] .tenant-field {
  grid-column: 2;
}

.form-section[data-section="tenancyRecord"] .tenancy-detail-field {
  grid-column: 1 / -1;
}

.form-section[data-section="tenancyRecord"] .form-grid {
  align-items: start;
}

.feedback-field {
  text-transform: none;
}

.feedback-submit {
  width: 126px;
  min-width: 126px;
  height: 38px;
  min-height: 38px;
  padding: 0 var(--button-x);
}

.feedback-submit:disabled.is-sending {
  opacity: 1;
  cursor: wait;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 14%, transparent);
}

.feedback-submit-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  line-height: 1;
  white-space: nowrap;
}

.feedback-submit .loader {
  flex: 0 0 auto;
  margin: 0;
  vertical-align: 0;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 0;
}

.catalogue-photos {
  display: grid;
  grid-template-columns: repeat(5, 86px);
  grid-template-rows: repeat(2, 86px);
  gap: 10px;
  align-content: start;
  align-items: start;
}

.catalogue-photos:has(.catalogue-photo-empty) {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 248px;
  align-self: start;
}

.catalogue-photo-thumb,
.catalogue-photo-empty {
  width: 86px;
  height: 86px;
  border-radius: 8px;
}

.catalogue-photo-thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, #ffffff);
  box-shadow: none;
}

.catalogue-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogue-photo-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  font-weight: 900;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
}

.catalogue-facts,
.catalogue-sections {
  display: grid;
  gap: 10px;
}

.catalogue-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.catalogue-facts article,
.catalogue-sections section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.catalogue-facts article {
  min-height: 76px;
}

.catalogue-facts span,
.catalogue-sections span {
  display: block;
  color: var(--slate);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalogue-facts strong,
.catalogue-sections strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.catalogue-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.catalogue-sections h3 {
  margin: 0 0 10px;
}

.catalogue-sections p {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin: 0 0 8px;
}

.catalogue-sections p span,
.catalogue-sections p strong {
  display: block;
  min-width: 0;
  margin-top: 0;
}

.catalogue-sections p strong {
  text-align: left;
}

.issues-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.issues-heading {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: start;
}

.issue-row label {
  grid-template-rows: 18px 42px;
  align-content: start;
}

.phone-combo {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1fr);
  gap: 8px;
}

.photo-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.photo-grid.empty {
  display: block;
}

.photo-grid.has-photos .photo-upload {
  grid-column: span 3;
  min-height: 86px;
  aspect-ratio: auto;
  height: 100%;
  padding: 10px;
  font-size: 12px;
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 88%, #ffffff);
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.photo-thumb:hover,
.photo-thumb:focus-visible {
  box-shadow: none;
}

.photo-item {
  position: relative;
  display: grid;
  gap: 6px;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-upload {
  display: grid;
  width: 100%;
  min-height: 124px;
  place-items: center;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: stretch;
  border: 2px dashed color-mix(in srgb, var(--ink) 42%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 90%, #ffffff);
  padding: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: none;
}

.photo-upload span,
.photo-upload small {
  display: block;
  width: 100%;
  align-self: center;
  justify-self: center;
}

.photo-upload small {
  color: var(--slate);
  font-size: 11px;
  font-weight: 800;
}

.photo-upload.dragging {
  outline: 3px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 8%, var(--paper));
}

.photo-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  align-items: center;
  justify-items: center;
  border: 2px solid color-mix(in srgb, var(--paper) 92%, #fff);
  border-radius: 50%;
  padding: 0;
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 34%, transparent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  font-family: Arial, sans-serif;
  transform: none;
}

.photo-delete:not(:disabled):hover,
.photo-delete:not(:disabled):focus-visible {
  box-shadow: none;
  transform: none;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
}

.photo-preview-panel {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: end;
  max-width: min(880px, 94vw);
  max-height: 92vh;
}

.photo-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  height: auto;
  min-height: 32px;
  border-radius: 6px;
  padding: 5px var(--button-x);
  border-color: var(--orange);
  background: #FFFCF2;
  color: var(--ink);
  opacity: 1;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 28%, transparent);
}

.photo-preview-close.secondary {
  background: #FFFCF2;
  color: var(--ink);
}

.photo-preview-panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}

.field-wide {
  grid-column: span 2;
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.property-form.is-saving {
  cursor: wait;
  opacity: 0.78;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 220px) auto;
  grid-template-rows: auto 38px;
  gap: 8px 12px;
  align-items: stretch;
}

.settings-grid label {
  width: 100%;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.sheet-ready-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--charcoal) 8%, transparent);
}

.sheet-ready-notice > div:first-child {
  display: grid;
  gap: 3px;
}

.sheet-ready-notice strong {
  font-size: 0.98rem;
}

.sheet-ready-notice span {
  color: var(--muted);
  font-size: 0.9rem;
}

.sheet-ready-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.legal-page {
  width: min(780px, calc(100vw - 40px));
  margin: 42px auto;
  padding: 0 0 48px;
  color: var(--charcoal);
}

.legal-brand {
  display: inline-block;
  margin: 0 0 28px;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.legal-page h2 {
  margin: 30px 0 8px;
  font-size: 1.15rem;
}

.legal-page p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-page a {
  color: var(--charcoal);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 80;
  max-width: 420px;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--charcoal) 34%, transparent), 0 0 0 1px color-mix(in srgb, var(--stone) 18%, transparent);
  font-weight: 800;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
  animation: toastIn 0.24s ease both;
  pointer-events: none;
}

.toast.success {
  background: var(--charcoal);
  color: #ffffff;
}

.toast.error {
  background: var(--orange);
  color: #ffffff;
}

.toast.leaving {
  opacity: 0;
  transform: translateY(12px);
}

.toast[hidden] {
  display: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muted {
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
  font-size: 12px;
  line-height: 1.45;
}

.danger-text {
  color: var(--orange);
  font-weight: 900;
}

a {
  color: var(--orange);
  font-weight: 900;
}

button.secondary:not(:disabled):hover,
button.secondary:not(:disabled):focus-visible,
button.subtle:not(:disabled):hover,
button.subtle:not(:disabled):focus-visible,
.toolbar button:not(:disabled):hover,
.toolbar button:not(:disabled):focus-visible,
.calendar-controls button:not(:disabled):hover,
.calendar-controls button:not(:disabled):focus-visible,
.form-actions button:not(:disabled):hover,
.form-actions button:not(:disabled):focus-visible {
  transform: none;
  outline: 0;
  box-shadow: none;
  filter: none;
}

button.secondary:not(:disabled):active,
button.subtle:not(:disabled):active,
.toolbar button:not(:disabled):active,
.calendar-controls button:not(:disabled):active,
.form-actions button:not(:disabled):active {
  transform: none;
  filter: none;
}

button.warning:not(:disabled):hover,
button.warning:not(:disabled):focus-visible {
  transform: none;
  outline: 0;
  filter: none;
}

button.warning:not(:disabled):active {
  transform: none;
  filter: none;
}

@media (max-width: 1160px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
  }

  .content-grid,
  .map-view-grid,
  .setup-hero,
  .assistant-output.has-drafts,
  .quick-guide {
    grid-template-columns: 1fr;
  }

  .setup {
    width: auto;
    max-width: none;
    margin: 24px 20px;
    padding: 0;
    overflow: hidden;
  }

  .setup-hero,
  .hero-panel,
  .setup-card,
  .quick-guide,
  .guide-step {
    min-width: 0;
    max-width: calc(100vw - 64px);
  }

  .hero-panel p,
  .setup-card p,
  .guide-step span {
    max-width: 300px;
    overflow-wrap: anywhere;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .analytics-hero-grid,
  .analytics-visual-grid,
  .notification-settings,
  .property-settings-strip,
  .import-uploader.has-files {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .settings-grid,
  .notification-grid,
  .catalogue-layout,
  .catalogue-facts,
  .catalogue-sections,
  .filters {
    grid-template-columns: 1fr;
  }

  .notification-types,
  .notification-actions {
    grid-column: 1;
  }

  .notification-actions {
    justify-content: flex-start;
  }

  .landlord-heading,
  .tenant-heading,
  .tenancy-heading,
  .form-section[data-section="tenancyRecord"] .landlord-field,
  .form-section[data-section="tenancyRecord"] .tenant-field,
  .form-section[data-section="tenancyRecord"] .tenancy-detail-field {
    grid-column: 1 / -1;
  }

  .setup-controls,
  .issue-row,
  .phone-combo {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 14px;
  }

  .topbar,
  .connect-row,
  .listing-card-top {
    grid-template-columns: 1fr;
  }

  .sheet-ready-notice {
    flex-direction: column;
    align-items: stretch;
  }

  .sheet-ready-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .toolbar select,
  .setup-controls label {
    width: 100%;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .internet-blocker {
    padding: 10px;
  }

  .internet-blocker-panel {
    padding: 16px;
  }

  .internet-blocker-top {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    max-height: 94vh;
    padding: 12px;
  }

  .table-wrap {
    max-height: 60vh;
  }

  .tutorial-card {
    gap: 8px;
    padding: 13px;
  }

  .tutorial-actions {
    grid-template-columns: 1fr 1fr;
  }

  .tutorial-actions span {
    display: none;
  }

  .tutorial-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  button,
  input,
  select,
  textarea {
    min-width: 0;
  }

  .sidebar,
  .main,
  .hero-panel,
  .setup-card,
  .panel {
    padding: 12px;
  }

  .setup {
    width: auto;
    max-width: none;
    margin: 18px 12px;
    padding: 0;
    overflow: hidden;
  }

  .setup-hero,
  .hero-panel,
  .setup-card,
  .quick-guide,
  .guide-step {
    min-width: 0;
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

  .hero-panel,
  .setup-card,
  .guide-step {
    padding-right: 40px;
  }

  .hero-panel p,
  .setup-card p,
  .guide-step span {
    max-width: calc(100vw - 104px);
    overflow-wrap: anywhere;
  }

  .setup-card button,
  .connect-row button {
    width: auto;
    max-width: calc(100% - 28px);
  }

  .connect-row input {
    width: calc(100% - 28px);
  }

  .brand-title {
    font-size: 20px;
  }

  .nav button {
    width: 100%;
  }

  .sidebar-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-info article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sidebar-info strong {
    max-width: none;
    text-align: left;
  }

  .page-title,
  .hero-panel h1 {
    font-size: 26px;
  }

  .quick-guide,
  .setup,
  .side-stack {
    gap: 10px;
  }

  .listing-card-top .action-cell {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 7px 6px;
  }
}
