:root {
  color-scheme: dark;
  --bg-a: #050a12;
  --bg-b: #081427;
  --bg-c: #0b1b30;
  --surface: rgba(11, 23, 41, 0.38);
  --surface-soft: rgba(15, 32, 55, 0.24);
  --line: rgba(231, 239, 255, 0.2);
  --line-soft: rgba(231, 239, 255, 0.1);
  --text: #edf4ff;
  --muted: #9fb4d7;
  --cyan: #4dd9ff;
  --mint: #38f7c0;
  --amber: #ffc976;
  --coral: #ff8c98;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.45);
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(77, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(56, 247, 192, 0.14), transparent 28%),
    radial-gradient(circle at 52% 96%, rgba(255, 201, 118, 0.1), transparent 22%),
    linear-gradient(145deg, var(--bg-a) 0%, var(--bg-b) 48%, var(--bg-c) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -24%;
  pointer-events: none;
  z-index: 1;
}

body::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 74% 66%, rgba(77, 217, 255, 0.16), transparent 24%);
  filter: blur(90px);
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: driftB 22s ease-in-out infinite alternate;
}

body::after {
  background:
    linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.14) 48%, transparent 60%),
    linear-gradient(35deg, transparent 42%, rgba(56, 247, 192, 0.12) 52%, transparent 62%);
  filter: blur(42px);
  opacity: 0.34;
  mix-blend-mode: screen;
  animation: motionTrail 8s ease-in-out infinite;
}

button,
input,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(77, 217, 255, 0.34);
  color: #fff;
}

.ambient,
.ambient-grid {
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  filter: blur(100px) saturate(180%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.haze-a {
  background:
    radial-gradient(circle at 15% 22%, rgba(77, 217, 255, 0.42), transparent 25%),
    radial-gradient(circle at 40% 65%, rgba(56, 247, 192, 0.16), transparent 22%);
  animation: driftA 20s ease-in-out infinite alternate;
}

.haze-b {
  background:
    radial-gradient(circle at 80% 18%, rgba(56, 247, 192, 0.32), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(255, 201, 118, 0.16), transparent 20%);
  animation: driftB 24s ease-in-out infinite alternate-reverse;
}

.haze-c {
  background:
    radial-gradient(circle at 50% 78%, rgba(77, 217, 255, 0.18), transparent 20%),
    radial-gradient(circle at 20% 84%, rgba(255, 140, 152, 0.14), transparent 20%);
  animation: driftC 30s ease-in-out infinite alternate;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(200, 222, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 222, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  animation: gridFlow 26s linear infinite;
}

.app-shell {
  position: relative;
  z-index: 2;
  max-width: 1550px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.left-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(14, 31, 53, 0.48), rgba(14, 31, 53, 0.3)),
    rgba(14, 31, 53, 0.24);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
}

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

.brand-core {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  background:
    linear-gradient(140deg, rgba(77, 217, 255, 0.35), rgba(56, 247, 192, 0.18)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  font-family: "Sora", sans-serif;
}

.eyebrow,
.top-kicker,
.rail-copy,
.search-field span,
.hero-text,
.metric-label,
.metric-card p,
.feed-item p,
.feed-time,
.policy-item p,
.chart-label,
.person-sub,
.person-row span,
.health-label,
.health-item p,
.meta-item span {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
}

.rail-copy {
  margin: 0 0 18px;
  line-height: 1.65;
}

.rail-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    transform 170ms ease,
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  transform: translateX(2px);
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
}

.rail-status {
  display: grid;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 24px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 31, 53, 0.5), rgba(14, 31, 53, 0.26)),
    var(--surface);
  backdrop-filter: blur(42px) saturate(190%);
  -webkit-backdrop-filter: blur(42px) saturate(190%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    backdrop-filter 360ms var(--ease-liquid),
    transform 260ms var(--ease-liquid),
    border-color 260ms var(--ease-liquid);
}

.top-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-left h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.top-right {
  display: flex;
  align-items: end;
  gap: 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 247, 192, 0.4);
  color: #bffbe7;
  background: rgba(56, 247, 192, 0.12);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(56, 247, 192, 0.45);
  animation: pulse 2s infinite;
}

.search-field {
  min-width: min(340px, 100%);
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
}

.search-field span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder {
  color: #7f96ba;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(18, 37, 63, 0.5), rgba(11, 23, 41, 0.3)),
    var(--surface-soft);
  backdrop-filter: blur(38px) saturate(180%);
  -webkit-backdrop-filter: blur(38px) saturate(180%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform 360ms var(--ease-liquid),
    border-color 320ms var(--ease-liquid),
    box-shadow 360ms var(--ease-liquid);
}

section[id] {
  scroll-margin-top: 118px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -70%;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.2) 49%, transparent 58%),
    radial-gradient(circle at 20% 20%, rgba(77, 217, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(56, 247, 192, 0.12), transparent 22%);
  filter: blur(34px);
  opacity: 0.82;
  animation: sheen 12s var(--ease-liquid) infinite alternate;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero-copy h2,
.section-head h3,
.metric-value,
.person-name,
.workflow strong,
.health-item strong,
.policy-item strong,
.meta-item strong {
  font-family: "Sora", sans-serif;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-text {
  margin: 0;
  line-height: 1.7;
  max-width: 64ch;
}

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

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

.metric-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 260ms var(--ease-liquid),
    backdrop-filter 280ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin-bottom: 4px;
}

.metric-card p {
  margin: 0;
  font-size: 0.92rem;
}

.live-stage {
  position: relative;
  z-index: 1;
  perspective: 1800px;
}

.camera-shell {
  position: relative;
  min-height: 430px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 68% 24%, rgba(77, 217, 255, 0.24), transparent 26%),
    linear-gradient(150deg, rgba(18, 39, 66, 0.8), rgba(7, 14, 27, 0.95));
  transform: rotateY(-10deg) rotateX(4deg) translateY(4px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.44);
  transition:
    transform 500ms var(--ease-liquid),
    box-shadow 500ms var(--ease-liquid),
    border-color 300ms var(--ease-liquid);
  will-change: transform, filter;
}

.live-stage:hover .camera-shell {
  transform: rotateY(-3deg) rotateX(1deg) translateY(0);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.5);
  border-color: rgba(231, 239, 255, 0.32);
}

.camera-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, transparent, rgba(77, 217, 255, 0.26), transparent);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: scan 5s linear infinite;
}

.camera-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  opacity: 0.24;
}

.motion-layer {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 61%),
    linear-gradient(30deg, transparent 45%, rgba(56, 247, 192, 0.14) 52%, transparent 58%);
  filter: blur(24px);
  animation: motionTrail 5s var(--ease-liquid) infinite;
}

.scan-overlay {
  position: absolute;
  inset: 10%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(77, 217, 255, 0.2),
    0 0 0 999px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.face-target {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.target-ring {
  position: absolute;
  width: min(40vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(77, 217, 255, 0.24);
  box-shadow:
    0 0 0 22px rgba(77, 217, 255, 0.06),
    0 0 60px rgba(77, 217, 255, 0.24);
  animation: ring 7s ease-in-out infinite alternate;
}

.target-ring-2 {
  width: min(31vw, 190px);
  border-color: rgba(56, 247, 192, 0.28);
  box-shadow: 0 0 56px rgba(56, 247, 192, 0.22);
  animation-duration: 9s;
  animation-direction: alternate-reverse;
}

.target-face {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 0 48px rgba(77, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: float 6s var(--ease-liquid) infinite;
}

.target-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 30, 0.48);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.target-caption strong {
  font-size: 1.03rem;
}

.target-caption span {
  color: var(--muted);
  font-size: 0.94rem;
}

.device-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.meta-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.84fr);
  gap: 22px;
}

.console-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  transition:
    transform 300ms var(--ease-liquid),
    backdrop-filter 300ms var(--ease-liquid),
    border-color 260ms var(--ease-liquid),
    box-shadow 320ms var(--ease-liquid);
}

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

.section-head-wrap {
  align-items: end;
  margin-bottom: 20px;
}

.section-head h3 {
  margin: 0;
  font-size: 1.27rem;
  line-height: 1.15;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
}

.section-chip-emerald {
  color: #c8fde8;
  border-color: rgba(56, 247, 192, 0.36);
  background: rgba(56, 247, 192, 0.16);
}

.feed-list {
  display: grid;
  gap: 12px;
}

.feed-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  transition:
    transform 260ms var(--ease-liquid),
    backdrop-filter 280ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid);
}

.feed-badge {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.feed-badge.success {
  background: var(--mint);
  box-shadow: 0 0 22px rgba(56, 247, 192, 0.45);
}

.feed-badge.warning {
  background: var(--amber);
  box-shadow: 0 0 22px rgba(255, 201, 118, 0.45);
}

.feed-badge.info {
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(77, 217, 255, 0.45);
}

.feed-item strong {
  display: block;
  margin-bottom: 3px;
}

.feed-item p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.feed-time {
  font-size: 0.82rem;
  white-space: nowrap;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.policy-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  transition:
    transform 260ms var(--ease-liquid),
    backdrop-filter 280ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid);
}

.policy-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
}

.policy-dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(77, 217, 255, 0.5);
}

.policy-dot-emerald {
  background: var(--mint);
  box-shadow: 0 0 20px rgba(56, 247, 192, 0.5);
}

.policy-dot-amber {
  background: var(--amber);
  box-shadow: 0 0 20px rgba(255, 201, 118, 0.5);
}

.policy-item strong {
  display: block;
  margin-bottom: 4px;
}

.policy-item p {
  margin: 0;
  line-height: 1.55;
}

.weekly-chart {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.chart-column {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.chart-bar-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: end;
}

.chart-bar {
  width: 100%;
  min-height: 18px;
  border-radius: 14px 14px 8px 8px;
  background:
    linear-gradient(180deg, rgba(77, 217, 255, 0.95), rgba(56, 247, 192, 0.88)),
    rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 32px rgba(17, 64, 88, 0.35);
}

.chart-value {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.chart-label {
  font-size: 0.82rem;
}

.department-bars {
  display: grid;
  gap: 13px;
}

.dept-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.dept-row span {
  font-size: 0.92rem;
}

.dept-track {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dept-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 217, 255, 0.9), rgba(56, 247, 192, 0.92));
}

.dept-row strong {
  justify-self: end;
  color: var(--muted);
  font-family: "Sora", sans-serif;
}

.registry {
  padding-bottom: 28px;
}

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

.filter-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 220ms var(--ease-liquid),
    background 240ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid),
    color 220ms var(--ease-liquid);
}

.filter-btn.active {
  color: var(--text);
  border-color: rgba(77, 217, 255, 0.42);
  background: rgba(77, 217, 255, 0.2);
}

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

.person-card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
  transition:
    transform 280ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid),
    box-shadow 280ms var(--ease-liquid);
}

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

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(135deg, rgba(77, 217, 255, 0.22), rgba(56, 247, 192, 0.22));
}

.person-name {
  margin: 0 0 4px;
  font-size: 1rem;
}

.person-sub {
  margin: 0;
  font-size: 0.9rem;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-present {
  color: #c7fde8;
  background: rgba(56, 247, 192, 0.16);
}

.status-late {
  color: #ffe6bb;
  background: rgba(255, 201, 118, 0.18);
}

.status-absent {
  color: #ffc5cd;
  background: rgba(255, 140, 152, 0.16);
}

.person-meta {
  display: grid;
  gap: 11px;
}

.person-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.confidence-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.confidence-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 217, 255, 0.95), rgba(56, 247, 192, 0.95));
}

.workflow {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 13px;
}

.workflow li {
  padding-right: 8px;
}

.workflow strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.workflow p {
  margin: 0;
  line-height: 1.58;
}

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

.health-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 15px;
  display: grid;
  gap: 6px;
}

.health-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.health-item strong {
  font-size: 1.35rem;
}

.health-item p {
  margin: 0;
  line-height: 1.55;
}

.button {
  min-height: 47px;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  transition:
    transform 260ms var(--ease-liquid),
    box-shadow 260ms var(--ease-liquid),
    border-color 240ms var(--ease-liquid),
    backdrop-filter 260ms var(--ease-liquid);
}

.button-primary {
  border-color: rgba(77, 217, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(77, 217, 255, 0.32), rgba(56, 247, 192, 0.2)),
    rgba(255, 255, 255, 0.1);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.person-card:hover,
.console-card:hover,
.status-card:hover,
.policy-item:hover,
.feed-item:hover,
.metric-card:hover {
  transform: translateY(-3px);
}

.button:hover,
.filter-btn:hover,
.person-card:hover,
.console-card:hover,
.status-card:hover,
.policy-item:hover,
.feed-item:hover,
.metric-card:hover {
  border-color: rgba(231, 239, 255, 0.3);
  backdrop-filter: blur(44px) saturate(195%);
  -webkit-backdrop-filter: blur(44px) saturate(195%);
}

.status-card {
  border-radius: 14px;
  padding: 13px 14px;
  transition:
    transform 260ms var(--ease-liquid),
    border-color 220ms var(--ease-liquid),
    box-shadow 260ms var(--ease-liquid);
}

.status-card span {
  font-size: 0.88rem;
}

.status-card strong {
  display: block;
  margin-top: 4px;
  font-family: "Sora", sans-serif;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 34, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transform: translateY(130%);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 247, 192, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(56, 247, 192, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 247, 192, 0);
  }
}

@keyframes driftA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
  }
}

@keyframes driftB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.06);
  }
}

@keyframes driftC {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 2%, 0) scale(1.07);
  }
}

@keyframes gridFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 34px 34px;
  }
}

@keyframes motionTrail {
  0% {
    transform: translateX(-12%) rotate(1.2deg) scale(1);
    opacity: 0.2;
  }
  50% {
    opacity: 0.66;
  }
  100% {
    transform: translateX(12%) rotate(-1.2deg) scale(1.02);
    opacity: 0.22;
  }
}

@keyframes scan {
  0% {
    transform: translateY(-22%);
    opacity: 0.18;
  }
  45% {
    opacity: 0.72;
  }
  100% {
    transform: translateY(118%);
    opacity: 0.18;
  }
}

@keyframes ring {
  0% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1.03);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes sheen {
  0% {
    transform: translate3d(-22%, 0, 0) rotate(7deg);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(16%, 0, 0) rotate(7deg);
    opacity: 0.86;
  }
}

@media (max-width: 1280px) {
  .overview,
  .split {
    grid-template-columns: 1fr;
  }

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

  .camera-shell {
    transform: none;
  }
}

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

  .left-rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .top-left,
  .top-right {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 16px 12px 20px;
  }

  .panel,
  .console-card {
    padding: 18px;
  }

  .top-right {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    min-width: 0;
    width: 100%;
  }

  .hero-stats,
  .device-meta,
  .people-grid,
  .health-grid,
  .rail-status {
    grid-template-columns: 1fr;
  }

  .feed-item,
  .dept-row {
    grid-template-columns: 1fr;
  }

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

  .chart-bar-wrap {
    height: 170px;
  }

  .camera-shell {
    min-height: 350px;
  }
}

@media (max-width: 520px) {
  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h2 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 auto;
  }

  .weekly-chart {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
