:root {
  --bg: #f3eee6;
  --bg-card: #faf7f2;
  --beige: #e8dfd2;
  --terracotta: #c46a45;
  --terracotta-soft: #d88968;
  --terracotta-deep: #9a4a2e;
  --charcoal: #2b241f;
  --charcoal-soft: #4a4038;
  --sage: #7d8f72;
  --sage-soft: #a3b098;
  --muted: #8a7f74;
  --held: #c46a45;
  --negotiated: #8a7f74;
  --sold: #3d322b;
  --available: #7d8f72;
  --line: #d9cfc2;
  --shadow: 0 10px 30px rgba(43, 36, 31, 0.08);
  --radius: 16px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--charcoal);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0 0 0.4rem; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: rgba(250,247,242,0.92); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.nav-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  background: transparent; border: 1px solid transparent; color: var(--charcoal-soft);
}
.pill:hover, .pill.active { background: var(--beige); border-color: var(--line); color: var(--charcoal); }
.pill.active { background: var(--charcoal); color: #faf7f2; border-color: var(--charcoal); }
.shell { max-width: 1440px; margin: 0 auto; padding: 32px 36px 72px; }
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px;
  margin-bottom: 28px; align-items: stretch;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-card, .card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 32px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
  color: var(--terracotta-deep); font-weight: 700; margin-bottom: 10px;
}
.lead { color: var(--charcoal-soft); font-size: 16px; max-width: 56ch; }
.journey-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; } }
.journey {
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 240px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.journey:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(43,36,31,0.12); }
.journey .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--beige); color: var(--terracotta-deep); font-size: 20px;
}
.journey p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.step-chip {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  background: #efe8de; color: var(--charcoal-soft);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 12px; padding: 12px 18px;
  font-weight: 600; font-size: 14px; transition: .15s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--charcoal); color: #faf7f2; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--charcoal); }
.btn-ghost:hover { background: var(--beige); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  color: var(--muted); font-size: 13px; margin-bottom: 18px;
}
.breadcrumb strong { color: var(--charcoal); }
.layout-2 { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.layout-3 { display: grid; grid-template-columns: 240px 1fr 260px; gap: 18px; }
@media (max-width: 980px) {
  .layout-2, .layout-3 { grid-template-columns: 1fr; }
}
.panel { padding: 18px; }
.panel h3 { font-size: 15px; margin-bottom: 12px; }
.list-item {
  display: block; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px;
  border: 1px solid transparent; background: #f0ebe3;
}
.list-item:hover, .list-item.active {
  border-color: var(--terracotta); background: #fff;
  box-shadow: inset 3px 0 0 var(--terracotta);
}
.list-item small { display: block; color: var(--muted); margin-top: 2px; }
.tower-stack {
  display: flex; flex-direction: column-reverse; gap: 6px; align-items: stretch;
}
.floor-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 10px; background: #efe8de; border: 1px solid transparent;
  cursor: pointer;
}
.floor-row.active, .floor-row:hover { border-color: var(--terracotta); background: #fff; }
.floor-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--charcoal); background: transparent;
}
.floor-dot.on { background: var(--terracotta); border-color: var(--terracotta); }
.floor-plan {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.unit {
  aspect-ratio: 1; border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600;
}
.unit:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.unit.available { background: #eef3ea; border-color: #c5d1bc; }
.unit.held { background: #f7e6dd; border-color: #e2b6a0; }
.unit.negotiated { background: #ebe7e2; border-color: #cfc6bc; }
.unit.sold { background: #3d322b; color: #f5efe7; border-color: #3d322b; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.badge.available { background: #dce8d5; color: #3f5638; }
.badge.held { background: #f0d2c4; color: #7a3a22; }
.badge.negotiated { background: #ddd6ce; color: #4a4038; }
.badge.sold { background: #3d322b; color: #f5efe7; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--charcoal);
}
.phone {
  max-width: 380px; margin: 0 auto; background: #1f1a16; border-radius: 36px;
  padding: 14px; box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--bg); border-radius: 28px; min-height: 640px;
  padding: 18px 16px 24px; display: flex; flex-direction: column;
}
.phone-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.phone-header h2 { font-size: 18px; }
.progress { display: flex; gap: 6px; margin-bottom: 18px; }
.progress span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--beige); border: 1px solid var(--line);
}
.progress span.on { background: var(--terracotta); border-color: var(--terracotta); }
.tablet {
  background: var(--charcoal); border-radius: 24px; padding: 14px;
  box-shadow: var(--shadow);
}
.tablet-screen {
  background: var(--bg-card); border-radius: 16px; min-height: 480px; padding: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
}
.kpi .val { font-family: var(--font-serif); font-size: 28px; }
.kpi .lbl { font-size: 12px; color: var(--muted); }
.dash-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 0.9fr; gap: 14px; margin-top: 14px;
}
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.bar { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--terracotta); min-width: 18px; }
.bar.tan { background: #cbb79f; }
.bar.gray { background: #b0a79d; }
.status-matrix { display: grid; gap: 8px; }
.status-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.seg {
  display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: #efe8de;
}
.seg span { display: block; height: 100%; }
.map-box {
  height: 160px; border-radius: 12px; background:
    radial-gradient(circle at 30% 40%, #c46a45 0 6px, transparent 7px),
    radial-gradient(circle at 55% 55%, #3d322b 0 6px, transparent 7px),
    radial-gradient(circle at 70% 30%, #8a7f74 0 5px, transparent 6px),
    linear-gradient(135deg, #e8dfd2, #f7f2ea);
  border: 1px solid var(--line); position: relative;
}
.exception { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.success {
  text-align: center; padding: 40px 20px;
}
.success .check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  background: #e5efdf; color: var(--sage); display: grid; place-items: center;
  font-size: 34px; font-weight: 700;
}
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.signature {
  height: 80px; border: 1px dashed var(--line); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='50'%3E%3Cpath d='M10 35 C40 10, 60 45, 90 25 S140 10, 170 30' stroke='%232b241f' fill='none' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pod {
  height: 90px; border-radius: 12px; background: #efe8de; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 12px;
}
.cost-table td:last-child, .cost-table th:last-child { text-align: right; }
.total-row td { font-weight: 700; border-top: 2px solid var(--charcoal); }
.flash {
  animation: pulse 1.2s ease;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196,106,69,0.5); }
  100% { box-shadow: 0 0 0 16px rgba(196,106,69,0); }
}
.footer-hint {
  margin-top: 28px; padding: 14px 16px; border-radius: 12px;
  background: #efe8de; color: var(--charcoal-soft); font-size: 13px;
}

/* Sales projects enrichment */
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.toolbar input, .toolbar select {
  border:1px solid var(--line); background:#fff; border-radius:10px;
  padding:10px 12px; font:inherit; color:var(--charcoal); min-width:160px;
}
.toolbar input { flex:1; min-width:220px; }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 4px; }
.chip {
  font-size:12px; padding:6px 10px; border-radius:999px;
  background:#efe8de; color:var(--charcoal-soft); border:1px solid transparent;
}
.chip.on { background:var(--charcoal); color:#faf7f2; }
.meta-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px 16px;
  margin:16px 0 8px; font-size:13px; color:var(--charcoal-soft);
}
.meta-grid strong { display:block; color:var(--charcoal); font-size:14px; margin-top:2px; }
.project-card {
  display:block; padding:14px; border-radius:12px; margin-bottom:10px;
  border:1px solid var(--line); background:#f0ebe3;
}
.project-card:hover, .project-card.active {
  border-color:var(--terracotta); background:#fff;
  box-shadow: inset 3px 0 0 var(--terracotta);
}
.project-card .name { font-weight:600; font-size:15px; }
.project-card .sub { color:var(--muted); font-size:12px; margin-top:4px; }
.project-card .stats { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:11px; color:var(--charcoal-soft); }
.mix-bar { height:8px; border-radius:999px; background:var(--beige); overflow:hidden; margin-top:12px; display:flex; }
.mix-bar span { display:block; height:100%; }
.mix-bar .sold { background:var(--sold); }
.mix-bar .held { background:var(--held); }
.mix-bar .neg { background:var(--negotiated); }
.mix-bar .avail { background:var(--available); }
.tag { display:inline-block; font-size:11px; padding:3px 8px; border-radius:999px; background:#efe8de; color:var(--terracotta-deep); font-weight:600; margin-left:8px; vertical-align:middle; }
