:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef4f2;
  --ink: #16211f;
  --muted: #60706c;
  --line: #d9e3e0;
  --primary: #0b6b57;
  --primary-dark: #084c3f;
  --accent: #d79a2b;
  --danger: #b42318;
  --ok: #147a43;
  --shadow: 0 18px 45px rgba(22, 33, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand-title {
  font-weight: 760;
  line-height: 1.15;
}

.brand-caption {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.nav-link,
.btn,
.icon-btn,
.segmented button,
.tab-button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 620;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--surface-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  background: var(--primary);
  color: #fff;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(11, 107, 87, 0.18);
}

.btn:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--primary);
  border-color: #b9ccc7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(26px, 5vw, 64px) clamp(16px, 4vw, 48px) 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e5f3ef;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 760;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-visual {
  min-height: 230px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(11, 107, 87, 0.96), rgba(14, 89, 104, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 58px);
  color: #fff;
}

.panel-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-visual h2 {
  max-width: 480px;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
}

.panel-visual p {
  max-width: 480px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.panel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.panel-facts span {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.respondent-choice {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.choice-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.choice-card:hover,
.choice-card.active {
  border-color: #8cb9ae;
  background: #f6fbf9;
  box-shadow: 0 12px 28px rgba(22, 33, 31, 0.08);
  transform: translateY(-1px);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 820;
}

.choice-card strong {
  display: block;
  margin-bottom: 4px;
}

.choice-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.choice-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 760;
  white-space: nowrap;
}

.section {
  padding: 24px clamp(16px, 4vw, 48px);
}

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

.section-header h2 {
  margin-bottom: 5px;
  font-size: clamp(24px, 3vw, 36px);
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.stepper {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
}

.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2f1;
  color: var(--muted);
  font-size: 12px;
}

.step-item.active {
  background: #e6f3ef;
  color: var(--primary-dark);
}

.step-item.active .step-number {
  background: var(--primary);
  color: #fff;
}

.form-card,
.admin-card,
.table-wrap,
.chart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(22, 33, 31, 0.05);
}

.form-card {
  overflow: hidden;
}

.form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #edf3f1;
}

.segmented button {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
}

.segmented button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(22, 33, 31, 0.08);
}

.form-body {
  padding: 20px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.question-title {
  color: #273633;
  font-size: 14px;
  font-weight: 720;
}

.required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cddbd7;
  border-radius: 8px;
  color: var(--ink);
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 87, 0.12);
}

.question-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfefd;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d5e0dd;
  border-radius: 8px;
  background: #fff;
  color: #30413d;
}

.option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 33, 31, 0.52);
}

.confirm-modal {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(22, 33, 31, 0.2);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.captcha-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
}

.captcha-box span {
  font-size: 22px;
  font-weight: 800;
}

.captcha-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cddbd7;
  border-radius: 8px;
  outline: none;
}

.captcha-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 87, 0.12);
}

.captcha-box input[aria-invalid="true"] {
  border-color: var(--danger);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.notification-body {
  padding: 18px 16px;
  color: #263532;
  font-weight: 650;
  line-height: 1.55;
}

.notification-modal {
  max-width: 390px;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 30px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #cbd9d5;
  border-radius: 999px;
  background: #dfe8e5;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.toggle-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(22, 33, 31, 0.22);
  transition: transform 0.16s ease;
}

.toggle-switch input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
}

.toggle-switch input:checked + span::after {
  transform: translateX(24px);
}

.toggle-switch input:focus + span {
  box-shadow: 0 0 0 3px rgba(11, 107, 87, 0.14);
}

.map-panel {
  overflow: hidden;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 18px;
}

.indonesia-map {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbfa, #eef5f3);
  overflow: hidden;
}

.indonesia-map svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

.map-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  font-weight: 700;
}

.map-region {
  stroke: #ffffff;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.16s ease, opacity 0.16s ease;
}

.map-region.has-data {
  cursor: default;
}

.map-region:hover {
  fill: var(--accent);
}

.map-summary {
  display: grid;
  align-content: start;
  gap: 16px;
}

.map-legend {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.map-legend i {
  display: block;
  height: 12px;
  border-radius: 3px;
}

.map-ranking {
  display: grid;
  gap: 11px;
}

.map-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 28px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.map-rank-row span {
  color: #2e3d3a;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-rank-row strong {
  text-align: right;
}

.map-rank-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eeec;
  overflow: hidden;
}

.map-rank-track div {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.save-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: #10211d;
  color: #fff;
}

.sidebar .brand {
  margin-bottom: 26px;
}

.sidebar .brand-mark {
  background: #fff;
  color: var(--primary);
}

.sidebar .brand-caption {
  color: rgba(255, 255, 255, 0.64);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 670;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 14px clamp(16px, 3vw, 34px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-title h1 {
  margin-bottom: 3px;
  font-size: 24px;
  line-height: 1.2;
}

.admin-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-content {
  display: grid;
  gap: 18px;
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(130px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-card {
  padding: 16px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.metric-value {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1;
  font-weight: 820;
}

.metric-trend {
  color: var(--ok);
  font-size: 13px;
  font-weight: 720;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

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

.donut-row .donut-wrap {
  grid-template-columns: 132px minmax(0, 1fr);
}

.donut-row .donut {
  width: 132px;
}

.donut-row .donut::after {
  inset: 28px;
}

.chart-panel {
  padding: 18px;
}

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

.chart-head h2 {
  margin-bottom: 2px;
  font-size: 18px;
}

.chart-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.bar-chart {
  display: grid;
  gap: 13px;
}

.stacked-chart {
  display: grid;
  gap: 14px;
}

.stacked-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  color: #31423e;
  font-size: 14px;
}

.stacked-track {
  display: flex;
  min-width: 0;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.stacked-fill {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 780;
}

.stacked-fill.worked {
  background: var(--primary);
}

.stacked-fill.not-worked {
  background: var(--accent);
}

.grouped-chart,
.ranking-grid {
  display: grid;
  gap: 14px;
}

.grouped-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.grouped-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 118px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8f7;
}

.mini-bar {
  display: grid;
  grid-template-rows: minmax(80px, 1fr) auto;
  gap: 6px;
  justify-items: center;
  width: 44px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.mini-bar span {
  align-self: end;
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: var(--primary);
}

.mini-bar em {
  font-style: normal;
}

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

.heatmap-table,
.ranking-table {
  min-width: 0;
}

.heatmap-table th,
.heatmap-table td,
.ranking-table th,
.ranking-table td {
  font-size: 13px;
}

.funnel-chart {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.funnel-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 180px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 760;
}

.line-chart-svg,
.radar-svg {
  display: block;
  width: 100%;
  height: auto;
}

.axis,
.radar-axis,
.radar-ring {
  stroke: #cddbd7;
  stroke-width: 1;
  fill: none;
}

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

.line-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.line-label,
.radar-label {
  fill: var(--muted);
  font-size: 11px;
}

.radar-area {
  fill: rgba(11, 107, 87, 0.24);
  stroke: var(--primary);
  stroke-width: 3;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  color: #31423e;
  font-size: 14px;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 67%, var(--accent) 67% 84%, #6b8fdf 84% 94%, #dbe5e2 94% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #fff;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.legend-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #31423e;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--primary);
}

.swatch.accent {
  background: var(--accent);
}

.swatch.blue {
  background: #6b8fdf;
}

.swatch.gray {
  background: #dbe5e2;
}

.table-wrap {
  overflow: auto;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar h2 {
  margin-bottom: 2px;
  font-size: 18px;
}

.table-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fbfdfc;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.status.done {
  background: #e5f4ea;
  color: #0f6f3c;
}

.status.draft {
  background: #fff4db;
  color: #8b5b00;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 780;
}

.mobile-menu {
  display: none;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: min(440px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 28px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-card .btn {
  width: 100%;
}

.login-hint {
  margin: 16px 0 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
}

.alert.success {
  border-color: #9bd2ad;
  background: #effaf2;
  color: #0f6f3c;
}

.alert.danger {
  border-color: #d99b95;
  background: #fff4f2;
  color: var(--danger);
}

.compact {
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: start;
}

.admin-form {
  max-width: 980px;
}

.dashboard-mode-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.dashboard-mode-form select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.detail-value {
  font-size: 18px;
  font-weight: 780;
  line-height: 1.35;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.pagination-summary,
.per-page-form {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.per-page-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.per-page-form select {
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-link {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.page-link.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef4f2;
  color: var(--primary-dark);
}

@media (max-width: 1100px) {
  .hero,
  .form-layout,
  .dashboard-grid,
  .donut-row,
  .map-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 760px) {
  .top-actions .nav-link {
    display: none;
  }

  .mobile-menu {
    display: grid;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-panel {
    margin-top: 4px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .option-grid,
  .filter-bar,
  .metric-grid,
  .donut-wrap,
  .stepper,
  .side-nav {
    grid-template-columns: 1fr;
  }

  .choice-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .choice-action {
    grid-column: 2;
    width: fit-content;
  }

  .choice-card > i:last-child {
    display: none;
  }

  .form-toolbar,
  .form-footer,
  .section-header,
  .admin-topbar,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 105px minmax(0, 1fr) 34px;
  }

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

  .grouped-row,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 12px;
  }

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

  .pagination-links {
    flex-wrap: wrap;
  }
}
