:root {
  --bg: #0b0d10;
  --surface: #14181d;
  --surface-2: #1b2026;
  --fg: #e8eaed;
  --muted: #9aa4ae;
  --faint: #6b7480;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.12);
  --border: #252b32;
  --header-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---- top bar (brand strip + nav) ---- */
header.bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

/* swap target: replace the inline .owl-mark svg with the canonical owl asset
   (e.g. <img src="/assets/owl-mark.svg" class="owl-mark" alt="">) when ready */
.owl-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: 0 0 auto;
}

.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.context {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

nav.tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

nav.tabs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 7px;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}

nav.tabs a:hover {
  color: var(--fg);
  background: var(--surface-2);
}

nav.tabs a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- full-viewport dashboard iframe ---- */
.frame-wrap {
  height: calc(100vh - var(--header-h));
  background: var(--bg);
}

iframe.dash {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- home overview ---- */
main.home {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1.title {
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.5;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

a.tile {
  display: block;
  text-decoration: none;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: border-color 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

a.tile:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tile-icon svg { width: 22px; height: 22px; }

.tile h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.tile p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.tile .open {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.secondary-links {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.secondary-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.secondary-links a:hover { color: var(--fg); }

footer.foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  color: var(--faint);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer.foot .spec { letter-spacing: 0.02em; }
