.uneed-hero {
  padding: 28px;
  border: 1px solid rgba(24, 30, 40, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(51, 122, 183, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 250, 0.82));
  box-shadow: 0 18px 45px rgba(24, 30, 40, 0.08);
  margin-bottom: 24px;
}

[data-theme="dark"] .uneed-hero {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 18%, rgba(78, 154, 241, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(26, 32, 44, 0.92), rgba(12, 17, 24, 0.86));
}

[data-theme="light"] .uneed-home-header {
  background-image:
    linear-gradient(140deg, rgba(8, 30, 48, 0.46), rgba(16, 89, 138, 0.18)),
    url('/img/wallbg.png') !important;
}

#page-header.uneed-home-header #site-info {
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(9, 20, 34, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 46px rgba(5, 15, 25, 0.18);
}

#page-header.uneed-home-header #site-title {
  letter-spacing: 0.03em;
}

#page-header.uneed-home-header #site-subtitle {
  max-width: 760px;
  margin: 0 auto;
}

.uneed-home-panel {
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid rgba(24, 30, 40, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(49, 125, 188, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 250, 0.86));
  box-shadow: 0 20px 44px rgba(24, 30, 40, 0.08);
}

[data-theme="dark"] .uneed-home-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 92% 18%, rgba(49, 125, 188, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(26, 32, 44, 0.94), rgba(12, 17, 24, 0.88));
}

.uneed-home-panel__lead h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.uneed-home-panel__lead p:last-child {
  margin-bottom: 0;
}

.uneed-home-panel__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.uneed-home-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 30, 40, 0.05);
}

.uneed-home-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
}

.uneed-home-stat strong {
  font-size: 18px;
}

.uneed-home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.uneed-home-link {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(31, 111, 159, 0.1);
  color: inherit;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.uneed-home-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 30, 40, 0.08);
  background: rgba(31, 111, 159, 0.16);
}

.uneed-kicker {
  margin: 0 0 8px;
  color: #3577a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.uneed-hero h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.uneed-hero p:last-child {
  margin-bottom: 0;
}

.uneed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.uneed-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uneed-card {
  display: block;
  padding: 20px;
  border: 1px solid rgba(24, 30, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.uneed-card:hover {
  border-color: rgba(53, 119, 168, 0.42);
  box-shadow: 0 18px 36px rgba(24, 30, 40, 0.1);
  transform: translateY(-3px);
}

.uneed-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.uneed-card p {
  margin: 0;
  color: var(--font-color);
  opacity: 0.82;
}

.uneed-ai-console {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin: 24px 0;
}

.uneed-ai-console--single {
  grid-template-columns: minmax(0, 1fr);
}

.uneed-ai-panel {
  padding: 20px;
  border: 1px solid rgba(24, 30, 40, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(24, 30, 40, 0.08);
}

[data-theme="dark"] .uneed-card,
[data-theme="dark"] .uneed-ai-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 36, 48, 0.7);
}

.uneed-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.uneed-ai-panel-head h3,
.uneed-ai-panel-head p {
  margin: 0;
}

.uneed-inline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  opacity: 0.82;
}

.uneed-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.uneed-status {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(53, 119, 168, 0.12);
  color: #3577a8;
  font-size: 12px;
}

.uneed-ai-messages {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: rgba(24, 30, 40, 0.04);
}

.uneed-ai-empty {
  margin: 0;
  opacity: 0.68;
}

.uneed-ai-message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(53, 119, 168, 0.1);
  white-space: pre-wrap;
}

.uneed-ai-message[data-role="assistant"] {
  background: rgba(45, 150, 119, 0.12);
}

.uneed-ai-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.uneed-ai-form textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(24, 30, 40, 0.12);
  border-radius: 14px;
  background: transparent;
  color: inherit;
}

.uneed-ai-form button,
.uneed-ai-panel-head button,
.uneed-prompt-row button,
.uneed-agent-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #1f6f9f;
  color: #fff;
  cursor: pointer;
}

.uneed-prompt-row button {
  padding: 8px 12px;
  background: rgba(31, 111, 159, 0.12);
  color: #1f6f9f;
}

.uneed-agent-list {
  display: grid;
  gap: 12px;
}

.uneed-agent {
  padding: 14px;
  border-radius: 14px;
  background: rgba(24, 30, 40, 0.04);
}

.uneed-agent strong {
  display: block;
  margin-bottom: 6px;
}

.uneed-agent textarea {
  width: 100%;
  resize: vertical;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 30, 40, 0.12);
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.uneed-agent-actions {
  margin-top: 10px;
}

.uneed-agent-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(53, 119, 168, 0.08);
  white-space: pre-wrap;
  min-height: 48px;
}

.uneed-panel-tip {
  margin: 0 0 14px;
  opacity: 0.74;
}

.uneed-agent code {
  font-size: 12px;
}

@media (max-width: 760px) {
  .uneed-grid,
  .uneed-grid-3,
  .uneed-ai-console {
    grid-template-columns: 1fr;
  }

  .uneed-home-panel__meta,
  .uneed-home-actions {
    grid-template-columns: 1fr;
  }

  .uneed-hero {
    padding: 22px;
  }
}
