/* ===================================================================
   MailSearch — interface v2
   Jetons : --brand vient de config.php (marque blanche), injecté par _layout.php
   =================================================================== */
:root {
  --brand: #2446d8;
  --brand-ink: color-mix(in oklab, var(--brand) 82%, black);
  --brand-soft: color-mix(in oklab, var(--brand) 9%, var(--paper));
  --brand-line: color-mix(in oklab, var(--brand) 22%, var(--paper));
  --amber: #c27a12;
  --amber-soft: #fbf1df;
  --ok: #1d7a4f;
  --ok-soft: #e4f3ea;
  --warn: #a4570b;
  --warn-soft: #fbeedd;
  --ko: #b4432e;
  --ko-soft: #fbe6e1;
  --paper: #f5f2ec;
  --paper-2: #efebe3;
  --card: #fffdf9;
  --ink: #17181c;
  --ink-2: #3c3e46;
  --muted: #7a7a80;
  --line: #e4ded3;
  --side: #121317;
  --side-2: #1b1d23;
  --side-line: #2a2c33;
  --side-text: #c9c7c1;
  --radius: 14px;
  --shadow-1: 0 1px 0 rgba(23,24,28,.04), 0 1px 3px rgba(23,24,28,.06);
  --shadow-2: 0 2px 4px rgba(23,24,28,.04), 0 12px 32px -8px rgba(23,24,28,.16);
  --ease: cubic-bezier(.22,.8,.24,1);
  --sans: "Instrument Sans", ui-sans-serif, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15161a; --paper-2: #1b1c21; --card: #1d1f25; --ink: #eceae5; --ink-2: #c3c1bb; --muted: #8d8c88;
    --line: #2c2e35; --brand-soft: color-mix(in oklab, var(--brand) 18%, #15161a); --brand-line: color-mix(in oklab, var(--brand) 40%, #15161a);
    --amber-soft: #2e2416; --ok-soft: #16281f; --warn-soft: #2d2216; --ko-soft: #2e1a16; --side: #0d0e11; --side-2: #15161b;
  }
}
:root[data-theme="dark"] {
  --paper: #15161a; --paper-2: #1b1c21; --card: #1d1f25; --ink: #eceae5; --ink-2: #c3c1bb; --muted: #8d8c88;
  --line: #2c2e35; --brand-soft: color-mix(in oklab, var(--brand) 18%, #15161a); --brand-line: color-mix(in oklab, var(--brand) 40%, #15161a);
  --amber-soft: #2e2416; --ok-soft: #16281f; --warn-soft: #2d2216; --ko-soft: #2e1a16; --side: #0d0e11; --side-2: #15161b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 25%, transparent); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--paper-2); }

/* ---------- Coquille ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px 16px; background: var(--side); color: var(--side-text);
  background-image: radial-gradient(120% 60% at 0% 0%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 60%);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px; color: #fff; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: #fff;
  background: var(--brand); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px -6px var(--brand); overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand b { display: block; font-weight: 600; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11.5px; color: #8f8d87; }
.side-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6c6a65; padding: 0 10px; margin-bottom: -10px; }

.profile-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0; border-radius: 12px; background: var(--side-2); border: 1px solid var(--side-line); }
.profile-switch .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.12);
  transition: transform .45s var(--ease);
}
.profile-switch[data-on="1"] .thumb { transform: translateX(100%); }
.profile-switch button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 0; border: 0; background: none; color: #8f8d87; font-weight: 600; font-size: 13px; transition: color .3s; }
.profile-switch button:hover { color: #ddd; }
.profile-switch button[aria-pressed="true"] { color: #fff; cursor: default; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  color: var(--side-text); text-decoration: none; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.nav .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: #77756f; }

.sync-mini { margin-top: auto; display: block; padding: 14px; border-radius: 12px; background: var(--side-2); border: 1px solid var(--side-line); color: inherit; text-decoration: none; transition: border-color .2s; }
.sync-mini:hover { border-color: #3a3c44; }
.sync-mini .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.sync-mini .live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 0 rgba(62,207,142,.6); animation: ping 2s infinite; }
.dot.idle { background: #8f8d87; animation: none; }
.dot.err { background: #e5684f; animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.bar { position: relative; height: 5px; margin: 10px 0 8px; border-radius: 99px; background: #26282f; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 55%, #7fd3ff)); }
.bar.busy i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: shimmer 2.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sync-mini small { display: block; color: #8f8d87; font-size: 11.5px; }

.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 12px; color: #77756f; }
.side-foot button, .side-foot a { border: 0; background: none; color: inherit; display: inline-flex; gap: 6px; align-items: center; padding: 4px; border-radius: 6px; text-decoration: none; }
.side-foot button:hover, .side-foot a:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.crumb { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); color: var(--muted); white-space: nowrap; }
.beta {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; font-size: 12.5px; white-space: nowrap;
  background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in oklab, var(--warn) 18%, transparent);
}
.beta b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: var(--warn); color: #fff; }

.view { padding: 28px 32px 64px; max-width: 1180px; width: 100%; margin: 0 auto; animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .7s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .04s; } .stagger > *:nth-child(2) { animation-delay: .1s; }
.stagger > *:nth-child(3) { animation-delay: .16s; } .stagger > *:nth-child(4) { animation-delay: .22s; }
.stagger > *:nth-child(5) { animation-delay: .28s; } .stagger > *:nth-child(6) { animation-delay: .34s; }
.stagger > *:nth-child(7) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1.title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -.02em; margin: 6px 0 10px; }
h1.title em { color: var(--brand); }
h2.sec { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
h3 { font-size: 16px; margin: 0; }
.lead { color: var(--ink-2); font-size: 15.5px; max-width: 60ch; margin: 0 0 22px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row p { margin: 4px 0 0; }
.head-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.pad { padding: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, border-color .2s, background .2s;
}
.btn:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; }
.btn.danger { color: var(--ko); }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
form.inline { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ko { background: var(--ko-soft); color: var(--ko); }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--amber); white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field input, .field select, input.input, select.input {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 400; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, input.input:focus, select.input:focus { outline: 0; border-color: var(--brand-line); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 10%, transparent); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 260px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 10%, transparent); }
.search-field input { border: 0; outline: 0; background: none; flex: 1; color: var(--ink); padding: 9px 0; min-width: 0; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Assistant ---------- */
.composer {
  position: relative; padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); transition: border-color .25s, box-shadow .35s;
}
.composer:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 9%, transparent), var(--shadow-2); }
.composer textarea { display: block; width: 100%; min-height: 58px; max-height: 200px; resize: none; border: 0; outline: 0; background: none; padding: 14px 16px 6px; font-size: 16.5px; }
.composer textarea::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.composer .tools { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.seg button { white-space: nowrap; border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.composer .send { margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; padding: 16px; animation: rise .4s var(--ease) both; }
.filters .note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in oklab, var(--card) 70%, transparent);
  font-size: 13px; color: var(--ink-2); text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand-line); background: var(--card); color: var(--ink); }

.convo { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.turn { display: flex; flex-direction: column; gap: 14px; animation: rise .5s var(--ease) both; }
.q-bubble { align-self: flex-end; max-width: 70%; padding: 11px 16px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--paper); font-size: 15px; white-space: pre-wrap; }
.answer { padding: 22px 24px; }
.answer .who { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.answer .who .av { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--serif); font-size: 15px; }
.answer p { margin: 0 0 10px; font-size: 15px; }
.answer ul { margin: 0 0 12px; padding-left: 18px; }
.answer li { margin: 4px 0; }
.ref { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); vertical-align: 1px; transition: background .2s, transform .2s, color .2s; }
.ref:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps span + span::before { content: "→"; margin-right: 6px; opacity: .5; }

.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 16px; }
.src {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .3s;
}
.src:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow-2); background: var(--card); }
.src > span:last-child { min-width: 0; }
.doc-ico { width: 36px; height: 44px; flex: none; border-radius: 6px; position: relative; background: var(--card); border: 1px solid var(--line); display: grid; place-items: end center; padding-bottom: 5px; font-family: var(--mono); font-size: 9px; font-weight: 500; color: #c2412d; }
.doc-ico::before { content: ""; position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; background: linear-gradient(225deg, var(--paper) 50%, var(--line) 50%); border-bottom-left-radius: 3px; }
.doc-ico.mail { color: var(--brand); }
.src b { display: block; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.src small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite both; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--ko-soft); color: var(--ko); font-size: 13.5px; margin: 0; }
.results-head { margin: 26px 0 10px; color: var(--muted); font-size: 13px; }

/* ---------- Listes (mails, documents) ---------- */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.tabs .short { display: none; }
.tabs a { white-space: nowrap; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; transition: color .25s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); }
.tabs .ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--card); box-shadow: var(--shadow-1); transition: left .4s var(--ease), width .4s var(--ease); }
.tabs svg.i { width: 14px; height: 14px; }

.list { overflow: hidden; }
.mail-row {
  display: grid; grid-template-columns: 38px minmax(150px, 220px) 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--line);
  width: 100%; background: none; text-align: left; cursor: pointer; transition: background .2s;
  animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--n, 0), 14) * 30ms);
}
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { background: color-mix(in oklab, var(--brand) 4%, var(--card)); }
.mail-row:hover .subj { color: var(--brand-ink); }
.av { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--c, #555); }
.mail-row .who, .mail-row .what { min-width: 0; }
.mail-row .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .subj { font-weight: 600; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .snip { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mail-row .meta svg.i { width: 15px; height: 15px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px; color: var(--muted); font-size: 13px; }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.type {
  position: relative; display: block; padding: 14px 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .3s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms);
}
.type:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.type[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent); }
.type .n { font-family: var(--serif); font-size: 32px; line-height: 1; }
.type small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.type .bar-v { position: absolute; right: 12px; bottom: 12px; top: 14px; width: 4px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.type .bar-v i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: var(--brand); border-radius: inherit; opacity: .6; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--paper) 50%, var(--card)); white-space: nowrap; }
table.grid td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr { animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--n, 0), 14) * 30ms); }
table.grid tbody tr[data-open] { cursor: pointer; transition: background .2s; }
table.grid tbody tr[data-open]:hover { background: color-mix(in oklab, var(--brand) 4%, var(--card)); }
.file { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.file .doc-ico { width: 28px; height: 34px; font-size: 8px; }
.file b { font-weight: 600; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.contact { padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), box-shadow .3s; animation: rise .55s var(--ease) both; animation-delay: calc(min(var(--n, 0), 14) * 40ms); }
.contact:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.contact .top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.contact .top > span:last-child { min-width: 0; }
.contact .top b { display: block; font-weight: 600; }
.contact .top small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact .roles { display: flex; gap: 6px; flex-wrap: wrap; min-height: 21px; }
.exch { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.exch .track { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.exch .track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width 1s var(--ease); }
.exch .track.out i { background: var(--amber); }
.contact .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; margin-top: auto; }
.src-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.src-tag svg.i { width: 14px; height: 14px; }

/* ---------- Synchro ---------- */
.sync-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.acc { padding: 20px; animation: rise .55s var(--ease) both; }
.acc .top { display: flex; gap: 14px; align-items: center; }
.acc .logo { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); }
.acc .logo svg.i { width: 22px; height: 22px; }
.acc .top > div { min-width: 0; }
.acc h3 { overflow: hidden; text-overflow: ellipsis; }
.acc .state { margin-left: auto; }
.ring { --v: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--paper-2) 0); }
.ring > div { width: 88px; height: 88px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; }
.ring b { font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 400; }
.ring small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.acc-body { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 20px 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.kpi b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.kpi small { color: var(--muted); font-size: 12px; }
.acc .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.err-line { margin-top: 12px; }
.log { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--ink-2); background: var(--paper); border-radius: 10px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.log .t { color: var(--muted); }
.log .ok { color: var(--ok); }
.log .ko { color: var(--ko); }
.upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.upload input[type=file] { font-size: 13px; max-width: 100%; }

/* ---------- Visionneuse ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.facts div { background: var(--card); padding: 12px 16px; min-width: 0; overflow-wrap: anywhere; }
.facts small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts b { font-weight: 600; }
.page-tag { display: inline-block; margin: 10px 0 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.paper {
  padding: 22px 24px; border-radius: 6px; background: #fff; color: #222; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  font-size: 13px; line-height: 1.65; font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.paper.prose { font-family: var(--sans); font-size: 14px; }
.notice { padding: 16px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); }
.notice b { color: var(--warn); }
.skeleton { height: 14px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 200%); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  max-width: min(560px, calc(100% - 32px)); border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); font-size: 13.5px;
  transition: transform .5s var(--ease), opacity .3s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Connexion / installation ---------- */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(80% 60% at 0% 0%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 60%), var(--paper); }
.solo-in { width: 100%; max-width: 440px; }
.solo-in.wide { max-width: 760px; }
.solo .brand { color: var(--ink); justify-content: center; margin-bottom: 22px; }
.solo .brand small { color: var(--muted); }
.login { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; line-height: 1.05; }
.checks { width: 100%; border-collapse: collapse; }
.checks td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks tr:last-child td { border-bottom: 0; }
.ok-ico { color: var(--ok); font-weight: 700; } .ko-ico { color: var(--ko); font-weight: 700; }
pre.copy { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.solo .foot-note { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; inset: auto 0 0 0; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background-image: none; }
  .side .brand, .side .side-label, .side .sync-mini, .side .side-foot { display: none; }
  .profile-switch { order: 2; flex: none; width: 104px; }
  .profile-switch button span { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10px; }
  .nav .count, .nav a[aria-current="page"]::before { display: none; }
  .topbar { padding: 12px 16px; }
  .topbar .kbd, .crumb { display: none; }
  .view { padding: 20px 16px 110px; }
  h1.title br { display: none; }
  .composer .lbl { display: none; }
  .seg button { padding: 5px 9px; }
  .mail-row { grid-template-columns: 38px 1fr auto; }
  .mail-row .who { display: none; }
  .sync-grid, .acc-body { grid-template-columns: 1fr; }
  .q-bubble { max-width: 88%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .search-field { min-width: 0; flex: 1 1 220px; }
  .tabs .long { display: none; }
  .tabs .short { display: inline; }
  .tabs a { padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* titres internes des cartes (pages Installation) */
.card h2 { font-size: 17px; margin: 0 0 8px; }
.card .checks { margin-top: 10px; }

/* réponse de l'assistant (Markdown) */
.answer .md-h { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 18px 0 8px; line-height: 1.2; }
.answer .md-h:first-of-type { margin-top: 4px; }
.answer .md-hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.answer ol { margin: 0 0 12px; padding-left: 20px; }
.answer .md-table { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.answer .md-table table.grid td, .answer .md-table table.grid th { padding: 8px 12px; font-size: 13.5px; }
.answer .md-table tbody tr { animation: none; }
.answer code { font-size: 12.5px; }

/* ---------- Lecteur PDF intégré (PDF.js) ---------- */
.dtabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: var(--paper-2); }
.dtabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.dtabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.pdfv-bar { position: sticky; top: -18px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px 0 10px; background: var(--card); }
.pdfv-pos { margin-left: auto; }
.pdfv-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 28px 0; color: var(--muted); }
.pdfv-wait small { flex-basis: 100%; }
.pdfv-pages { display: flex; flex-direction: column; gap: 12px; }
.pdfv-page { position: relative; flex: none; margin: 0 auto; scroll-margin-top: 58px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pdfv-page canvas { display: block; width: 100%; height: 100%; }
/* couche de texte : reprise de web/pdf_viewer.css (PDF.js 4.10.38), sélection et surlignage */
.textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 0; }
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; }
.textLayer span.markedContent { top: 0; height: 0; }
.textLayer ::selection { background: rgba(0 0 255 / .25); }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.textLayer mark { color: transparent; background: rgba(255, 196, 0, .45); border-radius: 2px; }
.pdfv-page:not([data-ready])::after { content: "Affichage de la page…"; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #555; background: #f1f1f1; z-index: 3; }

/* ---------- Plein écran : menu de gauche masqué, menu déroulant dans la barre du haut ---------- */
.side-toggle { width: 34px; height: 34px; padding: 0; flex: none; color: var(--muted); }
.side-toggle[aria-pressed="true"] { color: var(--brand); }
.navmenu { display: none; position: relative; flex: none; }
.navmenu summary {
  list-style: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600; font-size: 13.5px; cursor: pointer; user-select: none; transition: border-color .2s, box-shadow .2s;
}
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary:hover, .navmenu[open] summary { border-color: var(--brand-line); box-shadow: var(--shadow-1); }
.navmenu summary .chev { width: 15px; height: 15px; color: var(--muted); transition: transform .25s var(--ease); }
.navmenu[open] summary .chev { transform: rotate(180deg); }
.navmenu-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 290px; display: flex; flex-direction: column; gap: 10px; padding: 10px;
  border-radius: 14px; background: var(--side); color: var(--side-text); border: 1px solid var(--side-line); box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
  animation: rise .25s var(--ease) both;
}
.navmenu-pop nav { display: flex; flex-direction: column; gap: 2px; }
.navmenu-pop nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--side-text); text-decoration: none; transition: background .2s, color .2s; }
.navmenu-pop nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.navmenu-pop nav a[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.navmenu-pop .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: #77756f; }
.navmenu-profiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0; padding: 4px; border-radius: 11px; background: var(--side-2); border: 1px solid var(--side-line); }
.navmenu-profiles button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 0; border: 0; border-radius: 8px; background: none; color: #8f8d87; font-weight: 600; font-size: 13px; cursor: pointer; }
.navmenu-profiles button:hover { color: #ddd; }
.navmenu-profiles button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: #fff; cursor: default; }
.navmenu-sync { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--side-2); border: 1px solid var(--side-line); color: inherit; text-decoration: none; font-size: 12.5px; }
.navmenu-sync .dot { margin-top: 5px; }
.navmenu-sync b { color: #fff; }
.navmenu-sync small { display: block; color: #8f8d87; font-size: 11.5px; margin-top: 2px; }
.navmenu-foot { display: flex; justify-content: space-between; gap: 4px; padding: 2px 2px 0; font-size: 12px; color: #77756f; }
.navmenu-foot button, .navmenu-foot a { white-space: nowrap; border: 0; background: none; color: inherit; display: inline-flex; gap: 6px; align-items: center; padding: 4px; border-radius: 6px; text-decoration: none; font-size: 12px; cursor: pointer; }
.navmenu-foot button:hover, .navmenu-foot a:hover { color: #fff; }
.navmenu-foot svg.i { width: 15px; height: 15px; }
@media (min-width: 901px) {
  html[data-side="off"] .app { grid-template-columns: 1fr; }
  html[data-side="off"] .side { display: none; }
  html[data-side="off"] .navmenu { display: block; }
  html[data-side="off"] .view { max-width: 1640px; }
}
@media (max-width: 900px) {
  .side-toggle, .navmenu { display: none !important; }
}

/* ---------- Classement manuel ---------- */
.pill svg.i { width: 12px; height: 12px; }
.pill.picker { position: relative; padding: 0; gap: 0; max-width: 100%; }
.pill.picker > svg.i:first-child { margin-left: 9px; }
.pill.picker select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 3px 26px 3px 9px; cursor: pointer; max-width: 260px; }
.pill.picker select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 99px; }
.pill.picker select option, .pill.picker select optgroup { color: var(--ink); background: var(--card); }
.pill.picker > svg.i:last-child { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.pill.picker input { width: 190px; border: 0; outline: 0; border-radius: 99px; padding: 3px 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500; margin: 2px; }
.pill.picker button { border: 0; background: none; color: inherit; display: grid; place-items: center; padding: 3px 8px 3px 4px; cursor: pointer; }
.pill.picker .spin { margin: 4px 12px; }
th.sel, td.sel { width: 34px; padding-right: 0 !important; }
.sel input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
table.grid tbody tr.picked { background: color-mix(in oklab, var(--brand) 7%, var(--card)); }
.bulk {
  position: sticky; bottom: 16px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--brand-line); box-shadow: var(--shadow-2); animation: rise .3s var(--ease) both;
}
.bulk[hidden] { display: none; }
.bulk b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.bulk > span { color: var(--muted); font-size: 13px; margin-right: auto; }
.bulk .input { padding: 7px 10px; font-size: 13.5px; }
.bulk #bulkNew { width: 230px; }
@media (max-width: 900px) {
  .bulk { bottom: 84px; }
}

/* ---------- Panneau dépliable sous la ligne (remplace la visionneuse latérale) ---------- */
.xchev { width: 15px; height: 15px; flex: none; color: var(--muted); transform: rotate(-90deg); transition: transform .25s var(--ease), color .2s; }
.expanded .xchev { transform: none; color: var(--brand); }
.file .xchev { margin-right: 2px; }
.mail-row .meta .xchev { order: 3; }
table.grid tbody tr.expanded, .mail-row.expanded { background: color-mix(in oklab, var(--brand) 6%, var(--card)); }
.mail-row.expanded { border-bottom-color: transparent; }
.src.expanded, .ref.expanded { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent); }
table.grid tbody tr.xrow { animation: none; }
table.grid tbody tr.xrow > td { padding: 0 12px 14px; background: color-mix(in oklab, var(--brand) 6%, var(--card)); cursor: default; }
.xpanel {
  display: flex; flex-direction: column; margin: 0 12px 12px; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--brand-line); box-shadow: var(--shadow-2);
  animation: xopen .32s var(--ease) both; transform-origin: top center;
}
table.grid .xpanel { margin: 0; }
.answer .xpanel { margin: 16px 0 0; }
.xpanel.closing { animation: xclose .2s ease-in both; }
@keyframes xopen { from { opacity: 0; transform: translateY(-6px) scaleY(.97); } to { opacity: 1; transform: none; } }
@keyframes xclose { to { opacity: 0; transform: translateY(-4px) scaleY(.98); } }
.xp-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.xp-id { min-width: 0; flex: 1; }
.xp-head h3 { margin: 4px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.xp-head .x { width: 32px; height: 32px; padding: 0; flex: none; }
.xp-back { flex: none; align-self: center; }
.xp-body { max-height: 70vh; overflow: auto; padding: 16px 18px 22px; }
.xp-body .pdfv-bar { top: -16px; }
.xp-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); }
.xp-foot:empty { display: none; }
.xpanel .pill.picker input.desc { width: 300px; }
.reclass-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 13.5px; color: var(--ink-2); }
.reclass-bar b { font-weight: 700; color: var(--brand-ink); }
.bulk #bulkDesc { width: 300px; }
@media (max-width: 900px) {
  .xpanel { margin: 0 8px 10px; }
  table.grid tbody tr.xrow > td { padding: 0 4px 10px; }
  .xp-body { max-height: 75vh; padding: 12px; }
  .xpanel .pill.picker input.desc, .bulk #bulkDesc { width: 100%; }
}

/* ---------- Catégories apprises : propositions et file « À valider » ---------- */
.proposals { padding: 14px 16px; margin-bottom: 14px; border-color: var(--amber); background: color-mix(in oklab, var(--amber-soft) 55%, var(--card)); }
.proposals header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.proposals header b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.prop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-top: 1px dashed color-mix(in oklab, var(--amber) 35%, var(--line)); }
.prop-main { min-width: 0; flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prop-main > .muted { flex-basis: 100%; }
.prop-main .input { padding: 6px 10px; font-size: 13.5px; }
.prop-main .input.desc { flex: 1 1 240px; }
.prop-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.prop-name:hover { color: var(--brand-ink); text-decoration: underline; }
.prop-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prop-act select.input { padding: 6px 8px; font-size: 12.5px; max-width: 180px; }
.type.review { border-color: var(--amber); background: color-mix(in oklab, var(--amber-soft) 60%, var(--card)); }
.type.review .bar-v i { background: var(--amber); }
.new-dot { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }
.pill.picker.doubt { background: var(--warn-soft); color: var(--warn); }
.pill.picker .q { margin-left: 9px; font-weight: 800; }
