:root {
  --bg: #f4f8f8;
  --bg-accent: radial-gradient(circle at 10% 20%, rgba(0, 166, 147, 0.16), transparent 38%), radial-gradient(circle at 90% 0%, rgba(255, 126, 54, 0.14), transparent 35%);
  --card: #ffffff;
  --text: #162126;
  --muted: #576972;
  --line: #d8e4e4;
  --primary: #007f73;
  --primary-soft: #d5f3ef;
  --secondary: #f97316;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 45px -28px rgba(11, 37, 47, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  background-image: var(--bg-accent);
  color: var(--text);
}

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

.container {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 20;
  background: rgba(244, 248, 248, 0.86);
  border-bottom: 1px solid rgba(216, 228, 228, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.brand-badge {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #00ad98);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.52rem 0.84rem;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(0, 127, 115, 0.12);
}

.main-content {
  padding: 1.35rem 0 2.3rem;
}

.page-head {
  margin-bottom: 1.1rem;
}

.page-head h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.95rem);
}

.page-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-value {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.8rem;
  background: var(--primary-soft);
  color: var(--primary);
}

.list {
  display: grid;
  gap: 0.95rem;
}

.survey-card {
  display: grid;
  gap: 0.8rem;
}

.survey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 11px;
  padding: 0.64rem 0.95rem;
  transition: transform 0.14s, box-shadow 0.14s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00a78e);
  color: #fff;
}

.btn-secondary {
  background: rgba(0, 127, 115, 0.12);
  color: var(--primary);
}

.btn-danger {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
}

.alert {
  margin-bottom: 1rem;
  border-radius: 13px;
  padding: 0.78rem 0.9rem;
  font-weight: 600;
}

.alert.success {
  background: rgba(6, 118, 71, 0.1);
  color: var(--ok);
}

.alert.error {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}

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

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.54rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.question-title {
  margin: 0;
  font-size: 1rem;
}

.option-list {
  display: grid;
  gap: 0.5rem;
}

.option-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem;
  border-radius: 9px;
  border: 1px solid #e6eeee;
  background: #fbfdfd;
}

.option-item input {
  width: auto;
  margin-top: 0.22rem;
}

.progress {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: #e8f1f1;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #0da889);
}

.dim-item {
  display: grid;
  gap: 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(216, 228, 228, 0.8);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

canvas {
  width: 100% !important;
  height: 300px !important;
}

@media (max-width: 900px) {
  .grid.cards-3,
  .grid.cards-2,
  .form-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 64px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0;
  }
}
