:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --surface-soft: #f2eee5;
  --ink: #14201d;
  --muted: #59645f;
  --line: #d9d4c8;
  --green: #0f7a49;
  --green-strong: #075f39;
  --green-soft: #dceee3;
  --blue: #287aa8;
  --blue-soft: #dcecf5;
  --amber: #c78613;
  --amber-soft: #f6e7c3;
  --red: #b23c32;
  --red-soft: #f4d9d6;
  --shadow: 0 18px 48px rgba(44, 38, 28, 0.12);
  --shadow-soft: 0 10px 24px rgba(44, 38, 28, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 122, 168, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding: 0 64px;
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(217, 212, 200, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-mark,
.icon-tile,
.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark path,
.icon-tile path,
.icon-button path,
.login-icon path,
.search-box path,
.search-box circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 0.92rem;
  color: #25342f;
}

.main-nav a,
.text-link,
.site-footer a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.text-link:hover,
.site-footer a:hover {
  color: var(--green);
}

.main-nav a.active {
  font-weight: 900;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 122, 73, 0.24);
}

.button.primary:hover {
  background: var(--green-strong);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.7);
  border-color: #9fb5aa;
  color: #16342a;
}

.button.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.button.full {
  width: 100%;
}

.cta-narrow {
  display: none;
}

.section-band {
  width: min(100% - 80px, 1320px);
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(560px, 1.35fr);
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 4.2rem;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--green);
}

.hero-lede {
  max-width: 530px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-product {
  display: grid;
  gap: 18px;
}

.map-shell {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: #53645c;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}

.chip-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.chip-button {
  gap: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.map-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.site-summary {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 214px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.site-summary strong {
  display: block;
  margin-bottom: 14px;
}

.site-summary dl,
.spec-list,
.status-card dl {
  margin: 0;
}

.site-summary div,
.spec-list div,
.status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
}

.site-summary dt,
.spec-list dt,
.status-card dt {
  color: var(--muted);
}

.site-summary dd,
.spec-list dd,
.status-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.site-summary a,
.report-preview a,
.status-card a,
.mini-login a,
.form-options a {
  color: var(--green);
  font-weight: 800;
}

.zoom-rail {
  position: absolute;
  right: 18px;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.zoom-rail span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.zoom-rail span + span {
  border-top: 1px solid var(--line);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 16px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.workflow-strip li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.workflow-strip li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22px;
  width: 18px;
  height: 1px;
  background: var(--line);
}

.workflow-strip span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee9de;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-strip .done span {
  background: var(--green);
  color: white;
}

.workflow-strip .active span {
  background: var(--amber);
  color: white;
}

.workflow-strip strong,
.workflow-strip small {
  grid-column: 2;
}

.workflow-strip strong {
  font-size: 0.86rem;
}

.workflow-strip small {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 18px;
}

.feature-card,
.panel,
.login-card,
.status-card,
.mini-login {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 360px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.feature-card.selected {
  transform: translateY(-2px);
  border-color: rgba(15, 122, 73, 0.42);
  box-shadow: var(--shadow);
}

.card-title-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.card-title-row h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.card-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.icon-tile.green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-tile.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-tile.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.feature-card > img {
  height: 110px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.metric-list,
.risk-list,
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li,
.risk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-list strong,
.risk-list strong {
  color: var(--green);
}

.spec-list div {
  padding: 10px 0;
  border-bottom: 1px solid #ebe5d8;
}

.spec-list div:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.green {
  background: var(--green-soft);
  color: var(--green);
}

.pill.amber {
  background: var(--amber-soft);
  color: #8a5a08;
}

.risk-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
}

.risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.risk-header strong {
  color: #8a5a08;
  background: var(--amber-soft);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.82rem;
}

.dot,
.status-dot {
  display: inline-flex;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green,
.status-dot.done {
  background: var(--green);
}

.dot.amber,
.status-dot.active {
  background: var(--amber);
}

.dot.red {
  background: var(--red);
}

.status-dot.info {
  background: var(--blue);
}

.risk-list li {
  justify-content: flex-start;
}

.risk-list li strong {
  margin-left: auto;
}

.report-preview {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
}

.report-preview span,
.report-preview a {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
}

.report-preview span {
  color: var(--muted);
}

.report-preview img {
  height: 86px;
  border-radius: 6px;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  padding: 18px 0;
}

.panel {
  padding: 22px;
}

.panel h2,
.login-preview h2,
.context-copy h1 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.14;
}

.feasibility-intake-panel {
  display: grid;
  gap: 16px;
}

.snapshot-form {
  display: grid;
  gap: 12px;
}

.snapshot-form label {
  display: grid;
  gap: 7px;
  color: #26352f;
  font-size: 0.88rem;
  font-weight: 850;
}

.snapshot-form input,
.snapshot-form select,
.snapshot-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}

.snapshot-form textarea {
  min-height: 82px;
  padding-top: 11px;
  resize: vertical;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-output-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.snapshot-empty {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.snapshot-empty p {
  margin: 0;
  color: var(--muted);
}

.snapshot-score-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-score-card > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.snapshot-score-card span,
.snapshot-score-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.snapshot-score-card strong {
  font-size: 1.55rem;
  line-height: 1;
}

.snapshot-module-grid {
  display: grid;
  gap: 10px;
}

.snapshot-module-grid article {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.snapshot-module-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.snapshot-module-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upsell-panel {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(15, 122, 73, 0.22);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.upsell-panel p,
.upsell-panel small {
  margin: 0;
  color: #2f5342;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.segmented {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf7ef;
  color: var(--muted);
  font-weight: 800;
}

.segmented.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.range-field,
.toggle-row,
.mini-login label,
.login-form label {
  display: grid;
  gap: 8px;
  color: #26352f;
  font-weight: 800;
}

.range-field {
  margin: 0 0 18px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.toggle-row,
.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
}

.toggle-row input,
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.builder-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.builder-result div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.builder-result span {
  color: var(--muted);
  font-size: 0.82rem;
}

.builder-result strong {
  font-size: 1.35rem;
}

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

.panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-list {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.activity-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #ebe5d8;
}

.activity-list p {
  margin: 0;
}

.activity-list time {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-table {
  display: grid;
  border: 1px solid #ebe5d8;
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: #fffdf8;
}

.table-row + .table-row {
  border-top: 1px solid #ebe5d8;
}

.table-row.head {
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.login-preview {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 36px;
  padding: 30px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff;
}

.login-preview .eyebrow {
  color: #9be0b9;
}

.login-preview p {
  color: #d8e2dd;
}

.mini-login {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
}

.mini-login input,
.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: center;
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand p {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: 76px 0 34px;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 26px 0 68px;
}

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

.page-card,
.solution-card,
.price-card,
.report-document {
  min-height: 100%;
}

.page-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.page-card h2,
.solution-card h2,
.price-card h2,
.report-document h2,
.dashboard-main h2 {
  margin-top: 0;
}

.page-card p,
.solution-card p,
.price-card p,
.report-document p {
  color: var(--muted);
}

.solution-card {
  display: grid;
  gap: 14px;
}

.solution-card ul,
.price-card ul,
.dashboard-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-card li,
.price-card li,
.dashboard-list li {
  position: relative;
  padding-left: 18px;
  color: #26352f;
}

.solution-card li::before,
.price-card li::before,
.dashboard-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.report-document {
  display: grid;
  gap: 16px;
}

.report-lines {
  display: grid;
  gap: 9px;
}

.report-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e5dfd1;
}

.report-lines span:nth-child(2),
.report-lines span:nth-child(4) {
  width: 74%;
}

.report-document img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.price-card strong {
  font-size: 1.35rem;
  color: var(--green);
}

.price-card.featured {
  border-color: rgba(15, 122, 73, 0.36);
  box-shadow: 0 22px 52px rgba(15, 122, 73, 0.14);
}

.story-panel {
  display: grid;
  gap: 18px;
}

.contact-panel {
  display: grid;
  gap: 16px;
}

.contact-panel a {
  color: var(--green);
  font-weight: 900;
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 28px;
  background: var(--ink);
  color: #fff;
}

.app-sidebar .brand-mark {
  color: #9be0b9;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #d8e2dd;
  font-weight: 800;
}

.app-nav a:hover,
.app-nav a.active {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.16);
  color: #fff;
}

.app-sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  color: #d8e2dd;
}

.app-sidebar-note strong {
  display: block;
  color: #fff;
}

.app-sidebar-note p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

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

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

.dashboard-header h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.05;
}

.dashboard-user {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 22px;
}

.parcel-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.parcel-search svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.parcel-search path,
.parcel-search circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parcel-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.dashboard-map {
  grid-row: span 2;
}

.dashboard-map img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dashboard-score {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 56%, transparent 57%),
    conic-gradient(var(--green) 0 74%, var(--amber-soft) 74% 100%);
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.dashboard-score p {
  margin: 0;
  color: var(--muted);
}

.backend-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    radial-gradient(circle at 10% 5%, rgba(15, 122, 73, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 2%, rgba(199, 134, 19, 0.14), transparent 26rem),
    #101a16;
  color: #ecf2ec;
}

.backend-sidebar {
  background: rgba(13, 27, 22, 0.94);
  border-right: 1px solid rgba(216, 226, 221, 0.12);
  color: #f4faf5;
}

.app-brand {
  align-items: flex-start;
  font-size: 1rem;
}

.app-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.app-brand small {
  color: #9fb5aa;
  font-size: 0.76rem;
  font-weight: 800;
}

.backend-sidebar .brand-mark {
  color: #9be0b9;
}

.backend-sidebar .app-nav {
  gap: 7px;
}

.backend-sidebar .app-nav a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.backend-sidebar .app-nav span {
  font-weight: 900;
}

.backend-sidebar .app-nav small {
  color: #9fb5aa;
}

.backend-sidebar .app-nav a:hover small,
.backend-sidebar .app-nav a.active small {
  color: #d8e2dd;
}

.backend-main {
  padding: 28px;
  background:
    radial-gradient(circle at 95% 12%, rgba(199, 134, 19, 0.08), transparent 26rem),
    linear-gradient(180deg, rgba(243, 247, 242, 0.04), rgba(243, 247, 242, 0.02));
}

.backend-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  margin: -28px -28px 24px;
  padding: 18px 28px;
  background: rgba(16, 26, 22, 0.82);
  border-bottom: 1px solid rgba(216, 226, 221, 0.12);
  backdrop-filter: blur(18px);
}

.backend-topbar h1,
.backend-topbar p {
  margin: 0;
}

.backend-topbar h1 {
  font-size: 1.25rem;
}

.backend-topbar p:not(.section-eyebrow) {
  color: #aebcb5;
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: #e0b65b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.command-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 26px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(155, 224, 185, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 14%, rgba(199, 134, 19, 0.18), transparent 18rem),
    radial-gradient(circle at 14% 10%, rgba(15, 122, 73, 0.24), transparent 22rem),
    rgba(255, 253, 248, 0.06);
  box-shadow: 0 32px 90px -64px rgba(0, 0, 0, 0.8);
}

.command-hero.compact {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.command-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 253, 248, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 248, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
}

.command-hero > * {
  position: relative;
  z-index: 1;
}

.command-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: 3rem;
  line-height: 1.02;
}

.command-copy p:not(.section-eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #c4d0ca;
  font-size: 1.02rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(216, 226, 221, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.07);
  color: #d8e2dd;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
}

.surface-card,
.backend-panel,
.stat-tile {
  border: 1px solid rgba(216, 226, 221, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.075);
  box-shadow: 0 24px 72px -60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.surface-card {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.surface-card span,
.stat-tile span {
  color: #aebcb5;
  font-size: 0.82rem;
  font-weight: 900;
}

.surface-card strong,
.stat-tile strong {
  font-size: 2rem;
  line-height: 1;
}

.surface-card small,
.stat-tile small {
  color: #9fb5aa;
}

.backend-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-tile {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #ecf2ec;
  text-align: left;
}

button.stat-tile {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button.stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 224, 185, 0.35);
  background: rgba(15, 122, 73, 0.12);
}

.backend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.backend-panel {
  padding: 20px;
}

.backend-panel.wide {
  min-width: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-header h2,
.panel-header p {
  margin: 0;
}

.panel-header h2 {
  font-size: 1.25rem;
}

.panel-header p {
  margin-top: 4px;
  color: #9fb5aa;
  font-size: 0.9rem;
}

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

.stage-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.62);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 224, 185, 0.32);
}

.stage-card span {
  color: #c4d0ca;
  font-weight: 900;
}

.stage-card strong {
  font-size: 1.8rem;
}

.status-rail {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
}

.status-rail span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #118c55, #e0b65b);
}

.rail-10 span { width: 10%; }
.rail-20 span { width: 20%; }
.rail-24 span { width: 24%; }
.rail-30 span { width: 30%; }
.rail-40 span { width: 40%; }
.rail-48 span { width: 48%; }
.rail-50 span { width: 50%; }
.rail-60 span { width: 60%; }
.rail-64 span { width: 64%; }
.rail-70 span { width: 70%; }
.rail-72 span { width: 72%; }
.rail-80 span { width: 80%; }
.rail-88 span { width: 88%; }
.rail-90 span { width: 90%; }
.rail-100 span { width: 100%; }

.stage-card.blue .status-rail span,
.kanban-column.blue {
  border-top-color: #2c91c9;
}

.stage-card.gold .status-rail span,
.kanban-column.gold {
  border-top-color: #d99b2b;
}

.stage-card.purple .status-rail span,
.kanban-column.purple {
  border-top-color: #9672dc;
}

.stage-card.orange .status-rail span,
.kanban-column.orange {
  border-top-color: #d87534;
}

.stage-card.green .status-rail span,
.kanban-column.green {
  border-top-color: #1aaf70;
}

.stage-card.slate .status-rail span,
.kanban-column.slate {
  border-top-color: #8e9b96;
}

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

.backend-activity li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.48);
}

.backend-activity strong,
.backend-activity small {
  display: block;
}

.backend-activity small {
  margin-top: 3px;
  color: #9fb5aa;
}

.operation-list {
  display: grid;
  gap: 10px;
}

.operation-list a {
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
  color: #d8e2dd;
  font-weight: 900;
}

.operation-list a:hover {
  color: #9be0b9;
  border-color: rgba(155, 224, 185, 0.3);
}

.backend-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
}

.backend-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.backend-table th,
.backend-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(216, 226, 221, 0.1);
  text-align: left;
}

.backend-table th {
  background: rgba(255, 253, 248, 0.07);
  color: #aebcb5;
  font-size: 0.78rem;
  font-weight: 900;
}

.backend-table tr:last-child td {
  border-bottom: 0;
}

.backend-table td {
  color: #edf4ef;
}

.backend-table tr[data-project-id],
.backend-table tr[data-lead-id],
.kanban-card {
  cursor: pointer;
}

.backend-table tr[data-project-id]:hover,
.backend-table tr[data-lead-id]:hover {
  background: rgba(15, 122, 73, 0.12);
}

.backend-table small {
  color: #9fb5aa;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(216, 226, 221, 0.14);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 900;
}

.badge.green {
  background: rgba(26, 175, 112, 0.14);
  color: #9be0b9;
  border-color: rgba(26, 175, 112, 0.26);
}

.badge.gold {
  background: rgba(217, 155, 43, 0.14);
  color: #f1cb76;
  border-color: rgba(217, 155, 43, 0.28);
}

.badge.blue {
  background: rgba(44, 145, 201, 0.16);
  color: #9fd3ef;
  border-color: rgba(44, 145, 201, 0.3);
}

.badge.purple {
  background: rgba(150, 114, 220, 0.16);
  color: #d6c7ff;
  border-color: rgba(150, 114, 220, 0.3);
}

.badge.orange {
  background: rgba(216, 117, 52, 0.16);
  color: #f4bd91;
  border-color: rgba(216, 117, 52, 0.3);
}

.badge.red {
  background: rgba(178, 60, 50, 0.16);
  color: #f0aaa4;
  border-color: rgba(178, 60, 50, 0.3);
}

.badge.slate {
  background: rgba(142, 155, 150, 0.14);
  color: #c4d0ca;
  border-color: rgba(142, 155, 150, 0.24);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-row input,
.filter-row select,
.drawer-field select,
.project-modal input,
.project-modal select {
  min-height: 42px;
  min-width: min(320px, 100%);
  padding: 0 12px;
  border: 1px solid rgba(216, 226, 221, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.58);
  color: #d8e2dd;
}

.filter-row select,
.drawer-field select,
.project-modal select {
  min-width: auto;
}

.button.secondary.active {
  border-color: rgba(155, 224, 185, 0.38);
  background: rgba(15, 122, 73, 0.18);
  color: #9be0b9;
}

.button.tiny {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-height: 520px;
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-top: 4px solid;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.065);
  transition: border-color 160ms ease, background 160ms ease;
}

.kanban-column.is-drag-over {
  border-color: rgba(155, 224, 185, 0.55);
  background: rgba(15, 122, 73, 0.16);
}

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

.kanban-column h2 {
  margin: 0;
  font-size: 0.95rem;
}

.kanban-column header span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.1);
  font-weight: 900;
}

.kanban-card {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.64);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 224, 185, 0.3);
}

.kanban-card.attention {
  border-color: rgba(217, 155, 43, 0.38);
}

.kanban-card p,
.kanban-card small {
  margin: 0;
  color: #9fb5aa;
}

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

.report-builder-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
}

.report-section-toggle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
  color: #edf4ef;
  text-align: left;
}

.report-section-toggle:hover {
  border-color: rgba(155, 224, 185, 0.32);
}

.study-module-section {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.compact-header {
  align-items: start;
}

.compact-header h3 {
  margin: 0 0 4px;
  color: #f7fbf8;
}

.compact-header p {
  margin: 0;
  color: #9fb5aa;
}

.study-module-grid,
.report-factor-grid,
.knowledge-grid,
.source-provider-grid,
.source-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.study-module-card,
.report-factor-card,
.knowledge-grid article,
.source-provider-grid article,
.source-fact-grid article {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.54);
}

.study-module-card > div,
.report-factor-card > div,
.source-provider-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.study-module-card span,
.report-factor-card strong,
.knowledge-grid strong,
.source-provider-grid strong,
.source-fact-grid strong {
  color: #edf4ef;
  font-weight: 900;
}

.study-module-card strong {
  color: #9be0b9;
  font-size: 1.05rem;
}

.study-module-card small,
.report-factor-card small,
.knowledge-grid small,
.source-provider-grid small {
  color: #9fb5aa;
  line-height: 1.5;
}

.study-module-card p,
.report-factor-card p,
.source-provider-grid p,
.source-fact-grid p {
  margin: 0;
  color: #c4d0ca;
  line-height: 1.5;
}

.report-factor-card.inactive {
  opacity: 0.78;
}

.source-data-output,
.sales-handoff-output {
  display: grid;
  gap: 14px;
}

.source-empty,
.source-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
}

.source-empty {
  align-items: flex-start;
}

.source-empty p,
.source-toolbar small {
  margin: 0;
  color: #9fb5aa;
}

.source-toolbar > div {
  display: grid;
  gap: 4px;
}

.source-toolbar strong {
  color: #edf4ef;
}

.sales-handoff-card {
  display: grid;
  gap: 16px;
}

.sales-handoff-topline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-handoff-topline > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
}

.sales-handoff-topline span,
.sales-handoff-topline small {
  color: #9fb5aa;
  font-size: 0.84rem;
}

.sales-handoff-topline strong {
  color: #edf4ef;
  font-size: 1.12rem;
}

.sales-handoff-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.sales-handoff-form label {
  display: grid;
  gap: 8px;
  color: #c4d0ca;
  font-size: 0.84rem;
  font-weight: 900;
}

.sales-handoff-form label.wide {
  grid-column: 1 / -1;
}

.sales-handoff-form input,
.sales-handoff-form select,
.sales-handoff-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(216, 226, 221, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.58);
  color: #d8e2dd;
}

.sales-handoff-form textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
}

.report-draft-output {
  display: grid;
  gap: 14px;
}

.report-draft-card {
  display: grid;
  gap: 16px;
}

.report-version-grid,
.development-path-grid,
.site-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-zone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-version-grid article,
.development-path-grid article,
.site-plan-card,
.site-zone-grid article {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.5);
}

.report-version-grid article > div,
.development-path-grid article > div,
.site-plan-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.report-version-grid strong,
.development-path-grid strong,
.site-plan-card strong,
.site-zone-grid strong {
  color: #edf4ef;
}

.report-version-grid p,
.development-path-grid p,
.site-plan-card p,
.site-zone-grid small {
  margin: 0;
  color: #c4d0ca;
  line-height: 1.5;
}

.report-version-grid small,
.development-path-grid small,
.site-zone-grid span {
  color: #9fb5aa;
  line-height: 1.5;
}

.report-draft-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.report-draft-topline > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.52);
}

.report-draft-topline span,
.report-draft-topline small {
  color: #9fb5aa;
  font-size: 0.84rem;
}

.report-draft-topline strong {
  color: #edf4ef;
  font-size: 1.2rem;
}

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

.report-draft-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216, 226, 221, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 26, 22, 0.48);
}

.report-draft-grid strong {
  color: #edf4ef;
}

.report-draft-grid small,
.report-gap-list p {
  margin: 0;
  color: #9fb5aa;
  line-height: 1.5;
}

.report-gap-list {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(217, 155, 43, 0.22);
  border-radius: var(--radius);
  background: rgba(217, 155, 43, 0.08);
}

.report-gap-list strong {
  color: #f1cb76;
}

.settings-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.settings-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(216, 226, 221, 0.1);
}

.settings-list div:last-child {
  border-bottom: 0;
}

.settings-list dt {
  color: #9fb5aa;
  font-weight: 900;
}

.settings-list dd {
  margin: 0;
  color: #edf4ef;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  margin: 0;
  padding: 24px 8px;
  color: #9fb5aa;
  text-align: center;
}

.project-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(6, 14, 11, 0.56);
  backdrop-filter: blur(7px);
}

.drawer-panel {
  width: min(100%, 460px);
  min-height: 100vh;
  overflow-y: auto;
  padding: 26px;
  background: #111e18;
  border-left: 1px solid rgba(216, 226, 221, 0.15);
  color: #edf4ef;
  box-shadow: -34px 0 90px -70px rgba(0, 0, 0, 0.9);
}

.drawer-panel h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.drawer-muted,
.drawer-note {
  color: #aebcb5;
}

.drawer-list {
  margin: 22px 0;
}

.drawer-field {
  display: grid;
  gap: 8px;
  color: #c4d0ca;
  font-weight: 900;
}

.drawer-field select {
  width: 100%;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.drawer-close {
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(216, 226, 221, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
  color: #d8e2dd;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 14, 11, 0.62);
  backdrop-filter: blur(8px);
}

.project-modal {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(216, 226, 221, 0.15);
  border-radius: var(--radius);
  background: #111e18;
  color: #edf4ef;
  box-shadow: 0 30px 90px -62px rgba(0, 0, 0, 0.9);
}

.project-modal label {
  display: grid;
  gap: 8px;
  color: #c4d0ca;
  font-weight: 900;
}

.project-modal input,
.project-modal select {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: grid;
  gap: 10px;
}

.toast-message {
  transform: translateY(8px);
  opacity: 0;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(155, 224, 185, 0.28);
  border-radius: var(--radius);
  background: #14241d;
  color: #edf4ef;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast-message.visible {
  transform: translateY(0);
  opacity: 1;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(440px, 1fr);
}

.login-context {
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto;
  gap: 34px;
  padding: 46px 56px;
  background: #efe8dc;
  border-right: 1px solid var(--line);
}

.context-copy {
  max-width: 620px;
  align-self: end;
}

.context-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.privacy-gate {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  align-items: center;
  max-width: 560px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.privacy-gate strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.privacy-gate p {
  margin: 0;
  color: var(--muted);
}

.privacy-illustration {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 122, 73, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 122, 73, 0.08) 1px, transparent 1px),
    #fffdf8;
  background-size: 18px 18px;
  border: 1px solid var(--line);
}

.privacy-illustration::before {
  content: "";
  position: absolute;
  inset: 28px 34px 24px;
  border: 3px solid var(--green);
  border-radius: 7px;
}

.privacy-illustration::after {
  content: "";
  position: absolute;
  left: 43px;
  top: 23px;
  width: 26px;
  height: 22px;
  border: 3px solid var(--green);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.privacy-illustration span {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: var(--green-soft);
}

.privacy-illustration span:nth-child(1) {
  left: 13px;
  right: 72px;
  bottom: 22px;
}

.privacy-illustration span:nth-child(2) {
  left: 70px;
  right: 14px;
  top: 20px;
}

.privacy-illustration span:nth-child(3) {
  left: 16px;
  right: 76px;
  top: 48px;
}

.privacy-illustration span:nth-child(4) {
  left: 72px;
  right: 16px;
  bottom: 42px;
}

.privacy-checks {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-checks li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: center;
  color: #26352f;
  font-weight: 800;
}

.privacy-checks span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.login-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 42px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 32, 29, 0.14) 1px, transparent 0);
  background-size: 18px 18px;
}

.login-card {
  width: min(100%, 420px);
  padding: 30px;
}

.login-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
}

.login-icon svg {
  width: 31px;
  height: 31px;
}

.login-card h1,
.login-card > p {
  text-align: center;
}

.login-card h1 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.login-card > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.sso-stack,
.login-form {
  display: grid;
  gap: 12px;
}

.credential-note {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: #16342a;
}

.credential-note strong {
  font-size: 0.95rem;
}

.credential-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.sso-button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  font-weight: 800;
}

.ms-mark {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#f35325 0 0) left top / 8px 8px no-repeat,
    linear-gradient(#81bc06 0 0) right top / 8px 8px no-repeat,
    linear-gradient(#05a6f0 0 0) left bottom / 8px 8px no-repeat,
    linear-gradient(#ffba08 0 0) right bottom / 8px 8px no-repeat;
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #287aa8;
  font-weight: 900;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 50px;
}

.password-field .icon-button {
  position: absolute;
  top: 1px;
  right: 1px;
  height: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.form-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.check-row {
  display: inline-grid;
}

.status-card,
.access-note {
  width: min(100%, 420px);
  padding: 22px;
}

.status-card dl {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.status-card dl div {
  padding: 7px 0;
}

.status-card dd {
  color: var(--green);
}

.access-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.access-note strong {
  display: block;
  margin-bottom: 8px;
}

.access-note p {
  margin-bottom: 16px;
  color: var(--muted);
}

.access-note a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 32px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

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

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

  .app-sidebar {
    position: relative;
    height: auto;
  }

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

  .backend-sidebar .app-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-sidebar-note {
    margin-top: 0;
  }

  .dashboard-grid,
  .dashboard-kpis,
  .backend-kpis,
  .command-hero,
  .command-hero.compact,
  .backend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-stats,
  .stage-grid,
  .form-grid.three,
  .report-builder-grid,
  .study-module-grid,
  .report-factor-grid,
  .knowledge-grid,
  .source-provider-grid,
  .source-fact-grid,
  .sales-handoff-topline,
  .report-version-grid,
  .development-path-grid,
  .site-zone-grid,
  .report-draft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-context {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .section-band {
    width: min(100% - 32px, 1320px);
  }

  .site-header {
    min-height: 68px;
    gap: 16px;
    padding: 0 16px;
  }

  .brand {
    font-size: 1.06rem;
  }

  .header-actions .text-link {
    display: none;
  }

  .button.small {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    gap: 30px;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .page-hero {
    padding-top: 42px;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .header-actions,
  .control-group {
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .map-toolbar {
    grid-template-columns: 1fr 42px;
  }

  .chip-button {
    display: none;
  }

  .zoom-rail {
    display: none;
  }

  .site-summary {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    margin: 0;
    padding: 14px;
  }

  .map-image {
    min-height: 300px;
  }

  .workflow-strip,
  .feature-grid,
  .page-grid,
  .page-grid.four,
  .split-section,
  .login-preview,
  .builder-result,
  .form-grid.three,
  .snapshot-score-card,
  .report-draft-topline,
  .privacy-gate,
  .dashboard-toolbar,
  .dashboard-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

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

  .backend-sidebar .app-nav,
  .backend-kpis,
  .command-hero,
  .command-hero.compact,
  .backend-grid,
  .command-stats,
  .stage-grid,
  .report-builder-grid,
  .study-module-grid,
  .report-factor-grid,
  .knowledge-grid,
  .source-provider-grid,
  .source-fact-grid,
  .source-empty,
  .source-toolbar,
  .sales-handoff-topline,
  .sales-handoff-form,
  .report-version-grid,
  .development-path-grid,
  .site-zone-grid,
  .report-draft-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 24px 16px;
  }

  .backend-main {
    padding: 18px 16px;
  }

  .backend-topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    margin: -18px -16px 18px;
    padding: 18px 16px;
  }

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

  .source-empty,
  .source-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .command-hero {
    padding: 20px;
  }

  .command-copy h2 {
    font-size: 2.15rem;
  }

  .filter-row {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-row input,
  .filter-row select {
    width: 100%;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }

  .dashboard-map {
    grid-row: auto;
  }

  .workflow-strip li + li::before {
    display: none;
  }

  .feature-card {
    min-height: auto;
  }

  .login-preview {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 16px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .login-context,
  .login-stage {
    padding: 28px 16px;
  }

  .context-copy h1 {
    font-size: 2.2rem;
  }

  .privacy-gate {
    padding: 18px;
  }

  .privacy-illustration {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .map-shell {
    min-height: 0;
  }

  .page-hero h1 {
    font-size: 2.15rem;
  }

  .app-sidebar {
    padding: 22px 16px;
  }

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

  .backend-sidebar .app-nav {
    grid-template-columns: 1fr;
  }

  .command-copy h2 {
    font-size: 1.9rem;
  }

  .surface-card strong,
  .stat-tile strong {
    font-size: 1.7rem;
  }

  .settings-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .dashboard-map img {
    height: 300px;
  }

  .report-preview {
    grid-template-columns: 1fr;
  }

  .login-card,
  .status-card {
    padding: 20px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
  }

  .cta-wide {
    display: none;
  }

  .cta-narrow {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
