.lookup-shell {
  max-width: 900px;
}

.lookup-header {
  padding: 34px 38px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, #152959, #245dff);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
}

.lookup-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .72;
}

.lookup-header h1 {
  margin: 8px 0 10px;
  font-size: 38px;
}

.lookup-header p {
  max-width: 680px;
  margin: 0;
  line-height: 1.8;
  color: rgba(255,255,255,.78);
}

.lookup-panel,
.lookup-result,
.source-box {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.dataset-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 15px;
}

.dataset-status.ready {
  background: #eef8f3;
}

.dataset-status.waiting {
  background: #fff7e8;
}

.dataset-status span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dataset-status strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #23a26d;
}

.waiting .status-dot {
  background: #e49b21;
}

.setup-box {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px dashed #c6d1e4;
  border-radius: 14px;
  background: #fafcff;
}

.setup-box p {
  margin: 8px 0;
  color: var(--muted);
}

.setup-box code {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #172033;
  color: white;
  overflow-x: auto;
}

.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.lookup-form label {
  margin: 0;
}

.lookup-form .primary-button {
  margin: 0;
}

.rank-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 25px;
  border-radius: 18px;
  background: #172a56;
  color: white;
}

.rank-hero span,
.rank-hero small {
  display: block;
  color: rgba(255,255,255,.66);
}

.rank-hero strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.rank-main {
  text-align: right;
}

.rank-main strong {
  font-size: 42px;
}

.rank-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 15px;
}

.rank-cards article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.rank-cards span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.rank-cards strong {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 20px;
}

.rank-note {
  margin-top: 18px;
  line-height: 1.8;
}

.rank-note p {
  margin-bottom: 0;
}

.source-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .lookup-form,
  .rank-cards {
    grid-template-columns: 1fr;
  }

  .rank-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-main {
    text-align: left;
  }
}


.control-line-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 15px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f9fd;
}

.control-line-strip > div {
  min-width: 0;
}

.control-line-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.control-line-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .control-line-strip {
    grid-template-columns: 1fr;
  }
}
