:root {
  --ink: #101b37;
  --ink-soft: #4a597c;
  --canvas: #edf5ff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 27, 55, 0.12);
  --brand: #0d49c2;
  --brand-strong: #0a2f7e;
  --accent: #1bb6ff;
  --accent-soft: rgba(27, 182, 255, 0.14);
  --danger: #b83b4b;
  --shadow: 0 18px 48px rgba(13, 49, 116, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(27, 182, 255, 0.2), transparent 26%),
    radial-gradient(circle at top right, rgba(13, 73, 194, 0.16), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #e4eefb 100%);
}

.shell {
  min-height: 100vh;
}

.hero {
  padding: 56px 24px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.hero__logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(13, 73, 194, 0.12));
}

.hero__eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 0.95;
  max-width: 760px;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 700px;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  gap: 20px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.columns--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-title {
  max-width: 1100px;
}

.section-title h2 {
  margin: 0;
  padding: 0 4px;
  color: var(--brand-strong);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

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

.panel__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 255, 0.92));
  border: 1px solid rgba(13, 73, 194, 0.08);
}

.stat-card__label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.stat-card__value {
  margin-top: 10px;
  font-size: 1.55rem;
  font-weight: 800;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field--wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 61, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

select[multiple] {
  min-height: 140px;
  padding: 10px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(27, 182, 255, 0.2);
  border-color: var(--brand);
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.button--ghost {
  background: transparent;
  color: var(--brand-strong);
  border: 1px solid rgba(13, 73, 194, 0.2);
}

.button--ghost:hover {
  background: rgba(13, 73, 194, 0.08);
}

.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.select-inline {
  width: auto;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 250, 255, 0.86);
  border: 1px solid rgba(13, 73, 194, 0.08);
}

.list-item__meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty {
  color: var(--ink-soft);
  padding: 14px 4px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.toast.is-error {
  background: var(--danger);
}

@media (max-width: 900px) {
  .hero__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .columns,
  .columns--triple,
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
