/* Inquiereez — dashboard
   Direction : la relecture d'épreuves. Chrome en gris graphite, la couleur vient du contenu
   (captures annotées). Signature : le signe d'insertion du correcteur (‸), en vermillon.
   Grille de 4 px. Une seule courbe d'animation. */

:root {
  --sidebar: #f4f4f5;
  --bg: #fafafa;
  --surface: #ffffff;
  --raised: #f4f4f5;
  --line: rgba(23, 23, 23, .08);
  --line-strong: rgba(23, 23, 23, .16);
  --text: #171717;
  --text-2: #525252;
  --muted: #737373;

  --ink: #171717;          /* bouton principal */
  --ink-text: #ffffff;
  --mark: #d9441f;         /* vermillon du correcteur : signature uniquement */
  --positive: #16a34a;
  --negative: #dc2626;

  --t-bug: #d64545;
  --t-design: #2f9488;
  --t-suggestion: #c4841d;
  --t-question: #4f78c9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sidebar: #0f0f10;
    --bg: #141415;
    --surface: #19191b;
    --raised: #232325;
    --line: rgba(237, 237, 237, .08);
    --line-strong: rgba(237, 237, 237, .16);
    --text: #ededed;
    --text-2: #a1a1a6;
    --muted: #85858b;
    --ink: #ededed;
    --ink-text: #141415;
    --mark: #f0683f;
    --positive: #4cc38a;
    --negative: #e5484d;
    --t-bug: #e5636a;
    --t-design: #4fb3a5;
    --t-suggestion: #d9a043;
    --t-question: #7c9de0;
    --shadow-sm: none;
    --shadow-float: 0 8px 24px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/20px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: 28px; line-height: 36px; letter-spacing: -.01em; }
h2 { font-size: 15px; line-height: 20px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.loading, .empty { color: var(--muted); padding: 48px 24px; text-align: center; }
.empty a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }

/* ---------- Signature : signe d'insertion ---------- */
.caret { display: inline-block; width: 12px; height: 12px; color: var(--mark); }
.caret svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.brand .caret, .brand .caret svg { width: 14px; height: 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 8px; border-radius: 8px; color: var(--text-2);
  border: 0; background: none; font: inherit; cursor: pointer; width: 100%; text-align: left;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-link svg.i { color: var(--muted); }
.nav-link:hover { background: var(--raised); color: var(--text); }
.nav-link.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.nav-link.active svg.i { color: var(--text); }
.nav-link .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar .spacer { flex: 1; }

.main { padding: 32px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; color: var(--text-2); }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 8px 0 0; }
  .nav { flex-direction: row; }
  .nav-link { width: auto; }
  .nav-link .label-logout { display: none; }
  .sidebar .spacer { flex: 1; }
  .main { padding: 24px 16px; }
  h1 { font-size: 24px; line-height: 32px; }
}

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn svg.i { color: var(--muted); }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary svg.i { color: inherit; }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--negative); }
.btn.danger svg.i { color: currentColor; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.quiet { border-color: transparent; background: none; color: var(--text-2); }
.btn.quiet:hover { background: var(--raised); color: var(--text); }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 36px;
  transition: border-color .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--text); outline-offset: -1px; border-radius: 8px; }
textarea { width: 100%; height: auto; padding: 8px 12px; resize: vertical; min-height: 80px; line-height: 20px; }
select { padding-right: 8px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 13px; }
.field label small, .field .help { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 16px; }
.error-msg { color: var(--negative); margin: 0 0 12px; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 360px; padding: 32px 24px 24px; }
.login .brand { padding: 0; height: auto; margin-bottom: 4px; font-size: 18px; }
.login .sub { color: var(--text-2); margin-bottom: 24px; }
.login input { width: 100%; }
.login .btn { width: 100%; height: 40px; }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg.i { position: absolute; left: 12px; top: 10px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding-left: 36px; }
.segmented { display: inline-flex; gap: 2px; padding: 2px; background: var(--raised); border-radius: 10px; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }

/* ---------- Types, statuts, sévérité (texte discret + point) ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dot, var(--muted)); }
.type-bug { --dot: var(--t-bug); }
.type-design { --dot: var(--t-design); }
.type-suggestion { --dot: var(--t-suggestion); }
.type-question { --dot: var(--t-question); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; }
.status-new::before { background: var(--text); }
.status-new { color: var(--text); }
.status-in_progress::before { border: 1.5px solid var(--text-2); }
.status-resolved::before { background: var(--positive); }
.status-closed::before { background: var(--line-strong); }
.sev { font-size: 13px; color: var(--muted); }
.sev-high, .sev-critical { color: var(--negative); }

/* ---------- Liste chronologique ---------- */
.day { margin-bottom: 32px; }
.day-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text);
  margin: 0 0 8px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 1;
}
.day-label .mono { color: var(--muted); font-weight: 400; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.t-row {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 16px; align-items: start;
  padding: 16px 20px 16px 0; color: var(--text);
  transition: background-color .15s var(--ease);
}
.t-row.selected { background: color-mix(in srgb, var(--raised) 80%, transparent); }
.t-select { display: flex; justify-content: center; padding-top: 2px; position: relative; z-index: 1; }
/* The title link covers the whole row; checkbox and status stay clickable above it. */
.t-link { color: var(--text); }
.t-link::after { content: ""; position: absolute; inset: 0; }
.t-link:focus-visible { outline: none; }
.t-row:has(.t-link:focus-visible) { box-shadow: inset 0 0 0 2px var(--text); }
.t-line .caret { flex: none; }
.t-row + .t-row { border-top: 1px solid var(--line); }
.t-row:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.t-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t-line .status-pick { margin-left: auto; }
.t-excerpt { color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.t-meta { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-top: 4px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-meta .tag { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; color: var(--muted); }
.t-row.done .t-title { color: var(--text-2); }
.t-thumb {
  width: 144px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--raised);
  box-shadow: 0 0 0 1px var(--line);
}
.t-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 760px) {
  .t-row { grid-template-columns: 40px minmax(0, 1fr); padding-right: 16px; }
  .t-thumb { grid-column: 2; width: 100%; height: 120px; margin-top: 12px; }
}

/* ---------- Fiche ticket ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; height: 32px; color: var(--text-2); margin-bottom: 16px; transition: color .15s var(--ease); }
.back-link:hover { color: var(--text); }
.detail-head { margin-bottom: 24px; }
.detail-head h1 { display: flex; align-items: baseline; gap: 12px; }
.detail-head h1 .id { font-family: var(--mono); font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.detail-head .line { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin-top: 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 24px; align-items: start; }
@media (max-width: 1024px) { .detail { grid-template-columns: 1fr; } }
.section { margin-bottom: 24px; }
.section > h2 { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.section > h2 .mono { color: var(--muted); font-weight: 400; }
.description { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 24px; }

/* L'épreuve corrigée : l'élément central de la fiche */
.proof { padding: 0; overflow: hidden; }
.proof-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.proof-stage { background: var(--raised); padding: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-stage button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.proof-stage img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.proof-foot { display: flex; gap: 4px 16px; flex-wrap: wrap; padding: 12px 20px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }

.meta-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; word-break: break-word; }
.meta-list dd.mono { font-size: 12px; }
.meta-list a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.meta-list a:hover { text-decoration-color: currentColor; }
.aside-sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.console { margin: 0; padding: 0; list-style: none; font: 12px/18px var(--mono); }
.console li { padding: 8px 12px; border-left: 2px solid var(--negative); background: var(--raised); border-radius: 0 6px 6px 0; white-space: pre-wrap; word-break: break-word; }
.console li + li { margin-top: 4px; }
.console time { display: block; color: var(--muted); }

.activity { list-style: none; margin: 0 0 16px; padding: 0; }
.activity li { padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.activity li + li { border-top: 1px solid var(--line); }
.activity li:first-child { padding-top: 0; }
.activity .when { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.activity .change { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.activity .comment { white-space: pre-wrap; }
.form-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------- Projets ---------- */
.projects { display: grid; gap: 16px; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.project-stats { color: var(--muted); font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.snippet { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0; padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--raised); }
.snippet pre { flex: 1; margin: 0; padding: 6px 0; font: 12px/20px var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
.project-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; margin-top: 12px; }
.new-project { margin-bottom: 32px; }
.new-project h2 { margin-bottom: 16px; }
.new-project form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.new-project .field { margin: 0; }
.new-project input { width: 100%; }
@media (max-width: 760px) { .new-project form { grid-template-columns: 1fr; } }

/* ---------- Lightbox & toast ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10, 10, 11, .88); display: grid; place-items: center; z-index: 50; cursor: zoom-out; padding: 24px; animation: fade .2s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 60;
  background: var(--ink); color: var(--ink-text); padding: 10px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: var(--shadow-float); transform: translateX(-50%); animation: rise .22s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Paramètres (MCP) ---------- */
.settings-section { margin-bottom: 24px; max-width: 880px; }
.settings-section > h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.settings-section > h2 .mono { color: var(--muted); font-weight: 400; }
.lead { color: var(--text-2); margin-bottom: 20px; max-width: 64ch; }
.help { font-size: 12px; line-height: 16px; color: var(--muted); }
.help code { font-size: 11px; }
.settings-kv { margin-bottom: 20px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.notice svg.i { color: var(--text); margin-top: 2px; }
.token-form { display: grid; grid-template-columns: minmax(0, 1fr) 200px 160px auto; gap: 12px; align-items: end; }
.token-form .field { margin: 0; }
.token-form input, .token-form select { width: 100%; }
@media (max-width: 760px) { .token-form { grid-template-columns: 1fr; } }
.reveal { margin-top: 20px; padding: 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); }
.reveal-title { font-weight: 500; margin-bottom: 4px; }
.reveal .snippet { margin: 12px 0; background: var(--raised); }
.reveal .snippet pre { color: var(--text); }
.token-list { list-style: none; margin: 8px 0 0; padding: 0; }
.token-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 0; }
.token-row + .token-row { border-top: 1px solid var(--line); }
.token-main { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.token-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-name svg.i { color: var(--muted); align-self: center; }
.token-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-left: 24px; font-size: 12px; line-height: 16px; color: var(--muted); }
.token-row .btn { grid-column: 2; grid-row: 1 / span 2; }
.token-row.expired .token-name { color: var(--text-2); }
.expired-label { color: var(--negative); }
.token-empty { margin-top: 8px; }

/* ---------- Sélection et actions groupées ---------- */
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--text); cursor: pointer; }
.list-tools { display: flex; align-items: center; justify-content: space-between; margin: -16px 0 8px; }
.check-all { display: inline-flex; align-items: center; gap: 12px; height: 32px; padding: 0 14px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.bulk-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-float);
  animation: rise .22s var(--ease);
}
.bulk-bar[hidden] { display: none; }
.bulk-count { font-size: 13px; font-weight: 500; margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bulk-bar select { height: 32px; }
.btn.icon-only { width: 32px; padding: 0; }

/* Statut modifiable sur la ligne */
.status-pick { position: relative; z-index: 1; display: inline-flex; align-items: center; flex: none; }
.status-pick::before { content: ""; position: absolute; left: 10px; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.status-pick.status-new::before { background: var(--text); }
.status-pick.status-in_progress::before { border: 1.5px solid var(--text-2); }
.status-pick.status-resolved::before { background: var(--positive); }
.status-pick.status-closed::before { background: var(--line-strong); }
.status-pick select {
  appearance: none; -webkit-appearance: none; height: 28px; padding: 0 24px 0 24px; font-size: 13px; color: var(--text-2);
  border-color: transparent; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
}
.status-pick select:hover { border-color: var(--line-strong); background-color: var(--surface); }
.status-pick.status-new select { color: var(--text); }
.meta-ico { display: inline-flex; align-items: center; gap: 4px; }
.meta-ico svg.i { width: 12px; height: 12px; }

/* ---------- Tâches ---------- */
.tasks { list-style: none; margin: 0 0 16px; padding: 0; }
.task { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) 176px 32px; gap: 12px; align-items: center; min-height: 40px; }
.task + .task { border-top: 1px solid var(--line); }
.task-kind { font-size: 12px; line-height: 20px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-2); }
.task-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task select { height: 32px; font-size: 13px; width: 100%; }
.tasks-empty { margin-bottom: 16px; }
.task-form { display: grid; grid-template-columns: 120px minmax(0, 1fr) 176px auto; gap: 8px; }
.task-form select, .task-form input { height: 32px; font-size: 13px; width: 100%; }
@media (max-width: 760px) {
  .task { grid-template-columns: 16px auto minmax(0, 1fr) 32px; }
  .task select { grid-column: 3; }
  .task-form { grid-template-columns: 1fr; }
}

/* ---------- Discussion ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--raised); color: var(--text-2); font-size: 11px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line);
}
.avatar.ai { background: var(--ink); color: var(--ink-text); box-shadow: none; font-family: var(--mono); }
.thread { list-style: none; margin: 0 0 20px; padding: 0; position: relative; }
.thread::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.thread > li { position: relative; }
.thread > li + li { margin-top: 12px; }
.event { display: flex; align-items: center; gap: 12px; padding-left: 6px; font-size: 13px; color: var(--text-2); }
.event > svg.i { width: 16px; height: 16px; color: var(--muted); background: var(--surface); flex: none; }
.event b { font-weight: 500; color: var(--text); }
.event .status { margin: 0 2px; }
.event time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.comment { display: flex; gap: 12px; }
.comment .avatar { position: relative; }
.c-main { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; padding: 4px 4px 4px 12px; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 10px 10px 0 0; font-size: 13px; }
.c-head b { font-weight: 500; }
.c-head time { font-size: 12px; }
.c-head .c-del { margin-left: auto; }
.ai-tag { font-family: var(--mono); font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--raised); color: var(--text-2); }
.c-body { padding: 12px; white-space: pre-wrap; word-wrap: break-word; }
.mention { font-weight: 500; color: var(--text); background: var(--raised); border-radius: 4px; padding: 0 2px; }
.composer { display: flex; gap: 12px; }
.composer-main { flex: 1; min-width: 0; }
.mention-wrap { position: relative; }
.composer textarea { min-height: 88px; }
.composer .form-foot { justify-content: space-between; align-items: center; gap: 12px; }
.mention-pop {
  position: absolute; left: 8px; top: calc(100% + 4px); z-index: 30; width: 280px; max-width: calc(100% - 16px);
  list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-float);
}
.mention-pop[hidden] { display: none; }
.mention-pop li { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mention-pop li .avatar { width: 22px; height: 22px; font-size: 10px; }
.mention-pop li .mono { margin-left: auto; font-size: 12px; }
.mention-pop li.active { background: var(--raised); }
kbd { font-family: var(--mono); font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--text-2); }

/* ---------- Mentions ---------- */
.inbox-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 20px; color: var(--text); transition: background-color .15s var(--ease); }
.inbox-row + .inbox-row { border-top: 1px solid var(--line); }
.inbox-row:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.inbox-row.unread .unread-dot { background: var(--text); }
.inbox-row:not(.unread) { color: var(--text-2); }
.inbox-row b { font-weight: 500; }
.inbox-excerpt { margin-top: 4px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.inbox-row time { font-size: 12px; white-space: nowrap; }
.nav-link .count.unread { color: var(--text); font-weight: 600; }

/* ---------- Barre latérale : utilisateur ---------- */
.me { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0 8px; border-top: 1px solid var(--line); }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 16px; }
.me-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text .mono { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .me-text { display: none; } .me { border: 0; padding: 0; } }

/* ---------- Paramètres : profil et membres ---------- */
.grid-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.grid-form .field { margin: 0; }
.grid-form input { width: 100%; }
.password-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.settings-section > .help { margin-top: 12px; }
@media (max-width: 760px) { .grid-form, .password-form { grid-template-columns: 1fr; } }
.sub-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 500; margin: 32px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.sub-head .mono { color: var(--muted); font-weight: 400; }
.reveal-label { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.reveal-label + .snippet { margin-top: 8px; }
.member-list { list-style: none; margin: 20px 0 0; padding: 0; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.member-name { font-weight: 500; }
.member-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.member-actions { display: flex; align-items: center; gap: 8px; }
.member-actions select { height: 32px; font-size: 13px; }
.role-label { font-size: 13px; padding: 0 8px; }
.member-row.disabled .member-name { color: var(--muted); }
.login .sub .mono { font-size: 12px; }

/* =====================================================================
   Connexion (SaaS)
   ===================================================================== */
.auth { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 100vh; }
.auth-panel { display: flex; flex-direction: column; padding: 32px 48px; background: var(--surface); border-right: 1px solid var(--line); }
.auth-panel > .brand { padding: 0; height: auto; margin: 0; font-size: 17px; }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 400px; padding: 48px 0; }
.auth-main h1 { font-size: 30px; line-height: 38px; letter-spacing: -.015em; margin-bottom: 16px; }
.auth-lead { color: var(--text-2); font-size: 15px; line-height: 24px; margin-bottom: 32px; }
.auth-note { margin-top: 12px; }
.auth-foot { color: var(--muted); }
.btn.google {
  width: 100%; height: 44px; gap: 12px; font-size: 15px; background: var(--surface); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn.google:hover { background: var(--raised); }
.btn.google:disabled { opacity: .6; cursor: wait; }
.g-logo { width: 18px; height: 18px; flex: none; }
.pw-login { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.pw-login summary { cursor: pointer; font-size: 13px; color: var(--text-2); list-style: none; width: fit-content; }
.pw-login summary::-webkit-details-marker { display: none; }
.pw-login summary:hover { color: var(--text); }
.pw-login[open] summary { margin-bottom: 16px; }
.pw-form input { width: 100%; }
.pw-form .btn { width: 100%; height: 40px; }
.auth-main .error-msg { margin-bottom: 16px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--negative) 10%, transparent); }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .btn.google { margin-top: 4px; }

.auth-stage { position: relative; display: grid; place-items: center; overflow: hidden; background: #141415; padding: 48px; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-stage { display: none; }
  .auth-panel { border-right: 0; padding: 24px 16px; }
  .auth-main { max-width: none; padding: 32px 0; }
  .auth-main h1 { font-size: 26px; line-height: 32px; }
}

/* ---------- Scène de connexion : du code au correctif ----------
   Un cycle de 16 s. L'état par défaut (sans animation) est l'état final : c'est ce que voient les
   personnes qui ont demandé à réduire les animations. */
.scene {
  --T: 16s;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --paper: #fafafa;
  --ink-1: #171717;
  --ink-2: #525252;
  --ink-3: #8a8a8f;
  --vermillon: #e8492a;
  position: relative; width: min(640px, 100%); aspect-ratio: 640 / 520; color: var(--ink-1);
  font: 13px/20px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.scene * { animation-duration: var(--T); animation-iteration-count: infinite; animation-timing-function: var(--ease); animation-fill-mode: both; }
.win { position: absolute; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.45); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #ededed; border-bottom: 1px solid rgba(23,23,23,.08); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(23,23,23,.16); }
.win-bar span { margin-left: 8px; font: 11px/16px var(--mono); color: var(--ink-3); }

/* Éditeur */
.editor { left: 0; top: 0; width: 58%; background: #1c1c1e; animation-name: editor-in; }
.editor .win-bar { background: #232325; border-color: rgba(237,237,237,.06); }
.editor .win-bar i { background: rgba(237,237,237,.16); }
.code { margin: 0; padding: 16px 20px 20px; font: 12px/22px var(--mono); color: #c9c9ce; display: flex; flex-direction: column; }
.code b { color: #8fb4ff; font-weight: 400; }
.ln { display: block; white-space: pre; clip-path: inset(0 0 0 0); }
.l1 { animation-name: type-1; }
.l2 { animation-name: type-2; }
.l3.old { animation-name: line-old; height: 0; opacity: 0; }
.l3.new { animation-name: line-new; color: #9be0b4; background: rgba(76,195,138,.12); border-radius: 4px; margin: 0 -6px; padding: 0 6px; }
.l4 { animation-name: type-4; }

/* Logiciel livré */
.preview { right: 0; top: 22%; width: 64%; animation-name: preview-in; }
.app-body { padding: 16px; }
.app-nav { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.app-nav b { color: var(--ink-1); font-weight: 600; margin-right: 4px; }
.app-nav .on { color: var(--ink-1); }
.kpis { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.kpi { padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(23,23,23,.06); }
.kpi small { display: block; font-size: 11px; color: var(--ink-3); }
.kpi b { display: block; font-size: 22px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.target { position: relative; }
.target b { position: relative; }
.v-old { animation-name: value-old; position: absolute !important; opacity: 0; }
.v-new { animation-name: value-new; }
.rows { margin-top: 12px; display: grid; gap: 8px; }
.rows i { display: block; height: 10px; border-radius: 4px; background: rgba(23,23,23,.06); }
.rows i:nth-child(2) { width: 82%; }
.rows i:nth-child(3) { width: 64%; }

/* Annotation du client : le trait vermillon du correcteur */
.mark { position: absolute; left: 44%; top: 34%; width: 52%; height: 34%; overflow: visible; animation-name: mark-fade; opacity: 0; }
.mark path { fill: none; stroke: var(--vermillon); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; animation: mark-draw var(--T) var(--ease) infinite both; }
.note {
  position: absolute; right: 4%; top: 70%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: var(--vermillon); background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  animation-name: note-in; opacity: 0;
}
.note svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.cursor {
  position: absolute; left: 30%; top: 86%; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(232,73,42,.9); box-shadow: 0 0 0 4px rgba(232,73,42,.2); animation-name: cursor-move; opacity: 0;
}

/* Ticket créé */
.ticket {
  position: absolute; left: 6%; bottom: 0; width: 46%; padding: 14px 16px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(23,23,23,.06), 0 24px 60px rgba(0,0,0,.4); animation-name: ticket-in;
}
.tk-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.tk-top .mono { font-size: 11px; color: var(--ink-3); }
.tk-top .dot { --dot: #d64545; }
.tk-status { position: relative; margin-left: auto; display: inline-grid; }
.tk-status span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.tk-status span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.s-new { color: var(--ink-1); animation-name: status-new; opacity: 0; }
.s-new::before { background: var(--ink-1); }
.s-done { color: #16a34a; animation-name: status-done; }
.s-done::before { background: #16a34a; }
.ticket p { margin: 8px 0; font-size: 14px; font-weight: 500; }
.tk-meta { display: flex; gap: 12px; flex-wrap: wrap; font: 11px/16px var(--mono); color: var(--ink-3); }

/* Les trois temps, en légende */
.beats { position: absolute; right: 0; top: 2%; display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: #85858b; }
.beats li { display: flex; align-items: center; gap: 8px; }
.beats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b1 { animation-name: beat-1; }
.b2 { animation-name: beat-2; }
.b3 { animation-name: beat-3; color: #ededed; }

/* Timeline (0 → 100 % = 16 s)
   0-22 code · 18-30 livraison · 30-50 annotation · 48-58 ticket · 60-74 correctif · 74-84 résolu · 92-100 reprise */
@keyframes editor-in { 0% { opacity: 0; transform: translateY(12px); } 4%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes type-1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 10%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes type-2 { 0%, 10% { clip-path: inset(0 100% 0 0); } 15%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes line-old {
  0%, 15% { height: 0; opacity: 0; clip-path: inset(0 100% 0 0); text-decoration: none; }
  16% { height: 22px; opacity: 1; clip-path: inset(0 100% 0 0); }
  20% { height: 22px; opacity: 1; clip-path: inset(0 0 0 0); background: transparent; text-decoration: none; }
  62% { height: 22px; opacity: 1; background: transparent; color: #c9c9ce; text-decoration: none; }
  65% { height: 22px; opacity: 1; background: rgba(229,72,77,.16); color: #f19a9d; text-decoration: line-through; }
  70%, 100% { height: 0; opacity: 0; background: rgba(229,72,77,.16); }
}
@keyframes line-new { 0%, 66% { height: 0; opacity: 0; clip-path: inset(0 100% 0 0); } 68% { height: 22px; opacity: 1; clip-path: inset(0 100% 0 0); } 73%, 100% { height: 22px; opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes type-4 { 0%, 20% { clip-path: inset(0 100% 0 0); } 22%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes preview-in { 0%, 22% { opacity: 0; transform: translateY(24px) scale(.98); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cursor-move {
  0%, 31% { opacity: 0; transform: translate(0, 0); }
  33% { opacity: 1; transform: translate(0, 0); }
  39% { opacity: 1; transform: translate(170px, -150px); }
  48% { opacity: 1; transform: translate(260px, -130px); }
  51%, 100% { opacity: 0; transform: translate(260px, -130px); }
}
@keyframes mark-fade { 0%, 38% { opacity: 0; } 39%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes mark-draw { 0%, 38% { stroke-dashoffset: 1; } 47%, 100% { stroke-dashoffset: 0; } }
@keyframes note-in { 0%, 46% { opacity: 0; transform: translateY(6px); } 50%, 74% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
@keyframes ticket-in { 0%, 50% { opacity: 0; transform: translateY(24px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes status-new { 0%, 50% { opacity: 0; } 52%, 75% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes status-done { 0%, 76% { opacity: 0; transform: translateY(4px); } 79%, 100% { opacity: 1; transform: none; } }
@keyframes value-old { 0%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes value-new { 0%, 75% { opacity: 0; transform: translateY(6px); } 78%, 100% { opacity: 1; transform: none; } }
@keyframes beat-1 { 0%, 30% { color: #ededed; } 32%, 100% { color: #85858b; } }
@keyframes beat-2 { 0%, 30% { color: #85858b; } 32%, 58% { color: #ededed; } 60%, 100% { color: #85858b; } }
@keyframes beat-3 { 0%, 58% { color: #85858b; } 60%, 96% { color: #ededed; } 100% { color: #85858b; } }

/* =====================================================================
   Onboarding
   ===================================================================== */
.onboard { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 64px; }
.onboard-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 960px; margin-bottom: 64px; }
.onboard-top .brand { padding: 0; height: auto; margin: 0; }
.steps { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.step-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 12px/1 var(--mono); box-shadow: inset 0 0 0 1px var(--line-strong); }
.step-n svg.i { width: 12px; height: 12px; }
.steps li.current { color: var(--text); font-weight: 500; }
.steps li.current .step-n { background: var(--ink); color: var(--ink-text); box-shadow: none; }
.steps li.done .step-n { color: var(--text); }
.onboard-card { width: 100%; max-width: 520px; padding: 32px; }
.onboard-card h1 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.onboard-card .lead { margin-bottom: 24px; }
.onboard-card input { width: 100%; }
.ob-next { width: 100%; height: 40px; margin-top: 8px; }
.ob-next svg.i, .ob-actions .primary svg.i { order: 2; }
.waiting { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 10px; background: var(--raised); margin-bottom: 24px; }
.waiting b { font-weight: 500; }
.waiting .help { margin-top: 4px; }
.pulse-dot { width: 10px; height: 10px; margin: 5px 2px; border-radius: 50%; background: var(--text-2); flex: none; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.waiting.received { background: color-mix(in srgb, var(--positive) 12%, transparent); }
.waiting.received > svg.i { color: var(--positive); margin-top: 2px; }
.ob-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .onboard-top .steps { display: none; } .onboard-top { margin-bottom: 32px; } .onboard-card { padding: 24px 16px; } }

/* Barre latérale : espace, avatar Google */
.ws-name { margin: -12px 0 16px; padding: 0 8px 0 30px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
img.avatar { object-fit: cover; padding: 0; }
.google-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ws-form { grid-template-columns: minmax(0, 1fr) auto; max-width: 560px; }

/* =====================================================================
   Recette (UAT) : statuts, priorités, correction, validation du testeur
   ===================================================================== */
:root { --retest: #b7791f; }
@media (prefers-color-scheme: dark) { :root { --retest: #d9a043; } }
.status-qualified::before, .status-pick.status-qualified::before { background: transparent; border: 1.5px solid var(--muted); }
.status-in_progress::before, .status-pick.status-in_progress::before { background: transparent; border: 1.5px solid var(--text); }
.status-to_retest::before, .status-pick.status-to_retest::before { background: var(--retest); border: 0; }
.status-reopened::before, .status-pick.status-reopened::before { background: var(--negative); border: 0; }
.status-validated::before, .status-pick.status-validated::before { background: var(--positive); border: 0; }
.status-rejected::before, .status-pick.status-rejected::before { background: var(--line-strong); border: 0; }
.status-resolved::before { background: var(--positive); }
.status-closed::before { background: var(--line-strong); }
.status-reopened, .status-pick.status-reopened select { color: var(--negative); }
.status-to_retest { color: var(--text); }

.prio { flex: none; font: 500 11px/18px var(--mono); padding: 0 5px; border-radius: 4px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.prio-p1 { color: var(--negative); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--negative) 45%, transparent); }
.prio-p2 { color: var(--retest); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--retest) 45%, transparent); }
.t-assignee { position: relative; z-index: 1; flex: none; }
.t-assignee .avatar { width: 22px; height: 22px; font-size: 10px; }
.t-line .t-assignee { margin-left: auto; }
.t-line .t-assignee + .status-pick { margin-left: 0; }

.aside-fields { display: grid; gap: 0; margin-top: 4px; }
.aside-fields .field { margin-bottom: 12px; }
.aside-fields select, .aside-fields input, .detail aside #status { width: 100%; }
.fix-panel { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 12px; border-radius: 10px; background: var(--raised); }
.fix-panel label { font-size: 13px; font-weight: 500; }
.fix-panel textarea { min-height: 72px; background: var(--surface); }
.fix-panel .btn { align-self: flex-start; }
.waiting-panel { border: 1px solid color-mix(in srgb, var(--retest) 35%, transparent); background: color-mix(in srgb, var(--retest) 8%, var(--surface)); }
.fix-title { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.fix-title svg.i { color: var(--retest); }
.fix-note { font-size: 13px; color: var(--text-2); white-space: pre-wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.fix-archived { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; }
.fix-archived svg.i { color: var(--positive); width: 14px; height: 14px; }

.event.reporter { align-items: flex-start; }
.event.reporter > svg.i { margin-top: 2px; }
.event.reporter.ok > svg.i { color: var(--positive); }
.event.reporter.ko > svg.i { color: var(--negative); }
.reporter-main { flex: 1; min-width: 0; }
.reporter-comment { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--raised); color: var(--text); white-space: pre-wrap; word-wrap: break-word; }
.event .prio { margin: 0 2px; }

.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-row input { margin-top: 2px; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch-row b { font-weight: 500; }
