:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --danger: #dc2626;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.cd-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.cd-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.cd-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.cd-badge-free {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.cd-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cd-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.cd-btn:hover { text-decoration: none; background: #f1f5f9; }

.cd-btn-primary {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff;
}
.cd-btn-primary:hover { background: var(--emerald-700); }

.cd-btn-danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fef2f2;
}
.cd-btn-danger:hover { background: #fee2e2; }

.cd-btn-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }

.cd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.cd-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.cd-hero {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  color: #fff;
  border-radius: 14px;
  padding: 44px 32px;
}
.cd-hero h1 { margin: 10px 0 12px; font-size: 32px; line-height: 1.2; }
.cd-hero p { margin: 0 0 22px; max-width: 640px; color: #d1fae5; }

.cd-auth-box {
  max-width: 420px;
  margin: 24px auto;
}

.cd-field { margin-bottom: 14px; }
.cd-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.cd-input, .cd-select, .cd-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.cd-input:focus, .cd-select:focus, .cd-textarea:focus {
  outline: 2px solid var(--emerald-500);
  border-color: var(--emerald-600);
}

.cd-divider {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}

.cd-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.cd-alert-success { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.cd-alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

.cd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cd-table th, .cd-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cd-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); }

.cd-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.cd-pill-ok { background: var(--emerald-50); color: var(--emerald-700); }
.cd-pill-warn { background: #fef3c7; color: #92400e; }
.cd-pill-err { background: #fef2f2; color: var(--danger); }

.cd-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cd-muted { color: var(--muted); font-size: 13px; }

.cd-footer {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .cd-hero { padding: 28px 20px; }
  .cd-hero h1 { font-size: 24px; }
  .cd-table { display: block; overflow-x: auto; }
}

