/* zenith.guide/admin harmony — layout rhythm, type, controls */

/* Canvas — force void black (beat .app-shell specificity) */
html,
body,
body.app-shell,
body.app-shell.has-nav {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  color: #fff;
}

body {
  font-size: 13px;
}

h1, h2, h3, .page-title, .ov-hero-title, .mb-hero__title, .tel-hero__title {
  font-family: var(--font);
  letter-spacing: 0.05em;
  font-weight: 700;
}

h1, .page-title, .ov-hero-title {
  font-size: 1.75rem;
}

h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Brand wordmark keeps Syne; UI is mono */
.brand-name {
  font-family: var(--font-brand, "Syne", sans-serif);
  letter-spacing: 0.14em;
}

.sidebar {
  background: #000;
  background-image: none;
  border-right: 1px solid var(--border);
}

.sidebar-nav__label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav a,
.sidebar-logout .nav-item {
  border-radius: var(--radius-sm);
}

.wrap {
  max-width: var(--content-max);
}

.card {
  background: rgba(255, 255, 255, 0.02);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 1.5rem;
}

.btn,
button.primary,
a.button,
button.button {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
}

.btn-primary,
button.primary,
a.button:not(.btn-ghost):not(.btn-secondary):not(.btn-danger):not(.btn-outline),
button.button:not(.btn-ghost):not(.btn-secondary):not(.btn-danger):not(.btn-outline):not(.small-btn):not(.danger-btn) {
  background: #fff;
  background-image: none;
  color: #000;
  border: none;
  box-shadow: none;
}

.btn-primary:hover,
button.primary:hover,
a.button:hover,
button.button:hover {
  background: #f5f5f5;
  background-image: none;
  box-shadow: none;
}

.btn-ghost,
.ghost-btn,
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
  box-shadow: none;
}

.field label,
.field-label,
label[for] {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.muted {
  color: rgba(255, 255, 255, 0.35);
}

.badge,
.pill {
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Login — same composition as zenith.guide/admin */
body:not(.has-nav) .main-column {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

body:not(.has-nav) .wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.login-card {
  max-width: 24rem;
  margin: 0 auto;
  padding: 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  background-image: none !important;
  border-radius: 1rem;
  box-shadow: none !important;
}

.login-card::before,
.login-card::after {
  display: none !important;
}

.login-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 0.5rem;
}

.login-card .brand-header {
  margin-bottom: 1.5rem;
}

.brand-mark--login {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.login-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.login-card .muted {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.login-card .field label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0a0a;
}

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: none;
}

.login-card form {
  gap: 1rem;
}

/* Overview — KPI language from zenith.guide/admin */
.ov-page {
  --ov-card-radius: 1rem !important;
  --ov-inner-radius: 0.5rem;
  --ov-kpi-shadow: none;
  --ov-card-border: rgba(255, 255, 255, 0.1);
  gap: 1.5rem;
}

.ov-hero {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.5rem;
}

.ov-hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 0.5rem;
}

.ov-hero-title {
  margin: 0 !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2;
}

.ov-hero-meta {
  margin: 0.35rem 0 0 !important;
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

.ov-hero-chips {
  display: none !important;
}

.ov-stats {
  gap: 1rem !important;
  margin-bottom: 0.5rem;
  /* Restore 6-col KPI track (auto-fit collapsed the row — hypothesis A) */
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.ov-stat {
  gap: 0.5rem !important;
  padding: 1.25rem !important;
  min-height: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
  box-shadow: none !important;
  transform: none !important;
}

.ov-stat:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  box-shadow: none !important;
}

.ov-stat__label,
.ov-conv-item__label {
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 500 !important;
  white-space: nowrap;
  overflow: visible;
}

.ov-stat__value {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
}

.ov-stat--conversion .ov-conv-item__value,
.ov-conv-item__value {
  font-size: 1.1rem !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ov-card {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.ov-card-head h2,
.ov-card-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.ov-card-sub,
.chart-sub {
  margin-top: 0.25rem;
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Tables — quiet hairlines */
.data-table th,
.runs-table th,
.partners-table th {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td,
.runs-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

/* Green success border accent when relevant */
.ov-stat--ok,
.kpi--green {
  border-color: rgba(52, 211, 153, 0.25);
}
