:root {
  --ink: #0F172A;
  --base: #F8FAFC;
  --panel: #FFFFFF;
  --teal: #4F46E5;
  --teal-dark: #4338CA;
  --gold: #C98A2E;
  --muted: #64748B;
  --line: #E2E8F0;
  --danger: #DC2626;
  --radius: 14px;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .4em; }

a { color: var(--teal); }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wide { max-width: 880px; }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 22px;
}

.eyebrow { color: var(--muted); font-size: 15px; margin-bottom: 4px; }

.lede { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

.stars {
  display: flex;
  gap: 10px;
  margin: 18px 0 8px;
}

.stars button {
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  font-size: 26px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  color: var(--gold);
}

.stars button:hover { border-color: var(--gold); }
.stars button:active { transform: scale(0.94); }
.stars button.selected { background: var(--gold); border-color: var(--gold); color: #fff; }

.star-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

textarea, input[type=text], input[type=url], input[type=password] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  background: var(--panel);
  color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }

label { display: block; font-size: 14px; color: var(--muted); margin: 16px 0 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  margin-top: 22px;
  transition: background .12s ease, transform .12s ease;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--teal); border: 1px solid var(--line); }

.hidden { display: none !important; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat .num { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 28px; }
.stat .label { color: var(--muted); font-size: 13px; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }

.rating-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.rating-pill.low { background: #FEE2E2; color: var(--danger); }
.rating-pill.high { background: #E0E7FF; color: var(--teal-dark); }

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

.error { background: #FEE2E2; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.success { background: #E0E7FF; color: var(--teal-dark); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

.tenant-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tenant-row a { text-decoration: none; color: var(--ink); font-weight: 600; }
.muted-small { color: var(--muted); font-size: 13px; }

.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); }

footer.thanks-note { margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }