:root {
  color-scheme: dark;
  --bg: #060815;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --ink: #fafaff;
  --muted: rgba(250, 250, 255, 0.68);
  --faint: rgba(250, 250, 255, 0.42);
  --line: rgba(255, 255, 255, 0.13);
  --purple: #8057ff;
  --purple-2: #5d38f2;
  --blue: #52a9ff;
  --green: #61e8aa;
  --danger: #ff4f6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --glow: 0 0 44px rgba(128, 87, 255, 0.42);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(128, 87, 255, 0.42), transparent 28%),
    radial-gradient(circle at 10% 72%, rgba(82, 169, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #050713 0%, #0b1020 52%, #050713 100%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

body.onboarding-active {
  min-height: 100vh;
}

body.onboarding-active .app-shell,
body.onboarding-active .mobile-nav {
  display: none;
}

body:not(.onboarding-active) .onboarding-shell {
  display: none;
}

.onboarding-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.launch-screen {
  min-height: calc(100vh - 48px);
  width: min(520px, 100%);
  display: none;
  place-items: center;
  align-content: center;
  gap: 22px;
  text-align: center;
}

.launch-screen.active {
  display: grid;
  animation: launch-in 900ms cubic-bezier(.2,.8,.2,1) both;
}

.launch-icon {
  width: clamp(116px, 22vw, 178px);
  height: clamp(116px, 22vw, 178px);
  border-radius: 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 52px rgba(128, 87, 255, 0.5);
}

.launch-wordmark {
  width: clamp(150px, 32vw, 230px);
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 0 24px rgba(128, 87, 255, 0.25));
  animation: launch-wordmark 900ms ease 140ms both;
}

body.launch-active .onboarding-brand {
  opacity: 0;
  pointer-events: none;
}

.onboarding-brand {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  transition: opacity 240ms ease;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 0 24px rgba(128, 87, 255, 0.22));
}

.signup-card {
  width: min(720px, 100%);
  display: none;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 44px);
  background:
    radial-gradient(circle at 86% 14%, rgba(128,87,255,0.44), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.19), rgba(255,255,255,0.085));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.signup-card.active {
  display: block;
  animation: signup-rise 520ms cubic-bezier(.2,.8,.2,1) both;
}

.signup-card h1 {
  max-width: 620px;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(38px, 8vw, 70px);
  line-height: 0.98;
  font-weight: 950;
  text-shadow: 0 0 32px rgba(128,87,255,0.22);
}

.signup-card > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
}

.auth-tabs button {
  min-height: 44px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 850;
}

.auth-tabs button.active {
  color: #fff;
  background: rgba(128,87,255,0.45);
}

.auth-google {
  margin-top: 10px;
}

.text-action {
  display: block;
  margin: 14px auto 0;
  color: #b9a9ff;
  font-weight: 800;
}

.auth-status {
  margin: 12px auto 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  text-align: center;
}

.preference-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preference-options label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: rgba(255,255,255,0.84);
  background: rgba(0,0,0,0.2);
  font-size: 13px;
  font-weight: 800;
}

.preference-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.field-label {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 850;
}

.field-label input,
.field-label textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  outline: 0;
  color: #fff;
  background: rgba(0,0,0,0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.field-label textarea {
  min-height: 138px;
  padding: 16px;
  resize: vertical;
  line-height: 1.45;
}

.field-label input::placeholder,
.field-label textarea::placeholder {
  color: rgba(255,255,255,0.46);
}

.field-label input:focus,
.field-label textarea:focus {
  border-color: rgba(128,87,255,0.8);
  box-shadow: 0 0 0 4px rgba(128,87,255,0.14);
}

.input-grid {
  display: grid;
  gap: 14px;
}

.resume-upload {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

.resume-upload p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.input-grid.two-col {
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
}

.form-error {
  margin: 12px 0 0;
  color: #ffb4c2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.form-error[hidden] {
  display: none;
}

.major-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.major-grid button,
.field-grid button {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,0.09);
  border: 1px solid var(--line);
  font-weight: 850;
}

.major-grid button.active,
.field-grid button.active {
  background: linear-gradient(135deg, rgba(128,87,255,0.64), rgba(82,169,255,0.22));
  border-color: rgba(128,87,255,0.82);
  box-shadow: 0 0 28px rgba(128,87,255,0.22);
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.rail,
.workspace,
.details-modal {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.rail {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  padding: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.rail .brand-logo {
  width: 196px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: var(--glow);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.desktop-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(128, 87, 255, 0.26), rgba(82, 169, 255, 0.12));
}

.nav-item.active {
  box-shadow: inset 0 0 0 1px rgba(128,87,255,0.28);
}

.watch-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 20%, rgba(97,232,170,0.24), transparent 36%),
    rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

.watch-card span {
  display: block;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.watch-card p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.workspace {
  min-width: 0;
  min-height: calc(100vh - 40px);
  border-radius: 32px;
  padding: clamp(18px, 3vw, 34px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar h1 {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-weight: 900;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.profile-chip {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--line);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.icon-btn b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
}

.profile-chip {
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.profile-chip.has-photo,
.profile-photo.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.view {
  display: none;
  padding: 28px 0 88px;
}

.view.active {
  display: block;
  animation: view-in 260ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes launch-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(18px);
  }
  48% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes launch-wordmark {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signup-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.purpose-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(117,150,255,0.36);
  border-radius: 22px;
  color: #e8eeff;
  background:
    linear-gradient(135deg, rgba(74,144,255,0.18), rgba(128,87,255,0.16)),
    rgba(255,255,255,0.06);
  box-shadow: 0 18px 48px rgba(42,88,220,0.16);
}

.purpose-bar p {
  margin: 0;
  color: rgba(232,238,255,0.82);
  line-height: 1.45;
}

.purpose-bar strong {
  color: #fff;
}

.purpose-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  background: #66dcff;
  box-shadow: 0 0 22px rgba(102,220,255,0.8);
}

.student-signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.student-signal-strip article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
}

.student-signal-strip span,
.student-signal-strip small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.student-signal-strip span {
  font-size: 12px;
  text-transform: uppercase;
}

.student-signal-strip strong {
  display: block;
  margin: 7px 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-signal-strip small {
  font-size: 12px;
}

.alert-intelligence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.alert-intelligence article {
  min-width: 0;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(102,220,255,0.12), transparent 32%),
    rgba(255,255,255,0.07);
}

/* Alert Pulse primary line — bold accent (co-founder: anything but red) */
.pulse-alert-title {
  color: #7ea2ff;
  font-weight: 900;
}

/* Most recent alerts inside the Alert Pulse box */
.pulse-recent {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* Stack company over role so long titles never run off the card edge. */
.pulse-recent li {
  min-width: 0;
  display: grid;
  gap: 1px;
  font-size: 13px;
}

.pulse-recent strong,
.pulse-recent span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-recent span {
  color: var(--muted);
  font-size: 12px;
}

/* Profile facts embedded in the Alert Profile box */
.profile-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.profile-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.profile-facts span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-facts strong {
  font-size: 14px;
  text-align: right;
}

/* System Status box: centered pulsing bell + watching line */
.alert-intelligence article.system-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.system-status .pulse-ring {
  margin: auto 0 12px;
}

.system-status .status-pill {
  align-self: flex-start;
}

.system-status-copy {
  margin: 0 0 auto;
  color: var(--muted);
  line-height: 1.45;
}

.emph-student {
  font-style: normal;
  font-weight: 800;
  color: var(--ink, #fff);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.alert-intelligence h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.18;
}

.alert-intelligence p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* featured card spans full width */
  gap: 18px;
}

/* Consistent vertical rhythm so no two cards ever touch. Block margins
   collapse, so this won't double up where a section-head (margin-top) follows. */
.home-grid,
.peer-pulse,
.soon-grid,
.timeline-card,
.notification-setup {
  margin-bottom: 18px;
}

.featured-card,
.pulse-panel,
.search-panel,
.timeline-card,
.settings-card,
.empty-state,
.opening-row,
.soon-grid article,
.notification-setup {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.065));
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.featured-card {
  position: relative;
  min-height: 302px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 180px);
  gap: 24px;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 72% 38%, rgba(128,87,255,0.48), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(82,169,255,0.18), transparent 28%);
  pointer-events: none;
}

.card-copy,
.mega-logo {
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #b7a5ff;
  background: rgba(128,87,255,0.18);
  font-size: 12px;
  font-weight: 900;
}

.featured-card h2 {
  max-width: 540px;
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  font-weight: 900;
}

.featured-card p {
  margin-top: 17px;
  color: var(--muted);
  font-size: 18px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-action,
.soft-action,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  font-weight: 900;
}

.primary-action {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: var(--glow);
}

.soft-action,
.text-button {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--line);
}

.soft-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.text-button {
  min-height: 38px;
  font-size: 14px;
  color: #d8d0ff;
}

.mega-logo,
.modal-logo {
  width: 190px;
  height: 190px;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 0.88;
  text-align: center;
}

.mega-logo {
  width: clamp(126px, 15vw, 180px);
  height: clamp(126px, 15vw, 180px);
}

.logo-tile {
  overflow: hidden;
  padding: 10px;
  background: rgba(255,255,255,0.96);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gs {
  background: linear-gradient(135deg, #83a8d6, #4d6f9d);
}

.mck {
  background: #030712;
  font-family: Georgia, serif;
  font-size: 17px;
}

.bain {
  background: #e10912;
  font-family: var(--font);
  letter-spacing: 0.08em;
}

.tech {
  background: linear-gradient(135deg, #52a9ff, #5d38f2);
}

.health {
  background: linear-gradient(135deg, #61e8aa, #188f71);
}

.media {
  background: linear-gradient(135deg, #ff67b3, #8057ff);
}

.science {
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}

.education {
  background: linear-gradient(135deg, #ffd76a, #f59e0b);
}

.policy {
  background: linear-gradient(135deg, #c4b5fd, #4f46e5);
}

.marketing {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.pulse-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 30px;
  padding: 28px;
}

.pulse-ring {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, var(--purple), var(--purple-2));
  box-shadow: var(--glow);
}

.pulse-ring span {
  position: absolute;
  inset: -15px;
  border-radius: inherit;
  border: 1px solid rgba(128,87,255,0.5);
  animation: pulse 1.8s ease infinite;
}

.pulse-ring svg {
  width: 45px;
  height: 45px;
  fill: currentColor;
}

.pulse-ring.small {
  width: 82px;
  height: 82px;
}

@keyframes pulse {
  70% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.pulse-panel h3 {
  margin-top: 24px;
  font-size: 24px;
}

.pulse-panel p,
.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px 2px 8px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row.tight {
  padding: 0;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 17px;
  color: var(--muted);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(128,87,255,0.45), rgba(82,169,255,0.18));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 24px;
}

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

.opening-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.opening-row:hover,
.opening-row:focus-visible {
  border-color: rgba(183,165,255,0.36);
  background: linear-gradient(145deg, rgba(255,255,255,0.17), rgba(255,255,255,0.08));
  transform: translateY(-1px);
  outline: none;
}

.logo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, #4a4a6a, #2e2e44);
}

/* Field-tinted tiles for auto-pulled live listings */
.logo.tech   { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.logo.fin    { background: linear-gradient(135deg, #0f7a4d, #0b5c3a); }
.logo.health { background: linear-gradient(135deg, #0d9488, #0f766e); }
.logo.edu    { background: linear-gradient(135deg, #d97706, #b45309); }
.logo.consult { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.logo.law      { background: linear-gradient(135deg, #7c5e2a, #4a3818); }
.logo.gov      { background: linear-gradient(135deg, #1e3a5f, #122740); }
.logo.media    { background: linear-gradient(135deg, #db2777, #9d174d); }
.logo.mkt      { background: linear-gradient(135deg, #ea580c, #9a3412); }
.logo.consumer { background: linear-gradient(135deg, #e11d48, #9f1239); }
.logo.eng      { background: linear-gradient(135deg, #475569, #1e293b); }
.logo.sci      { background: linear-gradient(135deg, #0d9488, #115e59); }
.logo.npo      { background: linear-gradient(135deg, #16a34a, #14532d); }

.peer-pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 8px 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(79,70,229,0.10));
  border: 1px solid rgba(124,58,237,0.28);
}
.peer-pulse p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* Application status tracker (in the details modal) */
.status-tracker { margin: 14px 0 6px; }
.status-tracker-label { display: block; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.status-options { display: flex; flex-wrap: wrap; gap: 8px; }
.status-options button {
  flex: 1; min-width: 64px; padding: 9px 10px; border-radius: 12px;
  border: 1px solid rgba(124,58,237,0.3); background: transparent;
  color: var(--text, #14141f); font-weight: 700; font-size: 13px; cursor: pointer;
}
.status-options button.active { background: #6d5efc; color: #fff; border-color: #6d5efc; }
.status-options .status-clear { flex: 0 0 auto; min-width: 0; border-color: rgba(0,0,0,0.15); color: var(--muted, #6b6880); font-weight: 600; }

/* Status pill shown on listing rows */
.row-status {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; vertical-align: middle; color: #fff;
}
.row-status.status-applied { background: #6d5efc; }
.row-status.status-oa { background: #0ea5e9; }
.row-status.status-interview { background: #d97706; }
.row-status.status-offer { background: #0f7a4d; }
.row-status.status-closed { background: #6b7280; }

.list-note { text-align: center; color: var(--muted, #9a97b5); font-size: 13px; padding: 16px 8px 4px; }

/* Dynamic modal status pill */
.status-pill.pill-closed { background: rgba(107,114,128,0.22); color: #9ca3af; }
.status-pill.pill-awaiting { background: rgba(217,119,6,0.18); color: #d97706; }
.status-pill.pill-upcoming { background: rgba(14,165,233,0.18); color: #38bdf8; }

/* Awaiting-posting (watch-list) cards: clearly tracked, not yet live */
.opening-row.awaiting { opacity: 0.82; }
.opening-row.awaiting .logo { filter: grayscale(0.35); }
.awaiting-line {
  display: inline-block;
  color: #b45309;
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.opening-row h3 {
  font-size: 18px;
  line-height: 1.15;
}

.opening-row p {
  margin-top: 4px;
  color: var(--muted);
}

.opening-row small {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-weight: 700;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.round-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--line);
}

.round-btn:hover {
  border-color: rgba(255,255,255,0.28);
}

.round-btn svg {
  width: 19px;
  height: 19px;
}

.save-btn.saved {
  color: #fff;
  background: rgba(128,87,255,0.32);
  border-color: rgba(183,165,255,0.58);
}

.save-btn.saved svg {
  fill: currentColor;
}

.round-btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}

.soon-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.soon-grid article {
  border-radius: 22px;
  padding: 18px;
}

.soon-grid span {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffd76a;
  box-shadow: 0 0 20px rgba(255,215,106,0.48);
}

.soon-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.notification-setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 20%, rgba(97,232,170,0.2), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.065));
}

.notification-setup h2 {
  margin-top: 12px;
  font-size: 26px;
}

.notification-setup p {
  max-width: 560px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.notify-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-panel {
  display: grid;
  gap: 16px;
  border-radius: 26px;
  padding: 18px;
  margin-bottom: 16px;
}

.search-panel label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 17px;
  padding: 0 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}

.search-panel svg {
  width: 21px;
  height: 21px;
  color: var(--faint);
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search-panel input::placeholder {
  color: var(--faint);
}

.match-line {
  display: block;
  margin-top: 6px;
  color: rgba(134, 255, 207, 0.82);
  font-weight: 850;
}

.source-line {
  color: rgba(208,216,255,0.72);
}

.timeline-card {
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
}

.cycle-note {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}

.cycle-note p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding-left: 178px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

/* Cycle groups: each article is one recruiting cycle — a heading row (cycle
   name + count + "for you" pill) above a wrapped row of company chips. */
.timeline article {
  display: block;
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}

.timeline strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.timeline strong .status-pill {
  margin: 0;
}

.company-chip {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(128,87,255,0.95), rgba(82,169,255,0.72));
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(104,65,255,0.35);
}

.bain-chip {
  background: linear-gradient(135deg, #f04452, #b71226);
}

.tech-chip {
  background: linear-gradient(135deg, #52a9ff, #5d38f2);
}

.health-chip {
  background: linear-gradient(135deg, #61e8aa, #188f71);
}

.media-chip {
  background: linear-gradient(135deg, #ff67b3, #8057ff);
}

.science-chip {
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}

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

.settings-card {
  display: grid;
  gap: 14px;
  border-radius: 28px;
  padding: 24px;
}

.settings-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}

.settings-card label span {
  display: grid;
  gap: 4px;
  font-weight: 850;
}

.settings-card small,
.profile-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.alert-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(134,255,207,0.2);
  border-radius: 16px;
  color: rgba(232,238,255,0.78);
  background: rgba(97,232,170,0.08);
  font-size: 13px;
  line-height: 1.45;
}

.danger-zone {
  align-content: start;
  border: 1px solid rgba(255, 112, 112, 0.25);
  background: rgba(80, 15, 25, 0.16);
}

.danger-zone p {
  color: var(--muted);
  line-height: 1.55;
}

.danger-action {
  justify-self: start;
  border: 1px solid rgba(255, 112, 112, 0.55);
  border-radius: 12px;
  padding: 11px 15px;
  color: #ffb4b4;
  background: transparent;
  font-weight: 800;
}

.danger-action:disabled {
  opacity: 0.55;
}

input[type="checkbox"] {
  width: 43px;
  height: 24px;
  accent-color: var(--purple);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}

.profile-photo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 24px;
  font-weight: 950;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  border-radius: 30px;
  padding: 56px 24px;
}

.saved-list:not(:empty) {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-nav {
  display: none;
}

.profile-modal,
.details-modal {
  width: min(520px, calc(100vw - 28px));
  border-radius: 30px;
  padding: 28px;
  color: #fff;
}

.profile-modal::backdrop,
.details-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.profile-modal {
  width: min(720px, calc(100vw - 28px));
}

.profile-modal > p {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.45;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edit-grid .wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .preference-options {
    grid-template-columns: 1fr;
  }
}

.edit-fields {
  margin: 18px 0;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 26px;
}

.modal-logo {
  width: 102px;
  height: 102px;
  justify-self: start;
  border-radius: 22px;
  font-size: 20px;
}

.details-modal .status-pill {
  margin-top: 22px;
}

.details-modal h2 {
  margin-top: 14px;
  font-size: 36px;
}

.details-modal p {
  margin-top: 8px;
  color: var(--muted);
}

.details-modal .why-alert {
  padding: 12px 14px;
  border: 1px solid rgba(134,255,207,0.2);
  border-radius: 16px;
  color: rgba(222,255,242,0.88);
  background: rgba(97,232,170,0.08);
  line-height: 1.42;
}

.details-modal .modal-note {
  margin-top: 14px;
  line-height: 1.45;
  text-align: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.modal-grid span {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}

.modal-grid strong {
  color: #fff;
}

.source-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 10px;
  border: 1px solid rgba(134,255,207,0.24);
  border-radius: 14px;
  color: #eafff8;
  background: rgba(97,232,170,0.1);
  font-weight: 900;
  text-decoration: none;
}

.source-action:hover {
  border-color: rgba(134,255,207,0.5);
  background: rgba(97,232,170,0.16);
}

.wide {
  width: 100%;
}

@media (max-width: 1350px) and (min-width: 981px) {
  .alert-intelligence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .rail {
    display: none;
  }

  .workspace {
    min-height: 100vh;
    border-radius: 26px;
    padding-bottom: 88px;
  }

  .home-grid,
  .student-signal-strip,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* The three info boxes become a swipeable carousel on phones so the home
     page stays short — next card peeks so it's clearly scrollable. */
  .alert-intelligence {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -12px 16px;
    padding: 2px 12px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .alert-intelligence::-webkit-scrollbar {
    display: none;
  }

  .alert-intelligence article {
    flex: 0 0 84%;
    min-height: 0;
    scroll-snap-align: center;
    padding: 20px;
  }

  .system-status .pulse-ring {
    width: 96px;
    height: 96px;
  }

  .notification-setup {
    margin-bottom: 16px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .mega-logo {
    width: 126px;
    height: 126px;
    justify-self: start;
    font-size: 24px;
  }

  .pulse-panel {
    display: none;
  }

  .soon-grid {
    grid-template-columns: 1fr;
  }

  .notification-setup {
    align-items: stretch;
    flex-direction: column;
  }

  .notify-actions {
    justify-content: stretch;
  }

  .notify-actions .primary-action,
  .notify-actions .soft-action {
    flex: 1;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(14,17,32,0.72);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    backdrop-filter: blur(20px) saturate(150%);
  }

  .mobile-nav .nav-item {
    min-height: 56px;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 18px;
    font-size: 11px;
  }

  .mobile-nav .nav-item svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 640px) {
  .onboarding-shell {
    align-items: start;
    padding: 92px 12px 20px;
  }

  .onboarding-brand {
    top: 18px;
    left: 18px;
  }

  .launch-screen {
    min-height: calc(100vh - 112px);
  }

  .launch-icon {
    border-radius: 28px;
  }

  .brand-logo,
  .rail .brand-logo {
    width: 160px;
  }

  .signup-card {
    border-radius: 28px;
  }

  .input-grid.two-col,
  .major-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .primary-action,
  .step-actions .soft-action {
    width: 100%;
  }

  .topbar {
    align-items: start;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-btn,
  .profile-chip {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .featured-card h2 {
    font-size: 36px;
  }

  .opening-row {
    grid-template-columns: 58px 1fr;
  }

  .logo {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 13px;
  }

  .row-actions {
    grid-column: 1 / -1;
  }

  .row-actions .round-btn {
    flex: 1;
    width: auto;
  }

  .months {
    display: none;
  }

  .timeline-card {
    padding: 14px;
  }

  .timeline article {
    padding: 14px 14px 16px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Alerts View ─── */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .alerts-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Profile Tabs ─── */
.profile-tabs {
  display: flex;
  gap: 4px;
  background: var(--panel);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.profile-tab {
  background: none;
  border: none;
  color: var(--muted);
  font: 600 14px var(--font);
  padding: 8px 20px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.profile-tab.active {
  background: var(--purple);
  color: #fff;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

/* ─── College Autocomplete ─── */
.autocomplete-wrap {
  position: relative;
}

.college-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #10132a;
  border: 1px solid rgba(128, 87, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 87, 255, 0.3) transparent;
}

.college-dropdown li {
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  cursor: pointer;
  outline: none;
  transition: background 100ms ease, color 100ms ease;
  line-height: 1.3;
}

.college-dropdown li:hover,
.college-dropdown li:focus {
  background: rgba(128, 87, 255, 0.24);
  color: #fff;
}

.college-dropdown mark {
  background: transparent;
  color: var(--purple);
  font-weight: 850;
}

/* ─── Sub-industry Filter Row ─── */
.sub-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
  animation: sub-filter-in 180ms ease both;
}

@keyframes sub-filter-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sub-filter-chip {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: color 130ms ease, background 130ms ease, border-color 130ms ease;
  white-space: nowrap;
}

.sub-filter-chip.active,
.sub-filter-chip:hover {
  color: #fff;
  background: rgba(128, 87, 255, 0.28);
  border-color: rgba(128, 87, 255, 0.6);
}

/* ─── New logo color classes ─── */
.logo.ms   { background: linear-gradient(135deg, #002d62, #0052a5); }
.logo.boa  { background: linear-gradient(135deg, #dc1e2e, #b5172a); }
.logo.citi { background: linear-gradient(135deg, #003d8f, #0056cc); }
.logo.bcs  { background: linear-gradient(135deg, #00aeef, #008bbf); }
.logo.laz  { background: linear-gradient(135deg, #1a1a2e, #2e2e50); }
.logo.blk  { background: linear-gradient(135deg, #1a1a1a, #3a3a3a); }
.logo.fid  { background: linear-gradient(135deg, #007832, #00a344); }
.logo.vgd  { background: linear-gradient(135deg, #8b0000, #b50000); }
.logo.jane { background: linear-gradient(135deg, #1c1c2e, #2e2e4a); }
.logo.bx   { background: linear-gradient(135deg, #181818, #303030); }
.logo.bcg  { background: linear-gradient(135deg, #009a44, #007a34); }
.logo.deloitte { background: linear-gradient(135deg, #0076a8, #005580); }
.logo.pwc  { background: linear-gradient(135deg, #d93025, #ae261e); }
.logo.ey   { background: linear-gradient(135deg, #ffe600, #ccb800); color: #111; }
.logo.kpmg { background: linear-gradient(135deg, #00338d, #001f57); }
.logo.acn  { background: linear-gradient(135deg, #a100ff, #7a00cc); }
.logo.bah  { background: linear-gradient(135deg, #003466, #001e40); }
.logo.meta { background: linear-gradient(135deg, #0082fb, #005cc5); }
.logo.apple { background: linear-gradient(135deg, #444, #1a1a1a); }
.logo.amzn { background: linear-gradient(135deg, #ff9900, #e07b00); }
.logo.nflx { background: linear-gradient(135deg, #e50914, #b5070f); }
.logo.nvda { background: linear-gradient(135deg, #76b900, #5a8e00); }
.logo.uber { background: linear-gradient(135deg, #1a1a1a, #000); }
.logo.abnb { background: linear-gradient(135deg, #ff5a5f, #e03b40); }
.logo.pltr { background: linear-gradient(135deg, #101010, #2a2a2a); }
.logo.stripe { background: linear-gradient(135deg, #635bff, #4d47cc); }
.logo.oai  { background: linear-gradient(135deg, #19191a, #343434); }
.logo.nike { background: linear-gradient(135deg, #111, #333); }
.logo.disney { background: linear-gradient(135deg, #0f2e6b, #1b4ba8); }
.logo.espn { background: linear-gradient(135deg, #cc0000, #990000); }
.logo.jpm  { background: linear-gradient(135deg, #3d1f00, #5c2e00); }
.logo.jef  { background: linear-gradient(135deg, #00263a, #003f5c); }
.logo.rbc  { background: linear-gradient(135deg, #0051a5, #003c7a); }
.logo.gug  { background: linear-gradient(135deg, #1a1a2e, #2e2e50); }
.logo.pjt  { background: linear-gradient(135deg, #0a2540, #123a5c); }
.logo.wf   { background: linear-gradient(135deg, #c41230, #8a0c22); }
.logo.moe  { background: linear-gradient(135deg, #1c1c1c, #383838); }
.logo.p72  { background: linear-gradient(135deg, #0a1f3c, #13386b); }
.logo.des  { background: linear-gradient(135deg, #2e2e2e, #4a4a4a); }
.logo.aqr  { background: linear-gradient(135deg, #003b5c, #00567f); }
.logo.mlp  { background: linear-gradient(135deg, #0b3d2e, #13624a); }
.logo.bcap { background: linear-gradient(135deg, #b5172a, #8a0c22); }
.logo.ga   { background: linear-gradient(135deg, #1a1a2e, #2e2e50); }
.logo.ares { background: linear-gradient(135deg, #1c1c1c, #383838); }

/* ── Ask Promptly — scripted helper widget ─────────────────────────────── */
.ap-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: var(--shadow), var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ap-launcher:hover { transform: translateY(-2px); }
.ap-launcher svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-launcher.ap-open { transform: scale(0.96); opacity: 0.9; }

.ap-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 121;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(14, 17, 32, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ap-panel.ap-visible { opacity: 1; transform: translateY(0) scale(1); }

.ap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ap-title { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font); color: var(--ink); }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ap-close { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px; }
.ap-close:hover { color: var(--ink); }

.ap-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ap-msg { max-width: 88%; padding: 10px 13px; border-radius: 15px; font: 400 13.5px/1.5 var(--font); }
.ap-msg b { font-weight: 700; color: var(--ink); }
.ap-msg ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.ap-msg a { color: var(--blue); text-decoration: none; }
.ap-msg a:hover { text-decoration: underline; }
.ap-msg .ap-hint { display: block; margin-top: 5px; color: var(--faint); font-size: 12px; }
.ap-bot { align-self: flex-start; background: var(--panel); color: var(--muted); border-bottom-left-radius: 5px; }
.ap-user { align-self: flex-end; background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border-bottom-right-radius: 5px; }
.ap-action {
  display: inline-block;
  margin-top: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font: 600 12.5px/1 var(--font);
  cursor: pointer;
}
.ap-action:hover { border-color: var(--purple); }

.ap-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.ap-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font: 500 12.5px/1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ap-chip:hover { border-color: var(--purple); color: var(--ink); }

.ap-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.ap-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: 400 13.5px/1 var(--font);
  outline: none;
}
.ap-input:focus { border-color: var(--purple); }
.ap-input::placeholder { color: var(--faint); }
.ap-send {
  width: 40px;
  flex: 0 0 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .ap-launcher { right: 14px; bottom: 84px; padding: 11px 15px; }
  .ap-launcher span { display: none; }
  .ap-launcher { padding: 13px; }
  .ap-panel { right: 12px; left: 12px; width: auto; bottom: 150px; height: min(60vh, 480px); }
}
body.onboarding-active .ap-launcher,
body.onboarding-active .ap-panel { display: none; }
