:root {
  --bg: #f4f5f7;
  --panel: #fff;
  --ink: #1a1f25;
  --muted: #5d6874;
  --line: #e2e6eb;
  --soft: #eef1f4;
  --accent: #0f766e;
  --on-accent: #ffffff;
  --negative: #b91c1c;
  --border: #7d8580;
  --focus: #2563eb;
  --a-hub: #0d9488;
  --a-business: #e07a2f;
  --a-clients: #3b82f6;
  --a-skills: #16a34a;
  --a-network: #3b82f6;
  --a-projects: #ca8a04;
  --a-notes: #8b5cf6;
  --a-routines: #db2777;
  --a-system: #64748b;
  --e-link: #94a3b8;
  --e-touches: #16a34a;
  --e-reads: #3b82f6;
  --e-updates: #db2777;
  --e-defines: #a16207;
  --ok: #16a34a;
  --warn: #d49b0b;
  --error: var(--negative);
  --never: #9aa4af;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2dd4bf;
    --on-accent: #0f1312;
    --negative: #f87171;
    --border: #6b7672;
    --bg: #0e1115;
    --panel: #161a20;
    --ink: #e5e9ee;
    --muted: #96a1ae;
    --line: #272d36;
    --soft: #1d232b;
    --e-link: #5b6675;
    --a-system: #8a97a8;
    color-scheme: dark;
  }
}

/* Static landing header: keep in sync with app/owner-shell.css. */
.owner-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel, var(--bg));
  color: var(--ink);
  font:
    14px system-ui,
    sans-serif;
  position: relative;
  z-index: 12;
}
.owner-header .owner-logo {
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.owner-tagline {
  flex: 1;
  color: var(--muted);
}
.owner-header button,
.owner-header summary {
  font: inherit;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: var(--panel, var(--bg));
  color: var(--ink);
  cursor: pointer;
}
.owner-header summary {
  list-style: none;
}
.owner-header details {
  position: relative;
}
.owner-popover {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel, var(--bg));
  box-shadow: 0 4px 18px #0002;
  border-radius: 12px;
  z-index: 20;
}
.owner-menu .owner-popover {
  display: grid;
  gap: 6px;
}
.cost-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.cost-alert {
  color: var(--error);
  max-width: 320px;
  line-height: 1.3;
}
.owner-header a:focus-visible,
.owner-header summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .owner-header {
    min-height: 52px;
    padding: 4px 8px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .owner-tagline {
    display: none;
  }
  .owner-header .owner-logo {
    margin-right: auto;
  }
  .cost-chip {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
  }
  .cost-chip details {
    font-size: 12px;
  }
  .cost-alert {
    flex-basis: 100%;
    max-width: none;
    font-size: 11px;
  }
  .owner-header .open-dock {
    font-size: 12px;
  }
  .owner-popover {
    position: fixed;
    right: 8px;
    top: 56px;
  }
}
