/*
 * Conversation Analyst — Application Styles
 */

/* ── Design tokens ───────────────────────────────────────────────────── */
:root {
  --navy:          #0f2744;
  --navy-dark:     #081a2e;
  --blue:          #2563eb;
  --blue-light:    #eff6ff;
  --blue-mid:      #bfdbfe;
  --teal:          #0891b2;
  --success:       #059669;
  --success-light: #ecfdf5;
  --error:         #dc2626;
  --error-light:   #fef2f2;
  --warning:       #d97706;
  --warning-light: #fffbeb;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.07);
  --shadow:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--blue); }
a:hover { color: #1d4ed8; }
h1, h2, h3 { margin: 0; line-height: 1.3; }

svg.icon { vertical-align: middle; flex-shrink: 0; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 30px; display: block; }
.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.12); }
.nav-link.active { color: white; background: rgba(255,255,255,0.18); }

/* ── Page shell ──────────────────────────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}
.page-header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ── Back link ───────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--blue); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }

/* ── Section titles ──────────────────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 1.75rem 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.section-title:first-child { margin-top: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1.25;
  white-space: nowrap;
}
.btn:disabled, .btn-disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn-primary   { background: var(--blue); color: white; border-color: var(--blue); }
.btn-primary:hover,
.btn-primary:focus { background: #1d4ed8; border-color: #1d4ed8; color: white; }
.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-50); color: var(--gray-900); }
.btn-danger    { background: var(--error-light); color: var(--error); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; color: var(--error); }
.btn-success   { background: var(--success-light); color: var(--success); border-color: #bbf7d0; }
.btn-success:hover { background: #dcfce7; color: var(--success); }
.btn-ghost     { background: transparent; color: var(--gray-500); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.65rem 1.25rem; font-size: 1rem; }
.btn-icon {
  padding: 0.3rem;
  border-radius: var(--radius);
  color: var(--gray-400);
  background: transparent;
  border-color: transparent;
  line-height: 0;
}
.btn-icon:hover { background: var(--gray-100); color: var(--gray-700); }

/* button_to renders a form wrapping a button — flatten the form */
.btn-wrap form,
.btn-wrap form button { all: unset; display: contents; }
/* Allow button_to to pass .btn classes directly on the form's button */
form[data-turbo] button.btn,
form button.btn { font-family: inherit; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-control-sm { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Alerts / flash ──────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: var(--error-light);   color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--blue-light);    color: #1e40af; border-color: var(--blue-mid); }

/* ── Status badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-pending   { background: #fefce8; color: #854d0e; }
.badge-running   { background: var(--blue-light); color: #1e40af; }
.badge-completed { background: var(--success-light); color: #065f46; }
.badge-failed    { background: var(--error-light); color: #991b1b; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
/* Round the corner cells since overflow:hidden is removed */
.data-table thead tr:first-child th:first-child { border-radius: calc(var(--radius-lg) - 1px) 0 0 0; }
.data-table thead tr:first-child th:last-child  { border-radius: 0 calc(var(--radius-lg) - 1px) 0 0; }
.data-table tbody tr:last-child td:first-child  { border-radius: 0 0 0 calc(var(--radius-lg) - 1px); }
.data-table tbody tr:last-child td:last-child   { border-radius: 0 0 calc(var(--radius-lg) - 1px) 0; }
.data-table thead tr { border-bottom: 1px solid var(--gray-200); }
.data-table th {
  background: var(--gray-50);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  white-space: nowrap;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--gray-50); }
.data-table td a { font-weight: 500; }
.col-actions { text-align: right; white-space: nowrap; }
.col-num     { text-align: right; font-variant-numeric: tabular-nums; }
.col-count   { text-align: center; width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-manage  { width: 1%; white-space: nowrap; }

/* Compact table — shrinks to content, tighter padding */
.data-table--compact { width: auto; }
.data-table--compact th { padding: 0.5rem 0.75rem; }
.data-table--compact td { padding: 0.6rem 0.75rem; }

/* ── Manage dropdown ─────────────────────────────────────────────────── */
td[data-controller="manage"] { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  padding: 0.25rem 0;
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.dropdown-item:hover { background: var(--gray-100); color: var(--gray-900); }

/* ── Manage dialogs ──────────────────────────────────────────────────── */
dialog.manage-dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0;
  max-width: 440px;
  width: 90vw;
}
dialog.manage-dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.modal-inner { padding: 1.5rem; }
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
}
.modal-divider { border: none; border-top: 1px solid var(--gray-200); margin: 0.875rem 0; }
.topic-pick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.topic-pick-list li + li { border-top: 1px solid var(--gray-100); }
.topic-pick-btn {
  width: 100% !important;
  justify-content: flex-start !important;
  border-radius: 0 !important;
  color: var(--gray-800) !important;
  font-weight: 400 !important;
  padding: 0.55rem 0.875rem !important;
}

/* Striped variant */
.data-table--striped tbody tr:nth-child(even) td { background: var(--gray-50); }
.data-table--striped tbody tr:hover td { background: var(--blue-light); }

/* Table links — restrained, no classic blue underline */
.table-link {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-300);
  transition: color 0.15s, border-color 0.15s;
}
.table-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Meta info table ─────────────────────────────────────────────────── */
.meta-table { border-collapse: collapse; font-size: 0.9rem; }
.meta-table th {
  padding: 0.35rem 1.25rem 0.35rem 0;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
}
.meta-table td { padding: 0.35rem 0; color: var(--gray-900); }

/* ── Progress bar ────────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--gray-200);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--blue);
  transition: width 0.4s ease;
}

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--gray-400);
}
.empty-state svg { margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state p { margin: 0 0 1.25rem; font-size: 0.95rem; }

/* ── Stat chip ───────────────────────────────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.stat-chip--success { background: var(--success-light); color: var(--success); }
.stat-chip--partial { background: var(--warning-light); color: var(--warning); }
.stat-chip--warning { background: #fff7ed; color: #c2410c; }

/* ── Question list ───────────────────────────────────────────────────── */
.question-list { list-style: none; padding: 0; margin: 0; }
.question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.question-item:hover { box-shadow: var(--shadow); border-color: var(--blue-mid); }
.question-item-main { flex: 1; min-width: 0; }
.question-item-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
  display: block;
}
.question-item:hover .question-item-title { color: var(--blue); }
.question-item-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.question-item-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ── Upload zone ─────────────────────────────────────────────────────── */
.upload-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  transition: border-color 0.15s;
}
.upload-zone:hover { border-color: var(--blue); }
.upload-zone input[type="file"] { font-size: 0.875rem; flex: 1; }

/* ── Details / expand ────────────────────────────────────────────────── */
details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.6rem 0;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "▶";
  font-size: 0.6rem;
  color: var(--gray-400);
  transition: transform 0.2s;
  display: inline-block;
}
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { color: var(--blue); }

/* ── Misc utilities ──────────────────────────────────────────────────── */
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: 0.85rem; }
.text-right  { text-align: right; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
/* ── AI tools bar ────────────────────────────────────────────────────── */
.ai-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--blue-light), #f0f4ff);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.ai-tools-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.ai-tools-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-tools-done {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}

/* Three-step layout */
.ai-tools-bar .ai-tools-actions {
  display: flex;
  gap: 0;
  flex: 1;
}

.ai-tools-step {
  flex: 1;
  padding: 0.5rem 1rem;
  border-left: 1px solid var(--blue-mid);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ai-tools-step:first-child { border-left: none; }

.ai-tools-step-header {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.ai-tools-step-content {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ── Verify results ─────────────────────────────────────────────────── */
.verify-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Verify-results table column widths */
.verify-results-table col.col-contribution { width: 38%; }
.verify-results-table col.col-question     { width: 22%; }
.verify-results-table col.col-scores       { width: 10%; }

.contribution-description summary {
  list-style: none;
  cursor: pointer;
}
.contribution-description summary::-webkit-details-marker { display: none; }
.contribution-description[open] summary { display: none; }
.contribution-description .mt-1 { margin-top: 0.25rem; }

.verify-results-table td { vertical-align: top; }
.question-cell .score-chip { display: inline-block; margin-bottom: 0.3rem; }
.question-cell .text-sm { display: block; }

.score-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.score-chip--low  { background: var(--error-light); color: var(--error); }
.score-chip--high { background: var(--success-light); color: var(--success); }

.score-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}
.score-list li { padding: 0.15rem 0; color: var(--gray-500); }
.score-list li.score-highlight { color: var(--success); font-weight: 600; }

.verify-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cluster-actions {
  flex-direction: column;
  align-items: stretch;
}
.cluster-actions form,
.cluster-actions .reassign-dropdown {
  display: flex;
}
.cluster-actions form > button,
.cluster-actions .reassign-dropdown > summary {
  width: 100%;
  text-align: center;
}

.reassign-dropdown { position: relative; }
.reassign-dropdown > summary { list-style: none; }
.reassign-dropdown > summary::-webkit-details-marker { display: none; }
.reassign-dropdown > summary::before { display: none; }
.reassign-rename-form {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.6rem;
  display: flex;
  gap: 0.4rem;
  min-width: 260px;
}
.reassign-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  max-height: 240px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
.reassign-list li + li { border-top: 1px solid var(--gray-100); }
.reassign-btn {
  all: unset;
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}
.reassign-btn:hover { background: var(--gray-100); color: var(--gray-900); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ── Login page ────────────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--surface);
}
.login-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.flash { padding: 0.6rem 0.8rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.flash--alert  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash--notice { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Nav user section ──────────────────────────────────────── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.nav-user-email {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-dropdown { position: relative; }
.nav-user-dropdown > summary { list-style: none; }
.nav-user-dropdown > summary::-webkit-details-marker { display: none; }
.nav-user-trigger {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  user-select: none;
}
.nav-user-trigger:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  padding: 0.25rem 0;
}
.nav-user-menu-item {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
}
.nav-user-menu-item:hover { background: var(--gray-100); color: var(--gray-900); }
