:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8edf5;
  background: #0a0d12;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: #0a0d12; color: #e8edf5; }
a { color: #a8c7ff; text-decoration: none; }
button, input { font: inherit; }
button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #e8edf5;
  color: #0a0d12;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: #171c25; color: #d8e0ec; }
.muted { color: #8e99a8; }
.eyebrow { color: #738198; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 48px) 12px;
}
.topbar h1 { margin: 4px 0 0; font-size: clamp(28px, 6vw, 46px); }
.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px clamp(18px, 4vw, 48px) 18px;
  border-bottom: 1px solid #1b2230;
}
.nav span, .nav a { white-space: nowrap; padding: 10px 12px; border-radius: 10px; color: #7f8998; }
.nav .active { background: #171c25; color: #f5f7fb; }
.content { width: min(1100px, 100%); margin: 0 auto; padding: 28px clamp(18px, 4vw, 48px) 60px; }
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 30px;
}
.hero h2 { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 42px); }
.metric { display: grid; text-align: right; }
.metric strong { font-size: 38px; }
.metric span { color: #7f8998; }
.list { display: grid; gap: 12px; }
.opportunity {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid #1b2230;
  border-radius: 18px;
  background: #10151d;
}
.score {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1b2432;
  font-size: 19px;
  font-weight: 850;
}
.source { color: #738198; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.opportunity h3 { margin: 4px 0 7px; font-size: 19px; }
.opportunity p { margin: 8px 0; }
.meta { color: #8e99a8; font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; }
.pay { font-weight: 800; }
.empty { padding: 34px; border: 1px dashed #273144; border-radius: 18px; text-align: center; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #1b2230;
  border-radius: 22px;
  background: #10151d;
}
.login-card h1 { margin: 6px 0; font-size: 36px; }
.stack { display: grid; gap: 12px; margin-top: 24px; }
.stack label { color: #aab4c2; font-size: 14px; }
.stack input {
  min-height: 48px;
  border: 1px solid #2a3445;
  border-radius: 12px;
  background: #0b0f15;
  color: #edf2f8;
  padding: 0 14px;
}
.notice { margin: 18px 0; padding: 12px; border-radius: 12px; }
.danger { background: #2a1518; color: #ffb8bf; }
@media (max-width: 620px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .metric { text-align: left; }
  .opportunity { grid-template-columns: 46px 1fr; padding: 14px; }
  .score { width: 42px; height: 42px; border-radius: 12px; }
  .row { align-items: flex-start; flex-direction: column; }
}

.connector-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #1b2230;
  border-radius: 16px;
  background: #0e131b;
}
.connector-state {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1b2432;
  color: #cbd5e3;
  font-size: 12px;
  font-weight: 800;
}
.connector-state.ok { background: #12301f; color: #a9f0c1; }
.connector-state.error { background: #32171b; color: #ffb8bf; }
.connector-time { color: #7f8998; font-size: 13px; }

.message-card {
  padding: 18px;
  border: 1px solid #1b2230;
  border-radius: 18px;
  background: #10151d;
}
.message-card h3 { margin: 5px 0 8px; font-size: 19px; }
.message-card p { margin: 8px 0; }
.connector-state.waiting {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2a2414;
  color: #f0d58c;
}
