:root {
  --bg: #0b1020;
  --card: #141b34;
  --card-2: #0f1630;
  --text: #eef2ff;
  --muted: #a8b0cc;
  --accent: #7c9cff;
  --accent-2: #57d6a4;
  --border: rgba(255,255,255,0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #090d1a 0%, #111933 100%);
  color: var(--text);
}
.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.card {
  background: rgba(20, 27, 52, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  margin-bottom: 18px;
}
.hero {
  display: grid;
  gap: 16px;
}
.notice {
  background: rgba(124, 156, 255, 0.1);
  border: 1px solid rgba(124,156,255,0.25);
  color: #d8e1ff;
  border-radius: 12px;
  padding: 12px 14px;
}
h1, h2, h3 { margin-top: 0; }
.sub { color: var(--muted); }
.grid {
  display: grid;
  gap: 14px;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label {
  display: grid;
  gap: 8px;
  color: #dce3ff;
  font-size: 0.95rem;
}
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
textarea { min-height: 130px; resize: vertical; }
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--accent), #5e79ff);
  color: white;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}
.analysis pre {
  white-space: pre-wrap;
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 12px;
}
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.result {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.pick {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,16,32,0.75);
  padding: 6px 10px;
  border-radius: 999px;
}
.pick input { width: auto; }
.thumb {
  aspect-ratio: 16 / 10;
  background: #0a0f20;
  display: grid;
  place-items: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta {
  padding: 14px;
}
.meta p { margin: 0 0 10px; }
.facts { color: var(--muted); font-size: 0.92rem; }
a { color: #9dc0ff; }
@media (max-width: 720px) {
  .app { padding: 20px 12px 32px; }
  .card { padding: 16px; }
}
