.panel-title h2,
.mini-card h3 {
  margin: 0;
  font-size: 20px;
}

.panel-title p,
.mini-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: block;
  margin-top: 22px;
}

.field > span {
  display: block;
  margin-bottom: 10px;
  color: #dbe4f3;
  font-size: 14px;
  font-weight: 600;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-head > span {
  min-width: 0;
}

select,
input.search-input,
input[type="range"] {
  width: 100%;
}

select,
input.search-input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
  font-size: 15px;
}

input.search-input {
  margin-bottom: 10px;
}

input.search-input::placeholder {
  color: #94a3b8;
}

.field-hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.api-row {
  display: grid;
  gap: 10px;
}

.secondary-button {
  appearance: none;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.14);
  color: #f5f3ff;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.secondary-button.compact {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.22);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.primary-button {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.28), rgba(124, 58, 237, 0.32));
  color: #f8fafc;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.58);
  filter: brightness(1.06);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  filter: none;
}

input[type="range"] {
  accent-color: var(--primary);
}

.range-row strong {
  min-width: 62px;
  text-align: right;
  color: var(--cyan);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.chip-wide {
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
  border-radius: 18px;
}

.chip.active {
  background: var(--primary-soft);
  border-color: rgba(124, 58, 237, 0.42);
  color: #ede9fe;
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-card + .mini-card {
  margin-top: 14px;
}

.status-card {
  padding: 16px 18px;
}

.status-stack {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.status-line {
  display: grid;
  gap: 8px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}

.status-line p {
  margin: 0;
  color: #dbe4f3;
  line-height: 1.7;
}

.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #f5f3ff;
  font-weight: 700;
}

.grade-badge.large {
  min-width: 82px;
  height: 82px;
  font-size: 32px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.9), rgba(91, 33, 182, 0.86));
  box-shadow: 0 18px 32px rgba(91, 33, 182, 0.28);
}

.grade-badge.large[data-level="strong-attack"] {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.82));
  box-shadow: 0 18px 32px rgba(22, 163, 74, 0.28);
}

.grade-badge.large[data-level="scale-up"] {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.82));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.grade-badge.large[data-level="steady"] {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.9), rgba(91, 33, 182, 0.86));
}

.grade-badge.large[data-level="precision"] {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.82));
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.28);
}

.headline-summary {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
}

.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.inline-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.inline-status-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}

.ai-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 700;
}

.ai-status-row small {
  color: var(--muted);
  line-height: 1.6;
}

.insight-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #ede9fe;
  font-size: 12px;
  font-weight: 700;
}

.insight-label.primary {
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hotpot {
  background: #f97316;
}

.restaurant {
  background: #22c55e;
}

.fastfood {
  background: #38bdf8;
}

.tea {
  background: #ec4899;
}

.mall {
  background: #fbbf24;
}
