:root {
  --bg: #edf1f6;
  --ink: #0f1b2d;
  --muted: #6f7f95;
  --accent: #0e7be8;
  --accent-2: #18b36b;
  --warn: #f0a020;
  --line: rgba(15, 27, 45, 0.1);
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 123, 232, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(24, 179, 107, 0.16), transparent 22%),
    linear-gradient(180deg, #f6f8fb 0%, var(--bg) 100%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.app-header__inner,
.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.1;
}

.brand-mark small {
  color: var(--muted);
}

.brand-mark__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 8px rgba(14, 123, 232, 0.08);
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.page-shell {
  padding: 28px 0 48px;
}

.hero-shell,
.toolbar-card,
.info-card,
.table-card,
.status-banner,
.form-card {
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(17, 31, 55, 0.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, #0d2038, #1b4369 52%, #20706b);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero-shell h1,
.form-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.95;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-metric {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-metric span,
.card-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  color: white;
}

.toolbar-card,
.info-card,
.table-card,
.status-banner,
.form-card {
  margin-top: 22px;
}

.toolbar-card,
.info-card,
.table-card,
.form-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr auto;
  gap: 16px;
  align-items: end;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

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

.toolbar-actions .btn,
.table-actions .btn {
  border-radius: 999px;
  padding-inline: 16px;
}

.status-banner {
  padding: 14px 18px;
  background: rgba(240, 160, 32, 0.14);
  color: #8a5a00;
}

.content-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.accent {
  background: linear-gradient(135deg, rgba(14, 123, 232, 0.92), rgba(24, 179, 107, 0.84));
  color: white;
}

.accent .card-label,
.accent p {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.day-list,
.meta-list {
  display: grid;
  gap: 10px;
}

.day-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.day-item strong,
.table-head h2,
.info-card h2,
.info-card h3 {
  margin: 0;
}

.day-item span,
.table-head p,
.info-card p {
  color: var(--muted);
}

.day-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chip-link,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.chip-link {
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #4aa7ff);
}

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

.pill.ok {
  background: rgba(24, 179, 107, 0.14);
  color: #137646;
}

.pill.warn {
  background: rgba(240, 160, 32, 0.16);
  color: #885500;
}

.operator-table {
  margin-bottom: 0;
}

.operator-table thead th {
  border-bottom-width: 1px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.operator-table tbody tr {
  cursor: pointer;
}

.operator-table tbody tr:hover {
  background: rgba(14, 123, 232, 0.05);
}

.reported-row {
  background: rgba(24, 179, 107, 0.06);
}

.orphan-row {
  background: rgba(240, 160, 32, 0.08);
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.meta-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(13, 32, 56, 0.05);
}

.history-table td,
.history-table th {
  vertical-align: top;
}

@media (max-width: 1080px) {
  .hero-shell,
  .content-grid,
  .detail-grid,
  .toolbar-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
