/* Desk Oversight — shared hub chrome
   Sports Dad palette: navy ink, electric blue, gold gloss. */
:root {
  --bg: #eef3fa;
  --surface: #ffffff;
  --border: #d5e2f2;
  --text: #10233f;
  --muted: #5b6b82;
  --accent: #1d6bff;
  --accent2: #0a4fd6;
  --gold: #f5b400;
  --gold-deep: #e89400;
  --navy: #0b1b33;
  --danger: #e11d2e;
  --sidebar: #0b1b33;
  --sidebar-text: #e7eef8;
  --warn-bg: #fff8e6;
  --warn-border: #f5b400;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1100px 420px at 8% -8%, rgba(29, 107, 255, 0.16), transparent 58%),
    radial-gradient(820px 380px at 100% 0%, rgba(245, 180, 0, 0.14), transparent 52%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.app-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(180deg, #1a3d6e 0%, #0b1b33 46%, #07111f 100%);
  border-bottom: 3px solid var(--gold);
  color: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.28);
  flex-shrink: 0;
  flex-wrap: wrap;
  overflow: hidden;
}

header.app-header::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 7px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

header.app-header h1 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 0 #000, 0 2px 0 rgba(0, 0, 0, 0.35);
}

header.app-header h1::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 46%, var(--gold-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hub-nav {
  display: flex;
  gap: 0.45rem;
  padding: 0.2rem;
  flex-wrap: wrap;
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-group-label {
  padding: 0 0.4rem 0 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.hub-nav a,
.hub-nav button.hub-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  color: #d7e4f5;
  cursor: pointer;
}

.hub-nav a:hover,
.hub-nav button.hub-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hub-nav a.active,
.hub-nav button.hub-tab.on,
.hub-nav button.hub-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #6aabff 0%, #1d6bff 58%, #0a4fd6 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 8px rgba(29, 107, 255, 0.45);
}

.grow { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(180deg, #4d90ff 0%, var(--accent) 55%, var(--accent2) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 8px rgba(29, 107, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--border); }
header.app-header .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
header.app-header .btn-ghost:hover {
  border-color: var(--gold);
  color: #ffe08a;
}
.btn-danger { color: var(--danger); border-color: #fecaca; background: #fff; }

header.app-header input[type="search"] {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.22);
}

.banner {
  padding: 0.55rem 1.25rem;
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  font-size: 0.85rem;
  color: #8a5a00;
  display: none;
}

.banner.show { display: block; }

.stats-inline {
  font-size: 0.82rem;
  color: #d7e4f5;
  white-space: nowrap;
}

.stats-inline strong { color: #fff; }
