/* X Following Monitor - Modern Obsidian Glassmorphism Styling */

:root {
  /* Colors */
  --bg-dark: #080c14;
  --bg-slate: #0d131f;
  --glass-bg: rgba(13, 19, 31, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --sidebar-bg: #090e18;
  --input-bg: rgba(9, 14, 24, 0.6);
  --card-bg: rgba(18, 26, 42, 0.45);
  
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --faint: #475569;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.15);
  
  /* Accent Colors */
  --accent: #10b981; /* Neon Mint */
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-glow: 0 0 15px rgba(16, 185, 129, 0.45);
  
  --blue: #0ea5e9; /* Cyber Blue */
  --blue-soft: rgba(14, 165, 233, 0.12);
  --blue-glow: 0 0 15px rgba(14, 165, 233, 0.45);
  
  --green: #10b981;
  --red: #f43f5e; /* Rose Red */
  --red-soft: rgba(244, 63, 94, 0.12);
  --red-glow: 0 0 12px rgba(244, 63, 94, 0.35);
  
  --amber: #f59e0b; /* Golden Amber */
  --amber-soft: rgba(245, 158, 11, 0.12);
  
  /* Shadow & Blur System */
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(16px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Project intelligence center */
.intelligence-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.intelligence-loading {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted, #94a3b8);
}

.intelligence-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(8, 16, 31, 0.98), rgba(12, 25, 45, 0.92));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.2);
}

.intelligence-hero::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -70px;
  width: 230px;
  height: 150px;
  border: 1px solid rgba(96,165,250,.16);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.intelligence-hero h3 {
  margin: 5px 0 8px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.intelligence-hero p {
  max-width: 760px;
  margin: 0;
  color: #9eb0c8;
  line-height: 1.7;
}

.eyebrow {
  color: #60a5fa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.intel-runtime,
.safe-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(52,211,153,.22);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6,78,59,.18);
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52,211,153,.1), 0 0 18px rgba(52,211,153,.7);
}

.intel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.intel-metric {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 15px;
  background: rgba(10,19,34,.82);
}

.intel-metric strong { color: #f8fafc; font-size: 25px; letter-spacing: -.03em; }
.intel-metric span { color: #8292a8; font-size: 12px; }
.intel-metric.accent { border-color: rgba(96,165,250,.32); background: linear-gradient(145deg, rgba(30,64,175,.2), rgba(10,19,34,.9)); }
.intel-metric.danger { border-color: rgba(251,113,133,.32); background: linear-gradient(145deg, rgba(159,18,57,.2), rgba(10,19,34,.9)); }

.intel-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  background: rgba(8,15,27,.82);
}

.intel-nav-btn {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  color: #8fa1b8;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.intel-nav-btn:hover { color: #dbeafe; background: rgba(30,41,59,.65); }
.intel-nav-btn.active { color: #eff6ff; background: #1d4ed8; box-shadow: 0 8px 20px rgba(29,78,216,.24); }

.intel-section { min-width: 0; }
.intel-grid.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 14px; }
.intel-panel { min-width: 0; padding: 18px; border: 1px solid rgba(148,163,184,.12); border-radius: 17px; background: rgba(8,15,27,.78); }
.intel-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; color: #8292a8; font-size: 12px; }
.intel-panel-head h4 { margin: 4px 0 0; color: #f1f5f9; font-size: 17px; }
.intel-event-list, .intel-focus-list, .intel-target-list { display: grid; gap: 8px; }

.intel-event {
  display: grid;
  grid-template-columns: 4px minmax(0,1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 13px;
  background: rgba(15,23,42,.6);
}
.intel-event-mark { width: 4px; height: 100%; min-height: 44px; border-radius: 8px; background: #475569; }
.intel-event.severity-medium .intel-event-mark { background: #f59e0b; }
.intel-event.severity-high .intel-event-mark, .intel-event.severity-critical .intel-event-mark { background: #fb7185; box-shadow: 0 0 16px rgba(251,113,133,.35); }
.intel-event-copy { min-width: 0; }
.intel-event-copy strong { display: block; margin: 5px 0; color: #e8eef8; }
.intel-event-copy p { margin: 0 0 5px; color: #94a3b8; font-size: 12px; line-height: 1.55; }
.intel-event-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.nft-discovery-shell { display: grid; gap: 14px; padding: 2px; }
.nft-discovery-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid rgba(103,232,249,.14);
  border-radius: 18px;
  background: radial-gradient(circle at 92% 10%, rgba(103,232,249,.12), transparent 31%), linear-gradient(135deg, rgba(12,19,31,.98), rgba(8,13,23,.94));
}
.nft-discovery-hero h3 { margin: 5px 0 7px; color: #f8fafc; font-size: clamp(24px,3vw,34px); letter-spacing: -.04em; }
.nft-discovery-hero p { max-width: 760px; margin: 0; color: #8996aa; font-size: 13px; line-height: 1.65; }
.nft-hero-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; }
.nft-wallet-control { min-height: 34px; }
.nft-wallet-connect, .nft-wallet-account, .nft-wallet-disconnect, .nft-wallet-chain { min-height: 34px; border: 1px solid rgba(103,232,249,.2); border-radius: 10px; color: #d9fbff; background: rgba(103,232,249,.08); font-size: 11px; }
.nft-wallet-connect { padding: 0 14px; cursor: pointer; }
.nft-wallet-connect:hover { border-color: rgba(103,232,249,.42); background: rgba(103,232,249,.13); }
.nft-wallet-connected { display: flex; align-items: center; gap: 7px; padding: 5px; border: 1px solid rgba(103,232,249,.16); border-radius: 12px; background: rgba(4,10,18,.68); }
.nft-wallet-connected > span { color: #91a3b8; font-size: 10px; white-space: nowrap; }
.nft-wallet-chain { padding: 0 8px; outline: none; cursor: pointer; }
.nft-wallet-chain option { color: #dce7f5; background: #0b1220; }
.nft-wallet-account { padding: 0 9px; border-color: rgba(139,92,246,.22); color: #d8d0ff; background: rgba(139,92,246,.1); cursor: pointer; }
.nft-wallet-disconnect { min-height: 28px; padding: 0 7px; border-color: rgba(251,113,133,.16); color: #fda4af; background: rgba(251,113,133,.06); cursor: pointer; }
.intel-runtime.is-preview { color: #f3c879; border-color: rgba(245,190,80,.2); background: rgba(118,76,10,.16); }
.intel-runtime.is-preview .status-dot { background: #f5be50; box-shadow: 0 0 0 5px rgba(245,190,80,.1); }
.nft-discovery-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.nft-discovery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,13,22,.72); color: #657188; font-size: 11px; }
.nft-chain-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.nft-chain-filters button { padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; color: #7f8ca1; background: rgba(255,255,255,.025); cursor: pointer; }
.nft-chain-filters button:hover { color: #d5faff; background: rgba(103,232,249,.05); }
.nft-chain-filters button.active { color: #d9fbff; border-color: rgba(103,232,249,.24); background: rgba(103,232,249,.09); }
.nft-discovery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.nft-discovery-card { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 18px; min-height: 228px; padding: 16px; border: 1px solid rgba(203,213,225,.09); border-radius: 18px; background: linear-gradient(145deg,rgba(16,23,36,.98),rgba(9,14,24,.96)); box-shadow: 0 12px 28px rgba(0,0,0,.08); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.nft-discovery-card:hover { transform: translateY(-2px); border-color: rgba(103,232,249,.24); box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.nft-discovery-card.is-new { border-color: rgba(103,232,249,.22); box-shadow: inset 0 1px 0 rgba(103,232,249,.05); }
.nft-discovery-media { position: relative; display: grid; place-items: center; width: 128px; height: 164px; overflow: hidden; border: 1px solid rgba(148,163,184,.08); border-radius: 15px; color: rgba(103,232,249,.42); background: radial-gradient(circle at 35% 25%,rgba(103,232,249,.12),transparent 45%),#0a111d; font-weight: 800; letter-spacing: .14em; }
.nft-discovery-media > span { grid-area: 1 / 1; padding: 8px; font-size: 9px; text-align: center; }
.nft-discovery-media img { z-index: 1; grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; background: #0a111d; }
.nft-discovery-media b { z-index: 2; position: absolute; left: 7px; top: 7px; padding: 4px 6px; border: 1px solid rgba(103,232,249,.32); border-radius: 6px; color: #d7fcff; background: rgba(3,10,17,.82); font-size: 9px; letter-spacing: .08em; }
.nft-discovery-copy { min-width: 0; }
.nft-discovery-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #647188; font-size: 10px; }
.chain-badge { padding: 4px 7px; border-radius: 6px; color: #b9c5d5; background: rgba(148,163,184,.08); font-size: 9px; letter-spacing: .05em; }
.chain-badge.chain-base { color: #91b7ff; background: rgba(59,130,246,.12); }
.chain-badge.chain-robinhood { color: #91f0bf; background: rgba(34,197,94,.11); }
.chain-badge.chain-ethereum { color: #c0b5ff; background: rgba(139,92,246,.12); }
.nft-discovery-copy h4 { display: -webkit-box; min-height: 40px; overflow: hidden; margin: 10px 0 9px; color: #eef6ff; font-size: 15px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nft-mint-quantity { display: flex; align-items: baseline; gap: 7px; }
.nft-mint-quantity strong { color: #67e8f9; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.nft-mint-quantity span { color: #647188; font-size: 10px; }
.nft-supply-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.nft-supply-stats > span { min-width: 0; padding: 8px 9px; border: 1px solid rgba(148,163,184,.1); border-radius: 9px; background: rgba(255,255,255,.026); }
.nft-supply-stats small { display: block; color: #647188; font-size: 9px; }
.nft-supply-stats strong { display: block; overflow: hidden; margin-top: 3px; color: #d6e2f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nft-discovery-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.nft-discovery-facts span { padding: 4px 7px; border-radius: 6px; color: #8190a5; background: rgba(255,255,255,.04); font-size: 9px; }
.nft-discovery-contract-row { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(148,163,184,.08); }
.nft-discovery-copy code { display: block; overflow: hidden; color: #647188; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nft-discovery-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.nft-discovery-primary-links { margin-top: 12px; }
.nft-discovery-links a { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border: 1px solid rgba(103,232,249,.16); border-radius: 8px; color: #9be8f2; background: rgba(103,232,249,.055); font-size: 10px; text-decoration: none; }
.nft-discovery-links a:hover { border-color: rgba(103,232,249,.34); color: #e2fcff; background: rgba(103,232,249,.1); }
.nft-discovery-secondary-links { grid-column: 1 / -1; align-self: end; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(148,163,184,.08); }
.nft-discovery-secondary-links a { min-height: auto; padding: 0; border: 0; color: #718097; background: transparent; }
.nft-discovery-links button { margin-left: auto; border: 0; padding: 0; color: #fb7185; background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.nft-discovery-links button:hover { color: #fecdd3; }
.nft-discovery-links button:disabled { opacity: .45; cursor: wait; }
.intel-category { color: #60a5fa; font-size: 9px; font-weight: 900; letter-spacing: .12em; }

.intel-focus-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(148,163,184,.09);
}
.intel-focus-item:last-child { border-bottom: 0; }
.project-account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.project-account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid rgba(71,213,244,.3); border-radius: 8px; background: rgba(71,213,244,.07); color: #8ceaff; font-size: 12px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.project-account-link:hover { background: rgba(71,213,244,.16); border-color: #47d5f4; }
.project-account-link:focus-visible { outline: 2px solid #47d5f4; outline-offset: 3px; }
.project-account-link.is-disabled { color: #8292a8; border-color: rgba(148,163,184,.18); background: transparent; cursor: default; }
.project-phone-focus { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid rgba(250,204,21,.35); border-radius: 8px; background: rgba(250,204,21,.07); color: #f9d975; font-size: 12px; line-height: 1.4; white-space: normal; cursor: pointer; }
.project-phone-focus:hover:not(:disabled) { background: rgba(250,204,21,.16); border-color: #facc15; }
.project-phone-focus.is-active { border-color: #e7bb32; background: rgba(250,204,21,.18); color: #ffe89e; }
.project-phone-focus:focus-visible { outline: 2px solid #facc15; outline-offset: 3px; }
.project-phone-focus:disabled { opacity: .6; cursor: not-allowed; }
.project-phone-focus[hidden] { display: none; }
.project-phone-notice { margin: 0 0 12px; color: #a8b4c7; font-size: 12px; line-height: 1.7; }
.phone-alert-panel { min-width: 0; }
.phone-alert-metrics { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0; padding: 14px 16px; border: 1px solid rgba(120,150,190,.16); border-radius: 10px; background: rgba(17,30,48,.45); color: #9bacbf; font-size: 13px; }
.phone-alert-metrics strong { margin-left: 7px; color: #eff6ff; font-size: 17px; }
.phone-alert-list { display: grid; gap: 14px; }
.phone-alert-card { min-width: 0; padding: 20px; border: 1px solid rgba(120,150,190,.18); border-left: 3px solid #e9bf56; border-radius: 12px; background: rgba(13,23,37,.8); }
.phone-alert-card-head, .phone-alert-card-footer, .phone-alert-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone-alert-account { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-width: 0; }
.phone-alert-account a { color: #f2f6ff; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.phone-alert-status { display: inline-flex; padding: 5px 9px; border-radius: 7px; font-size: 12px; background: rgba(135,152,179,.12); color: #b7c8e0; }
.phone-alert-status.is-sent { color: #73e4c0; background: rgba(24,175,130,.12); }
.phone-alert-status.is-pending, .phone-alert-status.is-sending { color: #ffda83; background: rgba(220,169,57,.12); }
.phone-alert-status.is-error { color: #ffadb5; background: rgba(232,80,108,.12); }
.phone-alert-reason { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 17px; font-size: 13px; color: #9bacbf; }
.phone-alert-reason strong { color: #ffda83; overflow-wrap: anywhere; }
.phone-alert-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 9px 0 17px; color: #97a8bf; font-size: 12px; line-height: 1.7; }
.phone-alert-copy-label { color: #b7c8de; font-size: 12px; }
.phone-alert-tweet p, .phone-alert-context p { white-space: pre-wrap; overflow-wrap: anywhere; color: #e1e8f3; font-size: 15px; line-height: 1.75; margin: 7px 0 0; }
.phone-alert-context { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(7,14,24,.7); }
.phone-alert-context summary { cursor: pointer; color: #9dddec; font-size: 13px; }
.phone-alert-context p { color: #afbdd1; font-size: 14px; }
.phone-alert-card-footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(120,150,190,.12); }
.phone-alert-pagination { margin-top: 18px; line-height: 1.8; }
.phone-alert-pagination > div { display: flex; flex-wrap: wrap; gap: 8px; }
.phone-alert-error { padding: 12px 14px; margin: 12px 0; color: #ffb2ba; border: 1px solid rgba(242,94,117,.3); border-radius: 8px; background: rgba(160,40,65,.1); line-height: 1.7; font-size: 13px; }
@media (max-width: 640px) {
  .phone-alert-card { padding: 14px; }
  .phone-alert-card-head { align-items: flex-start; }
  .phone-alert-account { flex-direction: column; gap: 4px; }
  .phone-alert-account a { font-size: 16px; }
  .phone-alert-meta { display: grid; gap: 2px; }
  .phone-alert-tweet p { font-size: 14px; }
  .phone-alert-pagination { align-items: flex-start; flex-direction: column; }
  .phone-alert-pagination > div { width: 100%; }
  .phone-alert-pagination button { flex: 1; min-height: 38px; }
}
.project-note-actions { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.project-note-button:disabled { opacity: .6; cursor: not-allowed; }
.project-note-retry { border: 0; background: transparent; color: #8ceaff; padding: 5px 2px; font-size: 12px; cursor: pointer; text-decoration: underline; }
.project-note-preview { margin: 7px 0 12px; padding: 9px 11px; max-width: 680px; border-left: 2px solid rgba(71,213,244,.45); border-radius: 0 7px 7px 0; background: rgba(71,213,244,.035); text-align: left; }
.project-note-preview[hidden] { display: none; }
.project-note-preview > span { color: #8ceaff; font-size: 11px; }
.project-note-preview > p { margin: 4px 0 0 !important; color: #c4cfdf !important; font-size: 12px !important; line-height: 1.65 !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-note-dialog { box-sizing: border-box; width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #294359; border-radius: 16px; background: #0c1420; color: #e9f1fa; box-shadow: 0 24px 90px rgba(0,0,0,.55); overflow-y: auto; }
.project-note-dialog::backdrop { background: rgba(2,7,14,.78); }
.project-note-dialog h3 { margin: 0 0 10px; font-size: 19px; overflow-wrap: anywhere; }
.project-note-dialog .project-note-hint { color: #9aabc0; line-height: 1.65; font-size: 12px; margin: 0 0 18px; }
.project-note-dialog label { display: block; margin-bottom: 8px; font-size: 13px; }
.project-note-dialog textarea { box-sizing: border-box; display: block; width: 100%; min-height: 180px; max-height: 50dvh; resize: vertical; border: 1px solid #2b4259; border-radius: 9px; background: #080f19; color: #e9f1fa; padding: 12px; font: inherit; font-size: 14px; line-height: 1.7; }
.project-note-dialog textarea:focus-visible { outline: 2px solid #47d5f4; outline-offset: 2px; }
.project-note-count { margin: 7px 0 12px; color: #8da1b9; font-size: 11px; text-align: right; }
.project-note-count.is-over-limit { color: #ff8e9c; }
.project-note-status { padding: 10px 12px; border-radius: 8px; background: rgba(250,204,21,.07); color: #e9d292; line-height: 1.6; font-size: 12px; overflow-wrap: anywhere; }
.project-note-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.project-note-dialog-actions button { min-height: 38px; padding: 8px 14px; white-space: normal; }
.project-note-dialog-actions .project-note-reload { margin-right: auto; }
@media (max-width: 520px) {
  .project-note-dialog { padding: 18px; }
  .project-note-dialog textarea { font-size: 16px; }
  .project-note-dialog-actions .project-note-reload { flex-basis: 100%; }
  .project-note-preview { max-width: 100%; }
}
.project-founder-picker { position: relative; }
.project-founder-picker > summary { list-style: none; }
.project-founder-picker > summary::-webkit-details-marker { display: none; }
.project-founder-options { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; display: grid; gap: 6px; min-width: 165px; padding: 8px; background: #101a29; border: 1px solid #314255; border-radius: 10px; box-shadow: 0 6px 20px #0008; }
.intel-focus-item strong { color: #e8eef8; }
.intel-focus-item p { margin: 3px 0 0; color: #8292a8; font-size: 11px; }

.target-type {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.intel-project-form {
  display: grid;
  grid-template-columns: 1.1fr .75fr .9fr 1fr 1fr 1.2fr .55fr auto;
  gap: 8px;
  margin-bottom: 15px;
}
.intel-project-form input, .intel-project-form select,
.intel-target-form input, .intel-target-form select {
  min-width: 0;
  border: 1px solid rgba(148,163,184,.17);
  border-radius: 10px;
  color: #e5edf8;
  background: rgba(2,8,23,.72);
}

.intel-target-form {
  display: grid;
  grid-template-columns: .9fr .65fr .7fr 1.5fr 1fr .65fr auto;
  gap: 8px;
  margin-bottom: 15px;
}
.nft-panel .intel-target-form { grid-template-columns: .9fr .7fr 1.7fr 1fr auto; }

.intel-target-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 13px;
  background: rgba(15,23,42,.55);
}
.intel-target-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #e8eef8; }
.intel-target-card code { display: block; max-width: 720px; overflow: hidden; color: #7dd3fc; font-size: 11px; text-overflow: ellipsis; }
.target-type { color: #c4b5fd; background: rgba(91,33,182,.2); border: 1px solid rgba(167,139,250,.24); }
.type-nft_contract { color: #a7f3d0; background: rgba(4,120,87,.2); border-color: rgba(52,211,153,.25); }
.intel-empty { padding: 28px 18px; border: 1px dashed rgba(148,163,184,.17); border-radius: 13px; color: #73839a; text-align: center; line-height: 1.7; }
.report-copy { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.report-copy p { margin: 0; padding: 15px; border: 1px solid rgba(96,165,250,.12); border-radius: 13px; color: #91a3ba; background: rgba(30,64,175,.08); line-height: 1.65; }
.report-copy strong { color: #dbeafe; }

@media (max-width: 1180px) {
  .intel-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .intel-project-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .intel-target-form, .nft-panel .intel-target-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nft-discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.monitor-health-warning {
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .intelligence-shell { padding: 10px; gap: 11px; }
  .intelligence-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .intel-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intel-grid.two-col { grid-template-columns: 1fr; }
  .intel-project-form, .intel-target-form, .nft-panel .intel-target-form { grid-template-columns: 1fr; }
  .intel-panel { padding: 13px; }
  .intel-event { grid-template-columns: 4px minmax(0,1fr); }
  .intel-event > button { grid-column: 2; justify-self: start; }
  .nft-discovery-grid { grid-template-columns: 1fr; }
  .intel-target-card { align-items: flex-start; }
  .intel-target-card code { max-width: 230px; }
  .report-copy { grid-template-columns: 1fr; }
  .tracked-project-table { min-width: 980px; }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-dark);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg-dark);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}

.confirm-modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 28, 42, 0.98), rgba(10, 15, 25, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 36px rgba(244, 63, 94, 0.09);
  animation: confirm-modal-in 160ms ease-out;
}

.confirm-modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 14px;
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
}

.confirm-modal-eyebrow {
  color: #fb7185;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.confirm-modal-copy h2 {
  margin: 5px 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
}

.confirm-modal-copy > p {
  margin: 0;
  color: var(--muted);
}

.confirm-modal-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(2, 6, 14, 0.48);
}

.confirm-modal-target strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-modal-target span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.confirm-modal-copy .confirm-modal-warning {
  color: #fda4af;
  font-size: 12px;
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.confirm-modal-actions button {
  min-height: 42px;
}

.confirm-delete-button {
  justify-content: center;
  color: #fff;
  background: rgba(190, 24, 55, 0.72);
}

.confirm-delete-button:hover:not(:disabled) {
  background: rgba(225, 29, 72, 0.88);
}

@keyframes confirm-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .confirm-modal-card { padding: 20px; border-radius: 16px; }
  .confirm-modal-actions { grid-template-columns: 1fr; }
  .confirm-modal-actions #cancelDeleteGroup { order: 2; }
}

.auth-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12), transparent 34%),
    rgba(8, 12, 20, 0.96);
}

.auth-view.hidden {
  display: none;
}

.auth-card {
  width: min(380px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(13, 19, 31, 0.9);
  box-shadow: var(--shadow-premium);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.32);
}

.auth-mode-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-switch button.active {
  color: #f8fafc;
  background: rgba(20, 184, 166, 0.18);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.42);
}

.auth-submit {
  min-height: 42px;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
}

.current-account {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* Ambient glow backgrounds */
.ambient-glow {
  position: fixed;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, rgba(14, 165, 233, 0.03) 40%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

p, .small, .meta {
  color: var(--muted);
}

/* Form elements & buttons */
input {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--input-bg);
  outline: none;
  font-size: 13px;
  transition: var(--transition-smooth);
}

input:focus {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

button, a.button-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

button svg, a.button-link svg {
  transition: transform 0.2s ease;
}

button:hover svg, a.button-link:hover svg {
  transform: scale(1.05);
}

button:hover, a.button-link:hover {
  background: var(--glass-border);
  border-color: var(--line-strong);
}

button:disabled, a.button-link:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Premium Primary gradients */
button.primary, a.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

button.primary:hover, a.primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  border-color: transparent;
}

/* Premium Danger elements */
button.danger-btn, a.danger-btn {
  background: var(--red-soft);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--red);
  font-weight: 600;
}

button.danger-btn:hover, a.danger-btn:hover {
  background: var(--red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

/* Secondary Action button styling */
a.sec-btn, button.sec-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

a.sec-btn:hover, button.sec-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  color: var(--muted);
}

.icon-button:hover {
  color: var(--ink);
  background: var(--glass-border);
}

/* Glass panel classes */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  border-radius: 12px;
}

.header-glass {
  background: rgba(13, 19, 31, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-subtle);
  border-radius: 12px;
}

/* Main Page Layout */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.shell.sidebar-collapsed {
  grid-template-columns: 75px minmax(0, 1fr);
}

/* Sidebar Styling */
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  padding: 20px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-text {
  flex: 1;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.brand h1 {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.brand p {
  font-size: 11px;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
}

.sidebar-toggle {
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reload-btn {
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.reload-btn:hover {
  color: var(--accent);
}

.reload-btn:hover svg {
  transform: rotate(180deg);
}

/* Side navigation items */
.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav-item {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.side-nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.side-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.sidebar-label {
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 8px;
  transition: opacity 0.2s ease;
}

/* Collapsed Sidebar Styles */
.shell.sidebar-collapsed .sidebar {
  padding: 20px 10px;
}

.shell.sidebar-collapsed .brand {
  justify-content: center;
}

.shell.sidebar-collapsed .brand-text,
.shell.sidebar-collapsed .reload-btn,
.shell.sidebar-collapsed .sidebar-label,
.shell.sidebar-collapsed .section-title,
.shell.sidebar-collapsed .inline-form,
.shell.sidebar-collapsed .list {
  display: none !important;
}

.shell.sidebar-collapsed .side-nav-item {
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.shell.sidebar-collapsed .side-nav-item.active {
  box-shadow: none;
  border-color: rgba(16, 185, 129, 0.25);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Group Addition inline form */
.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-form input {
  height: 36px;
  flex: 1;
}

.inline-form button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.2);
}

.inline-form button:hover {
  background: var(--accent);
  color: #fff;
}

/* Lists cards in sidebar */
.list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding-right: 2px;
}

.list::-webkit-scrollbar {
  width: 3px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.group-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.group-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.group-item.active {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.group-item .item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.group-item .status {
  font-size: 10px;
}

/* Status Badges */
.status {
  font-size: 11px;
  line-height: 18px;
  border-radius: 99px;
  padding: 1px 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.status.ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.status.error {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.2);
}

.status.stale {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.status.running {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.15);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  }
}

/* Main Dashboard Panel */
.main {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 100vh;
  overflow-y: auto;
}

/* Toolbar Header */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  min-height: 72px;
  flex-wrap: wrap;
}

.toolbar-title h2 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.toolbar-title p {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.compact-group-switcher {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 260px;
}

.compact-group-switcher > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.compact-group-switcher select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 10px;
  color: var(--ink);
  color-scheme: dark;
  background: rgba(5, 8, 14, 0.62);
  outline: none;
  cursor: pointer;
}

.compact-group-switcher select:hover,
.compact-group-switcher select:focus {
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.compact-group-switcher select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.poll-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Modern Checkbox styling */
.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}

.toggle-row input {
  display: none;
}

.custom-checkbox {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.custom-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition-smooth);
}

.toggle-row input:checked + .custom-checkbox {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.toggle-row input:checked + .custom-checkbox::after {
  left: 18px;
}

.interval-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.interval-row input {
  width: 76px;
  height: 32px;
  min-height: 32px;
  text-align: center;
  padding: 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Workspace Panels */
.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.workspace.hot-mode {
  grid-template-columns: minmax(0, 1fr);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

/* Left panel user list form */
.user-form {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.user-form input[type="number"] {
  width: 72px;
  text-align: center;
  padding: 0;
}

.user-form button {
  min-height: 38px;
  width: 38px;
  padding: 0;
  background: var(--blue-soft);
  border-color: rgba(14, 165, 233, 0.2);
  color: var(--blue);
}

.user-form button:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--blue-glow);
}

.user-list {
  padding: 12px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  display: grid;
  gap: 4px;
}

.user-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  transform: translateY(-1px);
}

.user-item.active {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.15);
}

.key-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.key-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.key-copy .item-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.key-copy .item-row > .status,
.key-copy .item-row > .small:last-child {
  margin-left: auto;
}

.key-copy .item-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* User avatar */
.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.avatar-large {
  width: 46px;
  height: 46px;
  font-size: 16px;
  border-width: 1.5px;
}

.avatar-tiny {
  width: 20px;
  height: 20px;
  font-size: 9px;
  border-width: 1px;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #1e293b;
}

.avatar-fallback {
  position: relative;
  z-index: 0;
  line-height: 1;
  font-weight: 700;
  color: #e2e8f0;
}

.avatar:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Header inside detail panel */
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.active-user-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#activeUserName {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

/* Statistical Metric grid dashboard cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 16px 20px;
  background: rgba(9, 14, 24, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.metric::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-smooth);
}

.metric:hover {
  background: rgba(255, 255, 255, 0.02);
}

.metric:hover::after {
  width: 100%;
}

.metric b {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.metric span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

/* Metrics Color codes */
.metric:nth-child(3) b { color: var(--accent); } /* Added */
.metric:nth-child(4) b { color: var(--red); }    /* Removed */
.metric:nth-child(5) b { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; word-break: break-all; } /* Time */

/* Detail tabs styling */
.tabs {
  display: flex;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  min-height: 38px;
  border-radius: 8px 8px 0 0;
  padding: 0 16px;
  transition: var(--transition-smooth);
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.tab.active {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}

/* Controls containers */
.common-controls,
.hot-controls {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.threshold-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.threshold-label input {
  width: 64px;
  height: 32px;
  min-height: 32px;
  text-align: center;
  padding: 0;
}

/* Hot Search design wrapper */
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrapper input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
}

/* Hot Scope dropdown card */
.hot-scope {
  border-bottom: 1px solid var(--line);
  margin: -8px -12px 12px -12px;
  background: rgba(255, 255, 255, 0.01);
}

.hot-scope-toggle {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.hot-scope-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hot-scope-toggle span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hot-scope-toggle strong {
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.hot-scope-toggle small {
  color: var(--muted);
  font-size: 11.5px;
}

.hot-scope-arrow {
  color: var(--muted);
}

.hot-scope-body {
  padding: 4px 16px 12px;
  border-top: 1px solid var(--line);
}

.hot-scope.collapsed .hot-scope-body {
  display: none;
}

.hot-mode-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.07);
  color: #a5f3fc;
  font-size: 12px;
  line-height: 1.55;
}

.hot-activity-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.07);
  color: #a7f3d0;
  font-size: 12px;
  line-height: 1.5;
}

.hot-activity-summary strong {
  color: #ecfdf5;
  white-space: nowrap;
}

.hot-result-section + .hot-result-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hot-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--ink);
}

.hot-section-heading strong {
  font-size: 14px;
}

.hot-section-heading span {
  color: var(--muted);
  font-size: 11.5px;
  text-align: right;
}

@media (max-width: 640px) {
  .hot-activity-summary,
  .hot-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hot-section-heading span {
    text-align: left;
  }
}

/* Window selections in hot window */
.hot-sort-switch {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 12, 0.58);
}

.hot-sort-button {
  min-width: 0;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  transition: var(--transition-smooth);
}

.hot-sort-button:hover {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.08);
}

.hot-sort-button.active {
  color: #06202a;
  background: linear-gradient(135deg, #a5f3fc, #38bdf8);
  box-shadow: 0 7px 18px rgba(34, 211, 238, 0.2);
}

.window-buttons {
  display: inline-flex;
  padding: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.window-button {
  min-height: 28px;
  border-radius: 6px;
  font-size: 12px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
}

.window-button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

.btn-group {
  display: flex;
  gap: 6px;
}

.mini-btn {
  height: 32px;
  min-height: 32px;
  font-size: 12px;
  padding: 0 10px;
}

/* Table Wrapper Views */
.table-wrap {
  padding: 0 20px 16px;
  overflow: auto;
  max-height: calc(100vh - 280px);
}

.workspace.hot-mode #hotView {
  max-height: calc(100vh - 180px);
}

.workspace.hot-mode #trackedProjectsView {
  max-height: calc(100vh - 180px);
}

.tracking-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  padding: 34px 18px;
}

.tracking-empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.tracking-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.tracking-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tracked-projects-panel {
  padding: 16px;
}

.tracked-projects-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.tracked-projects-head h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
}

.tracked-projects-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tracked-project-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 110px minmax(200px, 2fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.tracked-projects-table {
  overflow: auto;
}

.tracked-project-table {
  min-width: 1120px;
}

/* Personal project-library controls stay outside the refreshable table. */
.project-library-toolbar {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  background: rgba(15, 23, 42, .28);
  display: grid;
  gap: 12px;
  min-width: 0;
}
.project-library-toolbar [hidden] { display: none !important; }
.project-library-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 640px; }
.project-library-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 48px; padding: 11px 15px; border: 1px solid #2b3b50; border-radius: 10px; background: #111d2b; color: #a7b8cd; font-size: 13px; text-align: left; }
.project-library-section span { min-width: 0; overflow-wrap: anywhere; }
.project-library-section strong { flex-shrink: 0; padding: 2px 7px; border-radius: 6px; background: #1c2a3c; font-size: 12px; font-variant-numeric: tabular-nums; }
.project-library-section.active { border-color: #67e8f9; background: rgba(34,211,238,.12); color: #d5faff; }
.project-library-section.active strong { background: rgba(34,211,238,.17); color: #a5f3fc; }
.project-library-section:focus-visible { outline: 2px solid #a5f3fc; outline-offset: 3px; }
.project-library-section-hint { margin: 0 0 4px; color: #879db4; font-size: 11px; line-height: 1.6; }
@media (max-width: 540px) {
  .project-library-sections { gap: 5px; }
  .project-library-section { min-height: 54px; padding: 8px; gap: 5px; flex-wrap: wrap; font-size: 12px; }
  .project-library-section strong { padding: 1px 5px; font-size: 11px; }
}
.project-library-search-row,
.project-library-filters,
.project-library-quick,
.project-library-time-row,
.project-library-more-body,
.project-library-batch,
.project-library-results,
.project-library-pagination,
.project-library-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.project-library-toolbar label { font-size: 12px; color: var(--muted); }
.project-library-toolbar input:not([type="checkbox"]),
.project-library-toolbar select {
  min-height: 34px;
  max-width: 100%;
  color: var(--ink);
  background: rgba(15, 23, 42, .52);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 7px;
  padding: 6px 9px;
}
.project-library-toolbar select option { color: #e2e8f0; background: #172033; }
.project-library-search { display: flex; gap: 9px; flex: 1 1 300px; align-items: center; }
.project-library-search input { flex: 1; min-width: 120px; }
.project-library-quick .active { color: #a7f3d0; border-color: rgba(52, 211, 153, .65); background: rgba(16, 185, 129, .15); }
.project-library-filter, .project-library-more { position: relative; }
.project-library-filter > summary, .project-library-more > summary, .project-library-group-manager > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 7px;
}
.project-library-filter[open] > summary { border-color: rgba(52, 211, 153, .55); }
.project-library-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 20;
  min-width: 180px;
  max-width: min(310px, 80vw);
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 10px;
  background: #152135;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.project-library-options label { display: flex; align-items: center; gap: 8px; padding: 6px; color: #e2e8f0; overflow-wrap: anywhere; }
.project-library-options input, .project-library-check input, #projectLibraryMinutePrecision { width: 16px; height: 16px; flex-shrink: 0; accent-color: #34d399; }
.project-library-more[open] { flex-basis: 100%; }
.project-library-more-body { padding: 10px 0 0; }
.project-library-time-row > label, .project-library-dates > label, .project-library-more-body > label { display: flex; align-items: center; gap: 7px; }
.project-library-dates[hidden] { display: none; }
.project-library-dates input:not([type="checkbox"]) { width: 265px; }
.project-library-hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-library-group-manager { border-top: 1px solid rgba(148, 163, 184, .14); padding-top: 10px; }
.project-library-group-manager > summary { width: fit-content; }
.project-library-group-manager form { display: flex; gap: 8px; margin: 10px 0; }
.project-library-group-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 5px 0; }
.project-library-group-row > span { flex: 1; min-width: 80px; overflow-wrap: anywhere; }
.project-library-batch, .project-library-status, .project-library-results { font-size: 12px; }
.project-library-results { justify-content: space-between; border-top: 1px solid rgba(148, 163, 184, .14); padding-top: 10px; }
.project-library-results > label { display: inline-flex; gap: 7px; align-items: center; }
.project-library-pagination { justify-content: flex-end; padding: 16px 0 3px; color: var(--muted); font-size: 12px; }
.project-library-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.project-library-tag { display: inline-flex; padding: 2px 7px; border-radius: 5px; background: rgba(59, 130, 246, .16); color: #bfdbfe; font-size: 11px; overflow-wrap: anywhere; max-width: 180px; }
.project-library-edit-button { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border: 1px solid rgba(71, 213, 244, .5); border-radius: 6px; background: rgba(71, 213, 244, .12); color: #8ceaff; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.project-library-edit-button:hover { background: rgba(71, 213, 244, .22); border-color: #47d5f4; }
.project-library-edit-button:disabled { opacity: .55; cursor: wait; }
/* Project library: identity first, independent activity rounds second. */
#trackedProjectsView[data-intelligence-section="projects"] .intelligence-hero,
#trackedProjectsView[data-intelligence-section="projects"] .intel-metrics { display: none; }
#trackedProjectsView[data-intelligence-section="projects"] .intelligence-shell { padding: 10px; gap: 10px; }
.detail-panel:has(#trackedProjectsView[data-intelligence-section="projects"]:not(.hidden)) > .detail-head { min-height: 0; padding: 10px 18px; }
.detail-panel:has(#trackedProjectsView[data-intelligence-section="projects"]:not(.hidden)) > .detail-head h3 { margin: 0; font-size: 14px; }
.detail-panel:has(#trackedProjectsView[data-intelligence-section="projects"]:not(.hidden)) > .detail-head #activeUserMeta { display: none; }
#trackedProjectsView[data-intelligence-section="projects"] .library-panel-head { margin-bottom: 10px; }
#trackedProjectsView[data-intelligence-section="projects"] .library-panel-head .eyebrow { display: none; }
#trackedProjectsView[data-intelligence-section="projects"] .library-panel-head h4 { font-size: 18px; margin: 0 0 5px; }
#trackedProjectsView[data-intelligence-section="projects"] .library-panel-head p { font-size: 11px; line-height: 1.4; }
.library-panel-head { align-items: flex-start; }
.library-panel-head h4 { font-size: 22px; margin: 5px 0 8px; }
.library-panel-head p { margin: 0; line-height: 1.65; max-width: 640px; }
.project-library-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.project-library-overview > div { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border: 1px solid #243142; border-radius: 8px; background: #101925; }
.project-library-overview strong { font-size: 19px; font-variant-numeric: tabular-nums; color: #e6f4ff; }
.project-library-overview span { font-size: 12px; color: #a7b8ca; }
.project-library-add { margin: 0 0 10px; border: 1px dashed #2a3b4c; border-radius: 8px; padding: 7px 12px; color: #adc2d7; font-size: 11px; }
.project-library-add summary { cursor: pointer; }
.project-library-add .intel-project-form { margin: 14px 0 0; }
.project-library-toolbar { background: #0c141f; border-color: #263445; gap: 8px; padding: 10px 12px; margin: 10px 0; }
.project-library-toolbar .project-library-group-manager { border-top: 0; padding-top: 0; }
.project-library-toolbar .project-library-group-manager > summary { padding: 4px 8px; font-size: 11px; }
.project-library-toolbar .project-library-status { font-size: 10px; color: #8398ae; }
.project-library-toolbar .project-library-status.error-text { color: #fda4af; }
.project-library-more-body > .project-library-time-row, .project-library-more-body > .project-library-hint { flex-basis: 100%; }
.project-library-more-body > .project-library-time-row { padding-top: 10px; border-top: 1px solid #263445; margin-top: 5px; }
.project-library-sort { display: flex; align-items: center; gap: 8px; color: #aebed0; font-size: 12px; }
.project-library-batch[hidden] { display: none; }
.library-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #99abc0; font-size: 12px; padding: 6px 4px 14px; }
.library-list-head label, .library-select { display: flex; align-items: center; gap: 8px; }
.library-list-head input, .library-select input { width: 16px; height: 16px; margin: 0; min-height: 0; accent-color: #49d9ed; }
.library-project-list { display: grid; gap: 16px; }
.library-project-card { border: 1px solid #273445; border-radius: 14px; background: #0e1621; min-width: 0; overflow: hidden; }
.library-project-card:hover { border-color: #3c5369; }
.library-project-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #202c3b; }
.library-project-identity { min-width: 170px; }
.library-project-identity .account-cell { min-width: 0; }
.library-project-labels { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.library-pill { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #304155; border-radius: 5px; color: #b7c9dc; background: #172231; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.library-pill.channel { color: #93daec; background: #102936; border-color: #245061; }
.library-pill.verified { color: #73dfb5; background: #123028; border-color: #24553f; }
.library-pill.warning, .library-research-status.warning { color: #e6bf74; }
.library-pill.status-application_open, .library-pill.status-mint_or_claim_open { color: #8ee3cd; border-color: #2b6255; background: #102f29; }
.library-project-actions { flex-shrink: 0; margin-left: auto; }
.library-project-main { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr); gap: 20px; padding: 14px 18px; }
.library-project-brief, .library-project-opportunities { min-width: 0; }
.library-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: #d8e2ee; line-height: 1.75; margin: 0 0 12px; overflow-wrap: anywhere; }
.library-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #8ca3ba; font-size: 11px; line-height: 1.65; }
.library-meta b { color: #bfcfe0; font-weight: 500; overflow-wrap: anywhere; }
.library-project-brief .project-account-links { margin-top: 9px; }
.library-project-brief .project-library-tags { align-items: center; margin-top: 9px; gap: 6px; }
.library-activity { border: 1px solid #2a3e4d; border-radius: 10px; background: #101e29; padding: 13px 15px; min-width: 0; }
.library-activity.is-ended { background: #121922; border-color: #2a333f; }
.library-activity-heading, .library-activity-heading > div, .library-activity-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.library-activity-heading { justify-content: space-between; }
.library-activity-heading > div { min-width: 0; flex: 1; }
.library-activity-heading strong { font-size: 13px; color: #e4f1f9; overflow-wrap: anywhere; }
.library-activity-costs { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 13px 0 10px; font-size: 11px; color: #91a6bc; line-height: 1.7; }
.library-activity-costs b { color: #d6e3ec; font-weight: 500; margin-left: 4px; }
.library-deadline { color: #acd4e0; font-size: 11px; font-variant-numeric: tabular-nums; }
.library-activity-detail { margin-top: 12px; border-top: 1px solid #283c49; padding-top: 9px; font-size: 11px; color: #9db4c9; }
.library-activity-detail > summary, .library-other-activities > summary, .library-project-details > summary { cursor: pointer; list-style-position: inside; }
.library-activity-detail summary:hover, .library-other-activities summary:hover, .library-project-details summary:hover { color: #a4eef7; }
.library-activity-body { color: #bcccdc; line-height: 1.75; overflow-wrap: anywhere; }
.library-activity-body dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.library-activity-body dt { color: #859db5; }
.library-activity-body dd { margin: 2px 0 0; }
.library-activity-entry { margin: 13px 0; }
.library-recheck-notice { color: #e6bf74; }
.library-activity-history { margin: 14px 0; padding: 10px 0; border-top: 1px solid #2a3e4d; }
.library-activity-history summary { cursor: pointer; }
.library-history-entry { margin-top: 12px; padding-left: 10px; border-left: 2px solid #345065; }
.library-history-entry p { margin: 4px 0; }
.library-activity-evidence { padding-left: 18px; }
.library-activity-evidence blockquote { margin: 5px 0 13px; border-left: 2px solid #365368; padding-left: 10px; color: #98acc0; }
.library-participation { display: flex; align-items: center; gap: 12px; border-top: 1px solid #2a3e4d; padding-top: 12px; }
.library-participation select { max-width: 180px; font-size: 12px; }
.library-other-activities { margin-top: 10px; font-size: 11px; color: #96abc0; }
.library-other-activities .library-activity { margin-top: 10px; }
.library-no-activity { border: 1px dashed #2b3b4a; border-radius: 10px; padding: 17px 18px; color: #879db2; font-size: 11px; }
.library-no-activity > span { display: block; margin-bottom: 7px; }
.library-no-activity strong { font-size: 13px; color: #b0c2d3; font-weight: 500; }
.library-no-activity p { margin: 8px 0 0; line-height: 1.6; }
.library-project-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 0 20px 14px; font-size: 11px; color: #8097ae; }
.library-research-status { margin-left: auto; }
.library-project-details { border-top: 1px solid #233141; padding: 11px 20px; color: #91a9bf; font-size: 11px; background: #0c141e; }
.library-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 14px 0 8px; }
.library-details-grid section { min-width: 0; }
.library-details-grid p { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: #b4c5d5; }
.library-details-grid h5 { font-size: 12px; margin: 0 0 8px; color: #d4e4ef; }
.library-details-grid .project-research-details { margin-top: 12px; }
.library-project-card input:focus-visible, .library-project-card select:focus-visible, .library-project-card summary:focus-visible, .library-project-card button:focus-visible { outline: 2px solid #53d9f1; outline-offset: 3px; }
@media (max-width: 1200px) { .library-project-main { grid-template-columns: minmax(220px,.85fr) minmax(270px,1.15fr); gap: 16px; } .project-library-overview > div { gap: 8px; padding: 12px; } .project-library-overview span { font-size: 11px; } }
@media (max-width: 920px) { .library-project-main { grid-template-columns: 1fr; } .library-project-head { flex-wrap: wrap; } .library-project-labels { order: 4; flex-basis: 100%; padding-left: 28px; } .project-library-overview { grid-template-columns: repeat(2,minmax(0,1fr)); } .library-details-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .library-project-head, .library-project-main { padding: 14px; }
  .library-project-head { display: grid; grid-template-columns: 16px minmax(0, 1fr); grid-template-areas: "select identity" "labels labels" "actions actions"; }
  .library-select { grid-area: select; }
  .library-project-identity { grid-area: identity; min-width: 0; max-width: 100%; overflow: hidden; }
  .library-project-identity .account-cell { max-width: 100%; }
  .library-project-identity .avatar { flex-shrink: 0; }
  .library-project-actions { grid-area: actions; box-sizing: border-box; min-width: 0; width: auto; max-width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
  .library-project-labels { grid-area: labels; min-width: 0; padding-left: 0; }
  .library-project-footer, .library-project-details { padding-left: 14px; padding-right: 14px; }
  .library-activity { padding: 12px; }
  .library-activity-body dl { grid-template-columns: 1fr; }
  .library-list-head > span { display: none; }
  .library-research-status { margin-left: 0; }
  .project-library-sort { width: 100%; }
  .project-library-sort select { flex: 1; min-width: 0; }
}
.project-library-group-dialog { box-sizing: border-box; width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 22px; border: 1px solid #294359; border-radius: 16px; background: #0c1420; color: #e9f1fa; box-shadow: 0 24px 90px rgba(0, 0, 0, .55); overflow-y: auto; }
.project-library-group-dialog::backdrop { background: rgba(2, 7, 14, .78); }
.project-library-group-dialog [hidden] { display: none !important; }
.project-library-group-dialog h3 { margin: 0 0 10px; font-size: 19px; overflow-wrap: anywhere; }
.project-library-dialog-hint, .project-library-dialog-empty { color: #9aabc0; font-size: 12px; line-height: 1.65; }
.project-library-dialog-options { display: grid; gap: 8px; margin: 16px 0; max-height: 38dvh; overflow-y: auto; }
.project-library-dialog-options label, .project-library-dialog-ungrouped { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.project-library-group-dialog input[type="checkbox"] { box-sizing: border-box; width: 17px; height: 17px; min-width: 17px; min-height: 17px; padding: 0; margin: 0; accent-color: #47d5f4; flex-shrink: 0; }
.project-library-group-dialog input:focus-visible, .project-library-group-dialog button:focus-visible { outline: 2px solid #47d5f4; outline-offset: 3px; }
.project-library-dialog-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #9aabc0; font-size: 12px; }
.project-library-dialog-status { padding: 10px 12px; border-radius: 8px; background: rgba(250, 204, 21, .07); color: #e9d292; line-height: 1.6; font-size: 12px; overflow-wrap: anywhere; }
.project-library-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.project-library-dialog-actions button { min-height: 36px; white-space: normal; }
.project-library-dialog-actions #projectLibraryDialogManage { margin-right: auto; }
@media (max-width: 540px) {
  .project-library-group-dialog { padding: 16px; }
  .project-library-dialog-actions #projectLibraryDialogManage, .project-library-dialog-actions #projectLibraryDialogReload { flex-basis: 100%; }
}
.tracked-project-table .project-library-check { min-width: 32px; width: 32px; padding: 12px 8px; }
.project-library-absolute-time { min-width: 165px; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .project-library-toolbar { padding: 11px; }
  .project-library-toolbar > *, .project-library-toolbar label { min-width: 0; max-width: 100%; }
  .project-library-search { flex-basis: 100%; width: 100%; }
  .project-library-search input { width: 0; min-width: 0; }
  .project-library-time-row > label, .project-library-dates, .project-library-dates > label { width: 100%; min-width: 0; }
  .project-library-time-row select, .project-library-dates input:not([type="checkbox"]) { flex: 1; width: 0; min-width: 0; }
  .project-library-batch select { max-width: 55vw; }
  .project-library-group-manager form { flex-wrap: wrap; }
  .project-library-group-manager form input { min-width: 0; width: 100%; flex: 1 1 120px; }
  .project-library-pagination { justify-content: center; }
}

.project-stage,
.alpha-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stage-watching {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stage-warming_up {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.stage-launch_confirmed {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.24);
}

.stage-alpha_ended,
.alpha-ended {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.alpha-open {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.tweet-cell {
  max-width: 280px;
}

.tweet-snippet {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.error-text {
  color: #fca5a5;
}

@media (max-width: 980px) {
  .tracked-project-form {
    grid-template-columns: 1fr 96px;
  }
}

/* Premium Table Redesign */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  min-width: 800px;
  margin-top: -6px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  background: var(--bg-slate);
  z-index: 10;
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--line);
}

tbody tr {
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 2px 0 0 var(--accent);
}

tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
}

tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
}

tbody tr td {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

tbody tr td:first-child {
  border-left: 1px solid var(--line);
}

tbody tr td:last-child {
  border-right: 1px solid var(--line);
}

/* Specific cell formats */
td.description {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12.5px;
}

td.description:hover {
  white-space: normal;
  overflow: visible;
  color: var(--ink);
}

.account-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.account-copy .handle {
  font-weight: 600;
  color: #fff;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-x-link {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.account-x-link svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.account-x-link:hover,
.account-x-link:focus-visible {
  color: #020617;
  border-color: rgba(255, 255, 255, 0.85);
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  outline: none;
}

.account-copy .small {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.key-x-link {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: var(--transition-smooth);
}

.key-x-link:hover {
  color: #fff;
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.14);
}

/* Key Pills layout in tables */
.key-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 300px;
}

.key-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  max-width: 120px;
  transition: var(--transition-smooth);
}

.key-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.2);
}

.key-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-pill.more {
  background: rgba(255, 255, 255, 0.05);
}

/* Rank column */
.rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  font-family: 'Outfit', sans-serif;
}

tr:nth-child(1) .rank { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
tr:nth-child(2) .rank { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); color: #fff; }
tr:nth-child(3) .rank { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); color: #fff; }

/* Quick link to X.com */
.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: var(--transition-smooth);
}

.x-link:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Change added/removed indicators */
.change-added {
  color: var(--accent) !important;
  font-weight: 700;
}

.change-removed {
  color: var(--red) !important;
  font-weight: 700;
}

/* Empty data wrapper */
.empty {
  color: var(--muted);
  padding: 40px 10px;
  text-align: center;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.005);
}

.hidden {
  display: none !important;
}

/* Toast alert notification slide-in */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 400px;
  background: #0f172a;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--accent);
  font-size: 13px;
  z-index: 9999;
  border-left: 4px solid var(--accent);
  animation: slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

@keyframes slide-in {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Spinner element for interactive buttons loading states */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsiveness media queries */
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }
  
  .main {
    padding: 16px;
  }
  
  .workspace {
    grid-template-columns: 1fr;
  }
  
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metric:last-child {
    grid-column: span 2;
  }
}

/* Real-time tweet monitor */
.tweet-monitor-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweet-monitor-head,
.tweet-event-head,
.tweet-watch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tweet-monitor-head p {
  margin: 4px 0 0;
}

.tweet-monitor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tweet-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tweet-sound-toggle.active {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.tweet-sound-toggle.ready {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.tweet-watch-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tweet-pool-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tweet-monitor-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.4fr);
  gap: 16px;
  align-items: start;
}

.tweet-monitor-grid > section {
  min-width: 0;
}

.subsection-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tweet-watch-list,
.tweet-event-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tweet-watch-card,
.tweet-event-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tweet-watch-meta,
.tweet-event-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tweet-event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.tweet-event-card.tweet-event-deleted {
  border-color: rgba(251, 113, 133, 0.34);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(255, 255, 255, 0.025));
}

.tweet-event-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tweet-delete-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.13);
  color: #fda4af;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tweet-event-text {
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.tweet-event-quote {
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  overflow-wrap: anywhere;
  padding-left: 10px;
  word-break: break-word;
  white-space: pre-wrap;
}

.tweet-event-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  overflow: hidden;
  border-radius: 13px;
}

.tweet-event-media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.tweet-event-media-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 11px;
  background: rgba(2, 6, 12, 0.72);
  color: #cffafe;
  text-decoration: none;
}

.tweet-event-media:not(.tweet-event-media-count-1) .tweet-event-media-item {
  aspect-ratio: 16 / 10;
}

.tweet-event-media-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.tweet-event-media-count-1 .tweet-event-media-image {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.tweet-event-media-item:hover .tweet-event-media-image,
.tweet-event-media-item:focus-visible .tweet-event-media-image {
  opacity: 0.94;
  transform: scale(1.015);
}

.tweet-event-media-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(2, 6, 12, 0.76);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tweet-event-media-placeholder {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 18px;
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 750;
}

.tweet-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tweet-open-button:hover,
.tweet-open-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(34, 211, 238, 0.18);
  color: #ecfeff;
}

@media (max-width: 1100px) {
  .tweet-monitor-grid,
  .tweet-watch-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .tweet-monitor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tweet-monitor-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .tweet-event-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tweet-event-head > .account-cell {
    flex: 1 1 190px;
    min-width: 0;
  }

  .tweet-event-status {
    align-items: flex-end;
    flex: 0 1 auto;
    flex-direction: column;
    margin-left: auto;
  }

  .tweet-watch-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tweet-watch-card > div:first-child {
    flex: 1 1 190px;
    min-width: 0;
  }

  .tweet-watch-card > .row-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   2026 visual refresh — focused, editorial command-center styling
   -------------------------------------------------------------------------- */

:root {
  --bg-dark: #070910;
  --bg-slate: #0e131d;
  --sidebar-bg: rgba(8, 11, 18, 0.96);
  --glass-bg: rgba(15, 20, 31, 0.88);
  --glass-border: rgba(203, 213, 225, 0.1);
  --input-bg: rgba(5, 8, 14, 0.72);
  --card-bg: rgba(255, 255, 255, 0.035);
  --ink: #f7f8fb;
  --muted: #8f9aad;
  --faint: #536075;
  --line: rgba(203, 213, 225, 0.085);
  --line-strong: rgba(203, 213, 225, 0.17);
  --border: var(--line);
  --accent: #67e8f9;
  --accent-strong: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.11);
  --accent-glow: 0 0 26px rgba(34, 211, 238, 0.18);
  --blue: #818cf8;
  --blue-soft: rgba(129, 140, 248, 0.12);
  --blue-glow: 0 0 24px rgba(129, 140, 248, 0.2);
  --green: #34d399;
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.1);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.1);
  --shadow-premium: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-subtle: 0 12px 34px rgba(0, 0, 0, 0.2);
  --glass-blur: blur(22px);
  --transition-smooth: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background:
    radial-gradient(circle at 80% -10%, rgba(99, 102, 241, 0.09), transparent 30%),
    radial-gradient(circle at 32% 110%, rgba(34, 211, 238, 0.06), transparent 32%),
    var(--bg-dark);
  font-size: 13px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", "Inter", "Microsoft YaHei", sans-serif;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 11px;
  color: #071016;
  background: linear-gradient(145deg, #d9fbff, #67e8f9 55%, #818cf8);
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.18);
  font: 800 15px/1 "Outfit", sans-serif;
}

/* Authentication */
.auth-view {
  padding: 28px;
  background:
    radial-gradient(circle at 16% 15%, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 84% 85%, rgba(129, 140, 248, 0.1), transparent 28%),
    #070910;
}

.auth-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,.12) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

.auth-shell {
  position: relative;
  width: min(1040px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: 28px;
  background: #0c111a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 48px;
  border-right: 1px solid rgba(203, 213, 225, 0.1);
  background:
    linear-gradient(145deg, rgba(21, 30, 45, 0.86), rgba(8, 12, 20, 0.92)),
    #0c111a;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -240px;
  bottom: -300px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(103,232,249,.025), 0 0 0 112px rgba(129,140,248,.018);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.12);
  filter: blur(65px);
}

.auth-brand,
.auth-mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 700 16px/1 "Outfit", sans-serif;
}

.auth-mobile-brand { display: none; }

.auth-pitch {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-top: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.auth-pitch h1 {
  margin-top: 17px;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.045em;
}

.auth-pitch p {
  max-width: 430px;
  margin: 22px 0 0;
  color: #a9b4c5;
  font-size: 15px;
  line-height: 1.75;
}

.signal-preview {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin-top: 38px;
  padding: 14px;
  border: 1px solid rgba(203,213,225,.12);
  border-radius: 18px;
  background: rgba(5, 8, 14, 0.52);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

.signal-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 4px 11px;
  color: #b8c1cf;
  font-size: 11px;
  font-weight: 700;
}

.live-indicator {
  color: var(--green);
  font-size: 9px;
  letter-spacing: .12em;
}

.live-indicator i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.signal-line {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.signal-line + .signal-line { margin-top: 7px; }
.signal-line.muted-signal { opacity: .62; }

.signal-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103,232,249,.22);
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
}

.signal-line span:nth-child(2) { display: grid; gap: 1px; }
.signal-line strong { color: #eef2f8; font-size: 11px; }
.signal-line small { color: var(--muted); font-size: 9px; }
.signal-line b { color: var(--accent); font-size: 11px; }

.auth-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  margin-top: 22px;
  color: #68758a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.auth-trust-row span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
}

.auth-card {
  width: auto;
  align-content: center;
  gap: 18px;
  padding: 54px 48px;
  border: 0;
  border-radius: 0;
  background: #0c111a;
  box-shadow: none;
}

.auth-heading h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.auth-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-card label { gap: 7px; color: #b7c0cf; font-size: 11px; letter-spacing: .02em; }

.auth-mode-switch {
  gap: 3px;
  padding: 4px;
  border-color: var(--line);
  border-radius: 12px;
  background: #080c13;
}

.auth-mode-switch button {
  min-height: 37px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.auth-mode-switch button.active {
  color: #071016;
  background: #d6faff;
  box-shadow: 0 4px 18px rgba(103,232,249,.12);
}

.auth-card input {
  min-height: 46px;
  border-radius: 11px;
  background: #080c13;
}

.auth-submit {
  min-height: 47px;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 11px;
}

.auth-footnote {
  margin: -4px 0 0;
  color: #596579;
  font-size: 10px;
  text-align: center;
}

/* Shared controls */
input {
  border-radius: 10px;
  min-height: 40px;
  border-color: var(--line);
  background: var(--input-bg);
}

input::placeholder { color: #536075; }

input:focus {
  border-color: rgba(103, 232, 249, 0.62);
  background: rgba(9, 15, 24, 0.95);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.09);
}

button, a.button-link {
  min-height: 38px;
  border-radius: 10px;
  border-color: var(--line);
  font-weight: 600;
}

button:hover, a.button-link:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.065);
  transform: translateY(-1px);
}

button.primary, a.primary {
  color: #061116;
  background: linear-gradient(135deg, #b9f6ff, #67e8f9 52%, #38bdf8);
  box-shadow: 0 9px 24px rgba(34, 211, 238, 0.15);
}

button.primary:hover, a.primary:hover {
  color: #061116;
  background: linear-gradient(135deg, #dcfbff, #67e8f9 58%, #22d3ee);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

.card-glass, .header-glass {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(14, 19, 29, 0.86);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.018);
  backdrop-filter: blur(20px);
}

/* App frame */
.shell { grid-template-columns: 276px minmax(0, 1fr); }
.shell.sidebar-collapsed { grid-template-columns: 80px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 26px;
  padding: 22px 17px;
  border-color: var(--line);
  background: var(--sidebar-bg);
  box-shadow: 16px 0 60px rgba(0,0,0,.14);
}

.brand { gap: 9px; }
.sidebar-brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.brand h1 { font-size: 16px; letter-spacing: -.02em; }
.brand p { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.brand .current-account { color: var(--accent); }
.sidebar-toggle, .reload-btn { width: 30px; height: 30px; min-height: 30px; }

.side-nav { gap: 5px; }
.side-nav-item { min-height: 44px; border-radius: 11px; }
.side-nav-item.active {
  color: #eafcff;
  border-color: rgba(103, 232, 249, 0.16);
  background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(129,140,248,.045));
  box-shadow: inset 2px 0 0 var(--accent);
}

.section-title { color: #657188; font-size: 9px; letter-spacing: .15em; }
.inline-form input { background: rgba(255,255,255,.025); }

.group-item {
  padding: 11px 12px;
  border-radius: 11px;
  background: transparent;
}

.group-item.active {
  border-color: rgba(103,232,249,.16);
  background: rgba(103,232,249,.065);
}

.main {
  gap: 18px;
  padding: 22px 26px 32px;
  max-height: none;
  min-height: 100vh;
  overflow: visible;
}

.toolbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  min-height: 78px;
  padding: 17px 20px;
}

.toolbar-title h2 { font-size: 21px; letter-spacing: -.025em; }
.toolbar-title p { margin: 2px 0 0; color: #69768a; }

.workspace {
  grid-template-columns: minmax(286px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.users-panel, .detail-panel { overflow: hidden; }

.panel-head {
  min-height: 62px;
  padding: 15px 18px;
  border-color: var(--line);
}

.panel-head h3 { color: #9aa6b8; font-size: 11px; letter-spacing: .11em; }
.detail-head h3 { color: #fff; font-size: 18px; letter-spacing: -.02em; text-transform: none; }

.user-form { padding: 12px 14px; }
.user-list { gap: 5px; padding: 9px; max-height: calc(100vh - 190px); }
.user-item { padding: 10px; border-radius: 12px; }
.user-item.active { border-color: rgba(129,140,248,.2); background: rgba(129,140,248,.08); }
.user-item:hover { transform: none; }

.avatar { width: 40px; height: 40px; border-radius: 12px; }
.avatar-large { width: 44px; height: 44px; border-radius: 13px; }
.avatar:hover { transform: none; box-shadow: 0 0 0 3px rgba(103,232,249,.08); }

.summary-grid {
  gap: 10px;
  padding: 14px 16px;
  border-color: var(--line);
  background: rgba(5,8,14,.3);
}

.metric {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.024);
}

.metric::after { display: none; }
.metric:hover { border-color: rgba(103,232,249,.18); background: rgba(103,232,249,.035); }
.metric b { font-size: 22px; letter-spacing: -.03em; }
.metric span { color: #6f7b8f; font-size: 9px; letter-spacing: .1em; }
.metric:nth-child(3) b { color: var(--green); }

.tabs {
  gap: 20px;
  padding: 0 18px;
  overflow-x: auto;
  background: rgba(5,8,14,.18);
}

.tab {
  min-height: 48px;
  padding: 0;
  border-radius: 0;
  color: #727e91;
  font-size: 12px;
}

.tab:hover { background: transparent; transform: none; }
.tab.active {
  color: #dffcff;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  box-shadow: none;
}

.table-wrap {
  padding: 12px 16px 18px;
  max-height: calc(100vh - 245px);
}

table { border-spacing: 0; margin: 0; }
th, td { padding: 12px; }
th {
  top: -12px;
  color: #657188;
  border-bottom: 1px solid var(--line);
  background: rgba(14,19,29,.96);
  font-size: 9px;
  letter-spacing: .12em;
}

tbody tr { background: transparent; }
tbody tr:hover { background: rgba(103,232,249,.025); box-shadow: none; }
tbody tr td,
tbody tr td:first-child,
tbody tr td:last-child {
  border: 0;
  border-bottom: 1px solid rgba(203,213,225,.065);
  border-radius: 0;
}

.account-copy .handle { font-size: 12px; }
.account-copy .small { color: #657188; }

.status {
  height: 21px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: .03em;
}

.key-pill { border-radius: 7px; }
.rank { border-radius: 8px; }

.common-controls, .hot-controls {
  padding: 12px;
  border-radius: 13px;
  background: rgba(5,8,14,.42);
}

.hot-scope { margin: -12px -16px 12px; }
.tracking-empty { border: 1px dashed var(--line); border-radius: 14px; }
.tweet-watch-card, .tweet-event-card { border-radius: 14px; }

.intel-nft-image {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  overflow: hidden;
  border: 1px solid rgba(103,232,249,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.intel-nft-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intel-nft-name { display: block; margin-top: 3px; color: #8fa1b8; font-size: 11px; }

@media (max-width: 520px) {
  .intel-nft-image { width: 58px; height: 58px; flex-basis: 58px; }
  .nft-discovery-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .nft-hero-actions { width: 100%; align-items: flex-start; }
  .nft-wallet-connected { max-width: 100%; flex-wrap: wrap; }
  .nft-discovery-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nft-discovery-toolbar { align-items: flex-start; flex-direction: column; }
  .nft-discovery-grid { grid-template-columns: 1fr; }
  .nft-discovery-card { grid-template-columns: 92px minmax(0,1fr); gap: 12px; min-height: 0; padding: 12px; }
  .nft-discovery-media { width: 92px; height: 122px; }
  .nft-discovery-copy h4 { min-height: 36px; font-size: 13px; }
  .nft-mint-quantity strong { font-size: 25px; }
  .nft-discovery-links button { margin-left: 0; }
}

.empty {
  min-height: 180px;
  border-radius: 14px;
  border-color: rgba(203,213,225,.1);
  color: #657188;
  background: rgba(255,255,255,.012);
}

.toast {
  border: 1px solid rgba(103,232,249,.25);
  border-left: 3px solid var(--accent);
  border-radius: 13px;
  background: rgba(10,15,24,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}

.ambient-glow {
  left: auto;
  right: -10vw;
  width: 55vw;
  background: radial-gradient(circle, rgba(129,140,248,.055), rgba(34,211,238,.025) 42%, transparent 70%);
}

.shell.sidebar-collapsed .sidebar-brand-mark { display: none; }
.shell.sidebar-collapsed .brand { flex-direction: column; }

@media (max-width: 1360px) and (min-width: 761px) {
  .shell { grid-template-columns: 80px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; }
  .sidebar .brand { justify-content: center; }
  .sidebar .brand-text,
  .sidebar .sidebar-brand-mark,
  .sidebar .reload-btn,
  .sidebar .sidebar-label,
  .sidebar .section-title,
  .sidebar .inline-form,
  .sidebar .list { display: none !important; }
  .compact-group-switcher { display: flex; }
  .sidebar .side-nav-item { width: 44px; height: 44px; justify-content: center; padding: 0; margin: 0 auto; }
  .workspace { grid-template-columns: 270px minmax(0, 1fr); }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .metric:last-child { grid-column: span 2; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .workspace { grid-template-columns: 1fr; }
  .users-panel { max-height: 320px; }
  .user-list { max-height: 220px; }
  .table-wrap { max-height: none; }
}

@media (max-width: 760px) {
  .auth-view { padding: 14px; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .auth-showcase { display: none; }
  .auth-card { padding: 30px 24px; }
  .auth-mobile-brand { display: flex; margin-bottom: 18px; }
  .auth-heading h2 { font-size: 27px; }

  .shell, .shell.sidebar-collapsed { display: block; }
  .sidebar, .shell.sidebar-collapsed .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { display: none; }
  .side-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .side-nav-item,
  .shell.sidebar-collapsed .side-nav-item {
    width: 100%;
    height: 40px;
    min-height: 40px;
    gap: 6px;
    justify-content: center;
    padding: 0 6px;
    margin: 0;
  }
  .sidebar-label, .shell.sidebar-collapsed .sidebar-label { display: inline !important; font-size: 10px; }
  .sidebar-section { display: none; }
  .main { min-height: auto; padding: 12px 10px 24px; gap: 12px; }
  .toolbar { position: static; min-height: 0; padding: 14px; border-radius: 14px; }
  .toolbar-title { width: 100%; }
  .compact-group-switcher {
    display: flex;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar-actions { width: 100%; }
  .toolbar-actions > * { flex: 1; }
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .users-panel { max-height: 280px; }
  .user-list { max-height: 180px; }
  .panel-head, .detail-head { align-items: flex-start; flex-direction: column; }
  .detail-head .toolbar-actions { overflow-x: auto; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid .metric:last-child { grid-column: span 2; }
  .tabs { gap: 18px; }
  .table-wrap { max-height: none; }
  .tweet-pool-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-controls { align-items: stretch; }
  .hot-sort-switch { width: 100%; }
  .hot-sort-button { width: 100%; }
  .hot-controls .search-input-wrapper { flex: 1 0 100%; min-width: 0; }
  .hot-controls .window-buttons { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .tweet-event-media { gap: 5px; border-radius: 10px; }
  .tweet-event-media-item { min-height: 92px; border-radius: 9px; }
  .tweet-event-media-play { width: 38px; height: 38px; }
}

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

/* Source-backed project research, shared by overview cards and project library. */
.project-research-details { display: grid; gap: 5px; min-width: 0; margin-top: 10px; font-size: 11px; line-height: 1.7; white-space: normal; }
.project-research-detail { min-width: 0; border: 1px solid rgba(148,163,184,.17); border-radius: 7px; background: rgba(15,23,42,.35); }
.project-research-detail > summary { cursor: pointer; padding: 6px 9px; color: #a7b9cf; overflow-wrap: anywhere; }
.project-research-detail > summary:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; border-radius: 7px; }
.project-research-detail > summary > b { color: #c4d4e6; font-weight: 650; margin-right: 7px; }
.project-research-verdict, .project-research-names { color: #c6d4e6; }
.project-research-type { display: inline-block; margin-left: 5px; padding: 0 5px; border: 1px solid rgba(103,232,249,.2); border-radius: 4px; color: #a5e4ec; font-size: 10px; }
.project-research-status { margin-left: 7px; color: #93a4b9; font-size: 10px; }
.project-research-detail-body { padding: 8px 10px; border-top: 1px solid rgba(148,163,184,.12); color: #9cacc1; overflow-wrap: anywhere; }
.project-research-detail-line { margin-bottom: 4px; white-space: pre-wrap; }
.project-research-detail-body b { color: #acbed3; font-weight: 600; }
.project-research-detail-body a { color: #8cd9e8; text-decoration: none; }
.project-research-detail-body a:hover { text-decoration: underline; }
.project-research-detail-body ul { margin: 5px 0; padding-left: 18px; }
.project-research-detail-body li + li { margin-top: 9px; }
.project-research-detail-body blockquote { margin: 5px 0; padding-left: 8px; border-left: 2px solid rgba(148,163,184,.25); color: #9cacc1; white-space: pre-wrap; }
.project-research-projects strong { display: block; color: #cbd8e8; margin-bottom: 4px; }
.project-research-caution, .project-research-updated { margin-top: 8px; color: #899db5; font-size: 10px; }
.intel-focus-item > div { min-width: 0; flex: 1; }

/* Market-cap board: read-only discovery, independent of project research. */
.workspace.hot-mode #marketCapView { max-height: calc(100vh - 180px); padding-top: 24px; }
.market-board { min-width: 0; color: #e2e8f0; }
.market-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; margin-bottom: 22px; border: 1px solid rgba(103,232,249,.16); border-radius: 16px; background: radial-gradient(ellipse at 95% 5%,rgba(14,116,144,.19),transparent 60%),#0a1421; }
.market-eyebrow { display: block; color: #67e8f9; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.market-hero h3 { color: #f1f5f9; font-size: clamp(20px,2vw,28px); letter-spacing: -.035em; margin: 10px 0; }
.market-hero p { color: #93a4b9; line-height: 1.75; font-size: 12px; margin: 0; }
.market-source-badge { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 30px; border: 1px solid rgba(103,232,249,.2); background: rgba(8,51,68,.5); color: #a5f3fc; font-size: 11px; font-weight: 700; }
.market-source-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #67e8f9; }
.market-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 19px; }
.market-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.market-platforms button { min-height: 33px; padding: 6px 12px; border-radius: 8px; color: #9bacc0; border: 1px solid rgba(148,163,184,.15); background: rgba(15,23,42,.6); font-size: 12px; }
.market-platforms button.active { background: rgba(103,232,249,.13); color: #a5f3fc; border-color: rgba(103,232,249,.45); }
.market-search-tools { display: flex; gap: 8px; align-items: center; }
.market-search-tools input { min-height: 35px; width: 228px; padding: 8px 12px; font-size: 12px; }
.market-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-content: space-between; font-size: 11px; color: #8292a8; margin-bottom: 12px; }
.market-status-line strong { color: #bac8d9; font-size: 12px; font-weight: 600; }
.market-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.market-source { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.12); border-radius: 7px; font-size: 10px; color: #8999af; }
.market-source b { color: #c4d2e2; font-size: 11px; }
.market-source i { width: 5px; height: 5px; background: #a3a3a3; border-radius: 50%; }
.market-source.is-ok i { background: #34d399; }
.market-source.is-error i { background: #fb7185; }
.market-source.is-error > span { color: #fda4af; }
.market-source.is-pending i { background: #fbbf24; }
.market-error { padding: 12px 14px; background: rgba(146,64,14,.12); border: 1px solid rgba(245,158,11,.25); color: #f5ce8b; border-radius: 9px; margin: 12px 0; font-size: 12px; line-height: 1.7; }
.market-table-scroll { overflow: auto; border: 1px solid rgba(148,163,184,.13); border-radius: 12px; }
.market-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: auto; }
.market-table th { background: #0e1725; padding: 13px 12px; color: #93a4b9; font-weight: 600; letter-spacing: 0; white-space: nowrap; font-size: 10px; }
.market-table td { padding: 16px 12px; font-size: 12px; vertical-align: middle; border-bottom: 1px solid rgba(148,163,184,.08); white-space: nowrap; }
.market-table tbody tr:last-child td { border-bottom: 0; }
.market-table tbody tr:hover { background: rgba(103,232,249,.035); }
.market-table .market-number { text-align: right; font-variant-numeric: tabular-nums; }
.market-rank { color: #63758c; width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.market-table tbody .market-rank-leading .market-rank { color: #67e8f9; font-weight: 700; }
.market-token { display: flex; align-items: center; gap: 11px; min-width: 160px; }
.market-token > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.market-token .avatar { height: 36px; width: 36px; flex-shrink: 0; border-radius: 10px; }
.market-token strong { max-width: 185px; overflow: hidden; text-overflow: ellipsis; color: #f1f5f9; font-size: 13px; }
.market-token-name { max-width: 185px; overflow: hidden; text-overflow: ellipsis; color: #7f90a6; font-size: 10px; margin-top: 2px; }
.market-copy { border: 0; background: transparent; padding: 3px 0 0; min-height: 0; line-height: 1.7; font: 10px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; color: #8195ad; }
.market-copy:hover { color: #67e8f9; background: transparent; }
.market-copy span { padding-left: 3px; }
.market-platform-label { display: inline-flex; border: 1px solid rgba(125,211,252,.15); border-radius: 5px; padding: 2px 6px; font-size: 10px; color: #c9e9f4; background: rgba(14,116,144,.08); }
.market-cell-sub { display: block; margin-top: 5px; color: #74879f; font-size: 10px; line-height: 1.5; font-weight: 400; }
.market-cap-value { color: #f1f5f9; font-weight: 700; }
.market-positive { color: #34d399; }
.market-negative { color: #fb7185; }
.market-delayed { color: #e5b66d; }
.market-empty { padding: 50px 18px; text-align: center; color: #8497af; line-height: 1.8; white-space: normal; }
.market-footnote { color: #718399; font-size: 10px; line-height: 1.9; margin: 16px 2px 6px; }
.market-narrative-progress { margin: 0 0 14px; color: #a3b6ce; font-size: 12px; line-height: 1.8; }
.market-narrative-progress.is-unavailable { color: #e5b66d; }
.market-table .market-token-row > td { border-bottom: 0; }
.market-table .market-narrative-row > td { padding: 0 18px 20px 54px; white-space: normal; }
.market-table .market-narrative-row:hover { background: transparent; }
.market-narrative { padding: 14px 18px; border-radius: 9px; border-left: 2px solid rgba(103,232,249,.32); background: rgba(12,30,45,.52); }
.market-narrative-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.market-narrative-status { color: #93c5da; font-size: 11px; font-weight: 650; }
.market-narrative-theme { color: #c5f5fb; padding: 3px 8px; border-radius: 5px; background: rgba(103,232,249,.07); font-size: 12px; overflow-wrap: anywhere; }
.market-narrative p { margin: 9px 0 0; max-width: 1000px; color: #c2cfdf; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.market-narrative-meta { color: #788da7; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.market-narrative-heading .market-narrative-meta { margin-left: auto; }
.market-narrative-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 9px; font-size: 11px; color: #788da7; }
.market-narrative-sources a { color: #80cfdf; text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-narrative-sources a:hover { color: #baf5ff; text-decoration: underline; }
.market-narrative.is-running { border-left-color: #67e8f9; }
.market-narrative.is-retry, .market-narrative.is-insufficient { border-left-color: #b99a54; }
.market-narrative.is-retry .market-narrative-status, .market-narrative.is-insufficient .market-narrative-status { color: #e5c68b; }
.market-narrative.is-failed { border-left-color: #a86070; }
.market-narrative.is-failed .market-narrative-status { color: #fda4af; }
@media (max-width: 900px) {
  .market-hero { padding: 20px; align-items: flex-start; }
  .market-source-badge { display: none; }
  .market-search-tools { width: 100%; }
  .market-search-tools input { flex: 1; width: 0; min-width: 0; }
}
@media (max-width: 760px) {
  .side-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .workspace.hot-mode #marketCapView { max-height: none; padding: 14px 10px; }
  .market-hero { padding: 18px 16px; }
  .market-platforms { gap: 5px; }
  .market-platforms button { padding: 5px 10px; font-size: 11px; }
  .market-status-line { align-items: flex-start; flex-direction: column; }
  .market-table .market-narrative-row > td { padding: 0 12px 16px; }
  .market-narrative { padding: 12px 14px; }
}
