:root {
  --bg: #0b0c10; --panel: #14161c; --panel2: #1c1f27; --line: #262a34;
  --text: #ececf1; --muted: #8b91a0; --accent: #8b7cf8; --on-accent: #fff; --ok: #34c77b;
  --warn: #f0b44c; --bad: #f0605a; --radius: 16px; --r-sm: 10px;
  --soft: color-mix(in srgb, var(--accent) 14%, var(--panel));
  --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 8px 24px rgb(0 0 0 / .18);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
/* Thème : sombre par défaut, clair si le système l'est ; « Clair » ou « Sombre » choisis dans le menu l'emportent */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f6f7f9; --panel: #fff; --panel2: #f1f2f5; --line: #e4e6eb; --text: #12141a; --muted: #636977;
    --accent: #5b4ee6; --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 4px 14px rgb(16 24 40 / .05); }
}
:root[data-theme="light"] { --bg: #f6f7f9; --panel: #fff; --panel2: #f1f2f5; --line: #e4e6eb; --text: #12141a; --muted: #636977;
  --accent: #5b4ee6; --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 4px 14px rgb(16 24 40 / .05); }
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; height: 100dvh;
}
:focus-visible { outline: none; box-shadow: var(--ring); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
header {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); z-index: 2;
}
h1 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 0; flex: 1; }
h2 { font-size: 16px; margin: 0 0 8px; }
button { font: inherit; color: inherit; cursor: pointer; }
.icon { background: none; border: 0; font-size: 19px; padding: 4px 8px; border-radius: var(--r-sm); color: var(--muted); }
.icon:hover { background: var(--panel2); color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.badge { background: var(--warn); color: #000; border: 0; border-radius: 99px; padding: 2px 10px; font-weight: 700; }
.hidden { display: none !important; }

main { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--muted); text-align: center; margin: auto; max-width: 280px; }

.user { align-self: flex-end; background: var(--soft); color: var(--text); padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px 18px 6px 18px; max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.suite { margin-top: -4px; }
.suite .user::before { content: '↪ '; opacity: .7; }
section.current > .task { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.thread { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.thread span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; max-width: 100%; box-shadow: var(--shadow); }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pill { padding: 2px 9px; border-radius: 99px; background: var(--panel2); font-weight: 500; }
.st-running, .st-queued, .st-routing { color: var(--accent); }
.st-waiting_approval, .st-needs_project { color: var(--warn); }
.st-done { color: var(--ok); }
.st-error, .st-cancelled { color: var(--bad); }
.pill[class*="st-"] { background: color-mix(in srgb, currentColor 13%, transparent); }
.log { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.log .step { color: var(--muted); font-size: 12.5px; padding: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .step.err { color: var(--bad); }
.log .now { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 2px 0; }
.log .since { color: var(--muted); font-size: 12px; }
.spin { width: 12px; height: 12px; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-color: var(--accent); } }
.todos { background: var(--panel2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.todohead { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.todo { font-size: 13px; }
.todo.completed { color: var(--muted); text-decoration: line-through; }
.todo.in_progress { color: var(--accent); font-weight: 600; }
.log .blocked { color: var(--bad); font-size: 12px; }
.log details summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.text, .result { word-break: break-word; }
.result { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.text p, .result p { margin: 0 0 6px; }
pre { background: var(--panel2); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--r-sm); overflow-x: auto; font-size: 12px; margin: 6px 0; }
code { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; font-size: 12.5px; background: var(--panel2); padding: 1px 5px; border-radius: 5px; }
pre code { background: none; padding: 0; }
.actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); padding: 8px 14px; min-height: 40px; font-weight: 500;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn.ok { background: var(--ok); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.btn.ok:hover { background: color-mix(in srgb, var(--ok) 88%, #000); }
.btn.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: transparent; color: var(--bad); font-weight: 600; }
.btn.bad:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); }
.btn.ghost { background: transparent; color: var(--muted); font-size: 13px; padding: 4px 10px; min-height: 0; }
.btn.ghost:hover { background: var(--panel2); color: var(--text); }

.approval { border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--line)); border-radius: 14px; padding: 12px 14px; margin: 8px 0;
  background: color-mix(in srgb, var(--warn) 7%, var(--panel)); }
.approval.resolved { border-color: var(--line); opacity: .7; }
.approval .why { font-size: 13px; font-weight: 600; }
.approval pre { max-height: 260px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.approval .timer { font-size: 12px; color: var(--muted); }

footer { background: color-mix(in srgb, var(--panel) 88%, transparent); border-top: 1px solid var(--line); padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip:hover { background: var(--panel2); }
.chip[aria-checked="true"] { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent); font-weight: 600; }
.chip.off { opacity: .45; }
/* Saisie : une seule ligne de puces qui défile horizontalement (la règle .chips des cartes d'autonomie les fait passer à la ligne) */
footer .chips { flex-wrap: nowrap; overflow-x: auto; }
footer .chips > * { flex: none; }
.pod { flex: none; align-self: center; font-size: 11px; color: var(--muted, #888); padding-left: 6px; }
.pod::before { content: '●'; color: var(--ok); margin-right: 4px; }
.pod.off::before { color: var(--muted); }
.chip .s { opacity: .7; font-size: 10px; }
#composer { display: flex; gap: 8px; align-items: flex-end; }
#input { flex: 1; resize: none; max-height: 160px; background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 14px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
#input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--ring); background: var(--panel); }
#send { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 17px; flex: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .1s, opacity .15s; }
#send:hover { transform: translateY(-1px); }
#send:disabled { opacity: .35; box-shadow: none; transform: none; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; width: min(92vw, 520px); max-height: 85dvh; padding: 20px;
  box-shadow: 0 24px 64px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(8 9 12 / .55); backdrop-filter: blur(4px); }
dialog input { width: 100%; padding: 10px 12px; margin: 8px 0; font-size: 16px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); }
dialog input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--ring); }
dialog form button { width: 100%; padding: 11px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.dlghead { display: flex; justify-content: space-between; align-items: center; }
.auditList { font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.auditList .row { border-bottom: 1px solid var(--line); padding-bottom: 6px; word-break: break-word; }
.auditList .row b.allow, .auditList .row b.approve { color: var(--ok); }
.auditList .row b.deny, .auditList .row b.timeout { color: var(--bad); }
.auditList .row b.ask { color: var(--warn); }

/* Connexion */
.auth { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px 16px; z-index: 10; }
.authbox { max-width: 340px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.authbox img { border-radius: 18px; }
.authbox h2 { font-size: 22px; margin: 0; }
.authbox p { margin: 0; color: var(--muted); }
.btn.big { width: 100%; min-height: 52px; font-size: 17px; border-radius: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.menu { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.menu .btn { text-align: left; }
.dev { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.dev small { color: var(--muted); display: block; }
.offline { background: color-mix(in srgb, var(--bad) 15%, var(--panel)); color: var(--text); font-size: 13px; padding: 6px 16px; text-align: center; }

/* ---------- Mise en page : onglets sur téléphone, fil + tableau de bord côte à côte sur grand écran */
#layout { flex: 1; display: flex; min-height: 0; }
#chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#dash { display: none; flex: 1; min-width: 0; overflow-y: auto; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); }
body.view-dash #chat { display: none; }
body.view-dash #dash { display: block; }
.tabs { display: flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: none; border-radius: 9px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.tabcount { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; text-align: center; }
#splitter { display: none; flex: none; width: 7px; cursor: col-resize; background: var(--bg); border: 0; border-inline: 1px solid var(--line); padding: 0; position: relative;
  touch-action: none; }
#splitter::after { content: ''; position: absolute; top: 50%; left: 2px; width: 3px; height: 36px; margin-top: -18px; border-radius: 3px; background: var(--muted); opacity: .5; }
#splitter:hover, #splitter:focus-visible, body.resizing #splitter { background: var(--accent); }
body.resizing { cursor: col-resize; user-select: none; }
#dashToggle { display: none; }
@media (min-width: 1100px) {
  .tabs { display: none; }
  /* Largeur du fil : réglable avec la barre de séparation (--chat-w), mémorisée */
  #chat { flex: 0 0 var(--chat-w, clamp(440px, 42%, 680px)); max-width: calc(100% - 320px); }
  #splitter { display: block; }
  #dash, body.view-dash #dash { display: block; padding: 20px 24px; }
  body.view-dash #chat { display: flex; }
  #dashToggle { display: inline-block; }
  /* Tableau de bord masqué : tout l'espace pour le fil, centré et lisible */
  body.dash-hidden #dash, body.dash-hidden #splitter { display: none; }
  body.dash-hidden #chat { flex: 1 1 auto; max-width: none; }
  body.dash-hidden #feed, body.dash-hidden footer { padding-left: max(16px, calc((100% - 980px) / 2)); padding-right: max(16px, calc((100% - 980px) / 2)); }
}
section.flash > .task { animation: flash 1.4s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: 0 0 0 3px transparent; } }

/* ---------- Tableau de bord */
.dashwrap { display: flex; flex-direction: column; gap: 22px; max-width: 1180px; margin: 0 auto; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
details.more { border-top: 1px solid var(--line); padding-top: 14px; }
details.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '▾'; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(180deg); }
details.more[open] > summary { color: var(--text); margin-bottom: 18px; }
.sect h3 { font-size: 13px; letter-spacing: -.005em; color: var(--text); margin: 0 0 10px; font-weight: 650; }
.emptyd { color: var(--muted); font-size: 14px; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; }
.muted { color: var(--muted); }
.okt { color: var(--ok); }
.warnt { color: var(--warn); }
.acc { color: var(--accent); }

.lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.live { text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--shadow); }
.live.alert { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, var(--panel)); }
.live:hover, .recent:hover { border-color: var(--accent); }
.lhead { display: flex; align-items: center; gap: 6px; font-size: 12.5px; flex-wrap: wrap; }
.lhead .since { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.lhead .wt { font-size: 11.5px; color: var(--muted); }
.linst { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.lstep { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.lstep span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }

.pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.podcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.podcard.off { opacity: .65; }
.podhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.podhead b { font-size: 15px; }
.podseen { font-size: 12px; margin-left: auto; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.slots { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.slots i { width: 14px; height: 14px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); }
.slots i.on { background: var(--accent); border-color: var(--accent); }
.slots span { margin-left: 6px; }
.meters { display: flex; flex-direction: column; gap: 8px; }
.meter { display: grid; grid-template-columns: 64px minmax(40px, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; }
.meter > span:first-child { color: var(--muted); }
.mv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.bar.warn { background: color-mix(in srgb, var(--warn) 18%, var(--panel2)); }
.bar.warn > i { background: var(--warn); }
.bar.bad { background: color-mix(in srgb, var(--bad) 18%, var(--panel2)); }
.bar.bad > i { background: var(--bad); }
.projs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.proj { padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.proj:last-child { border-bottom: 0; padding-bottom: 0; }
.pname { font-weight: 600; font-size: 14px; }
.pgit { font-size: 12.5px; color: var(--muted); }
.lastc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wts .sub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.wtrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; flex-wrap: wrap; padding: 3px 0; }
.wtbtns { display: flex; gap: 2px; }
.podfoot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }

.recents { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.recent:hover { background: var(--panel2); }
.recent { display: flex; align-items: flex-start; gap: 10px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; min-width: 0; }
.recent:last-child { border-bottom: 0; }
.recent .ri { flex: none; }
.rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rinst { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rmeta { font-size: 12px; color: var(--muted); }
.rtime { flex: none; font-size: 12px; color: var(--muted); }

/* ---------- Modifications d'une tâche */
.add { color: var(--ok); font-variant-numeric: tabular-nums; }
.del { color: var(--bad); font-variant-numeric: tabular-nums; }
.changes { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.changes.none { border: 0; color: var(--muted); font-size: 12px; margin-top: 6px; }
.chhead { background: var(--panel2); padding: 7px 10px; font-size: 13px; font-weight: 600; }
.branch { font-size: 12px; color: var(--muted); padding: 5px 10px 0; }
.files { display: flex; flex-direction: column; padding: 4px 0; }
.file summary, .file .frow { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; list-style: none; min-width: 0; }
.file .frow { cursor: default; }
.file summary::-webkit-details-marker { display: none; }
.file summary:hover { background: var(--panel2); }
.fst { flex: none; width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--panel2); color: var(--muted); font-family: ui-monospace, monospace; }
.fst-A { color: var(--ok); } .fst-D { color: var(--bad); } .fst-M { color: var(--warn); }
.fp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 12px; }
.fp .dir { color: var(--muted); }
.fn { flex: none; font-size: 12px; color: var(--muted); }
.diff { padding: 0 6px 6px; font-size: 12px; color: var(--muted); }
.diffpre { margin: 0; padding: 6px 0; max-height: 420px; overflow: auto; font-size: 11.5px; line-height: 1.45; }
.diffpre span { display: block; padding: 0 8px; white-space: pre; min-width: max-content; }
.diffpre .a { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.diffpre .d { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.diffpre .h { color: var(--accent); }
.commits { border-top: 1px solid var(--line); padding: 6px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.commit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.wt { color: var(--ok); }
.wtbox { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.wtmsg { font-size: 12.5px; margin-top: 6px; }
.wtmsg.ok { color: var(--ok); } .wtmsg.bad { color: var(--bad); }

/* ---------- Bilan par projet */
.secthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.secthead h3 { margin: 0; }
.seg { display: flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.bilans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow); }
.bcard .tag { display: inline-flex; align-items: center; gap: 5px; }
.bcard .tag .dot { width: 7px; height: 7px; }
.bstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bstat .v { font-size: 20px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bstat .l { font-size: 11.5px; color: var(--muted); }
.bstat .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.activity { margin: 0; }
.activity .bars { display: flex; align-items: stretch; justify-content: space-around; gap: 2px; height: 36px; }
.activity .col { flex: 1 1 0; max-width: 22px; display: flex; align-items: flex-end; }
.activity .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.activity .col i.b { background: var(--accent); }
.activity .col i.z { height: 2px !important; background: var(--line); border-radius: 1px; }
.activity .col:hover i.b { background: color-mix(in srgb, var(--accent) 75%, var(--text)); }
.activity figcaption { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; border-top: 1px solid var(--line); padding-top: 3px; }
.bsub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.tfile { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 1px 0; min-width: 0; }
.brecents { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 4px; }
.brecent { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 5px 0; text-align: left; font-size: 13px; min-width: 0; }
.brecent .rinst { flex: 1; min-width: 0; font-size: 13px; }
.brecent:hover .rinst { color: var(--accent); }

/* ---------- Autonomie : full auto, mode hard, reste de la semaine */
.autocard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.arow { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.arow.on { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--panel)); }
.ahead { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ahead .badge { margin-left: auto; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.badge.on { background: color-mix(in srgb, var(--ok) 18%, var(--panel)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.abtn { margin-top: auto; }
.weekcard { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.weekcard.incite { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.weekcard .meter { grid-template-columns: 72px minmax(40px, 1fr) auto; }
.wkline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 13px; }
.wkincite { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Mémoire de projet */
.memline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.memline.bad { color: var(--accent); font-weight: 600; }
.memline .btn { padding: 3px 10px; font-size: 12.5px; }

/* ---------- Gérer les projets */
#listBody label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 10px 0; }
#listBody label.check input { width: auto; margin: 0; }

/* ---------- Fil groupé par projet */
.feedbar { display: flex; align-items: center; gap: 8px; padding: 6px 16px 0; font-size: 12.5px; color: var(--muted); }
.feedbar span { flex: 1; }
.feedbar .btn { padding: 3px 10px; font-size: 12.5px; }
details.pgroup { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 45%, var(--bg)); }
details.pgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; position: sticky; top: -14px; z-index: 1;
  background: var(--panel); border-radius: var(--radius); }
details.pgroup[open] > summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
/* Collé en haut du fil (top négatif = marge haute de main) : rien ne défile au-dessus de l'en-tête du projet */
/* Pastille d'état du projet : vert s'il travaille, couleur d'accent s'il attend une réponse */
details.pgroup > summary .pname::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 8px; flex: none; }
details.pgroup.working > summary .pname::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
details.pgroup.attn > summary .pname::before { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
details.pgroup > summary::-webkit-details-marker { display: none; }
details.pgroup > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
details.pgroup[open] > summary::before { transform: rotate(90deg); }
details.pgroup .pname { font-weight: 600; }
details.pgroup .pmeta { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
details.pgroup.attn .pmeta { color: var(--warn); font-weight: 600; }
.pbody { display: flex; flex-direction: column; gap: 12px; padding: 12px; }

/* ---------- Autonomie : suivi en direct */
.autolive { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.live { text-align: left; font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
button.live { cursor: pointer; width: 100%; }
button.live:hover { background: var(--panel2); }
.live.wait { color: var(--muted); }
.live.bad { border-color: var(--accent); }
.live .muted { display: block; font-size: 12px; }

/* ---------- Mode hard */
.hardsel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.hardsel .btn { padding: 3px 10px; font-size: 12.5px; }
#hardProjects .check { cursor: pointer; }
#hardProjects .check:hover { background: var(--panel2); }
#hardGo:disabled { opacity: .5; }
#hardDlg { width: min(94vw, 560px); }
#hardProjects .check { padding: 8px 10px; border-bottom: 1px solid var(--line); }
#hardProjects .check:last-child { border-bottom: 0; }
#hardProjects .off { color: var(--muted); font-size: 12px; margin-left: auto; }
.hardpreview { font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--panel2); max-height: 30dvh; overflow-y: auto; }
.hardpreview ol { margin: 4px 0 0; padding-left: 20px; }
.hardpreview li { margin: 2px 0; }
.hardpreview .muted { color: var(--muted); font-size: 12px; }

/* ---------- Nouveau pod */
#podDlg { width: min(94vw, 560px); }
.podform { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.podform label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); min-width: 0; }
dialog .podform input { margin: 0; }
.podform select { width: 100%; padding: 9px; font: inherit; font-size: 16px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; }
.row2, .row3 { display: grid; gap: 8px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); }
.podform label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
dialog .podform .check input { width: auto; }
.repolist { display: flex; flex-direction: column; max-height: 38dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
dialog form .repo { width: 100%; text-align: left; background: none; color: var(--text); border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 10px; font-weight: 400; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; }
dialog form .repo:last-child { border-bottom: 0; }
dialog form .repo[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.repo .rn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo .rp { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.repo .rd { grid-column: 1 / -1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repolist .hint { padding: 8px 10px; margin: 0; }

/* ---------- Prochaines étapes (carte de tâche et suivi du tableau de bord) */
.nexts { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; padding: 8px 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel)); display: flex; flex-direction: column; gap: 6px; }
.nhead, .fhead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.nhead span:first-child { flex: 1; }
.fhead .muted { font-weight: 400; font-size: 12px; flex: 1; }
.next { display: flex; gap: 6px; align-items: stretch; }
.nmain { flex: 1; min-width: 0; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 10px;
  font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmain:hover { border-color: var(--accent); }
.nrun { flex: none; width: 40px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-size: 14px; }
.nrun:disabled { opacity: .5; }
.nexts .hint { font-size: 11.5px; margin: 0; }
.follows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; align-items: start; }
.follow { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.forigin { border: 0; background: none; padding: 0; text-align: left; color: var(--muted); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forigin:hover { color: var(--accent); }
.podmode { align-self: flex-start; }
dialog form .podmode button { width: auto; padding: 5px 10px; }

/* Clé d'appairage (ordinateur) */
.pairform { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pairform label { font-size: 13px; color: var(--muted); }
.pairrow { display: flex; gap: 8px; }
.pairrow input { flex: 1; min-width: 0; padding: 10px 12px; font: 600 18px/1.2 ui-monospace, monospace; letter-spacing: .08em;
  text-transform: uppercase; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.pairrow input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Saisie : modèle, variantes, commandes rapides, recadrage */
.optrow { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; min-width: 0; }
select.mini { flex: none; max-width: 150px; font: inherit; font-size: 12.5px; font-weight: 500; padding: 4px 6px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); }
.quick { flex: 1; min-width: 0; padding-bottom: 0; }
.chip.qc { font-size: 12.5px; padding: 4px 10px; }
.chip.qc.edit { color: var(--muted); }
#composer.steering #input { border-color: var(--warn); }
#composer.steering #send { background: var(--warn); color: #000; }
.steer { align-self: flex-end; max-width: 90%; background: color-mix(in srgb, var(--warn) 16%, var(--panel)); border: 1px solid var(--warn);
  border-radius: 12px 12px 4px 12px; padding: 5px 10px; font-size: 13px; white-space: pre-wrap; }

/* ---------- Captures, tests, CI, pull request */
.shots { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.shots figure { margin: 0; flex: none; width: 150px; }
.shot { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; background: var(--panel2); display: block; width: 100%; }
.shot img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.shots figcaption { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.imgdlg { width: min(96vw, 900px); }
.imgdlg img { display: block; max-width: 100%; max-height: 75dvh; margin: 8px auto 0; border-radius: 8px; }
details.tests { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
details.tests.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
details.tests.ko { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--panel)); }
details.tests summary { cursor: pointer; }
details.tests code { margin-left: 4px; }
details.tests pre { max-height: 300px; overflow: auto; white-space: pre-wrap; }
.ci, .prlink { font-size: 13px; margin-top: 6px; }
.ci.failure { color: var(--bad); } .ci.success { color: var(--ok); } .ci.pending { color: var(--muted); }
.ci a, .prlink a, a.preview { color: var(--accent); }
a.preview { font-size: 13px; text-decoration: none; }

/* ---------- Revue : commentaires sur les lignes d'un diff */
.diffpre span[data-ln] { cursor: pointer; }
.diffpre span[data-ln]:hover { outline: 1px solid var(--accent); outline-offset: -1px; }
.rvform { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-size: 12.5px; color: var(--text); }
.rvform textarea { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); }
.review { border-top: 1px solid var(--line); padding: 6px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.rvhead { font-weight: 600; }
.rvitem { display: flex; gap: 6px; align-items: baseline; }
.rvitem .btn { margin-left: auto; padding: 0 6px; }
.rvhint { padding: 4px 10px 6px; margin: 0; font-size: 11.5px; }

/* ---------- Variantes et mémoire */
.vgroup { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vinst { font-size: 14px; font-weight: 600; }
.vcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.vcol { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vcol .shot img { max-height: 180px; }
.pill.var { color: var(--accent); }
.btn.mem { padding: 0 6px; font-size: 12px; margin-left: 4px; }
.pname { display: flex; align-items: center; }
.memtext { width: 100%; font: 13px/1.45 ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel2); color: var(--text); resize: vertical; }
.cmdrows { display: flex; flex-direction: column; gap: 8px; max-height: 50dvh; overflow-y: auto; }
.cmdrow { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.cmdrow textarea { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); }
dialog form .btn.ghost { width: auto; background: transparent; color: var(--muted); font-weight: 400; border: 1px solid var(--line); align-self: flex-start; }

/* ---------- Mode confiance */
details.trusted summary { color: var(--ok); font-size: 12px; cursor: pointer; }

/* ---------- Usage du forfait Claude */
.usagebar { position: relative; display: block; width: 100%; height: 18px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: var(--panel); cursor: pointer; overflow: hidden; }
.usagebar i { position: absolute; inset: auto auto 0 0; height: 2px; width: 0; background: var(--accent); transition: width .4s ease; }
.usagebar.warn i { background: var(--warn); }
.usagebar.bad i { background: var(--bad); }
.usagebar span { position: relative; font-size: 11px; color: var(--muted); }
.usagecard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.usagecard .meter { grid-template-columns: 120px minmax(40px, 1fr) auto; }
.ureset { font-size: 11.5px; color: var(--muted); margin: -4px 0 2px 130px; }
@media (max-width: 480px) { .usagecard .meter { grid-template-columns: 96px minmax(40px, 1fr) auto; } .ureset { margin-left: 106px; } }

/* Accès au pod : VSCode */
.podlinks { display: flex; gap: 6px; flex-wrap: wrap; }
.podlinks a.btn { text-decoration: none; color: var(--text); font-size: 13px; padding: 6px 12px; min-height: 0; }
.podlinks .btn.ghost { font-size: 12.5px; }
.pill.model { color: var(--text); }
.pill.model small { color: var(--muted); font-size: 10.5px; }

/* ---------- Questions de Claude */
form.question { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--soft); }
form.question.compact { margin-top: 0; border-width: 1px; }
.qhead { font-weight: 700; color: var(--accent); font-size: 13.5px; }
.qtext { font-size: 14.5px; word-break: break-word; }
.qopts { display: flex; flex-wrap: wrap; gap: 6px; }
.qopts .btn { font-size: 13.5px; padding: 6px 12px; min-height: 0; background: var(--panel); }
.qrow { display: flex; gap: 6px; align-items: flex-end; }
.qrow textarea { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); resize: vertical; }
.follow.ask { border-left-color: var(--accent); }
.badge.ask { background: var(--accent); color: var(--on-accent); }
.qitem { display: flex; flex-direction: column; gap: 5px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.qnum { font-size: 14px; font-weight: 600; }
.qopts .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Mini-fenêtre toujours visible (Picture-in-Picture) */
body.pip { display: block; height: auto; min-height: 100vh; font-size: 14px; overflow-y: auto; }
body.pip.flash { animation: pipflash 1.6s ease-out 2; }
@keyframes pipflash { 0% { box-shadow: inset 0 0 0 4px var(--accent); } 100% { box-shadow: inset 0 0 0 4px transparent; } }
.pipwrap { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.piphead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.piphead b { color: var(--text); font-size: 14px; flex: 1; }
.piphead .btn { padding: 2px 8px; }
.pipcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pipcard.alert { border-color: var(--accent); }
.pipcard.done { color: var(--muted); }
.pipwhere { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipcard .approval, .pipcard form.question { margin: 0; }
.pipcard .approval pre { max-height: 120px; }

/* ---------- Consommation de tokens */
.pill.cost { color: var(--muted); }
.pill.cost.heavy { color: var(--warn); border-color: var(--warn); }
.costtip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); padding: 6px 10px; margin-bottom: 6px;
  border-radius: 10px; background: color-mix(in srgb, var(--ok) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); }
.costtip span { flex: 1; }
.costtip .btn { flex: none; }
.btn.always { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Pull requests */
.prbox { margin-top: 8px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: 14px; padding: 10px 14px;
  background: color-mix(in srgb, var(--ok) 6%, var(--panel)); display: flex; flex-direction: column; gap: 2px; }
.prbox.compact { margin-top: 0; }
.prbox.merged { border-color: var(--line); background: var(--panel); }
.prtitle { font-weight: 600; font-size: 14px; }
.prmeta { font-size: 12px; }
.prbox a.btn { text-decoration: none; color: var(--text); }
.themesel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.themesel .btn { text-align: center; }
.themesel .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
