/* AS HUB — styles
 *
 * The colours all live in the block below. Change a value here and the whole
 * site changes. You never need to hunt through the rest of this file.
 *
 * These are placeholders taken from the "jade" palette you picked for your
 * personal hub, so it feels familiar. Section 8 of the build guide is where
 * we settle the real ones.
 */

:root {
  --bg: #0b1220;
  --surface: #131c2e;
  --surface-raised: #1a2438;
  --border: #253048;
  --text: #e8edf5;
  --text-secondary: #93a1b8;
  --accent: #2fa37a;
  --accent-soft: rgba(47, 163, 122, 0.14);
  --success: #35b37e;
  --warning: #d99a2b;
  --error: #e05c5c;

  --radius: 10px;
  --gap: 16px;
  --maxw: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 64px; }

/* ---- nav ---- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 56px;
}
.nav-brand { font-weight: 650; letter-spacing: -0.01em; margin-right: 12px; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--surface-raised); }
.nav a.current { color: var(--accent); background: var(--accent-soft); }
.nav-spacer { flex: 1; }
.nav-user { font-size: 13px; color: var(--text-secondary); }

/* ---- headings ---- */
h1 { font-size: 22px; margin: 24px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 32px 0 12px; color: var(--text-secondary);
     text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.sub { color: var(--text-secondary); margin: 0 0 8px; font-size: 14px; }

/* ---- cards ---- */
.grid { display: grid; gap: var(--gap);
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;            /* stops long text spilling out of the box */
  overflow-wrap: anywhere;
}
.stat-label { font-size: 12px; color: var(--text-secondary);
              text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 30px; font-weight: 600; margin-top: 6px;
              letter-spacing: -0.02em; }

/* ---- status pills ---- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px;
        font-size: 12px; font-weight: 600; }
.pill.ok    { background: rgba(53,179,126,0.15); color: var(--success); }
.pill.warn  { background: rgba(217,154,43,0.15); color: var(--warning); }
.pill.bad   { background: rgba(224,92,92,0.15);  color: var(--error); }

/* ---- messages ---- */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.notice.bad { border-left-color: var(--error); }
.notice.warn { border-left-color: var(--warning); }
.notice h3 { margin: 0 0 6px; font-size: 14px; }
.notice ul { margin: 8px 0 0; padding-left: 18px; }
.notice li { margin: 4px 0; }

.muted { color: var(--text-secondary); font-size: 13px; }

pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
  font-size: 12.5px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .wrap { padding: 16px 14px 48px; }
  .stat-value { font-size: 24px; }
}
