:root {
  color-scheme: dark;
  --bg: #09111f;
  --panel: rgba(11, 20, 38, 0.82);
  --panel-border: rgba(173, 201, 255, 0.14);
  --text: #e8eefc;
  --muted: #9eb0d0;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --card: rgba(15, 26, 48, 0.88);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 30%),
    linear-gradient(180deg, #050a13, var(--bg));
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.subhead,
.results-head p,
label,
#status,
.tip,
.empty {
  color: var(--muted);
}

.subhead {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  padding: 22px;
  margin: 28px 0 36px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  resize: vertical;
  outline: none;
  font: inherit;
  line-height: 1.5;
}

textarea:focus {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  color: #05111f;
  background: linear-gradient(135deg, var(--accent), #c4b5fd);
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.results-head {
  margin-bottom: 18px;
}

.results-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.empty {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.type {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: lowercase;
}

blockquote {
  margin: 0 0 14px;
  font-size: 1.03rem;
  line-height: 1.6;
}

.tip {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1100px);
    padding-top: 24px;
  }

  .panel {
    padding: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}