:root {
  --bg: #f3f1eb;
  --ink: #0c1220;
  --panel: #fffcf7;
  --brand: #d4ff3a;
  --border: #d5cfc2;
  --muted: #5c6573;
  --sidebar: #0c1220;
  --sidebar-text: #f3f1eb;
  --primary: #0c1220;
  --accent: #d4ff3a;
  --surface: #fffcf7;
  --bg-top: #f7f4ee;
  --bg-bottom: #ebe6dc;
  --sidebar-hover: #1a2333;
  --chip-bg: #f4f7e8;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  min-height: 100%;
  height: 100%;
}
a { color: inherit; }
img { max-width: 100%; }
.shell {
  display: flex;
  min-height: 100%;
  height: 100%;
  height: 100dvh;
  position: relative;
}
.topbar { display: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }
.sidebar-top { display: contents; }
.sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand { font-weight: 800; letter-spacing: -0.04em; font-size: 1.5rem; color: var(--brand); margin: 0; }
.portal-name { font-size: 0.75rem; opacity: 0.75; margin: 0.35rem 0 1rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; overflow-y: auto; }
.sidebar nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.nav-icon svg { width: 1.15rem; height: 1.15rem; display: block; }
.sidebar nav a.active, .sidebar nav a:hover { background: var(--sidebar-hover); }
.sidebar nav a.nav-messages { justify-content: flex-start; }
.sidebar nav a .nav-label { flex: 1; min-width: 0; }
.sidebar-foot { border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 18%, transparent); padding-top: 0.75rem; font-size: 0.85rem; }
.sidebar-foot button {
  margin-top: 0.5rem;
  width: 100%;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--sidebar-text) 22%, transparent);
  color: var(--sidebar-text);
  padding: 0.55rem;
  min-height: 2.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.main {
  flex: 1;
  padding: 1.5rem;
  max-width: 960px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.main-wide {
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mailbox-back { display: none; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(12 18 32 / 0.04);
}
h1 { font-size: 1.5rem; margin: 0 0 0.35rem; }
.lead { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  min-height: 2.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  touch-action: manipulation;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: color-mix(in srgb, var(--border) 70%, var(--surface)); color: var(--ink); }
.btn-brand { background: var(--accent); color: var(--primary); }
.field { margin-bottom: 0.85rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #fff;
}
.grid-2 { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.alert { padding: 0.65rem 0.85rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: #fde8e6; color: #8b1e14; }
.alert-warn { background: #fff8d6; color: #5c4a00; }
.alert-ok { background: rgb(212 255 58 / 0.35); }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 999px; }
.badge-claimed { background: var(--ink); color: #fff; }
.badge-free { background: var(--brand); color: var(--ink); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-bottom: 1px solid var(--border); }
.list a { display: block; padding: 0.85rem 0.5rem; text-decoration: none; }
.list a:hover { background: rgb(231 226 214 / 0.5); }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.steps { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.step-pill { font-size: 0.7rem; padding: 0.25rem 0.55rem; border-radius: 999px; background: #e7e2d6; }
.step-pill.active { background: var(--ink); color: #fff; }
.step-pill.done { background: var(--brand); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.btn-xs { padding: 0.2rem 0.45rem; font-size: 0.75rem; }
/* Calendrier professionnel */
.cal-app { display: flex; flex-direction: column; gap: 0.75rem; min-height: calc(100vh - 3rem); }
.cal-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: flex-end;
}
.cal-toolbar-left h1 { margin: 0; font-size: 1.45rem; letter-spacing: -0.02em; }
.cal-heading {
  font-weight: 600; text-transform: capitalize; margin: 0.2rem 0 0;
  color: var(--muted); font-size: 0.95rem;
}
.cal-controls { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.cal-seg {
  display: inline-flex; padding: 0.2rem; gap: 0.15rem;
  background: color-mix(in srgb, var(--border) 55%, var(--surface));
  border-radius: 0.65rem; border: 1px solid var(--border);
}
.cal-seg-btn {
  padding: 0.4rem 0.85rem; border-radius: 0.5rem; text-decoration: none;
  font-size: 0.8rem; font-weight: 650; color: var(--muted);
}
.cal-seg-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(12 18 32 / 0.08); }
.cal-nav-group { display: inline-flex; gap: 0.35rem; align-items: center; }
.cal-nav-btn { min-width: 2.25rem; justify-content: center; font-size: 1.1rem; line-height: 1; }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1rem;
  font-size: 0.72rem; color: var(--muted);
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.cal-legend-item i {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; display: inline-block;
}
.cal-root {
  flex: 1; min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(12 18 32 / 0.04);
}
.cal-month-wrap { height: 100%; }
.cal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(6, minmax(96px, 1fr));
  min-height: min(72vh, 780px);
  background: var(--border);
  gap: 1px;
}
.cal-dow {
  background: color-mix(in srgb, var(--border) 40%, var(--surface));
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-cell {
  background: var(--surface);
  min-height: 96px;
  padding: 0.35rem 0.4rem 0.45rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background 0.12s ease;
}
.cal-cell:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cal-cell.muted { background: color-mix(in srgb, var(--bg) 55%, var(--surface)); }
.cal-cell.muted .cal-daynum { color: var(--muted); }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 35%, transparent); }
.cal-daynum {
  align-self: flex-start;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.1rem;
}
.cal-daynum.is-today,
.cal-day-num.is-today {
  background: var(--primary);
  color: #fff;
}
.cal-chip {
  --ev-color: var(--muted);
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-left: 3px solid var(--ev-color);
  background: color-mix(in srgb, var(--ev-color) 14%, var(--surface));
  color: var(--ink);
  font-size: 0.7rem;
  padding: 0.18rem 0.35rem;
  border-radius: 0.3rem;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.cal-chip:hover { filter: brightness(0.97); }
.cal-chip-time { font-weight: 700; color: color-mix(in srgb, var(--ev-color) 70%, var(--ink)); }
.cal-chip-title { font-weight: 550; }
.cal-more { font-size: 0.68rem; color: var(--muted); padding: 0.1rem 0.2rem; font-weight: 600; }

/* Agenda semaine / jour */
.cal-agenda { display: flex; flex-direction: column; height: min(74vh, 820px); }
.cal-agenda-scroll { overflow: auto; flex: 1; }
.cal-agenda-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-width: 640px;
}
.cal-agenda-day .cal-agenda-body { min-width: 0; }
.cal-gutter {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding-top: calc(3.1rem + 2.1rem);
}
.cal-gutter-hour {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  padding-right: 0.45rem;
  transform: translateY(-0.45rem);
}
.cal-agenda-cols {
  display: grid;
  min-height: 100%;
}
.cal-day-col {
  border-right: 1px solid var(--border);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cal-day-col:last-child { border-right: none; }
.cal-day-col.is-today .cal-day-head {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}
.cal-day-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem 0.45rem;
  background: color-mix(in srgb, var(--border) 28%, var(--surface));
  border-bottom: 1px solid var(--border);
  min-height: 3.1rem;
}
.cal-day-dow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cal-day-num {
  font-size: 0.95rem;
  font-weight: 750;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-allday {
  min-height: 2.1rem;
  padding: 0.25rem 0.3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
}
.cal-allday-empty { font-size: 0.65rem; color: var(--border); text-align: center; }
.cal-chip-allday { font-size: 0.68rem; }
.cal-timegrid {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 55px,
      color-mix(in srgb, var(--border) 70%, transparent) 55px,
      color-mix(in srgb, var(--border) 70%, transparent) 56px
    );
}
.cal-hourline {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  pointer-events: none;
}
.cal-slot {
  position: absolute;
  left: 0; right: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.cal-slot:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cal-block {
  --ev-color: var(--primary);
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  z-index: 1;
  border: none;
  border-left: 3px solid var(--ev-color);
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--ev-color) 18%, var(--surface));
  color: var(--ink);
  text-align: left;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(12 18 32 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.cal-block:hover { filter: brightness(0.98); box-shadow: 0 2px 6px rgb(12 18 32 / 0.1); }
.cal-block-time { font-size: 0.65rem; font-weight: 700; color: color-mix(in srgb, var(--ev-color) 65%, var(--ink)); }
.cal-block-title { font-size: 0.75rem; font-weight: 650; line-height: 1.2; }
.cal-block-meta { font-size: 0.65rem; color: var(--muted); }
.cal-dialog-card { margin: 0; min-width: min(100%, 440px); }
.cal-dialog-card h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.cal-dialog-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.cal-dialog-actions-right { display: flex; gap: 0.5rem; margin-left: auto; }
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.theme-swatch label { display: block; font-size: 0.75rem; font-weight: 650; margin-bottom: 0.3rem; }
.theme-swatch input[type="color"] {
  width: 100%; height: 2.4rem; padding: 0; border: 1px solid var(--border);
  border-radius: 0.45rem; background: transparent; cursor: pointer;
}
.theme-preview-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  margin-top: 0.85rem; padding: 0.75rem; border-radius: 0.65rem;
  border: 1px dashed var(--border); background: var(--bg);
}
.admin-hub { max-width: 920px; }
.admin-hub-head { margin-bottom: 1.25rem; }
.admin-hub-section { margin-bottom: 1.75rem; }
.admin-hub-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 0 0 0.35rem; font-weight: 750;
}
.admin-tile { text-decoration: none; display: block; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.admin-tile:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 2px 8px rgb(12 18 32 / 0.06); }
.perm-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 520px; }
.perm-table th, .perm-table td { padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; font-weight: 650; }
.perm-table thead th { font-size: 0.78rem; background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.perm-check { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; }
.perm-check input { width: 1.15rem; height: 1.15rem; }
.pass-gen-row, .temp-pass-row {
  display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap;
}
.pass-gen-row input { flex: 1; min-width: 12rem; }
.temp-pass {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  user-select: all;
}
.modal { border: none; border-radius: 1rem; padding: 0; max-width: 95vw; box-shadow: 0 12px 40px rgb(12 18 32 / 0.2); }
.modal::backdrop { background: rgb(12 18 32 / 0.45); }
.kanban { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kanban-col { background: #e7e2d6; border-radius: 0.75rem; width: 280px; min-width: 260px; padding: 0.55rem; display: flex; flex-direction: column; gap: 0.45rem; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0.35rem; }
.kanban-cards { min-height: 80px; display: flex; flex-direction: column; gap: 0.4rem; }
.kanban-cards.drag-over { outline: 2px dashed var(--ink); border-radius: 0.5rem; }
.kanban-card { background: var(--panel); border: 1px solid var(--border); border-radius: 0.55rem; padding: 0.55rem 0.65rem; cursor: grab; }
.kanban-card.dragging { opacity: 0.5; }
.kanban-card p { margin: 0.35rem 0; font-size: 0.8rem; color: var(--muted); }
.kanban-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.7rem; color: var(--muted); }
.kanban-card-actions { margin-top: 0.4rem; display: flex; gap: 0.3rem; }
.kanban-add { width: 100%; }
.drive-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; }
.drive-crumbs a { color: var(--ink); font-weight: 600; }
.drive-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.drive-table th, .drive-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.drive-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.drive-actions details { position: relative; }
.drive-actions summary { list-style: none; cursor: pointer; }
.drive-actions details[open] > *:not(summary) { position: absolute; right: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem; z-index: 5; min-width: 12rem; }
.sidebar-logo {
  max-height: 80px;
  max-width: min(100%, 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}
.sidebar img.sidebar-logo,
.topbar img.topbar-logo {
  max-height: 80px;
  max-width: min(100%, 220px);
}
.login-logo {
  max-height: 96px;
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}
.branding-logo-preview {
  max-height: 112px;
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: block;
}
.branding-logo-nav-preview {
  max-height: 80px;
  max-width: min(100%, 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}
.user-row { display: flex; gap: 0.55rem; align-items: center; text-decoration: none; color: inherit; margin-bottom: 0.5rem; }
.avatar {
  display: inline-block;
  vertical-align: middle;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a2333;
  color: var(--brand);
  font-weight: 700;
  overflow: hidden;
}
img.avatar {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
}
.avatar-sm { width: 32px; height: 32px; max-width: 32px; max-height: 32px; font-size: 0.7rem; }
img.avatar.avatar-sm { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
.avatar-md { width: 56px; height: 56px; max-width: 56px; max-height: 56px; font-size: 1rem; }
img.avatar.avatar-md { width: 56px; height: 56px; max-width: 56px; max-height: 56px; }
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #243044;
  box-sizing: border-box;
}
/* Boîte communiqués unifiée — remplit la hauteur viewport restante */
.mailbox {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mailbox-head {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.mailbox-head .lead { margin-bottom: 0; }
.mailbox-meta { display: flex; gap: 0.5rem; align-items: center; }
.mailbox-filters {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  align-items: center;
}
.mailbox-filters input[type="search"],
.mailbox-filters select {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--surface);
  font-size: 0.875rem;
}
.mailbox-filters input[type="search"] { min-width: 220px; flex: 1; }
.mailbox > .alert { flex: 0 0 auto; }
.mailbox-split {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--panel);
}
.mailbox-list {
  border-right: 1px solid var(--border);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.mailbox-row {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.mailbox-row:hover { background: rgb(231 226 214 / 0.55); }
.mailbox-row.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--ink); }
.mailbox-row.is-unread .mailbox-subject { font-weight: 800; }
.mailbox-row.is-unread .mailbox-from { font-weight: 700; }
.mailbox-row-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; }
.mailbox-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-date { color: var(--muted); white-space: nowrap; font-size: 0.72rem; }
.mailbox-subject {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mailbox-snippet {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mailbox-row-foot {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  margin-top: 0.4rem; justify-content: space-between;
}
.mailbox-source { font-size: 0.68rem; color: var(--muted); }
.mailbox-pane {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: auto;
}
.mailbox-empty { padding: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.pane-empty { margin: auto; text-align: center; max-width: 28rem; }
.mail-read-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; flex: 0 0 auto; }
.mail-read-subject { font-size: 1.25rem; margin: 0 0 0.35rem; line-height: 1.25; flex: 0 0 auto; }
.mail-read-meta { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.85rem; flex: 0 0 auto; }
.mail-claim-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 0.85rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.mail-body {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.mail-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 240px;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.mail-plain {
  margin: 0;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: auto;
  flex: 1;
}
.mailbox-full-link {
  display: block;
  padding: 0 0.9rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.mailbox-full-link:hover { color: var(--ink); text-decoration: underline; }
.mail-full {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mail-full-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.mail-full-toolbar-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mail-full-subject {
  flex: 0 0 auto;
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.mail-full-body {
  flex: 1 1 auto;
  min-height: 0;
}
.mail-frame-full {
  min-height: min(60dvh, 640px);
}
/* ——— Responsive : drawer + stack below 900px ——— */
@media (max-width: 900px) {
  body.nav-lock { overflow: hidden; }

  .shell {
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    background: var(--sidebar);
    color: var(--sidebar-text);
    border-bottom: 1px solid color-mix(in srgb, var(--sidebar-text) 14%, transparent);
    z-index: 30;
  }
  .topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
  }
  .topbar-logo {
    max-height: 36px;
    max-width: 100px;
    object-fit: contain;
    display: block;
  }
  .topbar-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid color-mix(in srgb, var(--sidebar-text) 25%, transparent);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--sidebar-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgb(12 18 32 / 0.45);
    z-index: 45;
  }
  .nav-backdrop[hidden] { display: none !important; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 300px);
    flex: none;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 50;
    box-shadow: 8px 0 24px rgb(12 18 32 / 0.25);
    padding-top: 1rem;
  }
  .shell.nav-open .sidebar { transform: translateX(0); }
  .sidebar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.45rem;
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .main, .main-wide {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 0.85rem;
    overflow: auto;
  }
  .main-wide {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Inbox: list OR pane */
  .mailbox { min-height: 0; flex: 1; }
  .mailbox-filters {
    gap: 0.4rem;
  }
  .mailbox-filters input[type="search"] { min-width: 0; width: 100%; flex: 1 1 100%; }
  .mailbox-filters select { flex: 1 1 calc(50% - 0.4rem); min-width: 0; }
  .mailbox-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
    flex: 1;
  }
  .mailbox-list {
    border-right: none;
    height: 100%;
    max-height: none;
  }
  .mailbox-pane { display: none; }
  .mailbox.has-selection .mailbox-list,
  .mailbox.has-selection .mailbox-full-link { display: none; }
  .mailbox.has-selection .mailbox-pane { display: flex; }
  .mailbox-back {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.65rem;
  }
  .mailbox-full-link { padding: 0.55rem 0.9rem; min-height: 2.5rem; }
  .mail-frame { min-height: 220px; }
  .mail-claim-bar .btn { flex: 1 1 auto; margin-left: 0 !important; }
  .mail-full-subject { font-size: 1.25rem; }
  .mail-frame-full { min-height: 50dvh; }

  /* Calendar */
  .cal-app { min-height: 0; flex: 1; gap: 0.55rem; }
  .cal-toolbar { align-items: stretch; }
  .cal-controls { width: 100%; }
  .cal-seg { width: 100%; }
  .cal-seg-btn { flex: 1; text-align: center; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; }
  .cal-legend { display: none; }
  .cal-month {
    min-height: 0;
    grid-template-rows: auto repeat(6, minmax(56px, 1fr));
  }
  .cal-cell { min-height: 56px; padding: 0.2rem; }
  .cal-chip { font-size: 0.62rem; padding: 0.1rem 0.2rem; }
  .cal-chip-time { display: none; }
  .cal-agenda { height: min(62dvh, 640px); }
  .cal-agenda-body { min-width: 520px; }
  .cal-dialog-card { min-width: 0; width: min(100vw - 1.5rem, 440px); }

  /* Kanban */
  .kanban {
    margin: 0 -0.85rem;
    padding: 0 0.85rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .kanban-col {
    width: min(85vw, 300px);
    min-width: min(85vw, 300px);
    scroll-snap-align: start;
  }

  /* Drive / admin / forms */
  .grid-2 { grid-template-columns: 1fr; }
  .drive-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .theme-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-hub { max-width: none; }
  .auth-wrap { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
  .auth-card { max-width: 100%; }
  .steps { gap: 0.3rem; }
  .step-pill { font-size: 0.65rem; }
  .modal { width: calc(100vw - 1rem); max-width: calc(100vw - 1rem); }
}

@media (max-width: 600px) {
  .mailbox-head h1 { font-size: 1.25rem; }
  .cal-month .cal-chip { display: none; }
  .cal-month .cal-more { font-size: 0.6rem; }
  .cal-cell.today .cal-more,
  .cal-cell:not(.muted) .cal-more { display: block; }
  .sidebar-logo { max-height: 64px; max-width: 180px; }
  .login-logo { max-height: 72px; }
  .ann-wall-head { flex-direction: column; align-items: stretch; }
  .ann-editor { min-height: 280px; }
}

/* —— Nav badge —— */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: auto;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-badge[hidden] { display: none !important; }
.nav-badge.is-general {
  background: #ff5a5a;
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ff5a5a 35%, transparent);
}

/* —— Collaborative chat —— */
.main-wide { max-width: none; }
.chat-app {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 0;
  min-height: min(72dvh, 780px);
  height: calc(100dvh - 3rem);
  max-height: calc(100dvh - 3rem);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.chat-app img.avatar,
.chat-app .avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: cover !important;
  flex-shrink: 0;
}
.chat-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, var(--bg));
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.chat-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.chat-list-head h1 { margin: 0; font-size: 1.25rem; }
.chat-list-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.chat-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.chat-row:hover, .chat-row.is-active { background: var(--chip-bg); }
.chat-row.is-unread .chat-row-title { font-weight: 800; }
.chat-row-body { flex: 1; min-width: 0; }
.chat-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}
.chat-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}
.chat-row-top time { font-size: 0.68rem; color: var(--muted); flex-shrink: 0; }
.chat-row-preview {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.chat-unread {
  flex-shrink: 0;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}
.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--panel);
}
.chat-back { display: none; margin: 0.75rem 1rem 0; }
.chat-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-pane-head h2 { margin: 0; font-size: 1.1rem; }
.chat-avatars { display: flex; gap: -0.25rem; }
.chat-avatars .avatar { margin-left: -0.35rem; border: 2px solid var(--panel); }
.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 0;
}
.chat-thread:has(> .chat-empty) {
  justify-content: center;
}
.chat-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
}
.chat-empty.pane-empty { margin: auto; }
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(92%, 520px);
  position: relative;
  align-self: flex-start;
}
.chat-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.55rem 0.75rem;
  position: relative;
}
.chat-msg.is-mine .chat-bubble {
  background: color-mix(in srgb, var(--brand) 35%, var(--panel));
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}
.chat-msg-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.chat-msg-body { white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.chat-reactions { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.chat-react-form { margin: 0; }
.chat-react-chip {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.chat-react-chip.is-mine { border-color: var(--ink); background: var(--chip-bg); }
.chat-msg-actions { margin-top: 0.35rem; position: relative; display: inline-block; }
.chat-react-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.55;
  padding: 0.15rem 0.25rem;
  border-radius: 0.35rem;
  line-height: 1;
}
.chat-react-toggle:hover { opacity: 1; background: var(--chip-bg); }
.chat-react-panel {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(12, 18, 32, 0.12);
  max-width: 220px;
  width: max-content;
}
.chat-react-panel[hidden],
.emoji-picker[hidden] {
  display: none !important;
}
.chat-msg.is-mine .chat-react-panel { left: auto; right: 0; }
.emoji-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.2rem;
  border-radius: 0.3rem;
}
.emoji-btn:hover { background: var(--chip-bg); }
.chat-compose {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 90%, var(--bg));
  position: relative;
  z-index: 2;
}
.chat-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 2.6rem;
  max-height: 8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.chat-compose-tools { position: relative; }
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.4rem;
  box-shadow: 0 8px 24px rgba(12, 18, 32, 0.12);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1.6rem);
  gap: 0.15rem;
}
.chat-member-picks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
}
.chat-pick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.chat-new-dialog {
  border: none;
  border-radius: 1rem;
  padding: 0;
  max-width: min(95vw, 420px);
  width: 100%;
  box-shadow: 0 12px 40px rgb(12 18 32 / 0.2);
}
.chat-new-dialog::backdrop { background: rgb(12 18 32 / 0.45); }
.chat-new-dialog .cal-dialog-card {
  margin: 0;
  border: none;
  box-shadow: none;
  padding: 1.25rem;
}
.chat-flash {
  margin: 0 0 0.75rem;
}
.chat-row.is-general .chat-row-title { color: var(--ink); }
.chat-general-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  margin-left: 0.25rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .chat-app {
    grid-template-columns: 1fr;
    height: calc(100dvh - 4.5rem);
  }
  .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .chat-app.has-selection .chat-list { display: none; }
  .chat-app.has-selection .chat-pane { display: flex; }
}

/* —— Mur des annonces + Editor.js —— */
.ann-wall { max-width: 820px; }
.ann-wall-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ann-wall-head h1 { margin: 0 0 0.25rem; }
.ann-feed { display: flex; flex-direction: column; gap: 1.1rem; }
.ann-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}
.ann-card.is-pinned {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: inset 3px 0 0 var(--brand);
}
.ann-card-full { max-width: 820px; }
.ann-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ann-card-head h2 { margin: 0.2rem 0 0.15rem; font-size: 1.2rem; }
.ann-card-head h2 a { text-decoration: none; }
.ann-card-head h2 a:hover { text-decoration: underline; }
.ann-empty { text-align: center; padding: 2rem 1.25rem; }
.ann-body { line-height: 1.55; }
.ann-body h2, .ann-body h3, .ann-body h4 { margin: 1rem 0 0.4rem; }
.ann-body p { margin: 0.45rem 0; }
.ann-body ul, .ann-body ol { margin: 0.45rem 0; padding-left: 1.35rem; }
.ann-quote {
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--brand);
  background: var(--chip-bg);
  border-radius: 0 0.4rem 0.4rem 0;
}
.ann-quote cite { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.ann-sep { border: none; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.ann-figure { margin: 0.85rem 0; }
.ann-figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
}
.ann-figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.ann-editor-wrap { max-width: 820px; padding-bottom: 5.5rem; }
.ann-editor {
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--panel);
  padding: 1rem 1.25rem 2rem;
}
.ann-editor .ce-block__content,
.ann-editor .ce-toolbar__content { max-width: 680px; }
.ann-editor .ce-header { padding: 0.2rem 0; }
.ann-editor .cdx-quote { border-left: 3px solid var(--brand); }
.ann-editor .cdx-input { border-color: var(--border); }
.ann-editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 1rem -0.25rem 0;
  padding: 0.75rem 0.25rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent, var(--bg-bottom) 28%);
}
.ann-editor-actions-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 -4px 18px rgba(12, 18, 32, 0.08);
}
.ann-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.ann-react-summary { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ann-card-meta-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.ann-card-meta-link:hover { color: var(--ink); text-decoration: underline; }
.ann-engage {
  max-width: 820px;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
}
.ann-engage-title { font-size: 1.05rem; margin: 0 0 0.65rem; }
.ann-react-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ann-react-form { margin: 0; }
.ann-react-chip {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.ann-react-chip.is-mine {
  border-color: var(--ink);
  background: var(--chip-bg);
  font-weight: 700;
}
.ann-comments {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ann-comment {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
}
.ann-comment-body { flex: 1; min-width: 0; }
.ann-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.ann-comment-text { line-height: 1.45; word-break: break-word; }
.ann-comment-del { margin-top: 0.45rem; }
.ann-comment-form { margin-top: 0.5rem; max-width: 820px; }
