:root {
  --color-primary: #c9fee0;
  --color-teal: #2f6f6d;
  --color-charcoal: #2e2e2e;
  --color-slate: #5b6c9e;
  --color-bg: #f4faf7;
  --color-card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(47, 111, 109, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-charcoal);
  background: radial-gradient(1200px 600px at 10% -10%, var(--color-primary), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(91, 108, 158, 0.18), transparent 50%), var(--color-bg);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-slate);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.site-header {
  background: linear-gradient(135deg, var(--color-teal), #1f4d4b);
  color: #fff;
  box-shadow: var(--shadow);
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 0.85rem;
  opacity: 0.9;
}

nav.top a {
  color: #e9fff5;
  margin-left: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

nav.top a:hover {
  text-decoration: underline;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 111, 109, 0.12);
}

h1,
h2,
h3 {
  color: var(--color-teal);
  margin-top: 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(201, 254, 224, 0.5);
  color: var(--color-teal);
  border: 1px solid rgba(47, 111, 109, 0.25);
}

.btn-danger {
  background: #8b2f3a;
  color: #fff;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  max-width: 520px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 46, 46, 0.2);
  font: inherit;
}

textarea {
  min-height: 110px;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid rgba(47, 111, 109, 0.25);
  background: var(--color-primary);
  color: var(--color-charcoal);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(91, 108, 158, 0.15);
  color: var(--color-slate);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.simple th,
table.simple td {
  border-bottom: 1px solid rgba(46, 46, 46, 0.1);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: top;
}

.muted {
  color: rgba(46, 46, 46, 0.65);
  font-size: 0.92rem;
}

.footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgba(46, 46, 46, 0.65);
}
