:root {
  --c13-black: #0b0f19;
  --c13-charcoal: #151a24;
  --c13-surface: #1a2030;
  --c13-surface-muted: #121826;
  --c13-border: #2a3142;
  --c13-text: #f2f4f8;
  --c13-text-muted: #9aa3b2;
  --c13-red: #e10600;
  --c13-red-dark: #b80500;
  --c13-red-soft: rgba(225, 6, 0, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Aptos, system-ui, sans-serif;
  background: var(--c13-black);
  color: var(--c13-text);
  margin: 0;
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  background: var(--c13-charcoal);
  border-bottom: 1px solid var(--c13-border);
  padding: 1rem 1.25rem;
}

.site-header__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c13-red);
}

.site-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(240px, 70vw);
  object-fit: contain;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  width: 100%;
}

.container.wide {
  max-width: 1100px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c13-red);
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0.25rem 0 0.75rem;
}

.lede {
  color: var(--c13-text-muted);
}

.card {
  background: var(--c13-surface);
  border: 1px solid var(--c13-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.card.muted {
  background: var(--c13-surface-muted);
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--c13-border);
  background: var(--c13-black);
  color: var(--c13-text);
}

button {
  background: var(--c13-red);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--c13-red-dark);
}

button.secondary {
  background: var(--c13-border);
  color: var(--c13-text);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions {
  margin-top: 0.5rem;
}

.output {
  background: var(--c13-black);
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.error {
  color: #fca5a5;
  margin-top: 0.75rem;
}

.footnote {
  color: var(--c13-text-muted);
  font-size: 0.9rem;
}

.footnote a,
.card a {
  color: var(--c13-red);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.facts {
  margin: 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--c13-border);
}

.facts dt {
  color: var(--c13-text-muted);
}

.facts dd {
  margin: 0;
  text-align: right;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.placeholder {
  color: var(--c13-text-muted);
}

.future ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--c13-text-muted);
}

.site-footer {
  margin-top: auto;
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--c13-border);
  background: var(--c13-charcoal);
  text-align: center;
}

.protected-by {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c13-text-muted);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--c13-text-muted);
}

@media (max-width: 640px) {
  .site-logo {
    height: 34px;
  }

  .container {
    padding: 1.25rem 0.85rem;
  }

  .dashboard-header {
    flex-direction: column;
  }
}
