:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0f766e;
  --brand-2: #115e59;
  --ok: #14532d;
  --ok-bg: #dcfce7;
  --err: #7f1d1d;
  --err-bg: #fee2e2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #e6fffa 0%, var(--bg) 40%), var(--bg);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.topbar .container {
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

main.container {
  padding: 24px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.narrow {
  max-width: 520px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 14px;
  color: #374151;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #14b8a61c;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.flash-success {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #86efac;
}

.flash-error {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid #fca5a5;
}

@media (max-width: 920px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
