* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container.wide {
  align-items: flex-start;
}

.community-wrap {
  padding-top: 16px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lead {
  color: #94a3b8;
}

.form-grid {
  display: grid;
  gap: 10px;
}

input,
textarea,
button {
  font: inherit;
  border-radius: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #334155;
  background: #020617;
  color: #e2e8f0;
  padding: 10px;
}

button {
  border: none;
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover {
  background: #16a34a;
}

.grid-two {
  margin-top: 16px;
  width: 100%;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.message {
  min-height: 20px;
  color: #facc15;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.list li {
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px;
  background: #0b1220;
}

.meta {
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 6px;
}

a {
  color: #86efac;
}

a:hover {
  color: #bbf7d0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #020617;
  border-bottom: 1px solid #1f2937;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: #f8fafc;
  text-decoration: none;
}

.logo:hover {
  color: #86efac;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: #22c55e;
  color: #052e16;
}

.btn:hover {
  background: #16a34a;
  color: #052e16;
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #334155;
}

.btn-outline:hover {
  background: #1e293b;
  color: #f8fafc;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 1.05rem;
}

.page-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
}

.hero-card {
  max-width: 640px;
}

.hero-lead {
  margin-top: 8px;
}

.hero-points {
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
  line-height: 1.6;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 700;
  margin: 0 0 8px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid #1f2937;
}

.page-auth .container {
  padding-top: 32px;
  padding-bottom: 48px;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
}

.auth-switch {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.95rem;
}

select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #e2e8f0;
  padding: 10px;
  font: inherit;
}

.page-dashboard {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
}

.dashboard-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.dashboard-intro .muted {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 12px;
}

.map-card {
  max-width: 100%;
}

.map-title {
  margin-top: 0;
}

.map-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1f2937;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  background: #020617;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-vision {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
}

.vision-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  gap: 20px;
}

.vision-main h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
  line-height: 1.25;
}

.vision-main h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: #f8fafc;
}

.vision-main h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: #cbd5e1;
}

.vision-main p,
.vision-main li {
  line-height: 1.6;
  color: #cbd5e1;
}

.vision-main ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.vision-main .lead {
  margin-top: 0;
}

.status-callout {
  border-left: 4px solid #22c55e;
  padding: 14px 16px;
  background: #0b1220;
  border-radius: 0 10px 10px 0;
  margin-bottom: 8px;
}

.status-callout h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #86efac;
}

.status-callout p {
  margin: 0;
  font-size: 0.95rem;
}

.nav-text {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-text:hover {
  color: #f8fafc;
  background: #1e293b;
}

.hub-card {
  max-width: 100%;
}

.hub-lead {
  margin-top: 4px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hub-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hub-tile:hover {
  border-color: #22c55e;
  background: #111c2f;
}

.hub-tile--quiet:hover {
  border-color: #475569;
}

.hub-tile-title {
  font-weight: 700;
  color: #f8fafc;
}

.hub-tile-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
}

.patrol-card {
  max-width: 100%;
}

.patrol-legend {
  margin-top: 0;
}

.patrol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.patrol-site {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #1f2937;
  background: #0b1220;
}

.patrol-site h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.patrol-site-code {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.patrol-site-state {
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.patrol-site-last {
  margin: 0;
  font-size: 0.8rem;
}

.patrol-site--green {
  border-color: #166534;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.patrol-site--green .patrol-site-state {
  color: #86efac;
}

.patrol-site--amber {
  border-color: #a16207;
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35);
}

.patrol-site--amber .patrol-site-state {
  color: #fde047;
}

.patrol-site--red {
  border-color: #991b1b;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.patrol-site--red .patrol-site-state {
  color: #fca5a5;
}

.dashboard-guard-hint {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.dashboard-guard-hint a {
  font-weight: 600;
}

.guard-site-actions {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.guard-site-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #0b1220;
}

.guard-site-meta {
  flex: 1;
  min-width: 200px;
  color: #cbd5e1;
  font-size: 0.95rem;
}
