:root {
  --bg: #0b0f14;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #a8b0bf;
  --accent: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 620px at 12% 0%, rgba(56, 189, 248, 0.14), transparent 52%),
    radial-gradient(800px 540px at 88% 12%, rgba(52, 211, 153, 0.10), transparent 54%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: #7dd3fc;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.10);
  color: var(--text);
  font-weight: 800;
  font-family: var(--mono);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card,
.stat-card,
.testimonial-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.card {
  padding: 18px;
  margin: 18px 0;
}

.hero-card {
  margin-top: 22px;
}

h1,
h2,
h3 {
  margin: 0 0 12px 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
  color: #d8deea;
}

p {
  margin: 0 0 14px 0;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.prewrap {
  white-space: pre-wrap;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.page-header .actions {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 8px;
}

.question-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.question-label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label {
  color: #d8deea;
  font-size: 13px;
  font-weight: 700;
}

.required {
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.help,
.fineprint,
.field-message {
  color: var(--muted);
  font-size: 12px;
}

.field-message {
  min-height: 17px;
}

.field-message.error {
  color: var(--danger);
}

.input,
.select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.60);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

textarea.input {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.select:focus {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.13);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.46);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--text);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: rgba(56, 189, 248, 0.20);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.alert {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.alert-info {
  border-color: rgba(56, 189, 248, 0.46);
  background: rgba(56, 189, 248, 0.08);
}

.alert-warn {
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(251, 191, 36, 0.10);
}

.alert-error {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(251, 113, 133, 0.10);
}

.share-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat-card {
  padding: 14px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  font-family: var(--mono);
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.compact-list {
  margin: 0;
  padding-left: 20px;
}

.compact-list li + li {
  margin-top: 8px;
}

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

.track-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.track-title {
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.09);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 800;
}

.choice-grid,
.checklist,
.scale-grid {
  display: grid;
  gap: 8px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(110px, 150px));
}

.checklist {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.choice-item,
.checkitem,
.scale-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.choice-item,
.checkitem {
  min-height: 42px;
  padding: 9px 11px;
}

.choice-item:hover,
.checkitem:hover,
.scale-item:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.06);
}

.choice-item input,
.checkitem input,
.scale-item input {
  accent-color: var(--accent);
}

.checktext {
  display: grid;
  gap: 2px;
}

.scale-grid {
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
}

.scale-item {
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  font-weight: 800;
  font-family: var(--mono);
}

.scale-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-item:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(56, 189, 248, 0.16);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.summary-strip > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.summary-value {
  margin-top: 4px;
  font-weight: 800;
}

.filter-form {
  min-width: min(280px, 100%);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.table th,
.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 800;
}

.table .num {
  text-align: right;
  font-family: var(--mono);
}

.status {
  font-weight: 900;
}

.status-complete {
  color: var(--ok);
}

.testimonial-list {
  display: grid;
  gap: 12px;
}

.testimonial-item {
  padding: 14px;
}

.testimonial-quote {
  white-space: pre-wrap;
  font-weight: 700;
}

.testimonial-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

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

.answer-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.answer-label {
  color: #d8deea;
  font-size: 13px;
  font-weight: 800;
}

.inline-list {
  margin: 0;
  padding-left: 18px;
}

.review-block {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.review-title {
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding: 12px 0;
}

@media (max-width: 760px) {
  .topbar-inner,
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-links,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 14px;
  }

  .card {
    padding: 14px;
  }

  h1 {
    font-size: 22px;
  }
}

