:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --danger: #ef4444;
  --ok: #22c55e;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
body.lh-body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(ellipse at top, #1e293b, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
.lh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}
.lh-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.lh-brand span { color: var(--accent); font-weight: 600; margin-left: 0.35rem; }
.lh-nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.lh-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.lh-nav a:hover, .lh-nav-out { color: #fff; }
.lh-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.lh-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.lh-page-head h1 { margin: 0; font-size: 1.6rem; }
.lh-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--accent); font-weight: 700; }
.lh-muted { color: var(--muted); }
.lh-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.lh-card h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.lh-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.lh-card-link { color: inherit; text-decoration: none; transition: border-color .15s; }
.lh-card-link:hover { border-color: var(--accent); }
.lh-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .lh-stat-grid { grid-template-columns: 1fr 1fr; } }
.lh-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}
.lh-stat strong { display: block; font-size: 1.4rem; }
.lh-stat span { color: var(--muted); font-size: 0.78rem; }
.lh-stat-ok strong { color: var(--ok); }
.lh-stat-bad strong { color: var(--danger); }
.lh-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lh-table th, .lh-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.lh-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lh-table a { color: var(--accent); }
.lh-pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #334155;
}
.lh-pill-active { background: rgba(34,197,94,.18); color: #86efac; }
.lh-pill-inactive { background: rgba(239,68,68,.18); color: #fca5a5; }
.lh-pill-expired { background: rgba(245,158,11,.18); color: #fcd34d; }
.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.lh-btn-primary { background: var(--accent); border-color: var(--accent); color: #042f2e; }
.lh-btn-danger { background: rgba(239,68,68,.15); border-color: #ef4444; color: #fecaca; }
.lh-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.lh-input, select.lh-input, textarea.lh-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
}
.lh-field { margin-bottom: 0.85rem; }
.lh-field label { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.lh-form-card { max-width: 640px; }
.lh-filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.lh-filters .lh-input { width: auto; min-width: 160px; }
.lh-login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.lh-login-card { width: min(400px, 100%); }
.lh-login-card h1 { margin-top: 0; }
.lh-login-card label { display: block; margin: 0.75rem 0; font-size: 0.85rem; color: var(--muted); }
.lh-login-card button { width: 100%; margin-top: 0.75rem; }
.lh-dl { display: grid; gap: 0.6rem; }
.lh-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 0.5rem; }
.lh-dl dt { color: var(--muted); }
.lh-dl dd { margin: 0; }
.lh-alert {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #fecaca;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.lh-small { font-size: 0.72rem; word-break: break-word; }
code { font-family: ui-monospace, Consolas, monospace; }
