:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #555;
  --accent: #5319e7;
  --warn: #b45309;
  --border: #d4d4d0;
  --internal-banner: #fff7e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.foundry-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: white;
}

.foundry-brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}

.foundry-nav nav a {
  margin-right: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.foundry-main {
  padding: 1.5rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.foundry-roster {
  width: 100%;
  border-collapse: collapse;
}

.foundry-roster th,
.foundry-roster td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.foundry-roster th {
  cursor: pointer;
  user-select: none;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eee;
  color: var(--muted);
}

.badge-active { background: #dbeafe; color: #1e40af; }
.badge-shipped { background: #dcfce7; color: #166534; }
.badge-prospect { background: #fef3c7; color: #92400e; }
.badge-dormant { background: #e5e7eb; color: #374151; }

.foundry-internal-banner {
  background: var(--internal-banner);
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.foundry-iframe {
  width: 100%;
  height: calc(100vh - 12rem);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.foundry-breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.foundry-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.foundry-page-list {
  list-style: none;
  padding: 0;
}

.foundry-page-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foundry-visibility {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #eee;
  color: var(--muted);
}

.foundry-visibility-internal { background: var(--internal-banner); color: var(--warn); }

.foundry-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.foundry-client-meta dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.foundry-client-meta dd {
  margin: 0 0 0.5rem 0;
}
