/* OPS Hub · OPS Group (companies, jobs, people, money) — layered on site.css, theme-aware via its variables */
.ops { --r: 16px; --gap: 18px; }
.ops .muted { color: var(--muted); }
.ops-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.ops-hero h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.ops-hero p { margin: 4px 0 0; color: var(--muted); }
.ops-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ops-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font: 600 14px/1 Inter, sans-serif; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none !important; cursor: pointer; transition: border-color .15s, transform .15s; }
.ops-btn:hover { border-color: color-mix(in srgb, var(--brand2) 50%, var(--line)); transform: translateY(-1px); }
.ops-btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.ops-btn i { font-size: 13px; opacity: .85; }

/* KPI strip */
.ops-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ops-kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow: hidden; }
.ops-kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ops-kpi .lbl i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.ops-kpi .val { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.ops-kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ops-kpi .delta { font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.ops-kpi.alert { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }

/* layout */
.ops-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 1250px) { .ops-cols { grid-template-columns: minmax(0, 1fr); } }
.ops-sec { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.ops-sec h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.ops-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ops-group + .ops-group { margin-top: 22px; }

/* company tiles */
.ops-cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ops-co { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; text-decoration: none !important; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.ops-co::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); }
a.ops-co:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--c) 45%, transparent); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.ops-co-top { display: flex; gap: 12px; align-items: center; }
.ops-tile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.ops-co-name { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.ops-co-tag { color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.ops-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--brand2)) 13%, transparent); color: color-mix(in srgb, var(--c, var(--brand2)) 80%, var(--text)); }
.ops-chip.grey { --c: var(--muted); } .ops-chip.ok { --c: var(--ok); } .ops-chip.warn { --c: var(--warn); } .ops-chip.bad { --c: var(--bad); }
.ops-co-role { margin-left: auto; align-self: flex-start; }
.ops-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ops-stat { background: var(--surface2); border-radius: 10px; padding: 7px 9px; }
.ops-stat b { display: block; font-size: 17px; line-height: 1.2; }
.ops-stat span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ops-co-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-co-bal { font-weight: 800; font-size: 16px; } .ops-co-bal small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.ops-spark { width: 120px; height: 34px; }
.ops-join { display: flex; gap: 6px; }
.ops-join input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-size: 13px; }

/* side panels */
.ops-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.ops-panel > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.ops-panel > h3 .ops-count { margin-left: auto; }
.ops-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line); text-decoration: none !important; color: inherit; }
.ops-item:last-child { border-bottom: 0; }
a.ops-item:hover { background: var(--surface2); }
.ops-dot { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.ops-t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.ops-s { color: var(--muted); font-size: 12px; line-height: 1.35; }
.ops-r { margin-left: auto; text-align: right; font-size: 12.5px; white-space: nowrap; }
.ops-empty { padding: 18px 16px; color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.ops-empty i { color: var(--ok); }

/* tables in the group pages */
.ops-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.ops-card > .head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ops-card > .head h3 { margin: 0; font-size: 15px; }
.ops-card > .head .sp { margin-left: auto; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ops-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: var(--surface2); }
.ops-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ops-table tr:hover td { background: color-mix(in srgb, var(--surface2) 55%, transparent); }
.ops-table .r { text-align: right; }
.ops-table .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ops-wrap { overflow-x: auto; }

/* company page banner */
.ops-banner { position: relative; border-radius: 20px; padding: 22px 24px; margin-bottom: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 70%, #fff 0%) 0%, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000) 0%, #0b0b1a 100%); }
.ops-banner .row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ops-banner .ops-tile { width: 56px; height: 56px; font-size: 24px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.ops-banner h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.ops-banner p { margin: 2px 0 0; opacity: .8; }
.ops-banner .figs { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.ops-banner .figs div { text-align: right; } .ops-banner .figs b { display: block; font-size: 22px; } .ops-banner .figs span { font-size: 12px; opacity: .75; font-weight: 600; }
.ops-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 18px; }
.ops-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.ops-tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ops-tabs a span { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
