:root {
  --bg: #07111f;
  --bg-elevated: #0d1a2d;
  --panel: rgba(10, 24, 42, 0.86);
  --line: rgba(137, 178, 255, 0.16);
  --line-strong: rgba(137, 178, 255, 0.28);
  --text: #eef4ff;
  --muted: #9cb4d6;
  --accent: #6ed0ff;
  --accent-strong: #8ff3ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(60, 116, 194, 0.28), transparent 30%),
    linear-gradient(180deg, #06101d 0%, #091528 42%, #07111f 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

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

code {
  color: var(--accent-strong);
}

.shell {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(6, 16, 29, 0.72);
  border-bottom: 1px solid rgba(137, 178, 255, 0.08);
}

.nav-shell,
.footer-shell,
.dashboard-hero,
.split-grid,
.section-heading,
.hero-stats,
.action-row,
.hero-grid,
.updates-grid,
.join-hero-grid {
  display: flex;
  gap: 1rem;
}

.nav-shell,
.footer-shell,
.dashboard-hero {
  align-items: center;
  justify-content: space-between;
}

.admin-session {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-identity {
  display: grid;
  gap: 0.2rem;
  min-width: 220px;
  padding: 0.95rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(10, 24, 42, 0.72);
  box-shadow: var(--shadow);
}

.admin-identity-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-identity strong {
  font-family: "Sora", sans-serif;
}

.admin-identity span:last-child {
  color: var(--muted);
  word-break: break-word;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.brand-copy small,
.site-nav a,
.section-copy,
.site-footer p,
.hero-copy,
.page-hero p,
.feature-card p,
.info-card p,
.dashboard-card p,
.auth-card p,
.error-card p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-nav a,
.section-tag,
.eyebrow,
.role-pill,
.feature-number {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(137, 178, 255, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(4, 10, 21, 0.25) 0%, rgba(4, 10, 21, 0.72) 64%, #081426 100%),
    url('/public/assets/hero-bg.svg') center/cover no-repeat;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(125, 210, 255, 0.18), transparent 28%);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18rem;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0) 0%, rgba(8, 20, 38, 0.84) 50%, #081426 100%);
}

.hero-shell,
.updates-shell {
  position: relative;
  z-index: 1;
}

.hero-shell {
  padding: 5rem 0 8rem;
}

.hero-grid,
.updates-grid,
.join-hero-grid {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-copy-block,
.updates-copy {
  flex: 1 1 56%;
}

.hero-panel,
.join-highlight,
.updates-card {
  border: 1px solid var(--line);
  background: rgba(7, 20, 36, 0.76);
  box-shadow: var(--shadow);
}

.hero-panel {
  width: min(100%, 390px);
  padding: 1.45rem;
  border-radius: 28px;
  backdrop-filter: blur(12px);
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.status-dot::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #77f7af;
  box-shadow: 0 0 14px rgba(119, 247, 175, 0.75);
}

.hero-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 1.2rem;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hero-panel-card,
.mini-feature,
.updates-card,
.join-highlight {
  border-radius: 22px;
}

.hero-panel-card {
  padding: 1rem;
  background: rgba(137, 178, 255, 0.06);
  border: 1px solid rgba(137, 178, 255, 0.1);
}

.hero-panel-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.hero-panel-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-strong));
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.hero-copy,
.page-hero p {
  max-width: 44rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #05111f;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 40px rgba(81, 183, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(137, 178, 255, 0.08);
  border: 1px solid rgba(137, 178, 255, 0.2);
}

.button-danger {
  color: white;
  background: linear-gradient(135deg, #ff6f7d, #d94b64);
  box-shadow: 0 14px 40px rgba(217, 75, 100, 0.25);
}

.hero-stats div,
.info-card,
.feature-card,
.staff-card,
.dashboard-card,
.auth-card,
.error-card,
.flash {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats {
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 10.5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5rem 0;
}

.section-panel {
  background: linear-gradient(180deg, rgba(6, 17, 31, 0.2) 0%, rgba(8, 20, 38, 0.7) 100%);
}

.intro-panel {
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

.split-grid,
.section-heading {
  align-items: end;
  justify-content: space-between;
}

.section-copy,
.section-heading p {
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.mini-feature {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(8, 22, 38, 0.72);
  box-shadow: var(--shadow);
}

.mini-feature strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Sora", sans-serif;
}

.mini-feature span {
  color: var(--muted);
  line-height: 1.75;
}

.staff-grid,
.feature-grid,
.connection-grid,
.dashboard-grid {
  display: grid;
  gap: 1.5rem;
}

.staff-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.staff-card,
.feature-card,
.info-card,
.dashboard-card,
.auth-card,
.error-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.staff-card:hover,
.feature-card:hover,
.info-card:hover,
.dashboard-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
}

.staff-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  image-rendering: pixelated;
  background: linear-gradient(135deg, rgba(137, 178, 255, 0.15), rgba(137, 178, 255, 0.04));
  padding: 0.35rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
  background: rgba(110, 208, 255, 0.12);
}

.staff-quote {
  margin: 0;
  line-height: 1.75;
  color: #d4e4fb;
}

.page-main {
  min-height: calc(100vh - 210px);
}

.page-hero {
  padding: 4.5rem 0 1rem;
}

.compact-hero {
  padding-bottom: 0;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 1rem;
}

.connection-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.join-highlight {
  width: min(100%, 370px);
  padding: 1.3rem;
}

.join-checklist {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.9;
}

.join-checklist li::marker {
  color: var(--accent-strong);
}

.info-card h2,
.feature-card h2,
.dashboard-card h2,
.auth-card h1,
.error-card h1 {
  margin-bottom: 0.85rem;
}

.data-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.data-list div {
  padding: 1rem 0;
  border-top: 1px solid rgba(137, 178, 255, 0.12);
}

.data-list dt {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.data-list dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-number {
  display: inline-block;
  color: var(--accent-strong);
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-form {
  display: grid;
  gap: 0.8rem;
}

.admin-form label {
  font-size: 0.92rem;
  color: #dce9ff;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(137, 178, 255, 0.14);
  background: rgba(3, 11, 21, 0.58);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: rgba(110, 208, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(110, 208, 255, 0.08);
}

.inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-shell,
.error-shell {
  display: grid;
  place-items: center;
}

.auth-card,
.error-card {
  width: min(100%, 620px);
}

.auth-note {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.auth-actions {
  display: grid;
  gap: 0.85rem;
}

.admin-comms-page .shell {
  width: min(1320px, calc(100% - 2rem));
}

.comms-app {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1.35fr) minmax(280px, 340px);
  gap: 1.1rem;
  min-height: 78vh;
  align-items: stretch;
}

.comms-sidebar,
.comms-main,
.comms-member-panel,
.comms-media-panel {
  border: 1px solid var(--line);
  background: rgba(8, 20, 36, 0.88);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.comms-sidebar,
.comms-members {
  display: grid;
  gap: 1rem;
}

.comms-sidebar {
  padding: 1.3rem;
  align-content: start;
}

.comms-sidebar-top h1,
.comms-main h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.comms-channel-card,
.comms-identity-card,
.comms-status,
.comms-member,
.media-tile {
  border: 1px solid var(--line);
  background: rgba(137, 178, 255, 0.06);
  border-radius: 22px;
}

.comms-channel-card,
.comms-identity-card,
.comms-status,
.comms-member {
  padding: 1rem;
}

.comms-channel-label {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.comms-channel-card strong,
.comms-identity-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.3rem;
}

.comms-channel-card small,
.comms-identity-card span,
.comms-status,
.comms-member span,
.comms-message-top span,
.comms-message-top time {
  color: var(--muted);
}

.comms-controls {
  display: grid;
  gap: 0.75rem;
}

.comms-main {
  padding: 1.2rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
}

.comms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comms-chat-log {
  min-height: 420px;
  max-height: 58vh;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding-right: 0.35rem;
}

.comms-message {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(5, 15, 27, 0.72);
  border: 1px solid rgba(137, 178, 255, 0.1);
}

.comms-message-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.comms-message-top strong {
  font-family: "Sora", sans-serif;
}

.comms-message p {
  margin: 0;
  line-height: 1.7;
  color: #d7e7ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.comms-message-form {
  display: grid;
  gap: 0.85rem;
}

.comms-message-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border-radius: 22px;
  border: 1px solid rgba(137, 178, 255, 0.14);
  background: rgba(3, 11, 21, 0.58);
  color: var(--text);
  padding: 1rem 1.1rem;
  outline: none;
}

.comms-message-form textarea:focus {
  border-color: rgba(110, 208, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(110, 208, 255, 0.08);
}

.comms-members {
  align-content: start;
}

.comms-member-panel,
.comms-media-panel {
  padding: 1rem;
}

.comms-member-list {
  display: grid;
  gap: 0.8rem;
}

.comms-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.member-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(156, 180, 214, 0.5);
}

.member-dot.active {
  background: #77f7af;
  box-shadow: 0 0 12px rgba(119, 247, 175, 0.6);
}

.comms-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.comms-badges span {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(110, 208, 255, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comms-media-grid {
  display: grid;
  gap: 0.85rem;
}

.media-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 0.9rem;
}

.local-preview-stage {
  position: relative;
}

.media-tile video {
  width: 100%;
  min-height: 150px;
  max-height: 220px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(3, 11, 21, 0.8);
  display: none;
}

.media-tile video.visible {
  display: block;
}

#local-camera-overlay {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  width: 28%;
  min-height: 0;
  max-height: none;
  border: 2px solid rgba(143, 243, 255, 0.32);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.media-tile-label {
  font-family: "Sora", sans-serif;
  margin-bottom: 0.65rem;
}

.media-tile-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  text-align: center;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed rgba(137, 178, 255, 0.18);
  background: rgba(4, 11, 20, 0.7);
  padding: 1rem;
}

.server-status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.1rem;
}

.server-status-panel > div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(137, 178, 255, 0.12);
  background: rgba(137, 178, 255, 0.05);
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.status-ok {
  color: #77f7af;
}

.status-bad {
  color: #ffbf72;
}

.dashboard-note {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 0.8rem;
}

.admin-list-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(137, 178, 255, 0.12);
  background: rgba(137, 178, 255, 0.05);
}

.admin-list-item span {
  color: var(--muted);
}

.offline-card {
  max-width: 680px;
}

.offline-icon {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(143, 243, 255, 0.18), rgba(137, 178, 255, 0.05));
}

.offline-icon span {
  width: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(110, 208, 255, 0.34));
}

.offline-icon span:nth-child(1) {
  height: 1rem;
}

.offline-icon span:nth-child(2) {
  height: 1.8rem;
}

.offline-icon span:nth-child(3) {
  height: 2.7rem;
}

.offline-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.updates-card-stack {
  display: grid;
  gap: 1rem;
  width: min(100%, 370px);
}

.updates-card {
  padding: 1.3rem;
}

.updates-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.85;
}

.updates-list li::marker {
  color: var(--accent-strong);
}

.accent-card {
  background: linear-gradient(180deg, rgba(12, 40, 68, 0.92) 0%, rgba(8, 24, 41, 0.9) 100%);
}

.flash {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
}

.flash-success {
  border-color: rgba(109, 230, 174, 0.3);
}

.flash-warning {
  border-color: rgba(255, 191, 114, 0.3);
}

.flash-error {
  border-color: rgba(255, 122, 136, 0.3);
}

.error-card {
  text-align: center;
}

.error-code {
  font-family: "Sora", sans-serif;
  font-size: clamp(4rem, 9vw, 7rem);
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid rgba(137, 178, 255, 0.08);
  background: rgba(5, 13, 24, 0.75);
  margin-top: 2rem;
}

.site-footer p {
  max-width: 28rem;
}

.footer-shell {
  padding: 1.6rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .nav-shell,
  .split-grid,
  .section-heading,
  .footer-shell,
  .dashboard-hero,
  .hero-grid,
  .updates-grid,
  .join-hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .admin-session {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel,
  .join-highlight,
  .updates-card-stack {
    width: 100%;
  }

  .comms-app {
    grid-template-columns: 1fr;
  }

  #local-camera-overlay {
    width: 34%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.25rem, 1140px);
  }

  .section {
    padding: 4rem 0;
  }

  .hero-shell {
    padding: 4rem 0 6rem;
  }

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

  .inline-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a,
  .button {
    width: 100%;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel-grid {
    grid-template-columns: 1fr;
  }

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

  .server-status-panel {
    grid-template-columns: 1fr;
  }

  #local-camera-overlay {
    width: 42%;
    left: 0.65rem;
    bottom: 0.65rem;
  }
}
