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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(13, 73, 194, 0.08);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__logo {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.topbar__eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-chip {
  border: 1px solid rgba(13, 73, 194, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-strong);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.nav-chip.is-active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 24px rgba(13, 73, 194, 0.2);
}

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

.view {
  display: none;
}

.view.is-active {
  display: grid;
  gap: 20px;
}

.hero {
  display: grid;
  gap: 14px;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(27, 182, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(10, 47, 126, 0.98), rgba(13, 73, 194, 0.95));
  color: white;
  box-shadow: var(--shadow);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  max-width: 740px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 4px 0;
}

.section-head__eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 500px;
}

.dashboard-grid,
.workspace-grid,
.columns {
  display: grid;
  gap: 20px;
}

.dashboard-grid,
.workspace-grid,
.columns {
  grid-template-columns: 1.1fr 1fr;
}

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

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

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

.panel--attention {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 245, 235, 0.94));
}

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

.panel__header h3 {
  margin: 0;
  font-size: 1.08rem;
}

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

.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.94));
  border: 1px solid rgba(13, 73, 194, 0.08);
}

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

.stat-card__value {
  margin-top: 12px;
  font-size: 1.65rem;
  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.14);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

textarea {
  resize: vertical;
}

select[multiple] {
  min-height: 150px;
}

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

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

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

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

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

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

.select-inline {
  width: auto;
}

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

.list-item,
.alert-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(245, 250, 255, 0.88);
  border: 1px solid rgba(13, 73, 194, 0.08);
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.helper-copy {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.alert-card {
  display: grid;
  gap: 8px;
}

.alert-card__meta {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.alert-card--warning {
  background: rgba(255, 244, 225, 0.95);
  border-color: rgba(217, 138, 22, 0.18);
}

.alert-card--critical {
  background: rgba(255, 234, 238, 0.95);
  border-color: rgba(184, 59, 75, 0.18);
}

.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);
  vertical-align: top;
}

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

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

.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: 1040px) {
  .dashboard-grid,
  .workspace-grid,
  .columns,
  .columns--triple,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar__nav {
    justify-content: flex-start;
  }
}
