body {
  background: radial-gradient(circle at top right, #172033 0%, #0b1020 42%, #060912 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

h1 {
  font-weight: 700;
}

.lead {
  color: #cbd5e1;
}

.card {
  border-radius: 1rem;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.86);
  color: #e2e8f0;
  backdrop-filter: blur(1px);
}

.form-control,
.input-group-text,
.form-check-input {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

.form-control::placeholder {
  color: #94a3b8;
}

.site-logo {
  width: min(320px, 80vw);
  height: auto;
}

.hero-accent {
  position: fixed;
  inset: 0 0 auto 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.hero-accent svg {
  width: 100%;
  height: 460px;
}

header a:hover { opacity: 0.85; }
.action-card { transition: transform .18s ease, border-color .18s ease; color: #e2e8f0; }
.action-card:hover { transform: translateY(-2px); border-color: #60a5fa; }
.text-secondary { color: #cbd5e1 !important; }

#rebuild-chat {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #0b1222;
}

.chat-msg {
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  max-width: 90%;
  white-space: pre-wrap;
}

.chat-assistant {
  background: #1e293b;
  border: 1px solid #334155;
}

.chat-user {
  margin-left: auto;
  background: #1d4ed8;
  border: 1px solid #2563eb;
}

.account-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.account-menu {
  position: relative;
  display: inline-block;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 10rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: grid;
  gap: 0.15rem;
  z-index: 50;
}

.account-menu-list a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.35rem;
}

.account-menu-list a:hover {
  background: #1e293b;
}
