* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f3ec;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.card {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.app-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.beta-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a7a4c;
  background: #e3f3ea;
  border-radius: 999px;
  padding: 2px 8px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.disclaimer {
  color: #a15c00;
  background: #fff6e5;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 8px 10px;
  margin: 0 0 20px;
  text-align: left;
}

.disclaimer:empty {
  display: none;
}

/* Question groups */

form {
  text-align: left;
}

.q-group {
  margin: 0 0 16px;
}

.q-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

.q-hint {
  font-weight: 400;
  color: #888;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  margin: 0;
  padding: 7px 12px;
  background: #f2edfa;
  color: #5b3fa0;
  border: 1px solid #ddd0f2;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  background: #e7dcf5;
}

.chip.active {
  background: #8a63d2;
  color: #fff;
  border-color: #8a63d2;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

input[type="number"] {
  padding: 10px 11px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.88rem;
  min-width: 0;
  width: 100%;
}

button#find-btn {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1a7a4c;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button#find-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#status {
  min-height: 1.2em;
  color: #a12626;
  font-size: 0.85rem;
  text-align: center;
}

/* Results */

#result {
  margin-top: 20px;
  text-align: left;
  outline: none;
}

.result-note {
  background: #fff6e5;
  color: #a15c00;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #eee;
  border-radius: 10px;
  padding: 4px;
  margin: 0 0 14px;
}

.result-tab {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #666;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-tab.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.combo-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: #fff;
}

.curated-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1a7a4c;
  margin: 0 0 6px;
}

.combo-card-curated {
  border: 1px solid #b7ddc7;
  background: #f4fbf7;
}

.curated-why {
  font-size: 0.8rem;
  color: #2f5540;
  line-height: 1.45;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #d7ecdf;
}

.curated-why strong {
  color: #1a7a4c;
}

.combo-body {
  font-weight: 700;
  font-size: 0.98rem;
  color: #1a1a1a;
  margin: 0 0 2px;
}

.combo-body-meta {
  font-size: 0.76rem;
  color: #888;
  margin: 0 0 10px;
}

.tag-discontinued {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #a15c00;
  background: #fff0d1;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.lens-option {
  border-top: 1px solid #f0f0f0;
  padding: 10px 0 0;
  margin: 10px 0 0;
}

.lens-option:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.lens-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: #1a1a1a;
}

.alert-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b5540a;
  background: #ffe9d6;
  border-left: 3px solid #e8720f;
  border-radius: 4px;
  padding: 6px 9px;
  margin: 6px 0 0;
  line-height: 1.35;
}

.lens-rationale {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.4;
  margin: 3px 0 0;
}
