body {
  background: var(--bg);
  color: var(--text);
}

.nav-link {
  color: var(--sub);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text);
}

.placement-page {
  padding-top: 12px;
}

.placement-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
}

.vera-card,
.chat-card {
  background:
    radial-gradient(circle at 18% 24%, rgba(59,130,246,0.12), transparent 32%),
    linear-gradient(180deg, rgba(21,28,47,0.96), rgba(16,22,38,0.92));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.18);
}

.vera-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.vera-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}

.vera-avatar {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.vera-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(11,15,26,0.9);
}

.vera-copy h1 {
  margin: 8px 0 12px;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.vera-copy p {
  color: var(--sub);
  line-height: 1.65;
  font-size: 16px;
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9FB0C3;
}

.mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-points span {
  font-size: 13px;
  color: #b4c2d3;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  margin-top: 20px;
  background: linear-gradient(135deg, #3B82F6, #22D3EE);
  color: white;
  box-shadow: 0 8px 22px rgba(59,130,246,0.22);
}

.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vera-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.placement-back-link {
  font-size: 14px;
  color: #8ea9d6;
  text-decoration: none;
}

.placement-back-link:hover {
  color: #ffffff;
}

.chat-card {
  padding: 0;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-title {
  font-size: 18px;
  font-weight: 700;
}

.chat-sub {
  margin-top: 4px;
  color: var(--sub);
  font-size: 13px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #c8d4e2;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-messages {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.msg {
  display: flex;
}

.msg.vera {
  justify-content: flex-start;
}

.msg.user {
  justify-content: flex-end;
}

.bubble {
  max-width: min(700px, 85%);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 15px;
  white-space: pre-wrap;
}

.msg.vera .bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
}

.msg.user .bubble {
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.18);
  color: #f4f8fd;
}

.typing-bubble {
  opacity: 0.78;
  font-style: italic;
}

.chat-input-wrap {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 110px;
  gap: 12px;
  align-items: stretch;
}

#userInput {
  resize: none;
  min-height: 54px;
  height: 54px;
  max-height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  width: 100%;
}

#userInput::placeholder {
  color: #7f8ea3;
}

.chat-tools-row {
  margin-top: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-tools-note {
  margin-top: 14px;
  min-height: 20px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.4;
}

.chat-tools-note:empty {
  display: none;
}

.mic-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: #121a30;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: .2s ease;
  color: #e6edf3;
}

.mic-btn:hover {
  border-color: rgba(61,208,255,.35);
  transform: translateY(-1px);
}

.mic-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.mic-btn.is-recording {
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.10);
}

.mic-btn.is-ready {
  border-color: rgba(61, 208, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(61, 208, 255, 0.10);
}

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

  .chat-card {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .placement-page {
    padding-top: 4px;
  }

  .placement-shell {
    padding: 18px 16px 60px;
  }

  .vera-card {
    padding: 22px;
  }

  .vera-copy h1 {
    font-size: 32px;
  }

  .chat-input-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #userInput {
    grid-column: 1 / -1;
  }

  .mic-btn,
  .ghost-btn,
  .primary-btn {
    width: 100%;
  }

  .bubble {
    max-width: 100%;
  }

  .chat-tools-note {
    font-size: 12px;
    margin-top: 12px;
  }
}