@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --accent: #f6da64;
  --accent-muted: rgba(246, 218, 100, 0.1);
  --panel: #141414;
  --panel-glass: rgba(20, 20, 20, 0.8);
  --ink: #ffffff;
  --muted: #888888;
  --line: #222222;
  --line-bright: #333333;
  --font-display: 'Instrument Serif', serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--panel-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-title span {
  font-style: italic;
  display: block;
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.status-card:hover {
  border-color: var(--accent);
}

.metric {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  height: 600px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}

.grid-wrap::-webkit-scrollbar {
  width: 8px;
}

.grid-wrap::-webkit-scrollbar-track {
  background: var(--panel);
}

.grid-wrap::-webkit-scrollbar-thumb {
  background: var(--line-bright);
  border-radius: 4px;
}

.grid-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
  gap: 8px;
}

.checkbox-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.checkbox-cell input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-bright);
  background: #000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.checkbox-cell input:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-muted);
}

.checkbox-cell input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 10px;
  border: solid #000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}


.checkbox-cell input:hover {
  border-color: var(--accent);
}

.load-status {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(200%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

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

@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .status-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .status-band { grid-template-columns: 1fr; }
  .topbar { padding: 1rem; }
  main { padding: 1rem; }
}

.app-footer {
  margin-top: 4rem;
  padding: 4rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.footer-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-content a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
  text-decoration: none;
}
