:root {
  color-scheme: light;
  --ink: #2b322c;
  --green: #35483c;
  --sage: #60735f;
  --line: #dcded3;
  --muted: #60685c;
  --paper: #f8f8f2;
  --card: #fffffb;
  --gold: #b0975c;
  --rail: 214px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    13px/1.5 Verdana,
    Arial,
    sans-serif;
}
.sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 0;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 29px 17px 21px;
  color: #f3f2e6;
  background: #334538;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 4px 25px;
}
.monogram {
  border: 1px solid #ac9868;
  color: #e5d6af;
  font: 25px Georgia;
  letter-spacing: -4px;
  width: 40px;
  height: 42px;
  text-align: center;
  padding: 6px 4px 6px 0;
}
.brand strong {
  display: block;
  font: 14px Georgia;
  letter-spacing: 2.1px;
}
.brand small,
.rail-foot small {
  display: block;
  font-size: 9px;
  color: #d3d9ca;
}
.brand small {
  font-size: 8px;
  margin-top: 3px;
}
.rail-rule {
  height: 1px;
  background: #65726466;
}
.nav-label {
  color: #c0cbbd;
  text-transform: uppercase;
  letter-spacing: 1.75px;
  font-size: 9px;
  margin: 30px 12px 10px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav button {
  color: #dfe5d9;
  border-radius: 5px;
  justify-content: flex-start;
  padding: 11px 13px;
  gap: 12px;
  font-size: 12px;
}
.rail nav button:hover,
.rail nav button[aria-current="page"] {
  color: #fff;
  background: #50634f;
}
.rail nav button[aria-current="page"] {
  box-shadow: inset 2px 0 #c6b178;
}
.rail nav small {
  margin-left: auto;
}
.rail-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #64726466;
  padding-top: 18px;
  margin-top: auto;
}
.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #65745d;
  color: white;
  display: grid;
  place-items: center;
  font: 15px Georgia;
}
.rail-foot b {
  font-weight: normal;
  font-size: 11px;
}
.rail-foot small {
  font-size: 8px;
  margin-top: 2px;
}
main {
  margin-left: var(--rail);
  min-width: 0;
}
.topbar {
  height: 61px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 3.4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbf6;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}
.breadcrumb strong {
  font: 18px Georgia;
  color: var(--ink);
}
.breadcrumb span:first-of-type {
  color: #c6c7b9;
}
.content {
  max-width: 1720px;
  margin: auto;
  padding: 32px clamp(18px, 3.4vw, 62px) 65px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: normal;
}
h1 {
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -2px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.65px;
}
h3 {
  font-size: 20px;
}
header p,
.muted,
.small {
  color: var(--muted);
}
header p {
  font-size: 12px;
  margin-top: 7px;
}
.small {
  font-size: 11px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #9b8860;
}
.dot.on {
  background: #537250;
}
.quiet {
  padding: 6px 9px;
  font-size: 10px;
  color: var(--muted);
}
.quiet:hover {
  background: #eceee5;
}
.quiet svg {
  width: 13px;
  height: 13px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 17px;
  overflow: hidden;
}
.metric {
  position: relative;
  padding: 17px 18px 15px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-name {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.metric-name svg {
  width: 15px;
  color: #687965;
}
.metric-value {
  font: 32px/1.1 Georgia;
  margin-top: 8px;
  letter-spacing: -1.1px;
}
.search-panel {
  padding: 16px 18px 18px;
  margin-bottom: 27px;
  background: #edf0e7;
  border-color: #d9dfd2;
}
.search-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: bold;
}
.search-title svg {
  width: 15px;
  color: var(--sage);
}
.search-fields {
  display: grid;
  grid-template-columns: minmax(145px, 2.2fr) minmax(84px, 0.7fr) minmax(
      110px,
      1fr
    ) auto;
  align-items: end;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
input:not([type="checkbox"]),
select,
textarea {
  height: 38px;
  border: 1px solid #cbcec1;
  background: #fffffc;
  border-radius: 4px;
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  height: auto;
}
.primary,
.secondary,
.danger {
  padding: 9px 14px;
  min-height: 38px;
  border-radius: 4px;
  font-size: 12px;
}
.primary {
  color: white;
  background: var(--green);
}
.primary:hover {
  background: #25372a;
}
.secondary {
  background: #fffefa;
  border: 1px solid #c7cdbf;
}
.danger {
  color: #8b402b;
  border: 1px solid #c8a89d;
}
.section-head,
.toolbar,
.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head {
  margin: 0 0 12px;
}
.stamp {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.stamp svg {
  width: 13px;
  height: 13px;
}
.toolbar {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.segments {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.segments button {
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 10px;
  color: #596453;
}
.segments button.active {
  background: #e5ebde;
  color: #354a33;
  font-weight: bold;
}
.toolbar select {
  width: auto;
  height: 31px;
  padding: 4px 7px;
  font-size: 10px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
th {
  font-size: 9px;
  font-weight: normal;
  color: #5b6457;
  background: #f1f3ea;
  padding: 10px 7px;
  letter-spacing: 0.15px;
}
td {
  padding: 10px 7px;
  border-top: 1px solid #e7e9df;
  font-size: 11px;
}
th:first-child,
td:first-child {
  padding-left: 14px;
}
td.num,
th.num {
  text-align: right;
}
td:last-child,
th:last-child {
  padding-right: 14px;
}
tbody tr:hover {
  background: #f8f9f2;
}
.property {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  max-width: 275px;
}
.property .info {
  min-width: 0;
}
.property strong,
.property small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property strong {
  font-weight: normal;
  font-size: 12px;
}
.property small,
.tag {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.thumb {
  display: grid;
  place-items: center;
  position: relative;
  background: #e9ede1;
  color: #7b8b72;
  width: 49px;
  height: 38px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bid {
  font-weight: bold;
  color: #374e36;
}
.score {
  background: #f0eddf;
  color: #736332;
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 7px;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px;
  color: #75856f;
}
.icon-button:hover,
.icon-button.saved {
  color: #3b5634;
  background: #e7eddf;
}
.icon-button.saved svg {
  fill: #d6e2ce;
}
.table-foot {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
#notice,
#feedback:not(:empty) {
  margin: 10px 0;
  background: #f3e9df;
  color: #673f2c;
  padding: 10px 14px;
  border-radius: 4px;
}
#feedback:not(:empty) {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: #35483c;
  box-shadow: 0 4px 18px #1c2d2138;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.wide {
  grid-column: 1/-1;
}
.settings-card {
  padding: 20px;
  margin-bottom: 14px;
}
.settings-card h2 {
  margin-bottom: 15px;
}
.checks {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.actions label {
  flex: 1;
}
.log-card {
  padding: 15px 18px;
  margin-bottom: 10px;
}
.log-card summary,
details summary {
  cursor: pointer;
}
.log-card p {
  margin-top: 7px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.55 Verdana,
    sans-serif;
  background: #f4f5ed;
  border-radius: 4px;
  padding: 12px;
}
.detail-top {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
}
.detail-top h2 {
  margin: 2px 0 4px;
}
.detail-top .icon-button {
  flex: none;
}
.drawer-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.drawer-section h3 {
  margin-bottom: 8px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
}
.fact small,
.fact b {
  display: block;
}
.fact small {
  color: var(--muted);
  font-size: 9px;
}
.fact b {
  font: 19px Georgia;
  margin-top: 3px;
}
.reasons {
  background: #f3eddd;
  border-left: 3px solid #b0975c;
  padding: 9px 11px;
  margin: 8px 0;
}
.reasons ul {
  margin: 4px 0;
  padding-left: 17px;
}
.evidence {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.evidence li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 11px;
}
.evidence b {
  white-space: nowrap;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.links a,
.evidence a {
  color: #415d3e;
}
.drawer-section .formgrid {
  grid-template-columns: 1fr 1fr;
}
dialog {
  border: 0;
  margin: 0 0 0 auto;
  padding: 22px 24px 38px;
  height: 100dvh;
  max-height: 100dvh;
  width: min(560px, 100vw);
  max-width: 100vw;
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop {
  background: #17271e66;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.panel.muted {
  padding: 16px;
}
.scan-note {
  margin-top: 10px;
  font-size: 11px;
  color: #65553e;
}
.mobile-stack {
  display: contents;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .thumb {
    width: 62px;
    height: 44px;
  }
}
@media (max-width: 1170px) {
  :root {
    --rail: 174px;
  }
  .rail {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content,
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .property {
    max-width: 216px;
  }
  .thumb {
    width: 38px;
    height: 32px;
  }
  .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 12px;
  }
  .metric {
    padding: 14px;
  }
}
@media (max-width: 880px) {
  :root {
    --rail: 0px;
  }
  .rail {
    position: static;
    width: 100%;
    height: auto;
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand {
    margin: 0;
  }
  .brand small,
  .brand strong,
  .rail-foot,
  .rail-rule,
  .nav-label {
    display: none;
  }
  .monogram {
    width: 33px;
    height: 33px;
    padding-top: 4px;
    font-size: 20px;
  }
  .rail nav {
    display: flex;
  }
  .rail nav button {
    padding: 7px 9px;
  }
  .topbar {
    height: 43px;
  }
  .content {
    padding-top: 19px;
  }
  .table-scroll {
    scrollbar-width: thin;
  }
  .table-scroll table {
    min-width: 740px;
  }
  .search-fields {
    gap: 8px;
  }
  .metric-name {
    font-size: 9px;
  }
}
@media (max-width: 600px) {
  .rail {
    padding: 8px;
    gap: 5px;
  }
  .rail nav {
    gap: 0;
    justify-content: space-between;
    flex: 1;
  }
  .rail nav button {
    padding: 7px 5px;
    font-size: 10px;
    gap: 3px;
  }
  .rail nav svg {
    width: 13px;
  }
  .rail nav small {
    display: none;
  }
  .content,
  .topbar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .content {
    padding-top: 18px;
  }
  .topbar {
    height: 38px;
  }
  header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
  }
  h1 {
    font-size: 37px;
  }
  header p {
    font-size: 11px;
  }
  h2 {
    font-size: 22px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 10px 12px;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric-value {
    font-size: 25px;
    margin-top: 3px;
  }
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }
  .search-fields label:first-child {
    grid-column: 1/-1;
  }
  .search-fields button {
    grid-column: 1/-1;
  }
  .search-panel {
    padding: 12px;
    margin-bottom: 18px;
  }
  .toolbar {
    padding: 8px;
  }
  .property {
    max-width: 170px;
  }
  .property .thumb {
    display: none;
  }
  .table-scroll table {
    min-width: 650px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
  }
  .formgrid,
  .drawer-section .formgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-card {
    padding: 13px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .state {
    font-size: 9px;
  }
  .offer-head {
    flex-wrap: wrap;
  }
  dialog {
    padding: 16px;
  }
  .actions button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: slide-in 0.16s ease-out;
  }
  @keyframes slide-in {
    from {
      transform: translateX(35px);
      opacity: 0.6;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
.table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.table-tools .photo-toggle {
  font-size: 10px;
  color: var(--muted);
}
.photo-toggle input {
  width: 13px;
  height: 13px;
}
.thumb svg {
  width: 34px;
  height: 27px;
  stroke-width: 1.15;
}
.login-body {display:grid; min-height:100vh; place-items:center; padding:1.25rem;}
.login-card {width:min(100%, 26rem); margin:0; padding:2rem; border:1px solid #d5dbd4; border-radius:1rem; background:white;}
.login-card .brand {display:flex; align-items:center; gap:.75rem; color:#35483d;}
.login-card h1 {margin:1.5rem 0;}
.login-card form,.login-card label {display:grid;gap:.5rem;}
.login-card form {gap:1rem;}
.login-card input {width:100%; min-height:2.75rem; padding:.65rem;}
.google-login {display:block; text-align:center; margin-top:1rem;}
#login-error {color:#932a24;}
