:root {
  --ink: #233a32;
  --green: #214b3d;
  --muted: #758078;
  --paper: #f6f7f2;
  --line: #e2e6dc;
  --accent: #d6dfab;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #193b32;
  color: #d8e3d8;
  display: flex;
  flex-direction: column;
  padding: 31px 21px;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.55px;
  color: #a5b8a8;
  font-weight: 500;
  margin-top: 3px;
}
.brandmark {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
}
.brandmark span {
  color: #fff;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #96ac9d;
  margin: 49px 12px 14px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #b9cbbf;
  text-decoration: none;
  border-radius: 6px;
  padding: 13px 15px;
  margin-bottom: 5px;
  font-size: 13px;
}
nav a.active {
  background: #345346;
  color: #e7eccd;
}
nav a:hover {
  background: #2b4b3f;
}
.nav-icon {
  font-size: 18px;
  line-height: 1;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.nav-count {
  margin-left: auto;
  background: #4b6654;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
  font-size: 10px;
  padding: 2px 4px;
}
.area {
  margin: auto 10px 25px;
  padding-top: 35px;
  color: #b3c4b7;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.area .eyebrow {
  color: #9eb6a5;
}
.area strong {
  display: block;
  font-size: 13px;
  color: #e3ebdf;
  margin-top: 10px;
  font-weight: 500;
}
.area > span:not(.eyebrow) {
  font-size: 11px;
}
.area small {
  font-size: 10px;
  color: #91ac9b;
}
.rings {
  position: relative;
  height: 110px;
  overflow: hidden;
  margin: 8px 0;
}
.rings i {
  border: 1px solid #52705a;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
}
.rings i:nth-child(2) {
  width: 104px;
  height: 104px;
  border-color: #3b5b48;
}
.rings i:nth-child(3) {
  width: 146px;
  height: 146px;
  border-color: #2f503f;
}
.rings b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-weight: 400;
}
.side-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #355447;
  font-size: 12px;
  color: #e8ede4;
}
.side-footer small {
  display: block;
  color: #9cb3a3;
  font-size: 10px;
}
.avatar {
  background: #d6dfab;
  color: #264333;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font: 18px var(--serif);
}
.workspace {
  margin-left: 246px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 10px;
  letter-spacing: 1px;
  background: #fbfcf8;
}
.slash {
  color: #b6bfb1;
  margin: 0 14px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.connection {
  color: #6a785f;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91a259;
  margin-right: 7px;
}
.button {
  padding: 10px 17px;
  border: 1px solid #d9dfd3;
  border-radius: 5px;
  background: #fff;
  color: #324639;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.button:hover {
  background: #eef1e6;
}
.button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.button.primary:hover {
  background: #173c2e;
}
.button.small {
  padding: 7px 11px;
  font-size: 10px;
}
.button.ghost {
  border: 0;
  background: transparent;
  padding: 5px;
  color: #4b6652;
}
.icon-button {
  background: none;
  border: 0;
  color: inherit;
  font-size: 19px;
  padding: 4px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 35px 38px 20px;
  min-height: calc(100vh - 140px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 5px 0 9px;
}
.page-heading p {
  color: #7c8376;
  font-size: 12px;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.kicker {
  font-size: 9px;
  color: #83916e;
  letter-spacing: 2px;
  font-weight: 600;
}
.banner {
  padding: 11px 15px;
  background: #edf0df;
  border: 1px solid #dfe5ca;
  border-radius: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #607044;
  font-size: 11px;
  margin-bottom: 23px;
}
.banner strong {
  font-weight: 600;
}
.banner.error {
  background: #f8eee6;
  color: #8c4c35;
  border-color: #ecd9ca;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 21px 22px;
  position: relative;
  overflow: hidden;
}
.stat-label {
  font-size: 10px;
  color: #6e796a;
}
.stat-value {
  font: 36px/1.3 var(--serif);
  margin: 9px 0 7px;
  letter-spacing: -1px;
}
.stat small {
  color: #8b9384;
  font-size: 10px;
}
.stat-symbol {
  position: absolute;
  right: 21px;
  top: 21px;
  color: #8b9d7d;
  font-size: 15px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 21px 22px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.panel-head p {
  font-size: 10px;
  color: #8b9384;
  margin: 5px 0 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 22px;
}
.chart {
  padding: 0 23px 19px;
}
.chart-row {
  display: grid;
  grid-template-columns: 128px minmax(20px, 1fr) 66px;
  gap: 14px;
  align-items: center;
  margin: 15px 0;
  font-size: 11px;
}
.bar-track {
  height: 21px;
  background: #f2f4ec;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  background: #a8bb8b;
  height: 100%;
  border-radius: 3px;
}
.chart-row:nth-child(2n) .bar-fill {
  background: #768f71;
}
.chart-price {
  text-align: right;
  color: #4a5b43;
}
.chart-price small {
  display: block;
  font-size: 9px;
  color: #919a86;
}
.chart-note {
  font-size: 10px;
  color: #8b9384;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 18px;
}
.market-note {
  background: #eef1e4;
  padding: 20px 22px;
  border-radius: 5px;
  margin: 0 20px 18px;
}
.market-note .eyebrow {
  color: #6b8054;
}
.market-note h3 {
  font: 23px/1.3 var(--serif);
  font-weight: 400;
  margin: 10px 0;
}
.market-note p {
  font-size: 11px;
  color: #758169;
  margin: 0;
}
.facts {
  padding: 0 22px 17px;
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf0e6;
  padding: 11px 0;
  font-size: 11px;
}
.fact:last-child {
  border-bottom: 0;
}
.fact span {
  color: #87917c;
}
.fact b {
  font-weight: 500;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 18px;
}
.filters select,
.filters input {
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
  color: #65725d;
  font-size: 11px;
}
.filters input[type="search"] {
  min-width: 200px;
  flex: 1;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 0.6px;
  font-weight: 500;
  background: #f9faf6;
  color: #919b87;
  padding: 12px 19px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 19px;
  border-bottom: 1px solid #edf0e7;
  font-size: 11px;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbf6;
}
.item-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
}
.item-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #efede4;
  border-radius: 5px;
  flex-shrink: 0;
  color: #7c735b;
}
.item-tile.refurb {
  background: #e7eddf;
  color: #657f58;
}
.item-tile svg {
  width: 34px;
  height: 34px;
}
.listing-photo-button {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 5px;
  flex-shrink: 0;
}
.listing-image {
  overflow: hidden;
}
.listing-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-image [data-image-fallback] {
  place-items: center;
  display: grid;
  &[hidden] {
    display: none;
  }
}
.detail-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 280px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: #efede4;
  color: #7c735b;
}
.detail-photo img {
  object-fit: contain;
}
.detail-photo svg {
  width: 70px;
  height: 70px;
}
.item-name {
  background: none;
  border: 0;
  padding: 0;
  color: #344635;
  font-weight: 500;
  text-align: left;
  font-size: 11px;
  max-width: 235px;
  white-space: normal;
}
.item-name:hover {
  text-decoration: underline;
}
.item-sub {
  font-size: 9px;
  color: #9aa28e;
  margin-top: 3px;
}
.price {
  font-weight: 600;
  font-size: 13px;
}
.old-price {
  font-size: 9px;
  color: #a0a692;
  text-decoration: line-through;
  margin-right: 5px;
}
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 9px;
  background: #f0f2e9;
  color: #7d876f;
}
.badge.available {
  background: #eaf1e3;
  color: #68834e;
}
.badge.pending {
  background: #f5edda;
  color: #a2874d;
}
.badge.sold {
  background: #e3eee8;
  color: #45725b;
}
.badge.unavailable {
  background: #f2ece8;
  color: #9a7d6e;
}
.save {
  border: 0;
  background: none;
  color: #a4b096;
  font-size: 20px;
}
.save.selected {
  color: #788b49;
}
.table-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #959d8d;
}
.page-footer {
  max-width: 1600px;
  margin: auto;
  padding: 18px 38px 23px;
  font-size: 9px;
  color: #a0a894;
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #859378;
  font-size: 12px;
}
.empty strong {
  display: block;
  font: 25px var(--serif);
  color: #53694b;
  margin-bottom: 7px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-size: 11px;
  color: #65745b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce3d2;
  background: #fff;
  border-radius: 4px;
  padding: 10px 11px;
  color: #3d5035;
  font-size: 12px;
}
.field small {
  font-size: 10px;
  color: #939c87;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}
.form-section {
  padding: 0 23px 23px;
}
.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-grid .panel {
  margin: 0;
}
.reading {
  font-size: 12px;
  color: #7d8971;
  line-height: 1.8;
}
.reading a {
  color: #406345;
}
.calc-output {
  background: var(--green);
  color: #e4edda;
  border-radius: 7px;
  padding: 28px;
  margin: 0 0 20px;
}
.calc-output .eyebrow {
  color: #b8cda3;
}
.calc-output strong {
  font: 46px/1.4 var(--serif);
  display: block;
  margin: 12px 0;
}
.calc-output p {
  font-size: 12px;
  color: #b8c9ae;
}
.calc-output .fact span {
  color: #b8c9ae;
}
.calc-output .fact {
  border-color: #426250;
}
.warning-text {
  font-size: 10px;
  color: #a28158;
  margin: 10px 0;
}
.row-actions {
  display: flex;
  gap: 8px;
}
.spaced {
  margin-top: 20px;
}
dialog {
  width: min(650px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 25px 100px #102c3240;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #10281f66;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 12px;
}
.modal-head h2 {
  font: 27px/1.3 var(--serif);
  margin: 0;
}
.modal-content {
  padding: 10px 26px 26px;
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
}
.timeline {
  padding-left: 17px;
  border-left: 1px solid #dce3d0;
  margin: 15px 0;
}
.timeline-entry {
  position: relative;
  margin: 0 0 18px;
  font-size: 12px;
}
.timeline-entry:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -21px;
  top: 5px;
  background: #98ad7f;
  border-radius: 50%;
}
.timeline-entry small {
  display: block;
  font-size: 10px;
  color: #939e86;
  margin-bottom: 3px;
}
.timeline-entry p {
  margin: 3px 0;
  color: #8b967d;
  font-size: 11px;
}
.detail-price {
  font: 35px var(--serif);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 123px);
  transform: translateX(-50%) translateY(100px);
  background: #254c3b;
  color: #fff;
  font-size: 12px;
  max-width: 90vw;
  padding: 13px 22px;
  border-radius: 5px;
  box-shadow: 0 5px 30px #18392430;
  transition: transform 0.2s;
  z-index: 50;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: #889779;
}
.login {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px;
}
.login h1 {
  font: 32px var(--serif);
}
.file-input {
  display: none;
}
.price-filter {
  width: 100px;
  min-width: 70px !important;
  flex: 0 !important;
}
.muted {
  color: #8a967d;
}
.comparison {
  padding: 0 22px 20px;
}
.comparison table td,
.comparison table th {
  padding: 11px 8px;
}
.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}
.check-row input {
  accent-color: #416544;
}
.notices {
  border-left: 2px solid #becb96;
  padding: 0 0 0 13px;
  margin-top: 20px;
  color: #8b967d;
  font-size: 11px;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1450px) {
  main {
    padding-top: 43px;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .stat {
    padding: 24px;
  }
  .stat-value {
    font-size: 40px;
  }
  .chart-row {
    margin: 18px 0;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 206px;
    padding: 25px 15px;
  }
  .brand {
    font-size: 23px;
  }
  .brand small {
    font-size: 7px;
  }
  .workspace {
    margin-left: 206px;
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 31px;
  }
  .split {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
    gap: 16px;
  }
  .chart-row {
    grid-template-columns: 105px 1fr 55px;
    gap: 8px;
    font-size: 10px;
  }
  #toast {
    left: calc(50% + 103px);
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
  }
  .brand {
    font-size: 22px;
  }
  .brandmark {
    font-size: 35px;
  }
  .brand small {
    font-size: 7px;
  }
  .nav-label,
  .area,
  .side-footer {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 16px;
  }
  nav a {
    padding: 9px 10px;
    white-space: nowrap;
    margin: 0;
    font-size: 11px;
  }
  .nav-icon {
    font-size: 14px;
    width: 15px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .setting-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding: 18px 24px;
    gap: 20px;
  }
  #toast {
    left: 50%;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .stat-value {
    font-size: 35px;
  }
  .chart-row {
    grid-template-columns: 130px 1fr 70px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 220px;
  }
  .heading-actions .button {
    padding: 9px 11px;
    font-size: 10px;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar > span {
    display: none;
  }
  .topbar > div {
    width: 100%;
    justify-content: space-between;
  }
  .banner {
    font-size: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-symbol {
    display: none;
  }
  .panel-head {
    padding: 18px 16px;
  }
  .filters {
    padding: 0 16px 16px;
  }
  .filters input[type="search"] {
    min-width: 100%;
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .chart {
    padding: 0 16px 16px;
  }
  .chart-row {
    grid-template-columns: 105px 1fr 60px;
    gap: 7px;
  }
  .page-footer {
    padding: 20px 16px;
    display: block;
  }
  .page-footer span {
    display: block;
    margin-top: 5px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .modal-head {
    padding: 22px 20px 8px;
  }
  .modal-content {
    padding: 12px 20px 22px;
  }
  .modal-head h2 {
    font-size: 23px;
  }
}
