:root {
  --bg: #0a1220;
  --bg-soft: #121e31;
  --panel: rgba(10, 18, 32, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #e8eefb;
  --muted: #9db0cb;
  --accent: #64e2b6;
  --accent-strong: #2dbf97;
  --assistant-bubble: rgba(255, 255, 255, 0.08);
  --user-bubble: linear-gradient(135deg, #64e2b6, #1991ff);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 191, 151, 0.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(25, 145, 255, 0.22), transparent 30%),
    linear-gradient(160deg, #060b14 0%, #0a1220 45%, #101a2d 100%);
  color: var(--text);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-one {
  top: 80px;
  left: -20px;
  width: 220px;
  height: 220px;
  background: rgba(100, 226, 182, 0.22);
}

.ambient-two {
  right: -30px;
  bottom: 100px;
  width: 260px;
  height: 260px;
  background: rgba(25, 145, 255, 0.18);
}

.app-card {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.75fr 1.45fr;
  gap: 24px;
}

.chat-panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-hero {
  margin-bottom: 16px;
}

.sidebar .hero-panel .profile-hero {
  margin-bottom: 12px;
}

.avatar-card {
  position: relative;
  width: min(100%, 340px);
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(100, 226, 182, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.avatar-illustration {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.09), transparent 20%),
    linear-gradient(180deg, rgba(12, 23, 40, 0.45), rgba(8, 16, 28, 0.9));
}

.avatar-halo {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(100, 226, 182, 0.22), rgba(25, 145, 255, 0.06) 65%, transparent 72%);
}

.avatar-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 228px;
  max-width: 82%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 28px 28px 18px 18px;
  filter: grayscale(1) contrast(1.04) brightness(1.02);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow,
.chat-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel h1,
.chat-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hero-copy {
  max-width: 36rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.feature-pills span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
}

.chat-header h2 {
  font-size: 1.6rem;
}

.chat-header-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.chat-header-photo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}

#chatHeaderName {
  font-size: 1.2rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.ghost-button,
#sendBtn {
  border: 0;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.ghost-button {
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.icon-button {
  min-width: 72px;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button i {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.ghost-button:hover,
#sendBtn:hover {
  transform: translateY(-1px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

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

.bubble {
  max-width: min(82%, 720px);
  padding: 10px 15px;
  border-radius: 22px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message.assistant .bubble {
  background: var(--assistant-bubble);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.user .bubble {
  color: #03111f;
  background: var(--user-bubble);
}

.bubble p {
  margin: 0;
}

.thinking-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.thinking-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--accent);
  flex: 0 0 auto;
  animation: thinking-spin 0.8s linear infinite;
}

@keyframes thinking-spin {
  to {
    transform: rotate(360deg);
  }
}

.composer {
  padding: 24px;
  border-top: 1px solid var(--panel-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#userInput {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 44px;
  max-height: 180px;
}

#userInput::placeholder {
  color: #8092ad;
}

.composer-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.composer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

#sendBtn {
  padding: 12px 20px;
  font-weight: 700;
  color: #03111f;
  background: linear-gradient(135deg, #64e2b6, #1991ff);
}

#sendBtn:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.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;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 20px;
    display: block;
  }

  .main-container {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .chat-container {
    width: 100%;
    max-width: 100%;
  }

  .hero-panel {
    min-height: 0;
    padding: 32px 24px;
  }

  .avatar-card {
    width: min(100%, 300px);
  }

  .hero-panel h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .chat-messages {
    min-height: 420px;
    max-height: 55vh;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 14px;
    display: block;
  }

  .main-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none;
    height: auto;
    order: 1;
  }

  .chat-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    order: 2;
  }

  .hero-panel,
  .chat-panel {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 28px;
  }

  .profile-hero {
    margin-bottom: 22px;
  }

  .avatar-card {
    width: 100%;
  }

  .avatar-illustration {
    height: 240px;
  }

  .chat-panel {
    padding: 18px;
  }

  .composer-actions,
  .composer-meta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .voice-actions .ghost-button,
  #sendBtn {
    width: 100%;
  }

  .bubble {
    max-width: 100%;
  }
}

/* Auth Page Styles */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.auth-header h1 {
  font-family: "Space Grotesk", monospace;
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.auth-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: rgba(100, 226, 182, 0.15);
  color: var(--accent);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-group .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.error-message {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 20px;
}

.success-message {
  color: var(--accent);
  font-size: 13px;
  min-height: 20px;
}

/* Photo Modal Scrolling */
.photo-modal-scrollable {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-size: 13px;
  font-family: inherit;
}

.link-button:hover {
  opacity: 0.8;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer .helper-text {
  font-size: 12px;
  color: var(--muted);
}

/* Primary Button */
.primary-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #000;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(100, 226, 182, 0.2);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(12px);
  background: rgba(10, 18, 32, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 28px;
  height: 28px;
}

.email-verification-banner {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.1));
  border-bottom: 1px solid rgba(255, 152, 0, 0.3);
  padding: 12px 32px;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text);
}

.banner-content i {
  color: #ff9800;
  font-size: 16px;
}

.banner-content button {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
}

.nav-title {
  font-family: "Space Grotesk", monospace;
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-display {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* Profile Dropdown */
.profile-dropdown-container {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--muted);
}

.dropdown-item:hover i {
  color: var(--accent);
}

.dropdown-item.logout-item {
  color: #ff6b6b;
}

.dropdown-item.logout-item:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

.dropdown-divider {
  margin: 4px 0;
  border: none;
  border-top: 1px solid var(--panel-border);
}

/* Delete Account Modal */
.delete-account-modal {
  max-width: 450px;
}

.warning-message {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 6px;
  margin-bottom: 20px;
  color: #ff9b9b;
  font-size: 14px;
  line-height: 1.5;
}

.warning-message i {
  color: #ff6b6b;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-message p {
  margin: 0;
}

.delete-button {
  background-color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

.delete-button:hover:not(:disabled) {
  background-color: #ff5252 !important;
  border-color: #ff5252 !important;
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Privacy & Settings */
.privacy-settings-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  margin-bottom: 16px;
  gap: 20px;
}

.settings-item-content {
  flex: 1;
}

.settings-item-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.settings-item-content .helper-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.scheduled-agent-search-options {
  padding: 16px;
  margin: -4px 0 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

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

.scheduled-agent-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.scheduled-agent-field input,
.scheduled-agent-field select {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 10px;
  min-width: 0;
  width: 100%;
}

.scheduled-agent-field input:disabled,
.scheduled-agent-field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  align-items: center;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: background-color 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text);
  top: 1px;
  left: 1px;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
  border-color: var(--accent-strong);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-message {
  color: var(--accent);
  font-size: 14px;
  margin-top: 12px;
}

/* Box-style success message (for modals) */
.success-message[style*="display: none"] ~ * .success-message,
.modal-body .success-message {
  padding: 12px 14px;
  background-color: rgba(100, 226, 182, 0.1);
  border: 1px solid rgba(100, 226, 182, 0.3);
  border-radius: 6px;
}

/* Simple text success message (for inline forms) */
#avatarGeneratorSuccess {
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}

/* Main Container - 2 Column Layout */
.main-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Left Column: Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Right Column: Chat */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-section {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 20px;
  flex-shrink: 0;
}

.sidebar .hero-panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.sidebar .hero-panel .eyebrow {
  font-size: 12px;
  margin: 8px 0 4px 0;
}

.sidebar .hero-panel h1 {
  font-size: 24px;
  line-height: 1.2;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.search-box-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-box-container:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.search-icon {
  color: var(--muted);
  font-size: 14px;
  margin-right: 8px;
  pointer-events: none;
}

.search-box-container:focus-within .search-icon {
  color: var(--accent);
}

.search-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
}

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

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.search-item:hover {
  background: rgba(100, 226, 182, 0.1);
}

.search-item:last-child {
  border-bottom: none;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.user-info strong {
  color: var(--text);
  font-size: 14px;
}

.username {
  color: var(--muted);
  font-size: 12px;
}

.search-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
}

.search-topics span {
  min-width: 0;
}

.search-topics .topic-separator {
  color: var(--muted);
}

.search-topics--empty {
  color: var(--muted);
}

.upload-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-button {
  padding: 12px 16px;
  background: rgba(100, 226, 182, 0.15);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.upload-button:hover {
  background: rgba(100, 226, 182, 0.25);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.doc-name {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}

.doc-size {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 32px 32px 0 32px;
}

.messages-modal .modal-header {
  padding: 20px 20px 0 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  overflow-y: auto;
}

/* Adjusted layout for new nav */
.page-shell {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.main-container {
  padding: 32px;
  flex: 1;
}

.app-card {
  padding: 0;
}

/* Profile Card in Sidebar */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-card:hover {
  opacity: 0.8;
}

.profile-card .avatar-card {
  position: relative;
  width: 100%;
  max-width: 160px;
}

.profile-card .avatar-illustration {
  height: 160px;
}

/* Clickable Photo Button */
.photo-button-clickable {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-button-clickable:hover .avatar-card {
  opacity: 0.8;
  transform: scale(1.02);
}

.photo-button-clickable:hover .avatar-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(100, 226, 182, 0.2);
}

/* Photo Modal */
.photo-modal-content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.photo-modal-body {
  width: 100%;
  max-width: 400px;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--panel-border);
}

.photo-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
}

.photo-modal-actions .primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  border: none;
}

.photo-modal-actions .ghost-button {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  justify-self: flex-end;
}

/* Documents Button */
.documents-button {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.documents-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.documents-button i {
  font-size: 1.1rem;
}

.agent-network-button {
  width: 100%;
  padding: 12px 16px;
  background: rgba(100, 226, 182, 0.08);
  border: 1px solid rgba(100, 226, 182, 0.22);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.agent-network-button:hover {
  background: rgba(100, 226, 182, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}

.agent-network-modal {
  width: 92%;
  max-width: 760px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.agent-network-body {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.agent-hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.agent-hub-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.agent-hub-tab.active {
  color: var(--accent);
  border-color: rgba(100, 226, 182, 0.35);
  background: rgba(100, 226, 182, 0.12);
}

.agent-hub-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.agent-hub-panel.active {
  display: flex;
}

.agent-hub-empty-panel {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-hub-empty-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.agent-hub-empty-panel .helper-text {
  margin: 0;
}

.agent-network-toolbar {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 10px;
  align-items: center;
}

.agent-network-select,
.agent-network-input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.agent-network-section h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.agent-network-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-network-empty,
.agent-interaction-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.agent-network-empty {
  color: var(--muted);
  text-align: center;
}

.agent-interaction-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.agent-interaction-header p,
.agent-interaction-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.agent-status-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(100, 226, 182, 0.14);
  color: var(--accent);
  font-size: 0.76rem;
}

.agent-match-details {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.agent-match-details summary {
  cursor: pointer;
  display: inline-flex;
  color: var(--accent);
  font-weight: 700;
}

.agent-match-reasons {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.agent-thread-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.agent-thread-message {
  border-left: 3px solid rgba(100, 226, 182, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.82rem;
}

.agent-thread-message strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.agent-interaction-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.compact-button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.compact-button.danger {
  background: rgba(255, 107, 107, 0.16);
  color: #ff6b6b;
}

@media (max-width: 760px) {
  .agent-network-toolbar {
    grid-template-columns: 1fr;
  }

  .scheduled-agent-grid {
    grid-template-columns: 1fr;
  }
}

/* Documents Modal */
.documents-modal-content {
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
}

.agent-hub-modal-content {
  max-width: 760px;
  overflow-y: auto;
}

.documents-modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  padding: 16px 0;
}

.agent-readiness-panel {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(100, 226, 182, 0.2);
  border-radius: 10px;
}

.agent-readiness-panel.is-refreshing {
  opacity: 0.78;
}

.agent-readiness-panel button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.readiness-main {
  min-width: 0;
}

.readiness-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.readiness-status {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.readiness-status.ready {
  color: var(--accent);
}

.readiness-status.needs-review {
  color: #ffd166;
}

.readiness-status.not-ready,
.readiness-status.muted {
  color: #ff8f8f;
}

.readiness-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.readiness-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.compact-button {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.compact-icon-button {
  width: 36px;
  height: 36px;
}

.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.document-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.document-info i {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.document-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--text);
}

.document-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.document-warning-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.document-warning-badges span {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: #ffd166;
  font-size: 0.72rem;
  line-height: 1.4;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.document-actions button {
  padding: 6px 10px;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.document-actions .update-btn {
  background: rgba(100, 226, 182, 0.2);
  color: var(--accent);
}

.document-actions .update-btn:hover {
  background: rgba(100, 226, 182, 0.35);
}

.document-actions .delete-btn {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.document-actions .delete-btn:hover {
  background: rgba(255, 107, 107, 0.35);
}

.documents-modal-actions {
  width: 100%;
  display: flex;
  gap: 12px;
}

.documents-modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  flex: 1;
}

.agent-review-modal-content {
  width: 90%;
  max-width: 680px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-review-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.agent-review-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

.agent-review-tab.active {
  color: var(--accent);
  border-color: rgba(100, 226, 182, 0.35);
  background: rgba(100, 226, 182, 0.12);
}

.agent-review-content {
  overflow-y: auto;
  min-height: 280px;
}

.agent-review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-review-form label {
  font-weight: 700;
  color: var(--text);
}

.agent-review-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  line-height: 1.5;
}

.agent-review-actions {
  display: flex;
  justify-content: flex-end;
}

.skills-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.skills-chip-list span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(100, 226, 182, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
}

.coverage-list,
.issues-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coverage-row,
.issue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coverage-row p,
.issue-row span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coverage-row .coverage-hint {
  color: #ffd166;
}

.coverage-row .coverage-files {
  color: rgba(232, 238, 247, 0.58);
  font-size: 0.76rem;
}

.coverage-strength {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.coverage-strength.strong {
  color: var(--accent);
  background: rgba(100, 226, 182, 0.12);
}

.coverage-strength.medium {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.issues-section + .issues-section {
  margin-top: 18px;
}

.issues-section h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}

.memory-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memory-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(100, 226, 182, 0.08);
  border: 1px solid rgba(100, 226, 182, 0.16);
}

.memory-summary strong {
  display: block;
  color: var(--text);
  margin-top: 2px;
}

.memory-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.memory-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-empty-state i {
  color: var(--accent);
  font-size: 1.4rem;
}

.memory-empty-state strong {
  color: var(--text);
}

.memory-empty-state p {
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
}

.memory-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-group + .memory-group {
  margin-top: 8px;
}

.memory-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memory-group-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.memory-group-header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.memory-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-claim {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.45;
}

.memory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.memory-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.memory-badge.approved,
.memory-badge.strong {
  color: var(--accent);
  background: rgba(100, 226, 182, 0.12);
}

.memory-badge.pending_review,
.memory-badge.inferred {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.memory-badge.rejected,
.memory-badge.archived,
.memory-badge.weak,
.memory-badge.conflicting {
  color: #ff8f8f;
  background: rgba(255, 107, 107, 0.12);
}

.memory-uncertainty {
  margin: 8px 0 0;
  color: #ffd166;
  font-size: 0.82rem;
}

.memory-actions,
.memory-edit-actions,
.memory-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.memory-actions .danger {
  color: #ff8f8f;
}

.memory-conflict-actions {
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.14);
}

.memory-conflict-actions span {
  color: #ffd166;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 4px;
}

.memory-edit-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(100, 226, 182, 0.14);
}

.memory-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.memory-edit-form textarea,
.memory-edit-form input,
.memory-edit-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.86rem;
}

.memory-edit-form textarea {
  resize: vertical;
  line-height: 1.45;
}

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

.memory-checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.memory-checkbox-label input {
  width: auto;
}

.memory-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.memory-source {
  padding: 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.memory-source strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.memory-source span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.memory-source p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.memory-more-sources {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .memory-edit-grid {
    grid-template-columns: 1fr;
  }
}

.profile-name {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px 0 0;
  color: var(--text-primary);
}

/* Avatar Display in Hero */
.avatar-display {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 12px;
}

.avatar-display-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(100, 226, 182, 0.2);
}

.sidebar .hero-panel .avatar-display {
  max-width: 180px;
}

/* Search result match badges and skill tags */
.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.match-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.match-badge--name {
  background: rgba(25, 145, 255, 0.18);
  color: #1991ff;
  border: 1px solid rgba(25, 145, 255, 0.30);
}

.match-badge--skill {
  background: rgba(100, 226, 182, 0.15);
  color: var(--accent);
  border: 1px solid rgba(100, 226, 182, 0.28);
}

.match-badge--kg_entity {
  background: rgba(255, 200, 100, 0.15);
  color: #ffc864;
  border: 1px solid rgba(255, 200, 100, 0.30);
}

/* Matched skill tags shown under candidate name */
.matched-skills,
.matched-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.skill-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(100, 226, 182, 0.10);
  color: var(--accent);
  border: 1px solid rgba(100, 226, 182, 0.20);
}

.entity-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 200, 100, 0.10);
  color: #ffc864;
  border: 1px solid rgba(255, 200, 100, 0.22);
}

.entity-tag small {
  color: var(--muted);
  font-size: 10px;
}

.kg-connections {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.kg-connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.kg-connection span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kg-connection strong {
  color: #ffc864;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Privacy & Terms Modal */
.privacy-terms-link {
  display: inline;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
  font: inherit;
  font-size: 12px;
  transition: opacity 0.2s ease;
  margin-left: 4px;
}

.privacy-terms-link:hover {
  opacity: 0.8;
  text-decoration: underline dotted;
}

.privacy-terms-link:active {
  opacity: 0.6;
}

.privacy-terms-modal {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.privacy-terms-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

.privacy-terms-body section {
  margin-bottom: 24px;
}

.privacy-terms-body section:last-child {
  margin-bottom: 0;
}

.privacy-terms-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--accent);
}

.privacy-terms-body p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: var(--muted);
}

.privacy-terms-body ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.privacy-terms-body li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--muted);
  position: relative;
  padding-left: 12px;
}

.privacy-terms-body li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* How to Use Modal */
.how-to-use-modal {
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.how-to-use-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

.how-to-section {
  margin-bottom: 28px;
}

.how-to-section:last-child {
  margin-bottom: 0;
}

.how-to-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-to-section h3 i {
  font-size: 16px;
}

.how-to-section p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: var(--muted);
}

.how-to-section ol,
.how-to-section ul {
  margin: 0;
  padding-left: 20px;
  list-style-position: outside;
}

.how-to-section li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--muted);
}

.how-to-section strong {
  color: var(--text);
}

.use-cases-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.use-case-item {
  background: rgba(100, 226, 182, 0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.use-case-item:hover {
  background: rgba(100, 226, 182, 0.12);
}

.use-case-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text);
}

.use-case-item p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}

.use-case-disclaimer {
  font-size: 11px;
  margin-top: 8px !important;
  color: #ffa500;
  font-weight: 500;
}

.faq-item {
  background: rgba(100, 226, 182, 0.05);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.faq-item p {
  margin: 0 0 8px 0;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Help button on login page */
.help-button-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.help-button-floating:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.help-button-floating:active {
  transform: scale(0.95);
}

/* Example link on login page */
.example-link-floating {
  position: fixed;
  top: 20px;
  right: 60px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-link-floating:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.example-link-floating:active {
  transform: scale(0.95);
}

/* Analytics Modal */
.analytics-modal {
  max-width: 600px;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: center;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.recent-questions {
  margin-top: 24px;
}

.recent-questions h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}

.questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.question-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.question-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.question-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}

.question-category {
  background: rgba(100, 226, 182, 0.2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

.question-date {
  color: var(--muted);
}

.feedback-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.feedback-status.feedback-approve {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.feedback-status.feedback-disapprove {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

/* Question Detail Modal */
.question-detail-modal {
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.question-detail-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.question-detail-content {
  padding: 8px 0;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.category-badge {
  display: inline-block;
  background: rgba(100, 226, 182, 0.2);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
}

.confidence-score {
  font-size: 12px;
  color: var(--muted);
}

.feedback-section {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 16px;
}

.feedback-section p {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.feedback-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.feedback-approve:not(.active):hover {
  border-color: #4caf50;
  color: #4caf50;
}

.feedback-disapprove:not(.active):hover {
  border-color: #f44336;
  color: #f44336;
}

/* Analytics button in sidebar */
.analytics-button {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.analytics-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Verification badge button */
.verification-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.verification-badge-btn i {
  font-size: 16px;
}

.verification-badge-btn .badge-label {
  display: none;
}

.verification-badge-btn:hover {
  transform: scale(1.1);
}

.verification-badge-btn.unverified {
  color: #9db0cb;
}

.verification-badge-btn.unverified:hover {
  color: #b8c5d6;
}

.verification-badge-btn.verified {
  color: #4caf50;
}

.verification-badge-btn.verified:hover {
  color: #66bb6a;
}

.verification-badge-btn.pending {
  color: #ff9800;
}

.verification-badge-btn.pending:hover {
  color: #ffb74d;
}

/* Verified search badge */
.verified-search-badge {
  color: var(--accent);
  font-size: 13px;
  margin-left: 4px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Verification modal */
.verification-modal {
  max-width: 500px;
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verification-form h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--text);
}

.verification-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-form label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.verification-form input {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.verification-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.verification-success,
.verification-pending,
.verification-rejected {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.success-icon,
.pending-icon,
.rejected-icon {
  font-size: 48px;
}

.success-icon {
  color: #4caf50;
}

.pending-icon {
  color: #ff9800;
}

.rejected-icon {
  color: #f44336;
}

.verification-success h3,
.verification-pending h3,
.verification-rejected h3 {
  margin: 0;
  font-size: 18px;
}

.verification-success p,
.verification-pending p,
.verification-rejected p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.submitted-date {
  font-size: 12px;
  color: var(--text);
  margin-top: 8px;
}

.admin-notes {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0 0 0;
}

.admin-notes strong {
  color: var(--text);
}

/* Admin layout */
.admin-layout {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.admin-content {
  width: 100%;
  max-width: 1000px;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.admin-header .helper-text {
  margin: 0;
  color: var(--muted);
}

/* Verification table */
.verification-table-container {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.verification-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.verification-table thead {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.verification-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.verification-table td {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.verification-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.url-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: all 0.2s ease;
}

.url-link:hover {
  opacity: 0.8;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.status-approved {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-rejected {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.review-btn {
  padding: 6px 12px;
  background: rgba(100, 226, 182, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.review-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Review modal */
.review-modal {
  max-width: 500px;
}

.review-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.review-value {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  margin: 0;
  font-size: 13px;
  word-break: break-all;
}

.review-textarea {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  min-height: 100px;
  resize: vertical;
  transition: all 0.2s ease;
}

.review-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.review-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Avatar Generator Form */
.avatar-generator-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-generator-form h3 {
  margin: 3px 0 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.avatar-generator-form #avatarGeneratorForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Form Textarea */
.form-textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

/* Photo Type Toggle */
.photo-type-toggle {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-type-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.photo-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  background: transparent;
}

.photo-type-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.photo-type-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.photo-type-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(100, 226, 182, 0.15);
}

.photo-type-btn i {
  font-size: 1rem;
}

/* Messages Badge */
#messagesBtn {
  position: relative;
}

.unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* Messages Modal */
.messages-modal {
  width: 90%;
  max-width: 600px;
  height: 80vh !important;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
}

.messages-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.conversation-item {
  padding: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.conversation-item:hover {
  background: rgba(100, 226, 182, 0.05);
  border-color: rgba(100, 226, 182, 0.1);
}

.conversation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.conversation-item-name {
  font-weight: 600;
  color: var(--text);
}

.conversation-unread {
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.conversation-item-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.thread-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thread-header h3 {
  margin: 0;
  flex: 1;
}

#backToConversations {
  white-space: nowrap;
}

.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message-thread-item {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  word-wrap: break-word;
  animation: slideIn 0.2s ease;
}

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

.message-thread-item.sent {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
}

.message-thread-item.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-thread-item.timestamp {
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: center;
  align-self: center;
}

.message-input-form {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-input-form textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  padding: 0.75rem;
  font-family: inherit;
  resize: none;
  max-height: 100px;
}

.message-input-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.message-input-form button {
  align-self: flex-end;
  min-width: 80px;
}

.chat-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-header-name-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-header-badge.verified {
  background: rgba(100, 226, 182, 0.15);
  color: var(--accent);
  border: 1px solid rgba(100, 226, 182, 0.3);
}

.chat-header-badge.pending {
  background: rgba(255, 200, 100, 0.15);
  color: #ffc864;
  border: 1px solid rgba(255, 200, 100, 0.3);
}

.chat-header-badge i {
  font-size: 0.75rem;
}

/* Citations in question detail modal */
.citations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.citation-doc {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.citation-doc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.citation-chunk {
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 2px solid rgba(100, 226, 182, 0.3);
}

.citation-chunk-idx {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

.citation-score {
  font-size: 11px;
  color: var(--muted);
}

.citation-excerpt {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.4;
  font-style: italic;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.citation-excerpt:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Feedback advice modal */
.feedback-advice-modal {
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.feedback-advice-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.advice-docs-list {
  margin-bottom: 16px;
}

.advice-doc-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.advice-doc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.advice-chunks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advice-chunk-item {
  padding-left: 8px;
  border-left: 2px solid rgba(100, 226, 182, 0.3);
}

.advice-chunk-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.advice-chunk-text {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  font-style: italic;
  line-height: 1.4;
}

.advice-section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(100, 226, 182, 0.25);
  border-radius: 8px;
  padding: 14px;
}

.advice-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}

.advice-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* Chat history dropdown styles */
.chat-history-wrapper {
  position: relative;
  display: inline-block;
}

.chat-history-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.chat-history-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--panel);
}

#chatHistoryList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chat-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-history-item:last-child {
  border-bottom: none;
}

.chat-history-item:hover {
  background: rgba(100, 226, 182, 0.08);
}

.chat-history-item-content {
  flex: 1;
  min-width: 0;
}

.chat-history-item-title {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.chat-history-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
  margin-left: 8px;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.chat-history-delete-btn:hover {
  color: #ff6b6b;
}

.chat-history-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border: none !important;
}

.public-agent-page {
  min-height: 100vh;
}

.public-agent-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-agent-container {
  min-height: 100vh;
}

.public-agent-profile-card {
  cursor: default;
}

.public-agent-profile-card:hover {
  opacity: 1;
}

.public-agent-error {
  margin: 16px 20px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 8px;
  color: #ffd1d1;
  background: rgba(255, 107, 107, 0.12);
}

.public-agent-disabled-control,
.public-agent-disabled-search {
  opacity: 0.55;
}

.public-agent-disabled-control:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.public-agent-disabled-search .search-input {
  cursor: not-allowed;
}

.public-agent-login-link,
.public-agent-cta-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.public-agent-login-link {
  min-height: 48px;
}

.public-agent-cta-link {
  min-height: 48px;
}

.public-agent-nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
