/* Charte Graphique — Overly Reply (Studio Overly 2026) */

:root {
  --bg: #f3f4f1;
  --surface: #e6e9e2;
  --ink: #1b1e22;
  --mute: #5b6168;
  --sage: #4f7046;
  --ice: #3f6a99;
  --line: #cfd4ca;
  --phone: #1c1e23;
}

[data-theme="dark"] {
  --bg: #14161a;
  --surface: #1c1f24;
  --ink: #ecebf1;
  --mute: #9a9fa8;
  --sage: #8fb083;
  --ice: #8fb4d9;
  --line: #2b2f36;
  --phone: #0c0d10;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --surface: #1c1f24;
    --ink: #ecebf1;
    --mute: #9a9fa8;
    --sage: #8fb083;
    --ice: #8fb4d9;
    --line: #2b2f36;
    --phone: #0c0d10;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Typography per Charte Graphique */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.15;
}

.font-800 { font-weight: 800; }
.font-600 { font-weight: 600; }
.font-500 { font-weight: 500; }
.font-400 { font-weight: 400; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-sans { font-family: inherit; }

/* Conteneur principal */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

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

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-sage {
  background: var(--sage);
  color: #ffffff;
}

.btn-sage:hover:not(:disabled) {
  filter: brightness(0.92);
}

.btn-ice {
  background: var(--ice);
  color: #ffffff;
}

.btn-ice:hover:not(:disabled) {
  filter: brightness(0.92);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--line);
  color: var(--ink);
}

/* Cartes et Encadrés */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s ease;
}

.mail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.msg {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.msg.ai {
  border-color: var(--ice);
}

/* Étiquettes et Badges */
.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ice);
  display: inline-block;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.2;
}

.chip.ok {
  background: var(--ice);
  color: var(--bg);
  border-color: var(--ice);
}

/* Formulaires */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(63, 106, 153, 0.15);
}

.form-control::placeholder {
  color: var(--mute);
  opacity: 0.8;
}

/* Modal Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.15s ease-out;
}

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

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Focus visible per charte */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Animations */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-slide-in {
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================================================== */
/* Utility Classes (Flex, Grid, Spacing, Colors, Responsive)                  */
/* ========================================================================== */

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gaps */
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-2\.5 { gap: 10px; }
.gap-3 { gap: 12px; }
.gap-3\.5 { gap: 14px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }

/* Padding */
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-2\.5 { padding: 10px; }
.p-3 { padding: 12px; }
.p-3\.5 { padding: 14px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-12 { padding: 48px; }
.p-16 { padding: 64px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-3\.5 { padding-top: 14px; padding-bottom: 14px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }

.px-2 { padding-left: 8px; padding-right: 8px; }
.px-2\.5 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-3\.5 { padding-left: 14px; padding-right: 14px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.pt-1 { padding-top: 4px; }
.pt-1\.5 { padding-top: 6px; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }
.pl-10 { padding-left: 40px; }

/* Margins */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-1\.5 { margin-top: 6px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }
.mb-1 { margin-bottom: 4px; }
.mb-1\.5 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.\!ml-0 { margin-left: 0 !important; }

/* Spacing stack (vertical / horizontal) */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 4px; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 8px; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 10px; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 16px; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 20px; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 24px; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 32px; }

/* Dimensions */
.w-full { width: 100%; }
.w-4 { width: 16px; }
.w-8 { width: 32px; }
.w-9 { width: 36px; }
.w-10 { width: 40px; }
.w-11 { width: 44px; }
.w-12 { width: 48px; }
.w-14 { width: 56px; }
.h-4 { height: 16px; }
.h-full { height: 100%; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-10 { height: 40px; }
.h-11 { height: 44px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.min-h-\[80vh\] { min-height: 80vh; }
.min-h-\[85vh\] { min-height: 85vh; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.min-w-0 { min-width: 0px; }
.max-h-60 { max-height: 15rem; }

/* Borders & Radius */
.border { border-width: 1px; border-style: solid; border-color: var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }
.border-l { border-left: 1px solid var(--line); }
.border-r { border-right: 1px solid var(--line); }
.border-line { border-color: var(--line); }
.border-ink { border-color: var(--ink); }
.border-ice { border-color: var(--ice); }
.border-sage { border-color: var(--sage); }
.border-red-200 { border-color: rgba(239, 68, 68, 0.3); }
.border-2 { border-width: 2px; border-style: solid; border-color: var(--line); }
.border-t-transparent { border-top-color: transparent; }

.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 14px; }
.rounded-2xl { border-radius: 18px; }
.rounded-full { border-radius: 9999px; }

/* Colors */
.bg-bg { background-color: var(--bg); }
.bg-surface { background-color: var(--surface); }
.bg-ink { background-color: var(--ink); color: var(--bg); }
.bg-ice { background-color: var(--ice); color: #ffffff; }
.bg-sage { background-color: var(--sage); color: #ffffff; }
.bg-transparent { background-color: transparent; }

.bg-ice\/10 { background-color: rgba(63, 106, 153, 0.1); }
.bg-ice\/15 { background-color: rgba(63, 106, 153, 0.15); }
.bg-sage\/10 { background-color: rgba(79, 112, 70, 0.1); }
.bg-sage\/15 { background-color: rgba(79, 112, 70, 0.15); }
.bg-red-50 { background-color: rgba(239, 68, 68, 0.08); }
.bg-ink\/5 { background-color: rgba(27, 30, 34, 0.05); }

.text-ink { color: var(--ink); }
.text-mute { color: var(--mute); }
.text-bg { color: var(--bg); }
.text-ice { color: var(--ice); }
.text-sage { color: var(--sage); }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-white { color: #ffffff; }

/* Hover states */
.hover\:text-ink:hover { color: var(--ink); }
.hover\:bg-surface:hover { background-color: var(--surface); }
.hover\:bg-bg:hover { background-color: var(--bg); }
.hover\:border-ink:hover { border-color: var(--ink); }
.hover\:border-ice:hover { border-color: var(--ice); }
.hover\:opacity-80:hover { opacity: 0.8; }

/* Transition */
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-all { transition: all 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-100 { opacity: 1; }

/* Typography Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-xs { font-size: 0.78rem; line-height: 1.35; }
.text-sm { font-size: 0.9rem; line-height: 1.45; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.15rem; line-height: 1.4; }
.text-xl { font-size: 1.35rem; line-height: 1.3; }
.text-2xl { font-size: 1.7rem; line-height: 1.25; }
.text-3xl { font-size: 2.1rem; line-height: 1.2; }
.text-4xl { font-size: 2.6rem; line-height: 1.15; }
.text-5xl { font-size: 3.2rem; line-height: 1.1; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.04em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.6; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.break-words { overflow-wrap: break-word; word-break: break-word; }

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Position & Overflow */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 96px; }
.top-1\/2 { top: 50%; }
.left-3 { left: 12px; }
.left-3\.5 { left: 14px; }
.right-3 { right: 12px; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.resize-y { resize: vertical; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top: 1px solid var(--line);
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Ring utilities */
.ring-2 { box-shadow: 0 0 0 2px var(--ice); }
.ring-4 { box-shadow: 0 0 0 4px rgba(63, 106, 153, 0.2); }
.ring-ice { box-shadow: 0 0 0 3px rgba(63, 106, 153, 0.25); }

/* Fill utilities */
.fill-sage { fill: var(--sage); }
.fill-ice { fill: var(--ice); }
.fill-current { fill: currentColor; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

/* ========================================================================== */
/* Responsive Breakpoints (sm: 640px, md: 768px, lg: 1024px)                 */
/* ========================================================================== */

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:flex-col { flex-direction: column; }
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-5 { padding: 20px; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:text-5xl { font-size: 3.2rem; }
  .md\:p-8 { padding: 32px; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* ========================================================================== */
/* Navbar Component Styles                                                     */
/* ========================================================================== */

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mute);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background-color: var(--surface);
}

.nav-link.active {
  color: var(--ink);
  background-color: var(--surface);
}

/* ========================================================================== */
/* Page & Section Layout                                                       */
/* ========================================================================== */

.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.section {
  padding: 32px 0;
}

/* Stats grid */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Email list item */
.email-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.email-item:hover {
  background-color: var(--bg);
}

.email-item.unread {
  background-color: rgba(63, 106, 153, 0.04);
}

.email-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================================== */
/* AI Editor Specific                                                          */
/* ========================================================================== */

.ai-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
}

.version-history {
  max-height: 280px;
  overflow-y: auto;
}

.version-item {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 0.88rem;
}

.version-item:hover {
  background-color: var(--bg);
}

.version-item.active {
  background-color: var(--bg);
  border: 1px solid var(--ice);
}
