:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #d5dee8;
  --brand: #0b6f68;
  --brand-dark: #064e49;
  --accent: #2563eb;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;
  --radius: 10px;
  --shadow: 0 16px 38px rgba(18, 32, 51, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0) 260px),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.public-shell {
  min-height: 100vh;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #334155;
  font-weight: 650;
}

.public-nav a:hover,
.public-nav a.active {
  background: #e7f5f3;
  color: var(--brand-dark);
}

.public-main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  background: rgba(255,255,255,0.92);
  border-right: 1px solid var(--line);
  overflow: auto;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0ea5a0);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(11, 111, 104, 0.22);
}

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

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #334155;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  background: #e7f5f3;
  color: var(--brand-dark);
}

.main {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
}

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

.top h1 {
  margin: 2px 0 0;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 750;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.section {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.action-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  align-content: start;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.action-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  background: var(--surface-soft);
}

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

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

.field span {
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(11, 111, 104, 0.12);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.pill.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.pill.green {
  background: #dcfce7;
  color: var(--ok);
}

.pill.yellow {
  background: #fef3c7;
  color: var(--warn);
}

.pill.red {
  background: #fee2e2;
  color: var(--danger);
}

.qr-box {
  display: grid;
  gap: 12px;
  align-content: start;
}

.qr {
  width: 172px;
  height: 172px;
  border: 8px solid #fff;
  outline: 1px solid var(--line);
  image-rendering: pixelated;
}

.bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 112px;
}

.metric h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
}

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

.notification-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.notification-item:hover {
  border-color: var(--brand);
}

.qr-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: 282px;
    height: 100vh;
    box-shadow: var(--shadow);
  }

  .side.open {
    display: block;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .main {
    padding: 14px;
  }

  .public-header {
    position: static;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .public-nav {
    justify-content: flex-end;
  }

  .top {
    align-items: flex-start;
  }

  .cols-2,
  .cols-3,
  .hero-panel,
  .qr-row {
    grid-template-columns: 1fr;
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .qr {
    width: 148px;
    height: 148px;
  }
}
