:root {
  --sidebar: #0a6a3b;
  --sidebar-2: #085730;
  --sidebar-text: #effaf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(221, 209, 163, 0.55), transparent 60%),
    radial-gradient(700px 350px at 85% 10%, rgba(10, 106, 59, 0.12), transparent 60%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}

.landing-page body,
body.landing-page {
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(221, 209, 163, 0.35), transparent 60%),
    radial-gradient(700px 350px at 85% 10%, rgba(10, 106, 59, 0.1), transparent 60%),
    linear-gradient(180deg, #f8f6ee 0%, #ecf3ef 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px 44px;
}

.site-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.landing-page .site-header {
  display: none;
}

.landing-page .container {
  max-width: 800px;
  padding-top: 28px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.2rem;
}

.nav a {
  margin-left: 10px;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--border);
  background: #fff;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.card h1,
.card h2 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  margin-top: 0;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(10, 106, 59, 0.32);
  box-shadow: 0 0 0 4px rgba(221, 209, 163, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #085730);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(10, 106, 59, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 106, 59, 0.3);
}

.btn.secondary {
  background: #f3efde;
  color: var(--brand);
  border: 1px solid rgba(10, 106, 59, 0.14);
  box-shadow: none;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  border: 1px solid rgba(10, 106, 59, 0.5);
  box-shadow: none;
}

.btn.btn-lg {
  min-height: 54px;
  padding: 0 32px;
  font-size: 1rem;
}

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

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #f6f8f7;
  border: 1px solid var(--border);
}

.alert.success {
  background: #e9f3ec;
  border-color: #bdd6c5;
}

.alert.error {
  background: #fdecea;
  border-color: #f0c5c1;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid #eef1f0;
  padding: 12px;
  font-size: 0.92rem;
}

.table th {
  background: #f6f7f2;
  color: #4a5b52;
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: #fff;
  border: 1px solid #eef1ed;
  padding: 14px;
  border-radius: 16px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pagination {
  margin-top: 16px;
}

.pagination a {
  margin-right: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(221, 209, 163, 0.55);
  color: var(--brand);
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.form-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.btn-back {
  gap: 10px;
}

.btn-cancel {
  min-width: 176px;
}

.btn-back-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

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

.hero {
  text-align: center;
}

.hero-landing {
  max-width: 680px;
  margin: 0 auto;
  padding: 38px 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-brand-full {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-brand-full img {
  width: min(100%, 234px);
  height: auto;
  display: block;
}

.quiz-brand-full-landing {
  margin-bottom: 0;
}

.quiz-brand-full-question img {
  width: min(100%, 190px);
}

.quiz-brand-panel {
  display: grid;
  gap: 14px;
}

.quiz-brand-panel-landing {
  margin-bottom: 6px;
}

.quiz-brand-panel-question {
  margin-bottom: 2px;
}

.quiz-brand-divider {
  width: 100%;
  max-width: 520px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(10, 106, 59, 0), rgba(10, 106, 59, 0.32) 18%, rgba(10, 106, 59, 0.32) 82%, rgba(10, 106, 59, 0));
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: 4px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(15, 47, 34, 0.18);
}

.brand-mark-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 10px;
}

.hero-landing h1 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.hero-landing .muted {
  max-width: 520px;
  margin: 0 auto 14px;
  line-height: 1.55;
  font-size: 0.9rem;
}

.benefit-box {
  margin: 16px auto 20px;
  max-width: 500px;
  text-align: left;
  background: rgba(244, 246, 243, 0.95);
  border-radius: 22px;
  padding: 18px 22px;
  border: 1px solid #e3e8e3;
}

.benefit-item {
  padding: 10px 0 10px 44px;
  position: relative;
  color: #2f3f36;
  font-size: 0.95rem;
}

.benefit-item + .benefit-item {
  border-top: 1px dashed #dce3dd;
}

.benefit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='14' cy='14' r='13.5' fill='%23E7F5EE' stroke='%23CFE2D8'/%3E%3Cpath d='M8.9 14.2l3.35 3.35 6.85-7.05' stroke='%230A6A3B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.btn-cta {
  min-height: 56px;
  padding: 0 36px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, var(--brand), #085730);
}

.question-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 28px 26px;
}

  .progress-top {
    display: flex;
    justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #d9dfdf;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #179055);
}

.question-tag {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(221, 209, 163, 0.42);
  color: var(--brand);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
}

.question {
  font-size: clamp(1.65rem, 1.8vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(248, 250, 248, 0.92);
  cursor: pointer;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card input {
  position: absolute;
  opacity: 0;
}

.option-letter {
  position: absolute;
  left: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #cfd7d2;
  color: var(--ink);
  font-weight: 700;
}

.option-card:hover {
  border-color: rgba(10, 106, 59, 0.4);
  box-shadow: 0 12px 22px rgba(10, 106, 59, 0.12);
  transform: translateY(-1px);
}

.option-card.is-selected .option-letter {
  background: rgba(221, 209, 163, 0.42);
  border-color: rgba(10, 106, 59, 0.18);
  color: var(--brand);
}

.option-card.is-selected span:last-child {
  font-weight: 600;
}

.option-card input:checked ~ .option-letter {
  background: rgba(221, 209, 163, 0.42);
  border-color: rgba(10, 106, 59, 0.18);
  color: var(--brand);
}

.option-card input:checked ~ span:last-child {
  font-weight: 600;
}

.option-card span:last-child {
  font-size: 0.96rem;
  line-height: 1.38;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 10px;
  }

.actions-start,
.actions-end {
  display: flex;
  align-items: center;
}

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

.actions-end {
  justify-content: flex-end;
}

.question-helper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 54px;
  font-size: 0.94rem;
}

.btn-nav {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  font-size: 0.96rem;
}

.btn-nav-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.analysis {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 36px 42px;
}

.analysis-icon,
.lead-icon,
.cover-icon {
  min-width: 78px;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(221, 209, 163, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.analysis-loader {
  position: relative;
  width: 178px;
  height: 178px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-target {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-target-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(10, 106, 59, 0.12);
}

.analysis h1 {
  font-size: clamp(1.9rem, 2.3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.analysis > .muted {
  max-width: 520px;
  margin: 0 auto 22px;
  font-size: 1rem;
  line-height: 1.45;
}

.analysis-steps {
  display: grid;
  gap: 12px;
  margin: 0 auto 26px;
  max-width: 360px;
}

.analysis-step {
  padding: 8px 8px 8px 48px;
  border-radius: 14px;
  background: transparent;
  border: none;
  position: relative;
  text-align: left;
  color: var(--muted);
  font-weight: 500;
}

.analysis-step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 32px;
  height: 32px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Ccircle cx='16' cy='16' r='16' fill='%238ED5AB'/%3E%3Cpath d='M10.25 16.15l3.7 3.75 7.55-7.8' stroke='white' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.spinner {
  position: absolute;
  inset: 0;
  width: 178px;
  height: 178px;
  margin: 0;
  border: 8px solid #d9ded9;
  border-top-color: var(--brand);
  border-right-color: rgba(221, 209, 163, 0.68);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d7ddea;
}

.dots span:first-child {
  background: rgba(10, 106, 59, 0.34);
}

.dots span:nth-child(2) {
  background: #d7ddea;
}

.dots span:nth-child(3) {
  background: #d7ddea;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lead-card {
  text-align: left;
}

.lead-card-centered {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 28px 24px;
}

.lead-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 22px;
}

.lead-header h1 {
  font-size: clamp(1.75rem, 2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.lead-header > .muted {
  font-size: 0.96rem;
  line-height: 1.45;
  margin: 0 auto 14px;
}

.lead-badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  box-shadow: 0 12px 26px rgba(15, 47, 34, 0.18);
}

.lead-badge-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 20px;
  transform: translate(-50%, -22%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.lead-badge-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 14px;
  height: 12px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.lead-badge-lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--brand);
}

.lead-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(221, 209, 163, 0.22);
  border: 1px solid rgba(10, 106, 59, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.lead-form {
  max-width: 600px;
  margin: 0 auto;
}

.lead-form .field {
  margin-bottom: 16px;
}

.lead-form .field label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.input-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.lead-form .field .input-row > .lead-input {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.lead-form .field .input-row > .lead-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.lead-form .field .input-row > .lead-input::placeholder {
  color: #7f8782;
}

.field input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill,
.field input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:hover,
.field input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:focus,
.field input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:active,
.lead-form .field .input-row > .lead-input:-webkit-autofill,
.lead-form .field .input-row > .lead-input:-webkit-autofill:hover,
.lead-form .field .input-row > .lead-input:-webkit-autofill:focus,
.lead-form .field .input-row > .lead-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.input-row:focus-within {
  border-color: rgba(10, 106, 59, 0.32);
  box-shadow: 0 0 0 4px rgba(221, 209, 163, 0.3);
}

.input-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(221, 209, 163, 0.18);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.terms-field {
  margin-top: 4px;
}

.terms-inline {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 4px 0 2px;
  cursor: pointer;
}

.terms-native {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--brand);
  justify-self: start;
  align-self: start;
}

.terms-text {
  line-height: 1.45;
  color: var(--muted);
  font-size: 0.92rem;
}

.terms-text a {
  color: var(--brand);
  font-weight: 600;
}

.lead-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lead-security {
  max-width: 600px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 106, 59, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lead-security-icon {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: rgba(221, 209, 163, 0.7);
  position: relative;
}

.lead-security-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border: 2px solid rgba(221, 209, 163, 0.7);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.result-card {
  display: grid;
  gap: 18px;
}

.result-card-centered {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 34px 30px;
}

.result-hero {
  text-align: center;
}

.result-hero h1 {
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.result-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.result-celebration {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(221, 209, 163, 0.42);
  position: relative;
}

.result-celebration::before,
.result-celebration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.result-celebration::before {
  left: 18px;
  top: 12px;
  width: 18px;
  height: 24px;
  background: linear-gradient(180deg, rgba(10, 106, 59, 0.9), rgba(10, 106, 59, 0.55));
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
}

.result-celebration::after {
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: rgba(10, 106, 59, 0.55);
  box-shadow: -18px 8px 0 rgba(221, 209, 163, 0.9), -8px 22px 0 rgba(10, 106, 59, 0.28);
}

.result-showcase {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(10, 106, 59, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.result-showcase-visual {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(10, 106, 59, 0.18), rgba(221, 209, 163, 0.3));
}

.result-showcase-visual.has-project-image {
  height: 260px;
  background: linear-gradient(180deg, rgba(15, 47, 34, 0.08), rgba(15, 47, 34, 0.02));
}

.result-project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.result-home-badge {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  box-shadow: 0 12px 24px rgba(15, 47, 34, 0.12);
}

.result-showcase-body {
  padding: 24px 24px 26px;
}

.result-showcase-body h2 {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.result-match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(10, 106, 59, 0.14);
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 700;
}

.result-why {
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 248, 0.96);
  border-left: 3px solid rgba(10, 106, 59, 0.38);
  margin-bottom: 18px;
}

.result-why strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.result-why p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.result-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.result-amenity-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 248, 0.96);
  border: 1px solid rgba(10, 106, 59, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.result-info-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 106, 59, 0.26);
  background: rgba(10, 106, 59, 0.04);
  margin-bottom: 18px;
}

.result-info-box strong {
  display: block;
  margin-bottom: 6px;
}

.result-info-box p {
  margin: 0;
  color: var(--muted);
}

.result-actions-stacked {
  display: grid;
  gap: 12px;
}

.result-primary,
.result-secondary {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
}

.result-action-form {
  margin: 0;
  width: 100%;
}

.result-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: stretch;
}

.result-cover {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(10, 106, 59, 0.14), rgba(221, 209, 163, 0.34));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cover-icon {
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.cover-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-body h2 {
  margin-bottom: 6px;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f9f7;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.amenity-icon svg {
  width: 16px;
  height: 16px;
}

.amenity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.score-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  background: #fff;
}

.score-card-large {
  padding: 28px 22px;
}

.score-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.score-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-contact-card {
  padding: 30px 24px;
  border-radius: 22px;
  border: 1px solid rgba(10, 106, 59, 0.1);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.result-contact-card h3 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.result-contact-card p {
  max-width: 540px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.5;
}

.admin .container {
  max-width: 1200px;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f4f3ed;
}

.admin-sidebar {
  width: 228px;
  padding: 18px 16px;
  color: var(--sidebar-text);
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #0c2617;
  background: rgba(255, 248, 240, 0.96);
  box-shadow: 0 12px 24px rgba(7, 25, 14, 0.14);
}

.admin-brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
}

.admin-brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.admin-brand-copy {
  min-width: 0;
}

.admin-brand-kicker {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.94;
  text-transform: uppercase;
  color: #1b1b19;
  margin-bottom: 5px;
}

.admin-brand-line {
  display: block;
}

.admin-brand-line-top {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.admin-brand-line-bottom {
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-logo {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1;
  color: #0c2617;
  white-space: nowrap;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.1);
}

.admin-menu a.active,
.admin-menu a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-main {
  flex: 1;
  padding: 24px 28px;
}

.admin-content .card {
  box-shadow: 0 14px 28px rgba(20, 18, 14, 0.08);
}

.admin-shell-guest {
  display: block;
  min-height: 100vh;
  background: #f4f3ed;
}

.admin-main-guest {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px;
}

.admin-content-guest {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-content-guest .card.narrow {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  align-items: end;
}

.filters-inline {
  margin-bottom: 0;
  width: 100%;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(180px, 1fr) minmax(150px, 1fr) 92px 138px 138px;
}

.filters-inline .field {
  margin-bottom: 0;
}

.field-score input {
  text-align: center;
}

.field-score {
  max-width: 92px;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 1 / -1;
}

.filters-actions .btn {
  min-width: 128px;
}

.filters-actions-inline {
  margin-top: 2px;
}

.leads-toolbar-row {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.leads-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  width: 100%;
}

.leads-actions-bar .filters-actions,
.leads-actions-bar .toolbar-actions {
  margin: 0;
}

.leads-actions-bar .filters-actions {
  grid-column: auto;
  flex: 0 0 auto;
}

.leads-actions-bar .toolbar-actions {
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.toolbar-actions {
  margin-top: 6px;
  margin-bottom: 18px;
}

.toolbar-actions .btn {
  min-width: 170px;
}

#export-selected-button:disabled {
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.58;
  cursor: not-allowed;
}

.toolbar-actions-selection {
  justify-content: flex-start;
  margin-top: 12px;
}

.admin-page-card {
  display: grid;
  gap: 24px;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-page-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-page-head h1 {
  margin-bottom: 6px;
}

.admin-page-head p {
  max-width: 620px;
}

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

.quiz-kpi-card {
  padding: 18px 20px;
  border: 1px solid #e6ece6;
  border-radius: 22px;
  background: #fff;
}

.quiz-kpi-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.quiz-kpi-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-page-head-dashboard {
  align-items: end;
}

.dashboard-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-range-form {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.dashboard-range-form label {
  font-size: 0.88rem;
  color: #51695d;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dashboard-range-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.dashboard-range-picker {
  position: relative;
}

.dashboard-range-picker summary {
  list-style: none;
}

.dashboard-range-picker summary::-webkit-details-marker {
  display: none;
}

.dashboard-range-toggle {
  min-height: 54px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(10, 106, 59, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 242, 0.96));
  box-shadow: 0 12px 24px rgba(15, 47, 34, 0.05);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.dashboard-range-picker[open] .dashboard-range-toggle {
  border-color: rgba(10, 106, 59, 0.28);
  box-shadow: 0 0 0 4px rgba(221, 209, 163, 0.18);
}

.dashboard-range-value {
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-range-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 106, 59, 0.1), rgba(10, 106, 59, 0.14));
  position: relative;
}

.dashboard-range-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translate(-50%, -62%) rotate(45deg);
}

.dashboard-range-picker[open] .dashboard-range-icon::before {
  transform: translate(-50%, -38%) rotate(-135deg);
}

.dashboard-range-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(10, 106, 59, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(15, 47, 34, 0.12);
}

.dashboard-range-option {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.dashboard-range-option:hover {
  background: rgba(10, 106, 59, 0.06);
}

.dashboard-range-option.is-active {
  background: rgba(10, 106, 59, 0.1);
  color: var(--brand);
}

.dashboard-range-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(10, 106, 59, 0.14);
  position: relative;
}

.dashboard-range-check::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-kpi-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e6ece6;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 244, 0.96));
  box-shadow: 0 16px 34px rgba(15, 47, 34, 0.05);
}

.dashboard-kpi-card-primary {
  border-color: rgba(10, 106, 59, 0.18);
  background:
    radial-gradient(circle at top right, rgba(221, 209, 163, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 246, 0.96));
}

.dashboard-kpi-icon {
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 106, 59, 0.14), rgba(221, 209, 163, 0.24));
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-kpi-icon-soft {
  background: rgba(10, 106, 59, 0.08);
}

.dashboard-kpi-copy {
  min-width: 0;
}

.dashboard-kpi-copy strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.dashboard-kpi-trend {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff4ef;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-kpi-trend.is-up {
  background: #e5f4eb;
  color: var(--brand);
}

.dashboard-kpi-trend.is-down {
  background: #f7ece8;
  color: #9a5a4d;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.dashboard-panel {
  padding: 22px;
  border: 1px solid #e6ece6;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(15, 47, 34, 0.05);
}

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

.dashboard-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.dashboard-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-legend-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.dashboard-chart-box {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(246, 248, 242, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid #edf1eb;
}

.dashboard-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-grid-line {
  stroke: #e7ece6;
  stroke-width: 1;
}

.dashboard-area-fill {
  fill: rgba(10, 106, 59, 0.1);
}

.dashboard-line-path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-line-dot {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 3;
}

.dashboard-axis-count-svg,
.dashboard-axis-day-svg,
.dashboard-axis-month-svg {
  fill: var(--ink);
  font-family: inherit;
}

.dashboard-axis-count-svg {
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-axis-day-svg {
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-axis-month-svg {
  fill: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.dashboard-mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-axis-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-axis-item {
  min-width: 0;
  text-align: center;
}

.dashboard-axis-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.dashboard-axis-item span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.dashboard-axis-item.is-compact strong,
.dashboard-axis-item.is-compact span {
  color: transparent;
  user-select: none;
}

.dashboard-mini-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.dashboard-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f8f4;
  border: 1px solid #e8ece5;
}

.dashboard-mini-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-mini-stat strong {
  font-size: 1.4rem;
  line-height: 1;
}

.dashboard-subtitle {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-quiz-rank {
  display: grid;
  gap: 12px;
}

.dashboard-rank-row {
  display: grid;
  gap: 8px;
}

.dashboard-rank-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.dashboard-rank-copy strong {
  font-size: 0.9rem;
  line-height: 1.28;
}

.dashboard-rank-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.dashboard-rank-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf1eb;
  overflow: hidden;
}

.dashboard-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1f8d56);
}

.dashboard-project-summary {
  display: grid;
  gap: 12px;
}

.dashboard-project-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #e8ece5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 244, 0.96));
  display: grid;
  gap: 10px;
}

.dashboard-project-card.is-low {
  border-color: rgba(157, 90, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 242, 0.96));
}

.dashboard-project-card.is-mid {
  border-color: rgba(221, 209, 163, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 240, 0.96));
}

.dashboard-project-card.is-high {
  border-color: rgba(10, 106, 59, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 245, 0.96));
}

.dashboard-project-card strong {
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--ink);
}

.dashboard-project-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 106, 59, 0.08);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-project-card.is-low .dashboard-project-badge {
  background: rgba(157, 90, 77, 0.08);
  color: #9a5a4d;
}

.dashboard-project-card.is-mid .dashboard-project-badge {
  background: rgba(221, 209, 163, 0.22);
  color: #7d6b2d;
}

.dashboard-project-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-project-meta span:last-child {
  white-space: nowrap;
  text-align: right;
}

.dashboard-project-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf1eb;
  overflow: hidden;
}

.dashboard-project-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1f8d56);
}

.dashboard-project-card.is-low .dashboard-project-bar span {
  background: linear-gradient(90deg, #c79c90, #9a5a4d);
}

.dashboard-project-card.is-mid .dashboard-project-bar span {
  background: linear-gradient(90deg, #d9c98f, #b49c45);
}

.dashboard-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed #dce4da;
  color: var(--muted);
  background: #fafbf8;
}

.dashboard-empty-inline {
  min-height: 0;
  padding: 18px;
}

.quiz-list-card {
  border: 1px solid #e6ece6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.quiz-list-head {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2ec;
}

.quiz-list-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.quiz-table .quiz-row-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.quiz-link-box {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f7f8f4;
  border: 1px solid #e5e9e2;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-pill.is-active {
  background: #e5f4eb;
  color: var(--brand);
}

.status-pill.is-inactive {
  background: #f7ece8;
  color: #9a5a4d;
}

.quiz-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-table-actions form {
  margin: 0;
}

.editor-section {
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid #e7ece6;
  background: rgba(255, 255, 255, 0.9);
}

.editor-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.editor-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.quiz-editor-form {
  display: grid;
  gap: 20px;
}

.quiz-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-span-2 {
  grid-column: span 2;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.quiz-project-card {
  border: 1px solid #e6ece6;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.quiz-project-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.quiz-project-summary::-webkit-details-marker {
  display: none;
}

.quiz-project-summary strong {
  display: block;
  margin-bottom: 3px;
}

.quiz-project-summary-actions {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.quiz-project-body {
  padding: 0 18px 18px;
  border-top: 1px solid #eef2ec;
}

.project-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.quiz-import-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-import-actions {
  margin-bottom: 12px;
}

.quiz-import-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.week-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.week-bar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.week-bar-wrap {
  width: 100%;
  min-height: 200px;
  padding: 8px;
  border-radius: 16px;
  display: flex;
  align-items: end;
  justify-content: center;
  background: linear-gradient(180deg, #f4f5ef, #e9eee9);
  border: 1px solid #e1e6e0;
}

.week-bar {
  width: 100%;
  max-width: 56px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #179055, #0a6a3b);
  box-shadow: 0 10px 20px rgba(10, 106, 59, 0.18);
}

.week-bar-value,
.week-bar-label {
  font-size: 0.88rem;
  font-weight: 600;
}

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

.amenity-builder {
  display: grid;
  gap: 12px;
}

.amenity-composer {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.amenity-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amenity-select-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  color: var(--ink);
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.amenity-select-preview {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.amenity-select-preview.is-empty::before {
  content: "Icono";
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.amenity-select-preview svg {
  width: 20px;
  height: 20px;
  display: block;
}

.amenity-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amenity-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(221, 209, 163, 0.18);
  border: 1px solid rgba(10, 106, 59, 0.14);
}

.amenity-chip-visual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
}

.amenity-chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amenity-chip-icon svg {
  width: 18px;
  height: 18px;
}

.amenity-chip-remove {
  border: none;
  background: transparent;
  color: rgba(10, 106, 59, 0.65);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.amenity-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(248, 250, 248, 0.9);
}

.amenity-preview {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity-preview-icon svg,
.amenity-icon svg {
  width: 24px;
  height: 24px;
}

.amenity-row-fields {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
}

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

.amenity-remove {
  min-width: 90px;
}

.amenity-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbf9;
}

.amenity-option input {
  accent-color: var(--brand);
}

.amenity-icon svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

@media (max-width: 980px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: auto;
    border-radius: 0;
  }

  .filters,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .quiz-kpi-grid,
  .dashboard-kpi-grid,
  .quiz-editor-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head-actions {
    justify-content: stretch;
  }

  .dashboard-range-form {
    min-width: 0;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .week-chart {
    grid-template-columns: repeat(7, minmax(44px, 1fr));
  }

  .hero-landing {
    padding: 36px 28px;
  }

  .result-panel {
    grid-template-columns: 1fr;
  }

  .result-amenities-grid {
    grid-template-columns: 1fr;
  }

  .leads-toolbar-row {
    gap: 12px;
  }

  .filters-inline {
    grid-template-columns: 1fr 1fr;
  }

  .leads-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .leads-actions-bar .toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

  .filters {
    grid-template-columns: 1fr;
  }

  .filters-inline {
    grid-template-columns: 1fr;
  }

  .admin-page-head,
  .editor-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page-head-dashboard,
  .dashboard-panel-head,
  .dashboard-rank-copy {
    align-items: stretch;
  }

  .dashboard-rank-copy {
    grid-template-columns: 1fr;
  }

  .dashboard-rank-copy span {
    text-align: left;
  }

  .dashboard-axis-item span {
    font-size: 0.7rem;
  }

  .filters-actions .btn {
    width: 100%;
  }

  .leads-actions-bar .filters-actions {
    width: 100%;
  }

  .toolbar-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .nav a {
    margin-left: 0;
    margin-right: 12px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .amenities-header,
  .amenity-composer,
  .amenity-row,
  .amenity-row-fields {
    grid-template-columns: 1fr;
  }

  .amenity-preview {
    width: 100%;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .quiz-brand-panel {
    gap: 12px;
  }

  .quiz-brand-full img {
    width: min(100%, 208px);
  }

  .quiz-brand-full-question img {
    width: min(100%, 172px);
  }

  .quiz-stage-footer-brand {
    margin-top: 10px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-start,
  .actions-end {
    justify-content: stretch;
  }

  .btn-nav {
    width: 100%;
  }

  .week-chart {
    grid-template-columns: repeat(4, 1fr);
  }
}
