:root {
  --bg: #eceef2;
  --bg-soft: #f3f4f8;
  --text: #11131a;
  --muted: rgba(17, 19, 26, 0.62);
  --line: rgba(17, 19, 26, 0.14);
  --card: rgba(255, 255, 255, 0.66);
  --accent: #274f8d;
  --accent-2: #65d8df;
  --shadow: 0 24px 56px rgba(13, 19, 34, 0.14);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(980px 700px at 82% 22%, rgba(83, 117, 226, 0.17), transparent 62%),
    radial-gradient(760px 600px at 72% 39%, rgba(101, 216, 223, 0.21), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.floating-blob {
  position: fixed;
  right: -180px;
  top: 160px;
  width: 610px;
  height: 610px;
  border-radius: 50%;
  background: radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.5), rgba(126, 157, 242, 0.5) 50%, rgba(48, 85, 173, 0.78) 70%, rgba(32, 45, 78, 0.9));
  box-shadow: inset -50px -50px 120px rgba(25, 43, 93, 0.6);
  filter: blur(0.3px);
  pointer-events: none;
}
.app-shell {
  width: min(1180px, 96vw);
  height: min(900px, 97vh);
  margin: 1.5vh auto;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 38px;
  height: 26px;
  border: 3px solid;
  border-color: #2f58a5 #6b51bf #2ec4d0 #6b51bf;
  border-radius: 999px;
  transform: rotate(-26deg);
  background: transparent;
}
.brand-name { font-weight: 700; font-size: 1.85rem; line-height: 1; }
.brand-tag, .muted { color: var(--muted); }
.topbar-actions { display: flex; gap: 10px; }
.screen-wrap { flex: 1; overflow: hidden; }
.screen { display: none; height: 100%; }
.screen.active { display: block; }
.center-wrap {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 560px) minmax(260px, 1fr);
  gap: 30px;
  align-items: center;
  padding: 18px 40px 40px;
}
.auth-content {
  max-width: 540px;
  display: grid;
  gap: 22px;
}
.auth-content h1 {
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0;
}
.accent-word { color: var(--accent); }
.auth-subtitle {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: -0.012em;
}
.auth-cta {
  width: min(460px, 100%);
  justify-content: center;
}
.orb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.orb-core {
  position: absolute;
  right: -80px;
  top: 9%;
  width: clamp(340px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(250, 252, 255, 0.95), rgba(123, 159, 239, 0.62) 34%, rgba(70, 114, 209, 0.84) 68%, rgba(28, 44, 85, 0.94));
  box-shadow: inset -40px -44px 120px rgba(24, 36, 76, 0.6), 0 20px 60px rgba(24, 36, 76, 0.32);
}
.orb-core::after {
  content: '';
  position: absolute;
  left: 8%;
  top: 34%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 255, 255, 0.8), rgba(112, 221, 255, 0.1) 66%, transparent 80%);
}
.orb-arc {
  position: absolute;
  top: -4%;
  right: 4%;
  width: 120%;
  height: 120%;
  border: 3px solid rgba(33, 53, 99, 0.78);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(27deg);
}
.stack-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 20px;
}
.auth-panel { width: min(460px, 96%); }
h1, h2, h3 { margin-top: 0; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1.03rem;
  font-weight: 620;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(92deg, #111729, #111929 40%, #132338);
  color: #fff;
}
.btn-ghost { background: rgba(255, 255, 255, 0.75); border-color: var(--line); color: var(--text); }
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 700;
}
.status { min-height: 1.2rem; color: var(--muted); margin: 0; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 11px 13px;
  border-radius: 14px;
  text-align: left;
}
.chip[aria-pressed="true"] {
  border-color: rgba(106, 168, 255, 0.7);
  background: rgba(106, 168, 255, 0.16);
}
.panel-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: flex-end; }
.followup-host { margin-top: 14px; display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
}
.activation { text-align: center; padding: 36px 20px; }
.main-layout { height: 100%; padding: 20px; overflow: auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); padding: 8px 14px; border-radius: 999px; }
.tab.is-active { background: rgba(106, 168, 255, 0.18); border-color: rgba(106, 168, 255, 0.5); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.score-pill {
  border: 1px solid rgba(36, 180, 126, 0.3);
  background: rgba(36, 180, 126, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
.card-grid { margin: 14px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.score-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, 0.74); }
.suggestion-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.question-label { font-size: 1.1rem; font-weight: 600; }
@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }
  .orb-wrap {
    min-height: 220px;
  }
  .orb-core {
    right: -20px;
    top: -40px;
    width: min(420px, 80vw);
  }
}
@media (max-width: 760px) {
  .hero-row { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 16px 14px; }
  .brand-name { font-size: 1.5rem; }
  .auth-content h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .auth-subtitle { font-size: 1.45rem; }
}