:root {
  --bg: #f4f8ff;
  --ink: #11222f;
  --panel: #ffffff;
  --accent: #027a8a;
  --accent-strong: #015f6c;
  --danger: #b42318;
  --border: #dbe5ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, #d8ecff 0%, transparent 32%),
    radial-gradient(circle at 88% 6%, #d5f9f8 0%, transparent 25%),
    var(--bg);
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
}

.badge {
  background: #e1f5f7;
  color: #055c65;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 18px 40px;
}

.hero {
  background: linear-gradient(140deg, #0c7588 0%, #0f9ab0 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: 0 18px 42px rgba(3, 52, 63, 0.22);
}

.hero.compact {
  margin-bottom: 14px;
}

.hero.danger {
  background: linear-gradient(140deg, #98231a 0%, #c73a2b 100%);
}

.hero h1 {
  margin: 0 0 8px;
}

.hero p {
  margin: 0 0 16px;
  opacity: 0.95;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(18, 45, 67, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #ecf1f7;
}

.table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f6376;
}

.empty {
  text-align: center;
  color: #5e7387;
}

.actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: #eff4fa;
  color: #26445f;
}

.btn-ghost:hover {
  background: #e4edf6;
}

.btn-danger {
  background: #ffe9e7;
  color: var(--danger);
}

.btn-danger:hover {
  background: #ffd8d4;
}

.form-panel form {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input {
  border: 1px solid #cdd9e5;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid rgba(2, 122, 138, 0.2);
  border-color: var(--accent);
}

.validation {
  color: #b42318;
  min-height: 18px;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.details {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 10px;
  column-gap: 10px;
}

.details dt {
  font-weight: 600;
}

.details dd {
  margin: 0;
}

@media (max-width: 768px) {
  .actions {
    flex-direction: column;
  }

  .table,
  .table thead,
  .table tbody,
  .table th,
  .table td,
  .table tr {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tr {
    border-bottom: 1px solid #ecf1f7;
    padding: 10px 0;
  }

  .table td {
    border: 0;
    padding: 5px 0;
  }

  .details {
    grid-template-columns: 1fr;
  }
}
