/* ── Tokens ───────────────────────────────────────── */
:root {
  --ink:        #111917;
  --ink-2:      #3d4d46;
  --muted:      #6b7d74;
  --line:       #dde5e0;
  --line-2:     #eef2f0;
  --paper:      #f6f9f7;
  --white:      #ffffff;
  --green:      #0b9268;
  --green-dark: #097554;
  --green-dim:  #e6f5ef;
  --cyan:       #1da8b5;
  --red:        #d84c4c;
  --amber:      #b88700;
  --shadow-sm:  0 1px 3px rgba(17,25,23,.08), 0 1px 2px rgba(17,25,23,.04);
  --shadow-md:  0 4px 16px rgba(17,25,23,.10), 0 1px 4px rgba(17,25,23,.06);
  --shadow-lg:  0 20px 60px rgba(17,25,23,.14);
  --radius:     10px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a     { color: inherit; text-decoration: none; }
button { font: inherit; }
h1,h2,h3,p { overflow-wrap: anywhere; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 0 3px rgba(29,168,181,.2);
}

.nav { display: flex; align-items: center; gap: clamp(16px,3vw,28px); font-size: 14px; font-weight: 600; }
.nav a, .header-action { opacity: .85; transition: opacity 120ms; }
.nav a:hover, .header-action:hover { opacity: 1; }

.header-action {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
}

/* ── Buttons ──────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 120ms, border-color 120ms, opacity 120ms;
}
.button.primary  { color: var(--white); background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost    { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.button.ghost:hover { background: rgba(255,255,255,.14); }

/* ── Eyebrow ──────────────────────────────────────── */
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   LANDING
   ════════════════════════════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-image  { object-fit: cover; transform: scale(1.04); }
.hero-shade  { background: linear-gradient(100deg, rgba(5,14,10,.82) 40%, rgba(5,14,10,.3)), linear-gradient(0deg, rgba(5,14,10,.55), transparent 50%); }

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding-top: 80px;
}
.hero .eyebrow { color: #6ee7c0; }

h1 {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: .96;
  letter-spacing: -.02em;
  font-weight: 900;
}
.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Features strip */
.features-strip {
  background: var(--white);
  padding: clamp(48px,6vw,80px) clamp(18px,4vw,56px);
  border-bottom: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  background: var(--white);
  transition: background 150ms;
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--paper); }

.feature-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--green-dim);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.feature-card p  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Networks section */
.networks-section {
  background: var(--paper);
  padding: clamp(56px,7vw,96px) clamp(18px,4vw,56px);
}
.networks-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,72px);
  align-items: center;
}
.networks-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px,3.5vw,48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 900;
}
.networks-copy p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
}
.network-list { display: grid; gap: 8px; }
.network-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
}
.network-item.pending { opacity: .55; }

.net-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.network-item.active .net-dot  { background: var(--green); box-shadow: 0 0 0 3px rgba(11,146,104,.18); }
.network-item.pending .net-dot { background: var(--muted); }

.net-label { flex: 1; }
.net-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-dim);
  color: var(--green-dark);
}
.net-badge-pending { background: var(--line-2); color: var(--muted); }

.networks-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px,4vw,56px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--muted); }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,16,13,.65);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  width: min(400px,100%);
  border-radius: 14px;
  padding: 32px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: color 120ms, background 120ms;
}
.modal-close:hover { color: var(--ink); background: var(--line-2); }
.modal-logo {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(11,146,104,.3);
}
.modal-logo .brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(255,255,255,.25);
  box-shadow: none;
}
.modal-dialog h2 { margin: 4px 0 8px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.modal-desc { margin: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.modal-login-button { width: 100%; }
.modal-open { overflow: hidden; }

/* ════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════ */

.dashboard-page { background: var(--paper); }

.dashboard-header {
  position: sticky;
  top: 0;
  color: var(--ink) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm) !important;
  backdrop-filter: blur(16px);
}

.dashboard-main {
  min-height: 100vh;
  padding: 80px clamp(18px,4vw,56px) 60px;
}

.dashboard-panel {
  max-width: 1100px;
  margin: 0 auto;
}

.panel-heading {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.panel-heading h1 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.panel-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.55;
}

/* Form */
.check-form {
  display: grid;
  grid-template-columns: 1fr minmax(140px,180px) minmax(140px,190px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 24px;
}
.check-form-url { grid-column: 1; }

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms, box-shadow 150ms;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,146,104,.12);
}

/* ── Network picker ───────────────────────────────── */
.net-picker-wrap {
  position: relative;
  display: grid;
  gap: 6px;
}

.net-picker-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.net-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  transition: border-color 150ms, box-shadow 150ms;
}
.net-picker-btn:hover,
.net-picker-btn[aria-expanded="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,146,104,.12);
}

.net-picker-selected {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.net-picker-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 200ms;
}
.net-picker-btn[aria-expanded="true"] .net-picker-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.net-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 220px;
}
.net-picker-dropdown[hidden] { display: none; }

.net-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: background 120ms;
  border-bottom: 1px solid var(--line-2);
}
.net-opt:last-child { border-bottom: none; }
.net-opt:hover { background: var(--paper); }
.net-opt[aria-selected="true"] { background: var(--green-dim); }

.net-opt-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.net-opt-dot.wifi  { background: var(--cyan); box-shadow: 0 0 0 3px rgba(29,168,181,.18); }
.net-opt-dot.modem { background: var(--green); box-shadow: 0 0 0 3px rgba(11,146,104,.18); }
.net-opt-dot.mode-icon { background: none; box-shadow: none; font-size: 13px; line-height: 1; }

.net-opt-body { display: grid; gap: 3px; flex: 1; min-width: 0; }

.net-opt-name { font-size: 14px; font-weight: 700; }

.net-opt-signal {
  display: flex;
  align-items: center;
  gap: 7px;
}
.net-opt-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.net-opt-offline { color: var(--red); }

.net-opt-check { color: var(--green-dark); flex-shrink: 0; }

/* Signal bars */
.sig-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}
.sig-bar {
  width: 3px;
  border-radius: 1px;
  background: var(--line);
  transition: background 200ms;
}
.sig-bar:nth-child(1) { height: 4px; }
.sig-bar:nth-child(2) { height: 6px; }
.sig-bar:nth-child(3) { height: 8px; }
.sig-bar:nth-child(4) { height: 10px; }
.sig-bar:nth-child(5) { height: 13px; }
.sig-bar.filled { background: var(--green); }

/* Signal in selected button */
.sel-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Result container ─────────────────────────────── */
.result-box { max-width: 1100px; }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.empty-icon { color: var(--line); }
.empty-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.empty-desc  { margin: 0; font-size: 13px; color: var(--muted); opacity: .7; }

/* Status bar (loading / error) */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--white);
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.status-bar.is-error {
  border-color: rgba(216,76,76,.4);
  background: #fff5f5;
  color: var(--red);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.ok   { background: var(--green); }
.status-dot.fail { background: var(--red); }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Subscription summary header */
.sub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.sub-meta { display: grid; gap: 10px; flex: 1; }
.info-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.info-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; min-width: 52px; }

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--paper);
}
.chip-ok { border-color: rgba(11,146,104,.35); color: var(--green-dark); background: var(--green-dim); }

.traffic-bar  { width: 100px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.traffic-fill { height: 100%; border-radius: 3px; background: var(--green); transition: width .4s ease; }

.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

/* Key cards */
.key-cards { display: grid; gap: 8px; }

.key-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 150ms;
}
.key-card:hover { box-shadow: var(--shadow-md); }

.key-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}
.key-card-title { display: grid; gap: 2px; min-width: 0; }
.key-name {
  font-size: 14px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.key-addr {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.key-card-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.tcp-badge { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tcp-badge[data-state="ok"]   { color: var(--green-dark); }
.tcp-badge[data-state="fail"] { color: var(--red); }

.mini-button {
  min-height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink-2);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 120ms, background 120ms, color 120ms;
}
.mini-button:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-dim); }

[data-table-wrap].check-locked [data-check-key] { opacity: .4; pointer-events: none; cursor: default; }
[data-table-wrap].check-locked [data-check-key].can-requeue { opacity: 1; pointer-events: auto; cursor: pointer; }

/* Key result */
.key-card-result:not(:empty) { border-top: 1px solid var(--line-2); }

.res-block { padding: 14px 16px; }

.res-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.status-pill {
  display: inline-flex; align-items: center;
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 12px; font-weight: 800;
  color: var(--white);
  letter-spacing: .01em;
}
.status-pill.ok      { background: var(--green); }
.status-pill.partial { background: var(--amber); }
.status-pill.fail    { background: var(--red); }

.res-score { font-size: 13px; color: var(--muted); }

.res-grid { display: grid; gap: 4px; }
.res-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 7px;
}
.res-row:nth-child(odd) { background: var(--paper); }
.res-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.res-val   { overflow-wrap: anywhere; }

/* Details */
.res-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.res-details summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px; font-weight: 800;
  color: var(--green-dark);
  background: var(--green-dim);
  user-select: none;
  list-style: none;
}
.res-details summary::marker, .res-details summary::-webkit-details-marker { display: none; }
.res-details[open] summary { border-bottom: 1px solid rgba(11,146,104,.2); }

.detail-block { padding: 10px 12px; border-top: 1px solid var(--line); }
.detail-block:first-of-type { border-top: none; }
.detail-title { margin: 0 0 6px; font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.detail-row { display: grid; grid-template-columns: 160px 1fr; gap: 6px; padding: 3px 0; font-size: 12px; border-bottom: 1px solid var(--line-2); }
.detail-row:last-child { border-bottom: none; }
.detail-row strong { color: var(--muted); font-weight: 700; }
.detail-row span   { overflow-wrap: anywhere; }

/* ════════════════════════════════════════════════════
   DASHBOARD v2 — configurator layout
   ════════════════════════════════════════════════════ */

.db-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px clamp(16px, 4vw, 48px) 64px;
  display: grid;
  gap: 14px;
}

.db-block {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.db-block-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* URL block */
.url-form { display: flex; gap: 10px; align-items: center; }
.url-input {
  flex: 1;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 150ms, box-shadow 150ms;
}
.url-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,146,104,.12);
}
.url-status { margin-top: 10px; font-size: 13px; min-height: 18px; }
.url-status--ok      { color: var(--green-dark); font-weight: 600; }
.url-status--error   { color: var(--red); font-weight: 600; }
.url-status--loading { color: var(--muted); }

/* Operator cards */
.op-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.op-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
}
.op-card:hover { border-color: var(--green); background: var(--green-dim); }
.op-card.active {
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 0 3px rgba(11,146,104,.12);
}
.op-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(11,146,104,.2);
}
.op-body { display: grid; gap: 3px; }
.op-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.op-sig { display: flex; align-items: center; gap: 6px; }
.op-sig-text { font-size: 11px; color: var(--muted); font-weight: 600; }
.op-sig-off  { font-size: 11px; color: var(--red);   font-weight: 600; }
.op-check { color: var(--green-dark); flex-shrink: 0; }

/* Configurator */
.cfg-body { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.cfg-group { display: grid; gap: 8px; }
.cfg-group-name {
  font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-chip {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 120ms, background 120ms, color 120ms;
}
.cfg-chip:hover { border-color: var(--green); color: var(--green-dark); }
.cfg-chip.active { border-color: var(--green); background: var(--green-dim); color: var(--green-dark); }

/* Results toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.results-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.button.small { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* Table */
.table-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable thead tr { background: var(--paper); border-bottom: 1.5px solid var(--line); }
.rtable th {
  padding: 9px 14px;
  font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  text-align: left; white-space: nowrap;
}
.rtable td { padding: 9px 14px; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
.rtrow:last-child td { border-bottom: none; }
.rtrow:hover td { background: var(--paper); }

/* Status stripe on server cell */
.rtrow[data-status="ok"]      .tc-server { border-left: 3px solid var(--green); }
.rtrow[data-status="fail"]    .tc-server { border-left: 3px solid var(--red); }
.rtrow[data-status="partial"] .tc-server { border-left: 3px solid var(--amber); }

.tc-server { min-width: 200px; }
.tc-data   { min-width: 90px; white-space: nowrap; }
.tc-action { width: 110px; }

.rk-name {
  display: block; font-weight: 700; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}
.rk-badge {
  display: inline-block; margin-top: 2px;
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--paper);
}

/* Cell values */
.cv-ok   { color: var(--green-dark); font-weight: 700; }
.cv-fail { color: var(--red); font-weight: 700; }
.cv-dim  { color: var(--muted); opacity: .45; }
.cv-meta { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.cv-lats { display: flex; gap: 5px; flex-wrap: wrap; }
.cv-lats span { font-size: 12px; color: var(--ink-2); }

/* Spinner small */
.spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  vertical-align: middle;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .networks-inner { grid-template-columns: 1fr; }
  .networks-visual { order: -1; }
  .networks-visual img { aspect-ratio: 16/7; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .check-form { grid-template-columns: 1fr; }
  .check-form .button { width: 100%; }
  .key-card-head { flex-wrap: wrap; }
  .res-row { grid-template-columns: 1fr; gap: 2px; }
  .res-label { margin-bottom: 0; }
  .detail-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; }
  .sub-header { flex-direction: column; }
}
