:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #19302d;
  background: #f4f7f6;
  font-synthesis: none;
  --green: #126e58;
  --border: #dce6e2;
  --ui-brand-accent: #2bc6dc;
  --ui-gold: #f4c744;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: #19302d;
  border-radius: 8px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #e9f3ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #095540;
}
a {
  color: var(--green);
}
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 19px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand, .login .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.brand:hover > span:last-child, .login .eyebrow a:hover {
  text-decoration: underline;
}
.brand:focus-visible, .login .eyebrow a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.logo {
  background: var(--ui-gold);
  color: #332604;
  padding: 8px 12px;
  border-radius: 9px;
}
.user {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}
nav {
  display: flex;
  gap: 5px;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: auto;
}
nav a {
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 7px;
  color: #657772;
  font-size: 14px;
  font-weight: 600;
}
nav a.active {
  background: #e4f1eb;
  color: #095540;
}
main {
  max-width: 1450px;
  margin: auto;
  padding: 34px 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #637c73;
  margin: 0 0 10px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 19px;
  margin: 0 0 20px;
}
p {
  line-height: 1.6;
}
.muted {
  color: #637872;
  font-size: 14px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.toolbar input[type="search"] {
  min-width: 250px;
  flex: 1;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.toolbar input[type="date"] {
  width: 155px;
}
input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid #cddbd5;
  border-radius: 7px;
  background: white;
  color: #19302d;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.stat p {
  margin: 0 0 10px;
  color: #647a72;
  font-size: 13px;
}
.stat strong {
  font-size: 30px;
  font-weight: 650;
  display: block;
  letter-spacing: -1px;
}
.stat small {
  display: block;
  margin-top: 9px;
  color: #6b8078;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.stage-row span {
  width: 130px;
  font-size: 13px;
}
.bar {
  flex: 1;
  height: 9px;
  background: var(--ui-line, #edf3f0);
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  background: var(--ui-accent, #41977d);
  height: 100%;
}
.activity {
  border-top: 1px solid #edf1ef;
  padding: 15px 0;
}
.activity:first-of-type {
  border: 0;
}
.activity p {
  margin: 0;
  font-size: 14px;
}
.activity small {
  font-size: 12px;
  color: #71867d;
}
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 20px;
  min-height: 360px;
}
.column {
  background: #eaf0ed;
  border-radius: 10px;
  padding: 14px;
  min-height: 300px;
}
.column h2 {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}
.count {
  background: white;
  padding: 3px 7px;
  border-radius: 5px;
  color: #62786f;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 2px 3px #19302d06;
}
.card a {
  font-weight: 650;
  text-decoration: none;
  color: #203e34;
}
.card .money {
  display: block;
  margin: 15px 0 9px;
  font-size: 19px;
}
.card select {
  width: 100%;
  font-size: 12px;
  padding: 6px;
  margin-top: 12px;
}
.badge {
  display: inline-block;
  background: #e4f1eb;
  color: #1a684e;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  margin: 3px;
}
.test {
  background: #fff0cd;
  color: #856019;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: #71847b;
  font-size: 14px;
}
.empty p {
  margin: 6px;
}
.empty strong {
  color: #304e40;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  color: #70877c;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f9fbfa;
}
td,
th {
  padding: 17px 20px;
  border-bottom: 1px solid #edf2ef;
}
td {
  font-size: 14px;
}
td a {
  font-weight: 650;
  text-decoration: none;
}
.profile {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 24px;
}
.details dt {
  font-size: 12px;
  color: #74887e;
  margin-top: 18px;
}
.details dd {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.related {
  margin-bottom: 22px;
}
.related a {
  display: block;
  border-top: 1px solid #e7eeea;
  padding: 12px 0;
}
.login {
  max-width: 440px;
  margin: 9vh auto;
  padding: 35px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.login .logo {
  display: inline-block;
  margin-bottom: 26px;
}
.login h1 {
  font-size: 28px;
}
.login label,
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.login button[type="submit"] {
  width: 100%;
}
.login-password-field {
  margin-bottom: 18px;
}
.login-password-field label {
  margin-bottom: 7px;
}
.login-password-input {
  position: relative;
}
.login-password-input input {
  width: 100%;
  padding-right: 48px;
}
.login-password-input input::-ms-reveal {
  display: none;
}
.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}
.login-password-input input[type="password"] + button .login-password-slash {
  display: none;
}
.login p {
  margin-bottom: 25px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field.check {
  flex-direction: row;
  align-items: center;
}
.field.check input {
  width: 17px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 580px;
  max-width: 95vw;
  max-height: 90vh;
}
dialog::backdrop {
  background: #0e2b2366;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  border: none;
  font-size: 23px;
  padding: 0 8px;
}
#form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.wide {
  grid-column: 1/-1;
}
#form-error,
.error {
  color: #a23030;
  font-size: 14px;
}
.notice {
  background: #fff6dd;
  border: 1px solid #eed69f;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ui-soft, #193d30);
  color: var(--ui-text, #fff);
  padding: 13px 22px;
  border-radius: 9px;
  display: none;
  z-index: 10;
  max-width: 90vw;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-row {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  margin: 28px 0;
  font-size: 12px;
  color: #819288;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two,
  .profile {
    grid-template-columns: 1fr;
  }
  .user span {
    display: none;
  }
}
@media (max-width: 600px) {
  header {
    padding: 15px 18px;
  }
  nav {
    padding: 8px 10px;
  }
  nav a {
    padding: 10px 12px;
  }
  main {
    padding: 25px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head .primary {
    font-size: 13px;
    padding: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 24px;
  }
  .panel {
    padding: 20px;
  }
  .toolbar input[type="search"] {
    min-width: 100%;
    width: 100%;
  }
  .toolbar {
    gap: 10px;
  }
  .login {
    margin: 30px 16px;
    padding: 27px;
  }
  #form-fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .user {
    gap: 4px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  dialog {
    padding: 22px;
  }
  .board {
    grid-template-columns: repeat(6, 250px);
  }
}
progress.bar {
  appearance: none;
  border: 0;
  display: block;
}
progress.bar::-webkit-progress-bar {
  background: var(--ui-line, #edf3f0);
  border-radius: 10px;
}
progress.bar::-webkit-progress-value {
  background: var(--ui-accent, #41977d);
  border-radius: 10px;
}
progress.bar::-moz-progress-bar {
  background: var(--ui-accent, #41977d);
  border-radius: 10px;
}
.labels-field {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
}
.labels-field legend {
  font-weight: 650;
}
.labels-field label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.label-badge {
  font-weight: 600;
}
.profile h2 {
  margin-top: 20px;
}
@media (max-width: 500px) {
  .labels-field {
    grid-template-columns: 1fr;
  }
}
.column {
  border-top: 3px solid #3283ed;
}
.column[data-stage="Nurture (Follow Up)"] {
  border-top-color: #df4e99;
}
.column[data-stage="Offer Made"] {
  border-top-color: #9360eb;
}
.column[data-stage="Under Contract"] {
  border-top-color: #d3a500;
}
.column[data-stage="In Escrow"] {
  border-top-color: #1ca8bc;
}
.column[data-stage="Closed"] {
  border-top-color: #20a875;
}
/* Visible in the separate local preview only. */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  color: #275343;
  background: #e7f2eb;
  border-bottom: 1px solid #cadfd1;
  font-size: 13px;
}
