/* ── OPS SHELL (shared with et-link-audit, et-security-posture, et-site-operations) ── */
:root {
  --orange: #B35000;
  --orange-light: #D4600A;
  --orange-faint: rgba(191,87,0,0.08);
  --orange-border: rgba(191,87,0,0.22);
  --charcoal: #111111;
  --slate: #1B2A3B;
  --slate-2: #243446;
  --off-white: #FAF9F7;
  --border: #E2DDD8;
  --text-primary: #141210;
  --text-secondary: #49413b;
  --text-muted: #77716b;
  --green: #15803d;
  --blue: #1d4ed8;
  --red: #b91c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text-primary); background: #fff; }

.ops-hero {
  position: relative; overflow: hidden;
  padding: 4.75rem 48px 4.25rem;
  background: linear-gradient(160deg, #111111 0%, #191624 40%, #2a1c14 100%);
  color: #fff;
}
.ops-hero > .hero-bg, .ops-hero > .hero-mesh { position: absolute; inset: 0; pointer-events: none; }
.ops-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(191,87,0,0.15) 0%, transparent 60%);
}
.ops-hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px; position: relative; z-index: 1;
}
.ops-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  color: var(--orange); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ops-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.ops-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(34px, 4.3vw, 52px); line-height: 1.02;
  letter-spacing: -0.03em; color: #fff;
}
.ops-title span { color: #f5a461; }
.ops-sub { max-width: 690px; margin-top: 18px; color: rgba(255,255,255,0.68); font-size: 15px; line-height: 1.8; }
.ops-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.82); }

.ops-scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 16px 18px;
}
.score-value { color: #fff; font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
.score-label { margin-top: 6px; color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.score-note { margin-top: 7px; color: rgba(255,255,255,0.52); font-size: 12px; line-height: 1.45; }

.ops-band { background: var(--off-white); border-bottom: 1px solid var(--border); }
.ops-band-inner { max-width: 1160px; margin: 0 auto; padding: 18px 48px; }
.scope-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.scope-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.scope-value { color: var(--text-primary); font-size: 22px; font-weight: 800; line-height: 1; }
.scope-label { margin-top: 8px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.main { max-width: 1160px; margin: 0 auto; padding: 52px 48px 88px; }
.ops-section + .ops-section { margin-top: 52px; }
.section-header { margin-bottom: 20px; }
.section-label { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { margin-top: 6px; font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

/* ── FILTER BAR ── */
.lr-filterbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lr-filter-btn {
  padding: 0.3rem 0.9rem; border-radius: 20px; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); font-family: inherit; transition: all 0.15s;
}
.lr-filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.lr-filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.lr-search {
  margin-left: auto; padding: 0.35rem 0.85rem; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; color: var(--text-primary);
  font-size: 0.8rem; font-family: inherit; width: 240px; outline: none;
}
.lr-search:focus { border-color: var(--orange); }

/* ── DOMAIN GROUPS ── */
.lr-domain-group {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 0.65rem; overflow: hidden;
}
.lr-domain-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.25rem; cursor: pointer; list-style: none; gap: 1rem;
  transition: background 0.12s;
}
.lr-domain-summary::-webkit-details-marker { display: none; }
.lr-domain-summary:hover { background: var(--off-white); }
.lr-domain-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; }
.lr-domain-count { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.lr-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 3px; flex-shrink: 0; }

/* Category left-border accents */
.lr-domain-ut     .lr-domain-summary { border-left: 3px solid var(--orange); }
.lr-domain-ms     .lr-domain-summary { border-left: 3px solid #005ea2; }
.lr-domain-google .lr-domain-summary { border-left: 3px solid #1a6e30; }
.lr-domain-other  .lr-domain-summary { border-left: 3px solid var(--border); }

/* ── TABLE ── */
.lr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.lr-table thead tr { background: var(--off-white); }
.lr-table th {
  padding: 0.5rem 1.25rem; text-align: left;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.lr-table td { padding: 0.55rem 1.25rem; border-bottom: 1px solid #f0ece8; vertical-align: top; }
.lr-table tr:last-child td { border-bottom: none; }
.lr-table tr:hover td { background: var(--off-white); }
.lr-td-url  { width: 40%; word-break: break-all; }
.lr-td-text { width: 20%; color: var(--text-secondary); }
.lr-td-pages { width: 40%; }
.lr-link { color: var(--orange); text-decoration: none; }
.lr-link:hover { text-decoration: underline; }
.lr-page {
  background: var(--orange-faint); color: var(--orange);
  border-radius: 3px; padding: 0.1rem 0.4rem;
  font-size: 0.72rem; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; white-space: nowrap;
}

.lr-hidden { display: none !important; }

@media (max-width: 980px) {
  .ops-hero { padding-left: 24px; padding-right: 24px; }
  .ops-hero-inner, .scope-band { grid-template-columns: 1fr; }
  .main, .ops-band-inner { padding-left: 24px; padding-right: 24px; }
  .lr-search { margin-left: 0; width: 100%; }
}
