/* ── OP Hub ─────────────────────────────────────────────────────────────────── */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f5f7;
  --text: #202124;
  --text-soft: #4b5563;
  --text-muted: #7a818c;
  --text-faint: #a4a9b2;
  --border: #e5e7eb;
  --border-strong: #d5d9df;
  --brand-accent: #0e9fb3;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1100px;
  height: 52px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-org { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand-org span { color: var(--brand-accent); }
.brand-divider { width: 1px; height: 18px; background: var(--border-strong); }
.brand-title { font-size: 11px; font-weight: 650; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.header-sep { flex: 1; }
.header-meta { display: flex; align-items: center; gap: 14px; }

.user-profile-wrap { position: relative; }
.user-profile-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; min-width: 230px;
  box-shadow: var(--shadow-md); z-index: 300;
}
.user-profile-wrap:hover .user-profile-dropdown { display: block; }

/* ── Data health indicator ── */
.data-health {
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.health-ok { background: #10b981; }
.health-warn { background: #f59e0b; }
.health-text { font-size: 11px; color: var(--text-muted); }

/* ── Main ── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* ── Callout ── */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.callout-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.callout-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

.callout-body strong {
  color: #78350f;
}

/* ── KPI Strip ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

@media (max-width: 900px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-strip { grid-template-columns: 1fr; } }

.kpi-strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.kpi-strip-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.kpi-strip-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.kpi-strip-compare {
  font-size: 11px;
}

.kpi-up { color: #047857; }
.kpi-down { color: #b91c1c; }
.kpi-neutral { color: var(--text-muted); }

/* ── Greeting ── */
.greeting {
  margin-bottom: 24px;
}

.greeting h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

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

/* ── What's New ── */
.whats-new {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.whats-new-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.whats-new-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.whats-new-text {
  font-size: 12px;
  color: var(--text-soft);
}

/* ── App grid ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

/* ── Monogram ── */
.app-card-monogram {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: rgba(14, 159, 179, 0.08);
  color: var(--brand-accent);
}

/* ── Card body ── */
.app-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* ── Status dots ── */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.status-dot.status-up { background: #10b981; }
.status-dot.status-down { background: #ef4444; }

/* ── Department tags ── */
.dept-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.dept-it { background: #e0f2fe; color: #0369a1; }
.dept-ops { background: #ecfdf5; color: #047857; }
.dept-marketing { background: #fef3c7; color: #92400e; }
.dept-finance { background: #ede9fe; color: #5b21b6; }
