:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-border: #d8e0ea;
  --ink: #18212b;
  --muted: #5b6b7d;
  --accent: #2455d6;
  --accent-soft: #dfe8ff;
  --success: #1d7a45;
  --warning: #a96900;
  --danger: #ae2338;
  --shadow: 0 18px 48px rgba(24, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(36, 85, 214, 0.08), transparent 30%),
    linear-gradient(180deg, #f6f8fc 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 1.6rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--panel-border);
}

.nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.notice.info {
  background: #edf4ff;
  border-color: #c9dbff;
}

.notice.success {
  background: #e9f8ef;
  border-color: #c5ebd2;
}

.notice.warning {
  background: #fff5df;
  border-color: #ffe2a4;
}

.notice.error {
  background: #fff0f2;
  border-color: #ffc8d1;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.stat strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  font-weight: 600;
}

input[type="text"],
input[type="url"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #c7d2df;
  background: #fff;
  color: var(--ink);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox input {
  margin: 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button.secondary,
.button.secondary {
  background: #fff;
  color: var(--accent);
}

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

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #e5ebf2;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stack {
  display: grid;
  gap: 8px;
}

@media (max-width: 720px) {
  .shell {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .table,
  .table tbody,
  .table tr,
  .table td,
  .table th {
    display: block;
  }

  .table th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .table td {
    padding-top: 6px;
  }
}
