.smart-main {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.smart-hero,
.smart-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f3f8f3 100%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-sm);
}

.smart-hero h1 {
  margin-top: 0.55rem;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

.smart-hero p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 68ch;
}

.smart-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.smart-panel {
  margin-top: 1.2rem;
}

.smart-panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.image-preview-wrap {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.6rem;
  background: #f8fbf8;
}

.image-preview-wrap img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0.55rem;
}

#image-meta,
.meta-text {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-card {
  margin-top: 0.9rem;
  background: #f8fcf8;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem;
}

.result-card h3 {
  font-size: 1.15rem;
}

.result-card p,
.result-card li {
  color: var(--muted);
  line-height: 1.7;
}

.result-card ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.chip-list {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid #c9dbc9;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  background: #f0f8f1;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.stack-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.finder-item,
.advisory-item,
.specialist-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.finder-item h3,
.specialist-item h3 {
  font-size: 1.05rem;
}

.finder-item p,
.advisory-item p,
.specialist-item p,
.finder-item li,
.specialist-item li {
  margin: 0.28rem 0;
  color: var(--muted);
  line-height: 1.65;
}

.finder-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finder-actions a {
  font-size: 0.84rem;
  text-decoration: none;
}

.specialist-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.admin-head p {
  margin: 0;
  font-weight: 700;
  color: var(--accent-deep);
}

.admin-section {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.feedback {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #bcd5c0;
  background: #eff8f1;
  color: var(--accent-deep);
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 980px) {
  .smart-main {
    width: 94vw;
    padding: 2.1rem 0 3.2rem;
  }

  .smart-grid,
  .specialist-grid,
  .finder-actions {
    grid-template-columns: 1fr;
  }

  .smart-hero h1 {
    font-size: clamp(1.95rem, 10vw, 3rem);
  }
}

@media (max-width: 640px) {
  .smart-main {
    width: 95vw;
    padding: 1.7rem 0 2.8rem;
  }
}
