.sgr-lookup { max-width: 860px; margin: 0 auto; padding: 18px 12px; }

.sgr-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  overflow: hidden;
}

.sgr-card--form { padding: 18px; }
.sgr-card--result { margin-top: 16px; padding: 18px; }

.sgr-form-head { margin-bottom: 14px; }
.sgr-title { font-size: 20px; font-weight: 800; letter-spacing: 0.2px; }
.sgr-subtitle { margin-top: 4px; color: rgba(0,0,0,0.6); font-size: 14px; }

.sgr-label { display:block; font-weight: 700; margin: 14px 0 8px; }

.sgr-row { display:flex; gap:10px; align-items: stretch; }
.sgr-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  outline: none;
}
.sgr-row input:focus { border-color: rgba(0,0,0,0.35); }

.sgr-btn {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.sgr-hint { font-size: 12px; color: rgba(0,0,0,0.55); margin-top: 10px; }

.sgr-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  font-weight: 600;
}
.sgr-alert--error {
  background: rgba(255, 0, 0, 0.06);
  border-color: rgba(255, 0, 0, 0.18);
}

.sgr-result-head { margin-bottom: 14px; }
.sgr-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  font-size: 12px;
  font-weight: 700;
}
.sgr-h3 { margin: 10px 0 4px; font-size: 20px; font-weight: 900; }
.sgr-meta { color: rgba(0,0,0,0.6); font-size: 13px; }

.sgr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .sgr-grid { grid-template-columns: 1fr; }
}

.sgr-block {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.02);
}
.sgr-block-title {
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.sgr-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.sgr-kv-row:first-child { border-top: 0; padding-top: 0; }

.sgr-k { color: rgba(0,0,0,0.65); font-weight: 700; }
.sgr-v { font-weight: 900; text-align: right; }

@media (max-width: 520px){
  .sgr-row { flex-direction: column; }
}

/* --- Tennis accent (append at end) --- */
.sgr-lookup{
  --sgr-green: #16a34a;   /* tennis-ish green */
  --sgr-yellow:#facc15;  /* tennis yellow */
}


.sgr-row input:focus{
  border-color: color-mix(in srgb, var(--sgr-green) 55%, #000 0%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sgr-green) 18%, transparent);
}

/* Pill accent */
.sgr-pill{
  border-color: color-mix(in srgb, var(--sgr-green) 25%, rgba(0,0,0,0.10));
  background: color-mix(in srgb, var(--sgr-green) 10%, rgba(0,0,0,0.03));
}

/* Section titles with tiny icons */
.sgr-block-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.sgr-block-title::before{
  content:"";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--sgr-yellow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sgr-green) 18%, transparent);
}

/* Make values pop slightly */
.sgr-v{
  color: #0a2a14;
}
