:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #122033;
  --muted: #637083;
  --primary: #0b5fff;
  --primary-dark: #053c9f;
  --success: #008a5b;
  --warning: #d88700;
  --danger: #c83349;
  --line: #dbe3ef;
  --shadow: 0 18px 45px rgba(18, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(11, 95, 255, 0.25), transparent 28rem),
    linear-gradient(135deg, #09182d 0%, #123f80 100%);
  color: #fff;
  padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
}

.topbar,
.hero-grid,
.panel-heading,
.actions,
.status-card,
.filters {
  display: flex;
  align-items: center;
}

.topbar,
.hero-grid,
.panel-heading {
  justify-content: space-between;
  gap: 2rem;
}

.hero h1 {
  max-width: 850px;
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #91c1ff;
}

.session,
.status-card {
  min-width: 260px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.session label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
}

select,
input,
button,
.secondary {
  min-height: 2.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  font: inherit;
}

select,
input {
  width: 100%;
  padding: 0 0.85rem;
  color: var(--ink);
  background: #fff;
}

button,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

button:hover,
.secondary:hover {
  background: var(--primary-dark);
}

.secondary {
  color: var(--primary-dark);
  background: #e9f1ff;
}

.actions,
.filters {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-card {
  gap: 0.8rem;
}

.status-card strong,
.status-card p {
  margin: 0;
}

.status-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0.4rem rgba(216, 135, 0, 0.16);
}

.status-dot.ok {
  background: var(--success);
  box-shadow: 0 0 0 0.4rem rgba(0, 138, 91, 0.16);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 0.4rem rgba(200, 51, 73, 0.16);
}

main {
  width: min(1440px, calc(100% - 2rem));
  margin: -2rem auto 2rem;
}

.kpi-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.kpi,
.panel {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.kpi {
  padding: 1.25rem;
}

.kpi strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 2rem;
}

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

.panel {
  margin-top: 1rem;
  padding: 1.25rem;
}

.panel h2 {
  margin: 0.2rem 0 0;
}

.filters input {
  min-width: min(30rem, 100%);
}

.table-card {
  margin-top: 1rem;
  overflow-x: auto;
}

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

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

.badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #e9f1ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.high,
.badge.critical {
  color: #8b1e2d;
  background: #ffe8ec;
}

.badge.medium,
.badge.warning {
  color: #7c4d00;
  background: #fff3d8;
}

.badge.low,
.badge.info,
.badge.delivered {
  color: #006844;
  background: #dff8ee;
}

.list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.list-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fbfdff;
}

.list-item h3 {
  margin: 0 0 0.35rem;
}

.list-item p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-grid button {
  grid-column: span 4;
}

.form-message {
  min-height: 1.25rem;
  color: var(--primary-dark);
  font-weight: 700;
}

footer {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar,
  .hero-grid,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-grid,
  .split-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid button {
    grid-column: auto;
  }
}

