:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(18, 21, 29, 0.82);
  --panel-solid: #12151d;
  --panel-soft: #161a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.15);
  --text: #f4f6fb;
  --muted: #8d94a4;
  --dim: #626a7a;
  --accent: #c9ff4a;
  --accent-deep: #86b819;
  --blue: #5ca9ff;
  --danger: #ff6b7b;
  --success: #61e7a6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.12;
}

.ambient-one {
  top: -260px;
  right: -120px;
  background: var(--accent);
}

.ambient-two {
  bottom: -360px;
  left: -280px;
  background: #275cff;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 440px);
  padding: 42px;
  border: 1px solid var(--line-bright);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(14, 17, 24, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup h1 {
  margin: 2px 0 0;
  font-size: 31px;
  letter-spacing: -1.3px;
}

.brand-lockup strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-copy {
  margin: 34px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form label {
  color: #c5cad5;
  font-size: 12px;
  font-weight: 650;
}

.input-wrap,
.handle-input {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  transition: 160ms ease;
}

.input-wrap:focus-within,
.handle-input:focus-within {
  border-color: rgba(201, 255, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 255, 74, 0.09);
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.input-wrap input {
  height: 100%;
  padding: 0 16px;
}

input::placeholder {
  color: #575e6c;
}

.primary-button,
.ghost-button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    opacity 150ms ease;
}

.primary-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #0b0e08;
  font-weight: 800;
}

.primary-button:hover {
  background: #d6ff72;
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.form-error {
  min-height: 19px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--dim);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-link {
  display: inline-flex;
  height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active {
  border-color: rgba(201, 255, 74, 0.28);
  background: rgba(201, 255, 74, 0.06);
  color: var(--accent);
}

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

.live-pill {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(97, 231, 166, 0.2);
  border-radius: 999px;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.ghost-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd0db;
  font-size: 12px;
  font-weight: 650;
}

.ghost-button:hover,
.icon-button:hover {
  border-color: rgba(201, 255, 74, 0.32);
  background: rgba(201, 255, 74, 0.07);
  color: var(--accent);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.icon-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-row h2 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.add-target-form {
  display: flex;
  width: min(100%, 470px);
  gap: 10px;
}

.handle-input {
  flex: 1;
  height: 48px;
}

.handle-input span {
  padding-left: 15px;
  color: var(--accent);
  font-weight: 700;
}

.handle-input input {
  height: 100%;
  padding: 0 14px 0 5px;
}

.add-button {
  min-height: 48px;
  justify-content: center;
  margin: 0;
  padding: 0 19px;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.connections-lookup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(201, 255, 74, 0.055), transparent 42%),
    var(--panel);
}

.connections-lookup-copy {
  display: grid;
  min-width: 220px;
  gap: 7px;
}

.connections-lookup-copy > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.connections-lookup-copy h3 {
  margin: 0;
  font-size: 15px;
}

.connections-lookup-copy span {
  color: var(--dim);
  font-size: 10px;
}

.connections-lookup-form {
  display: grid;
  width: min(100%, 590px);
  grid-template-columns: minmax(170px, 1fr) 120px 100px;
  gap: 8px;
}

.connections-lookup-form .handle-input,
.connections-lookup-form .primary-button,
.connections-lookup-form select {
  height: 42px;
  min-height: 42px;
  margin: 0;
}

.connections-lookup-form .primary-button {
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
}

.connections-lookup-form select {
  width: 100%;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  outline: 0;
  background: #11151d;
  color: var(--text);
  cursor: pointer;
}

.connections-lookup-form select:focus {
  border-color: rgba(201, 255, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 255, 74, 0.09);
}

.early-intersection {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(92, 169, 255, 0.06), transparent 44%),
    var(--panel);
}

.early-intersection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.early-intersection-heading h3 {
  margin: 7px 0 0;
  font-size: 16px;
}

.early-intersection-heading p:last-child {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 10px;
}

.intersection-steps {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding-top: 4px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
}

.intersection-steps span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 150ms ease;
}

.intersection-steps span.active {
  border-color: rgba(201, 255, 74, 0.55);
  background: rgba(201, 255, 74, 0.08);
  color: var(--accent);
}

.intersection-steps span.done {
  border-color: rgba(97, 231, 166, 0.3);
  color: var(--success);
}

.intersection-steps i {
  color: var(--dim);
  font-style: normal;
}

.intersection-form {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(330px, 7fr);
  gap: 14px;
  margin-top: 18px;
}

.intersection-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid var(--line);
}

.intersection-page-header h2 {
  margin: 8px 0 7px;
  font-size: clamp(26px, 3vw, 40px);
}

.intersection-page-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.intersection-page-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.intersection-page-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.intersection-page-tabs button.active {
  background: var(--accent);
  color: #0b0e12;
}

.intersection-form label,
.intersection-result-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.intersection-form label > span,
.intersection-result-filters label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.intersection-form label small {
  color: var(--dim);
  font-weight: 500;
}

.intersection-form textarea,
.intersection-form select,
.intersection-result-filters select,
.intersection-result-filters input {
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  outline: 0;
  background: rgba(8, 10, 15, 0.72);
  color: var(--text);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.intersection-form textarea:focus,
.intersection-form select:focus,
.intersection-result-filters select:focus,
.intersection-result-filters input:focus {
  border-color: rgba(201, 255, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 255, 74, 0.08);
}

.intersection-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px 13px;
  font-size: 11px;
  line-height: 1.65;
}

.intersection-form select,
.intersection-result-filters select,
.intersection-result-filters input {
  height: 36px;
  padding: 0 10px;
  font-size: 10px;
}

.intersection-parameters {
  display: grid;
  align-content: start;
  gap: 12px;
}

.intersection-estimate,
.intersection-actions {
  grid-column: 1 / -1;
}

.intersection-estimate {
  padding: 10px 12px;
  border: 1px solid rgba(92, 169, 255, 0.16);
  border-radius: 10px;
  background: rgba(92, 169, 255, 0.04);
  color: var(--dim);
  font-size: 9px;
  line-height: 1.6;
}

.intersection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intersection-run-summary {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 10px;
}

.intersection-run-summary strong {
  color: var(--accent);
}

.intersection-account-progress {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-color: #333a48 transparent;
  scrollbar-width: thin;
}

.intersection-account-head,
.intersection-account-row {
  display: grid;
  min-width: 590px;
  grid-template-columns: minmax(180px, 1fr) 120px 120px 100px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
}

.intersection-account-head {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.45);
  color: var(--dim);
  font-size: 8px;
  font-weight: 800;
}

.intersection-account-row {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.intersection-account-row:last-child {
  border-bottom: 0;
}

.intersection-account-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intersection-account-status {
  color: var(--dim);
}

.intersection-account-status.running {
  color: var(--accent);
}

.intersection-account-status.complete {
  color: var(--success);
}

.intersection-account-status.error {
  color: var(--danger);
}

.intersection-result-panel {
  margin-top: 16px;
}

.intersection-result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.intersection-result-heading h4 {
  margin: 0;
  font-size: 14px;
}

.intersection-result-heading p {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 9px;
}

.following-result-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.following-result-toolbar .intersection-search-label {
  display: grid;
  width: min(320px, 38vw);
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.following-result-toolbar .intersection-search-label input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  outline: 0;
  background: rgba(8, 10, 15, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.following-result-toolbar .ghost-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.intersection-result-filters {
  display: grid;
  width: min(100%, 680px);
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.intersection-score-note {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 2px solid rgba(201, 255, 74, 0.45);
  background: rgba(201, 255, 74, 0.025);
  color: var(--dim);
  font-size: 9px;
  line-height: 1.55;
}

.intersection-results {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-color: #333a48 transparent;
  scrollbar-width: thin;
}

.intersection-result-table-head,
.intersection-result-main {
  display: grid;
  min-width: 1010px;
  grid-template-columns: 48px minmax(210px, 1fr) 94px 92px 120px 140px 112px 92px;
  align-items: center;
  gap: 10px;
}

.intersection-result-table-head {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #11151d;
  color: var(--dim);
  font-size: 8px;
  font-weight: 800;
}

.intersection-result {
  border-bottom: 1px solid var(--line);
}

.intersection-result:last-child {
  border-bottom: 0;
}

.intersection-result-main {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 9px;
}

.intersection-result-rank {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.intersection-result-user {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.intersection-result-user strong,
.intersection-result-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intersection-result-user strong {
  color: var(--text);
  font-size: 10px;
}

.intersection-result-user small {
  color: var(--dim);
  font-size: 8px;
}

.intersection-result-user a:hover strong {
  color: var(--accent);
}

.intersection-score {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.intersection-hit-details {
  min-width: 1010px;
  border-top: 1px solid transparent;
}

.intersection-hit-details[open] {
  border-top-color: var(--line);
  background: rgba(8, 10, 15, 0.32);
}

.intersection-hit-details summary {
  display: none;
}

.intersection-hit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  padding: 10px 70px;
}

.intersection-hit-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 8px;
}

.intersection-hit-list strong {
  color: var(--accent);
}

.intersection-detail-button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 8px;
}

.intersection-detail-button:hover {
  border-color: var(--line-bright);
  color: var(--text);
}

.intersection-empty {
  margin: 0;
  padding: 30px 18px;
  color: var(--dim);
  font-size: 10px;
  text-align: center;
}

.intersection-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 10px;
}

.intersection-pagination .ghost-button {
  justify-self: start;
}

.intersection-pagination .ghost-button:last-child {
  justify-self: end;
}

.intersection-pagination span {
  color: var(--dim);
  font-size: 9px;
}

.intersection-disclaimer {
  margin: 15px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.6;
}

.csv-analyzer {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(201, 255, 74, 0.045), transparent 38%),
    var(--panel);
}

.csv-analyzer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.csv-analyzer-heading h3 {
  margin: 7px 0 0;
  font-size: 16px;
}

.csv-analyzer-heading p:last-child {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 10px;
}

.analysis-dropzone {
  display: grid;
  min-height: 112px;
  margin-top: 16px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(201, 255, 74, 0.3);
  border-radius: 14px;
  outline: 0;
  background: rgba(201, 255, 74, 0.025);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.analysis-dropzone:hover,
.analysis-dropzone:focus-visible,
.analysis-dropzone.dragging {
  border-color: var(--accent);
  background: rgba(201, 255, 74, 0.075);
  transform: translateY(-1px);
}

.analysis-dropzone strong {
  color: var(--text);
  font-size: 12px;
}

.analysis-dropzone small {
  color: var(--dim);
  font-size: 9px;
}

.dropzone-icon {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.analysis-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.analysis-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 240px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-file strong {
  color: var(--muted);
}

.analysis-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 10px;
}

.analysis-summary strong {
  color: var(--accent);
  font-size: 12px;
}

.analysis-summary i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

.analysis-results {
  max-height: 520px;
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-color: #333a48 transparent;
  scrollbar-width: thin;
}

.analysis-table-head,
.analysis-result {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 88px 82px 82px;
  align-items: center;
  gap: 12px;
}

.analysis-table-head {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #11151d;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
}

.analysis-result {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.analysis-result:last-of-type {
  border-bottom: 0;
}

.analysis-result > strong {
  color: var(--accent);
}

.analysis-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.analysis-rank {
  min-width: 24px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.analysis-user a {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.analysis-user a:hover strong {
  color: var(--accent);
}

.analysis-user strong,
.analysis-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-user strong {
  color: var(--text);
  font-size: 11px;
}

.analysis-user small {
  color: var(--dim);
  font-size: 9px;
}

.analysis-limit-note {
  margin: 0;
  padding: 12px;
  color: var(--dim);
  font-size: 9px;
  text-align: center;
}

.stat-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.stat-card::after {
  position: absolute;
  right: -40px;
  bottom: -58px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(50px);
  opacity: 0.07;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.stat-value {
  margin-top: 13px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.stat-foot {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(460px, 1.22fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.count-badge {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.targets-list,
.events-list {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-color: #333a48 transparent;
  scrollbar-width: thin;
}

.target-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.target-card.paused {
  opacity: 0.68;
}

.target-avatar,
.event-avatar {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(201, 255, 74, 0.18), rgba(92, 169, 255, 0.1)),
    var(--panel-soft);
  color: var(--accent);
  font-weight: 800;
}

.target-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.target-main {
  min-width: 0;
}

.target-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.target-name-row a {
  overflow: hidden;
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-name-row a:hover,
.event-account:hover {
  color: var(--accent);
}

.health-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
}

.health-dot.error {
  background: var(--danger);
}

.health-dot.paused {
  background: var(--muted);
}

.target-meta {
  overflow: hidden;
  margin-top: 5px;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-actions {
  display: flex;
  gap: 4px;
}

.text-button {
  padding: 7px 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.text-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.text-button.danger:hover {
  background: rgba(255, 107, 123, 0.08);
  color: var(--danger);
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.022);
}

.event-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.target-avatar img,
.event-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-relation {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.event-person {
  display: grid;
  width: min(100%, 260px);
  min-width: 0;
  align-items: center;
  column-gap: 12px;
}

.event-person.source-person {
  grid-template-columns: minmax(0, 1fr) 44px;
  justify-self: start;
  text-align: left;
}

.event-person.followed-person {
  grid-template-columns: 44px minmax(0, 1fr);
  justify-self: end;
}

.event-person-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.event-person-copy strong,
.event-person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-person-copy strong {
  font-size: 12px;
}

.event-person-copy small {
  color: var(--dim);
  font-size: 10px;
}

.event-person:hover strong {
  color: var(--accent);
}

.event-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.event-arrow span {
  font-size: 26px;
  line-height: 0.8;
}

.event-arrow small {
  margin-top: 6px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.event-summary {
  min-width: 0;
  grid-column: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.13);
}

.event-summary-label {
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.event-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: #9ba2b1;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.event-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.event-metric-button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.event-metric-button:hover {
  border-color: rgba(201, 255, 74, 0.32);
  background: rgba(201, 255, 74, 0.07);
  transform: translateY(-1px);
}

.event-metrics small {
  color: var(--dim);
  font-size: 9px;
}

.event-metrics strong {
  color: #d8dde7;
  font-size: 11px;
}

.connections-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  background: #11151d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  color: var(--text);
}

.connections-dialog::backdrop {
  background: rgba(2, 4, 8, 0.76);
  backdrop-filter: blur(7px);
}

.connections-shell {
  display: flex;
  max-height: min(780px, calc(100vh - 40px));
  flex-direction: column;
}

.connections-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.connections-header h3 {
  margin: 6px 0 0;
  font-size: 18px;
}

.connections-header p:last-child {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 10px;
}

.connections-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.connections-status {
  padding: 40px 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.connections-list {
  overflow-y: auto;
  scrollbar-color: #333a48 transparent;
  scrollbar-width: thin;
}

.connection-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.connection-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.connection-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connection-main {
  min-width: 0;
}

.connection-name {
  display: inline-flex;
  max-width: 100%;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}

.connection-name:hover {
  color: var(--accent);
}

.connection-name span {
  overflow: hidden;
  color: var(--dim);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-counts {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #aab0bd;
  font-size: 10px;
}

.connection-counts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

.connection-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.connections-pagination {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.42);
}

.connections-pagination .ghost-button {
  width: 100%;
}

.connections-pagination .ghost-button:last-child {
  justify-self: end;
}

.connections-pagination span {
  min-width: 64px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.connections-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.events-pagination {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.42);
}

.events-pagination .ghost-button {
  min-width: 72px;
  padding: 8px 12px;
}

.events-pagination span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.events-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.event-side {
  min-width: 82px;
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}

.event-time {
  color: var(--dim);
  font-size: 10px;
}

.delivery-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--success);
  font-size: 9px;
}

.delivery-state.pending {
  color: #f7bf5f;
}

.empty-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  padding: 30px;
  text-align: center;
}

.empty-state h4 {
  margin: 19px 0 7px;
  font-size: 14px;
}

.empty-state p {
  max-width: 290px;
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
}

.empty-orbit {
  position: relative;
  width: 55px;
  height: 55px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}

.empty-orbit::after {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(201, 255, 74, 0.35);
  border-radius: 50%;
  content: "";
}

.empty-orbit span {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translateX(-50%);
}

.compact-empty {
  min-height: 430px;
}

.signal-lines {
  display: flex;
  height: 48px;
  align-items: flex-end;
  gap: 6px;
}

.signal-lines i {
  display: block;
  width: 5px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  opacity: 0.4;
}

.signal-lines i:nth-child(2) {
  height: 42px;
  opacity: 1;
  box-shadow: 0 0 14px rgba(201, 255, 74, 0.45);
}

.signal-lines i:nth-child(3) {
  height: 29px;
  opacity: 0.65;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: #171b24;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  color: #d7dbe4;
  font-size: 12px;
  animation: toast-in 180ms ease;
}

.toast.error {
  border-color: rgba(255, 107, 123, 0.32);
  color: #ffb1ba;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.common-following {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(201, 255, 74, 0.045), transparent 44%),
    var(--panel);
}

#watchlist,
#signal-stream,
#common-new-follow,
#recent-unfollow {
  scroll-margin-top: 82px;
}

.common-following-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.common-following-heading h3 {
  margin: 7px 0 5px;
  font-size: 17px;
}

.common-following-heading p:last-child,
.common-following-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.common-following-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(201, 255, 74, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.common-following-filters {
  display: grid;
  grid-template-columns: 150px 170px minmax(220px, 1fr);
  gap: 10px;
  margin-top: 17px;
}

.common-following-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.common-following-filters select,
.common-following-filters input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  outline: 0;
  background: rgba(8, 10, 15, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 11px;
}

.common-following-filters select:focus,
.common-following-filters input:focus {
  border-color: rgba(201, 255, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 255, 74, 0.08);
}

.common-following-status {
  padding: 22px 4px 8px;
}

.common-following-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.common-project-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 174px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(8, 11, 17, 0.58);
}

.common-project-avatar,
.common-source-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 255, 74, 0.12), rgba(92, 169, 255, 0.09));
  color: var(--accent);
  font-weight: 900;
}

.common-project-avatar {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.common-project-avatar img,
.common-source-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.common-project-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.common-project-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.common-project-title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-project-title span {
  color: var(--muted);
  font-size: 10px;
}

.common-new-label {
  padding: 2px 6px;
  border: 1px solid rgba(97, 231, 166, 0.24);
  border-radius: 999px;
  color: var(--success) !important;
  font-size: 8px !important;
  font-weight: 900;
}

.common-project-bio {
  min-height: 32px;
  margin: 6px 0 8px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.common-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 9px;
}

.common-project-signal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
}

.common-project-followers {
  display: grid;
  gap: 7px;
}

.common-project-followers > strong {
  color: var(--accent);
  font-size: 10px;
}

.common-source-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.common-source-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.signal-source {
  position: relative;
  overflow: visible;
}

.signal-source img {
  border-radius: 50%;
}

.signal-source-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  display: none;
  width: max-content;
  max-width: 245px;
  padding: 9px 10px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(7, 10, 16, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: var(--text);
  transform: translateX(-50%);
  pointer-events: none;
}

.signal-source:hover .signal-source-tooltip,
.signal-source:focus-visible .signal-source-tooltip {
  display: grid;
  gap: 3px;
}

.signal-source-tooltip strong {
  font-size: 10px;
}

.signal-source-tooltip small {
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.4;
}

.recent-unfollowing {
  background:
    linear-gradient(120deg, rgba(255, 93, 118, 0.055), transparent 44%),
    var(--panel);
}

.recent-unfollow-card.quick {
  border-color: rgba(255, 173, 31, 0.35);
  box-shadow: inset 3px 0 0 rgba(255, 173, 31, 0.75);
}

.signal-badge {
  padding: 2px 6px;
  border: 1px solid rgba(255, 93, 118, 0.28);
  border-radius: 999px;
  color: var(--danger) !important;
  font-size: 8px !important;
  font-weight: 900;
}

.signal-badge.quick {
  border-color: rgba(255, 173, 31, 0.32);
  color: rgb(255, 173, 31) !important;
}

.common-source-more {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}

.common-project-link {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.common-project-actions {
  align-self: start;
}

.common-ignore-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
}

.common-ignore-button:hover {
  border-color: var(--line-bright);
  color: var(--danger);
}

.signal-pagination,
.cache-pagination {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.signal-pagination {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.signal-pagination .ghost-button {
  min-width: 78px;
  padding: 8px 12px;
}

.signal-pagination span,
.cache-pagination span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.signal-pagination button:disabled,
.cache-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.cache-picker {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 10, 16, 0.42);
}

.cache-picker-heading,
.cache-picker-controls,
.cache-account-main,
.cache-account-meta,
.cache-account-actions,
.analysis-selection,
.selected-account-chips {
  display: flex;
  align-items: center;
}

.cache-picker-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cache-picker-heading > div {
  display: grid;
  gap: 3px;
}

.cache-picker-heading strong {
  color: var(--text);
  font-size: 13px;
}

.cache-picker-heading small,
.cache-picker-heading > span,
.analysis-selection {
  color: var(--muted);
  font-size: 11px;
}

.cache-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, 140px) auto auto;
  gap: 8px;
  margin-bottom: 10px;
}

.cache-picker-controls input,
.cache-picker-controls select {
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-size: 11px;
}

.cache-picker-controls input:focus,
.cache-picker-controls select:focus {
  border-color: var(--accent);
}

.mini-button,
.cache-row-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.mini-button {
  min-height: 36px;
  padding: 0 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mini-button:hover,
.cache-row-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cache-account-list {
  display: grid;
  gap: 6px;
}

.cache-account-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.4fr) auto;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.cache-account-row:has(input:checked) {
  border-color: rgba(184, 255, 54, 0.3);
  background: rgba(184, 255, 54, 0.045);
}

.cache-account-main {
  min-width: 0;
  gap: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cache-account-main input {
  accent-color: var(--accent);
}

.cache-account-meta {
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 10px;
}

.cache-status-ready {
  color: var(--success);
}

.cache-status-update {
  color: #f2bd5b;
}

.cache-account-actions {
  flex-shrink: 0;
  gap: 5px;
  white-space: nowrap;
}

.cache-row-button {
  flex-shrink: 0;
  padding: 5px 7px;
  white-space: nowrap;
}

.cache-row-button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.cache-pagination {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.cache-pagination .mini-button {
  min-width: 82px;
}

.cache-empty {
  padding: 16px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.analysis-selection {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.selected-account-chips {
  flex-wrap: wrap;
  gap: 6px;
}

.selected-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted-strong);
  font-size: 10px;
}

.selected-account-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.following-parameters {
  grid-template-columns: minmax(180px, 260px);
}

.following-account-head,
.following-intersection .intersection-account-row {
  grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.4fr) 130px 110px;
}

.following-intersection-results {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.following-result {
  display: grid;
  grid-template-columns: 52px minmax(190px, 1.6fr) 130px minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.following-result:last-child {
  border-bottom: 0;
}

.following-result-user {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.following-result-user strong,
.following-result-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-result-user strong {
  color: var(--text);
  font-size: 12px;
}

.following-result-user small,
.following-result-hits {
  color: var(--muted);
  font-size: 10px;
}

.early-hunter-select {
  accent-color: var(--accent);
}

.intersection-result-user:has(.early-hunter-select) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
}

.intersection-result-user > a,
.intersection-result-user > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

@media (max-width: 720px) {
  .cache-picker-controls {
    grid-template-columns: 1fr 1fr;
  }

  .cache-picker-controls input,
  .cache-picker-controls select {
    grid-column: 1 / -1;
  }

  .cache-account-row {
    grid-template-columns: 1fr auto;
  }

  .cache-account-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .following-account-head,
  .following-intersection .intersection-account-row {
    grid-template-columns: 1fr 1.5fr 90px;
  }

  .following-account-head span:last-child,
  .following-intersection .intersection-account-row > :last-child {
    display: none;
  }

  .following-result {
    grid-template-columns: 40px minmax(0, 1fr) 80px;
  }

  .following-result-hits {
    grid-column: 2 / -1;
  }
}

@media (max-width: 920px) {
  .hero-row {
    align-items: stretch;
    flex-direction: column;
  }

  .add-target-form {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .connections-lookup {
    align-items: stretch;
    flex-direction: column;
  }

  .connections-lookup-form {
    width: 100%;
  }

  .early-intersection-heading,
  .intersection-result-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .intersection-form {
    grid-template-columns: 1fr;
  }

  .intersection-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .intersection-page-tabs {
    align-self: flex-start;
  }

  .common-following-list {
    grid-template-columns: 1fr;
  }

  .intersection-result-filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-table-head,
  .analysis-result {
    grid-template-columns: minmax(180px, 1fr) 76px 70px 70px;
  }

  .panel {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .login-shell {
    padding: 18px;
  }

  .login-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .topbar {
    height: 66px;
    padding: 0 16px;
  }

  .topbar .brand-lockup {
    flex: 0 0 38px;
    gap: 0;
  }

  .topbar .brand-lockup > div:last-child {
    display: none;
  }

  .topbar .eyebrow,
  .live-pill {
    display: none;
  }

  .top-nav-link {
    height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .topbar-actions > .ghost-button {
    display: block;
    width: 38px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions > .ghost-button::after {
    content: "TG";
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .dashboard {
    width: calc(100% - 28px);
    padding-top: 36px;
  }

  .hero-row h2 {
    font-size: 36px;
  }

  .add-target-form {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .connections-lookup {
    padding: 16px;
  }

  .early-intersection {
    padding: 16px;
  }

  .intersection-page-tabs {
    width: 100%;
  }

  .intersection-page-tabs button {
    flex: 1 1 50%;
    padding: 0 8px;
  }

  .common-following {
    padding: 16px;
  }

  .common-following-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .common-following-count {
    align-self: flex-start;
  }

  .common-following-filters {
    grid-template-columns: 1fr 1fr;
  }

  .common-following-search-label {
    grid-column: 1 / -1;
  }

  .common-project-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 0;
    padding: 14px;
  }

  .common-project-avatar {
    width: 50px;
    height: 50px;
  }

  .common-project-signal {
    align-items: flex-start;
    flex-direction: column;
  }

  .intersection-steps {
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
  }

  .intersection-actions .primary-button,
  .intersection-actions .ghost-button {
    flex: 1 1 calc(50% - 4px);
  }

  .intersection-result-filters {
    grid-template-columns: 1fr;
  }

  .following-result-toolbar {
    width: 100%;
  }

  .following-result-toolbar .intersection-search-label {
    width: 100%;
  }

  .intersection-result-table-head,
  .intersection-result-main,
  .intersection-hit-details {
    min-width: 980px;
  }

  .intersection-hit-list {
    padding: 10px 56px;
  }

  .csv-analyzer {
    padding: 16px;
  }

  .csv-analyzer-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .csv-analyzer-heading .ghost-button {
    width: 100%;
  }

  .analysis-summary {
    flex-wrap: wrap;
  }

  .analysis-results {
    overflow-x: auto;
  }

  .analysis-table-head,
  .analysis-result {
    width: 540px;
    grid-template-columns: minmax(210px, 1fr) 82px 72px 72px;
  }

  .connections-header {
    align-items: flex-start;
  }

  .connections-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .connections-header-actions .ghost-button {
    width: auto;
    padding: 0 10px;
    font-size: 9px;
  }

  .connections-lookup-copy > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .connections-lookup-form {
    grid-template-columns: 1fr 1fr;
  }

  .connections-lookup-form .handle-input {
    grid-column: 1 / -1;
  }

  .stat-card {
    min-height: 100px;
    padding: 16px;
  }

  .stat-value {
    font-size: 23px;
  }

  .event-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .event-avatar {
    width: 42px;
    height: 42px;
  }

  .event-side {
    display: flex;
    grid-column: 1;
    grid-row: auto;
    align-items: center;
    text-align: left;
  }

  .delivery-state {
    margin: 0 0 0 8px;
  }

  .event-relation {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    gap: 6px;
  }

  .event-person {
    width: 100%;
    column-gap: 5px;
  }

  .event-person.source-person {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .event-person.followed-person {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .event-person-copy strong {
    font-size: 11px;
  }

  .event-arrow span {
    font-size: 22px;
  }

  .target-card {
    padding: 15px 16px;
  }

  .panel {
    min-height: 0;
  }

  .target-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
