:root {
  --bg: #0d1117;
  --panel: rgba(18, 24, 33, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #8b98a8;
  --accent: #4f8cff;
  --ag: #ff2d20;
  --syn: #ff9a1f;
  --ant: #2f7bff;
  --stab: #f5d020;
  --bone: #e9dfc7;
  --muscle: #b54a40;
  --tendon: #d9d2bf;
  --ligament: #9fc6c9;
  --cartilage: #8fc9de;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 35%, #223044 0%, #121822 55%, #0a0e14 100%);
}

#viewport { position: fixed; inset: 0; }
#viewport canvas { display: block; }

button {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
button:hover { background: rgba(255, 255, 255, 0.12); }
button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
button.wide { width: 100%; margin-top: 10px; }

.panel {
  position: fixed;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.hidden { display: none !important; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed;
  top: 10px; left: 10px; right: 10px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  z-index: 5;
}
.brand { font-size: 17px; letter-spacing: 0.3px; white-space: nowrap; }
.brand .logo { color: #ff5a4f; margin-right: 4px; }
.views { display: flex; gap: 4px; margin-left: 20px; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------- left panel ---------- */
#leftpanel {
  top: 66px; left: 10px; bottom: 40px;
  width: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 4;
}
.tabs { display: flex; border-bottom: 1px solid var(--panel-border); }
.tab {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 11px 4px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text); background: transparent; border-bottom-color: var(--accent); }
.tabpane { display: none; flex: 1; overflow-y: auto; padding: 12px; }
.tabpane.active { display: block; }
.tabpane::-webkit-scrollbar, #infopanel::-webkit-scrollbar { width: 8px; }
.tabpane::-webkit-scrollbar-thumb, #infopanel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

#search, #test-search {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  margin-bottom: 10px;
}
#search:focus, #test-search:focus { outline: none; border-color: var(--accent); }

/* layers */
#layers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.layer {
  display: grid;
  grid-template-columns: 18px 12px 1fr 90px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.layer .swatch { width: 12px; height: 12px; border-radius: 3px; }
.layer input[type="range"] { width: 90px; }
.layer label { cursor: pointer; }

input[type="range"] { accent-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

.tree-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.tree-actions button { flex: 1; font-size: 12px; }

/* tree */
#tree details { margin-left: 0; }
#tree details details { margin-left: 12px; }
#tree summary {
  cursor: pointer;
  padding: 4px 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  list-style: none;
}
#tree summary::-webkit-details-marker { display: none; }
#tree summary::before { content: "▸"; color: var(--muted); width: 10px; transition: transform 0.15s; }
#tree details[open] > summary::before { transform: rotate(90deg); }
#tree summary:hover { background: rgba(255, 255, 255, 0.06); }
#tree summary .count { margin-left: auto; color: var(--muted); font-size: 11px; }
#tree .cat > summary { font-weight: 600; font-size: 13.5px; }
#tree .region > summary { color: #c5d0dc; }
.row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 26px;
  border-radius: 6px;
}
.row:hover { background: rgba(255, 255, 255, 0.06); }
.row.selected { background: rgba(79, 140, 255, 0.22); }
.row .name { cursor: pointer; flex: 1; }
.row .sidebtns { display: flex; gap: 2px; }
.row .sidebtns button { padding: 0 5px; font-size: 10px; line-height: 16px; }

/* side select */
.side-select { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.side-select span { color: var(--muted); margin-right: 4px; }
.side-select button { flex: 1; }

.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; cursor: pointer; color: #c5d0dc; }

/* movement list */
.mv-group h4 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.mv-group .mv-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.mv-group button { font-size: 12px; text-align: left; }
.mv-group button .lat { opacity: 0.6; font-size: 10px; margin-left: 4px; }

/* pose sliders */
.hint-text { color: var(--muted); line-height: 1.45; margin-top: 0; }
.c-short { color: #ff6a5f; }
.c-long { color: #6aa4ff; }
.slider-group h4 { margin: 14px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.slider { display: grid; grid-template-columns: 1fr 44px; gap: 2px 8px; margin: 6px 0; }
.slider label { font-size: 12px; color: #c5d0dc; }
.slider .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.slider input { grid-column: 1 / 3; width: 100%; }

#analysis-list { margin-top: 14px; }
#analysis-list h4 { margin: 10px 0 4px; font-size: 12px; }
#analysis-list .an-row { display: flex; justify-content: space-between; padding: 2px 4px; border-radius: 4px; cursor: pointer; }
#analysis-list .an-row:hover { background: rgba(255,255,255,0.06); }
#analysis-list .pct { font-variant-numeric: tabular-nums; }

/* ---------- info panel ---------- */
#infopanel {
  top: 66px; right: 10px;
  width: 350px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 16px;
  z-index: 4;
}
#infopanel .close { position: absolute; top: 10px; right: 10px; padding: 2px 8px; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #111;
}
.chip.bone { background: var(--bone); }
.chip.muscle { background: #e0675d; }
.chip.tendon { background: var(--tendon); }
.chip.aponeurosis { background: #cfc5a6; }
.chip.ligament { background: var(--ligament); }
.chip.cartilage { background: var(--cartilage); }
#infopanel h2 { margin: 10px 0 2px; font-size: 20px; }
#infopanel h2 small { font-size: 13px; color: var(--muted); font-weight: 400; }
#infopanel .latin { font-style: italic; color: var(--muted); margin-bottom: 12px; }
#infopanel dl { margin: 0; }
#infopanel dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-top: 10px; }
#infopanel dd { margin: 2px 0 0; line-height: 1.4; }
#infopanel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 16px 0 6px; }
#infopanel ul { margin: 0; padding-left: 18px; line-height: 1.5; }
#infopanel .actions { display: flex; gap: 6px; margin-top: 16px; }
#infopanel .actions button { flex: 1; }
.mv-links { display: flex; flex-wrap: wrap; gap: 4px; }
.mv-link { font-size: 11.5px; padding: 3px 8px; border-left: 3px solid transparent; }
.mv-link.ag { border-left-color: var(--ag); }
.mv-link.syn { border-left-color: var(--syn); }
.mv-link.ant { border-left-color: var(--ant); }
.mv-link.stab { border-left-color: var(--stab); }

/* ---------- movement panel ---------- */
#movepanel {
  right: 10px; bottom: 40px;
  width: 350px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 14px 16px;
  z-index: 4;
}
#infopanel:not(.hidden) ~ #movepanel { max-height: 34vh; }
#movepanel h3 { margin: 0 0 4px; font-size: 16px; }
#movepanel .desc { color: var(--muted); line-height: 1.4; margin: 4px 0 10px; }
#movepanel .controls { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#movepanel .controls input[type="range"] { flex: 1; }
#movepanel .speed { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
#movepanel .speed input { flex: 1; }
.role-block { margin-top: 8px; }
.role-block .role-title { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 4px; }
.role-block .dot { width: 10px; height: 10px; border-radius: 50%; }
.role-block .muscles { display: flex; flex-wrap: wrap; gap: 4px; }
.role-block .muscles button { font-size: 11.5px; padding: 2px 7px; }
.phase-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); margin: 6px 0 10px; }
.phase-bar .cursor { position: absolute; top: -3px; width: 3px; height: 12px; background: #fff; border-radius: 2px; }
.phase-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: -6px; margin-bottom: 8px; }

/* ---------- tooltip / footer ---------- */
#tooltip {
  position: fixed;
  pointer-events: none;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--panel-border);
  font-size: 12px;
  z-index: 10;
  white-space: nowrap;
}
#tooltip .t-cat { color: var(--muted); font-size: 11px; }

#hints {
  position: fixed;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
kbd {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0 4px;
  font-family: inherit;
  font-size: 11px;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  background: var(--bg);
  z-index: 20;
}

@media (max-width: 1100px) {
  #leftpanel { width: 280px; }
  #infopanel, #movepanel { width: 300px; }
  .views { display: none; }
}

#credit {
  position: fixed; right: 12px; bottom: 36px; z-index: 5;
  font-size: 11px; color: rgba(200, 210, 230, 0.55); pointer-events: none;
}
#credit a { color: inherit; pointer-events: auto; }
.ins-legend { font-size: 12px; color: var(--muted); margin: 6px 0; }
.ins-legend .dot, .hint-text .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 6px; vertical-align: middle; }
ul.arms { list-style: none; padding: 0; margin: 4px 0; }
ul.arms li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 12.5px; }
ul.arms .pct, .an-row .pct { color: var(--muted); white-space: nowrap; }
#btn-ao.active { background: rgba(80, 130, 255, 0.35); }

/* ---------- cadrage par région ---------- */
.regions { display: flex; gap: 4px; padding-left: 14px; border-left: 1px solid var(--panel-border); }
.regions button { white-space: nowrap; }
@media (max-width: 1450px) { .regions button { padding-left: 7px; padding-right: 7px; font-size: 12px; } }
@media (max-width: 1250px) { .views { display: none; } }

/* ---------- tests cliniques ---------- */
.test-disclaimer { font-size: 11.5px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: rgba(255, 190, 80, 0.08); border: 1px solid rgba(255, 190, 80, 0.25); margin: 0 0 10px; }
.test-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.test-filters button { font-size: 11.5px; padding: 3px 8px; }
h4.test-reg { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); }
.test-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; text-align: left; margin-bottom: 4px; padding: 7px 9px; }
.test-item .t-name { flex: 1; }
.t-type { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,0.08); color: var(--muted); white-space: nowrap; }
.t-neuro { background: rgba(255, 214, 90, 0.16); color: #f2d27a; }
.t-vasc { background: rgba(255, 120, 120, 0.16); color: #ff9a9a; }
.t-stab { background: rgba(110, 200, 200, 0.16); color: #8fd6d2; }
.t-long { background: rgba(140, 200, 120, 0.16); color: #a6dc8f; }
.t-tendon { background: rgba(230, 120, 100, 0.16); color: #f2a18f; }
.t-menisque { background: rgba(130, 180, 240, 0.16); color: #9cc4f5; }
.t-ortho { background: rgba(200, 170, 255, 0.16); color: #c9b2ff; }
.chip.test { color: inherit; }
ol.test-steps { margin: 0; padding-left: 20px; line-height: 1.5; }
ol.test-steps li { margin-bottom: 4px; }
.test-massage { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: rgba(90, 140, 255, 0.10); border: 1px solid rgba(90, 140, 255, 0.3); line-height: 1.45; }
.test-structs button { margin: 0 4px 4px 0; }

/* ---------- tests : lecteur d'animation ---------- */
#test-stage {
  position: fixed;
  left: 360px; right: 380px; bottom: 40px;
  max-width: 640px; margin: 0 auto;
  padding: 12px 16px 10px;
  z-index: 4;
}
#test-stage .ts-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
#test-stage .ts-ctrl { display: flex; gap: 6px; }
#test-stage .ts-ctrl button { padding: 3px 10px; font-size: 12px; text-transform: none; letter-spacing: 0; }
#ts-cap { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 6px 0 9px; min-height: 2.6em; }
#ts-bar { display: flex; gap: 4px; height: 8px; cursor: pointer; }
#ts-bar .seg { position: relative; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
#ts-bar .seg:hover { background: rgba(255,255,255,0.25); }
#ts-bar .seg.done { background: rgba(90,140,255,0.55); }
#ts-bar .seg i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #5a8cff; }
#ts-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--muted); min-height: 16px; }
#ts-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
#ts-legend .dot, .test-facts .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.test-item .t-place { font-size: 14px; width: 18px; text-align: center; }
.test-facts { display: grid; gap: 8px; margin: 4px 0 6px; }
.test-facts .fact, .test-positive { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); line-height: 1.35; }
.test-facts .ic, .test-positive .ic { font-size: 20px; line-height: 1; }
.test-facts b, .test-positive b { display: block; font-weight: 600; }
.test-facts small { color: var(--muted); font-size: 11px; }
.test-positive { margin-top: 10px; background: rgba(255, 170, 40, 0.10); border: 1px solid rgba(255, 170, 40, 0.35); }
.test-positive b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #ffb648; margin-bottom: 2px; }
#infopanel h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
ol.test-steps li { padding: 4px 6px; border-radius: 6px; transition: background 0.2s; }
ol.test-steps li.clickable { cursor: pointer; }
ol.test-steps li.clickable:hover { background: rgba(255,255,255,0.06); }
ol.test-steps li.cur { background: rgba(90,140,255,0.22); box-shadow: inset 3px 0 0 #5a8cff; }
.test-massage a.mlink { color: #9cc0ff; text-decoration: underline dotted; cursor: pointer; font-weight: 600; }
.test-massage a.mlink:hover { color: #fff; }
.mzones { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mzones .mlink-btn { font-size: 12px; padding: 3px 9px; border-color: rgba(90,140,255,0.5); }
.mzones .mlink-btn::before { content: '👁 '; }
details.test-more { margin-top: 14px; }
details.test-more summary { cursor: pointer; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---------- recherche de mouvement ---------- */
.move-search-row { display: flex; gap: 6px; margin-bottom: 6px; }
.move-search-row input { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-border); background: rgba(255,255,255,0.06); color: inherit; font: inherit; }
.move-search-row button { padding: 0 12px; }
.move-examples { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.move-examples button { font-size: 11px; padding: 2px 8px; opacity: 0.8; }
#move-parse { font-size: 12.5px; line-height: 1.45; margin-bottom: 8px; }
#move-parse .mp-ok { padding: 7px 9px; border-radius: 8px; background: rgba(61,220,132,0.10); border: 1px solid rgba(61,220,132,0.35); }
#move-parse .mp-step { display: block; }
#move-parse .mp-ok small { color: var(--muted); }
#move-parse .mp-warn { color: #ffb648; margin-top: 4px; }
#move-parse .mp-err { padding: 7px 9px; border-radius: 8px; background: rgba(255,77,77,0.10); border: 1px solid rgba(255,77,77,0.35); }
#move-parse .mp-help { color: var(--muted); margin-top: 4px; }
#move-parse .mp-sugg { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#move-parse .mp-sugg button { font-size: 11.5px; padding: 2px 8px; }

/* ---- tests par muscle ---- */
.test-filters .tf-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.test-filters .tf-types button { display: inline-flex; align-items: center; gap: 5px; }
.test-filters select { width: 100%; margin: 2px 0 4px; padding: 6px 8px; background: rgba(255,255,255,0.06); color: inherit; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; font: inherit; font-size: 12px; }
.test-filters select option { background: #1b2030; }
.tf-note { font-size: 10.5px; color: var(--muted); margin: 2px 0 4px; line-height: 1.35; }
.pt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
details.mt-muscle { border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; margin-bottom: 5px; background: rgba(255,255,255,0.025); }
details.mt-muscle > summary { display: flex; align-items: center; gap: 8px; padding: 7px 9px; cursor: pointer; list-style: none; }
details.mt-muscle > summary::-webkit-details-marker { display: none; }
details.mt-muscle > summary::before { content: '▸'; color: var(--muted); font-size: 11px; transition: transform .15s; }
details.mt-muscle[open] > summary::before { transform: rotate(90deg); }
.mt-name { flex: 1; font-weight: 600; font-size: 13px; }
.mt-dots { display: flex; gap: 3px; }
ol.mt-probs { margin: 0; padding: 0 8px 8px 26px; }
ol.mt-probs li, .mt-others li { margin: 6px 0 2px; font-size: 12px; }
ol.mt-probs li::marker, .mt-others li::marker { color: var(--muted); font-size: 11px; }
.mt-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mt-pn { flex: 1 1 140px; line-height: 1.3; }
.mt-ctx { font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.pt { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.mt-tests { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mt-tb { font-size: 11px; padding: 3px 7px; border-radius: 7px; }
.mt-tb.active { background: var(--accent, #4a90ff); color: #fff; border-color: transparent; }
.test-sub { font-size: 10.5px; color: var(--muted); margin: 8px 0 4px; font-style: italic; }
.mt-card { border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 9px 10px; margin: 8px 0 10px; background: rgba(255,255,255,0.03); }
.mt-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.mt-prob { margin-top: 8px; }
.mt-prob b { display: block; margin: 5px 0 3px; font-size: 13px; }
.mt-prob p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.mt-ctxl { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); }
.mt-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
details.mt-others { margin-top: 8px; font-size: 12px; }
details.mt-others summary { cursor: pointer; color: var(--muted); font-size: 11.5px; }
.mt-others ol { padding-left: 18px; margin: 4px 0 0; }
.mt-others li.cur { color: #fff; }
.test-positive .mt-pos { display: block; margin: 2px 0 5px; font-weight: 600; }

/* ---- onglet Pratique ---- */
.tabs .tab { padding-left: 4px; padding-right: 4px; }
.prac-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.prac-modes button { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 8px; text-align: left; }
.prac-modes button span { font-size: 14px; }
.prac-modes button.active { background: var(--accent, #4a90ff); color: #fff; border-color: transparent; }
.pr-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-grid button { font-size: 12px; padding: 5px 8px; }
.pr-grid.one button { width: 100%; text-align: left; }
.pr-grid button.active, .pr-lms button.active, .pr-post.active { background: var(--accent, #4a90ff); color: #fff; border-color: transparent; }
.pr-post { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; }
.pr-post .ic { font-size: 22px; }
.pr-post b { display: block; font-size: 13px; }
.pr-post small { color: var(--muted); font-size: 11px; }
.pr-post.active small { color: #e8eefc; }
ol.pr-lms { list-style: none; padding: 0; margin: 8px 0 0; }
ol.pr-lms button { width: 100%; text-align: left; font-size: 12px; padding: 5px 8px; margin-bottom: 3px; }
.pr-flag { border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid; }
.pr-flag h4 { margin: 0 0 4px; font-size: 13px; }
.pr-flag ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.45; }
.pr-flag.urgence { border-color: #ff3b30; background: rgba(255,59,48,0.1); }
.pr-flag.medecin { border-color: #ff9f1a; background: rgba(255,159,26,0.08); }
.pr-flag.local { border-color: #a76bff; background: rgba(167,107,255,0.08); }
.pr-flag.precaution { border-color: #4a90ff; background: rgba(74,144,255,0.08); }
.chip.pr-chip { background: rgba(255,210,63,0.15); color: #ffd23f; }
.chip.pr-chip.danger { background: rgba(255,59,48,0.15); color: #ff6b5f; }
.pr-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin: 6px 0; }
.pr-legend.big { font-size: 12.5px; color: inherit; flex-direction: column; }
.pr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
ol.pr-mlist { padding-left: 20px; margin: 6px 0 10px; }
ol.pr-mlist li { margin: 4px 0; }
ol.pr-mlist small { color: var(--muted); margin-left: 6px; font-size: 11px; }
.pr-m { font-size: 12.5px; padding: 4px 8px; }
.pr-m i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.pr-toggles { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin: 6px 0 8px; }
.pr-toggles label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.pr-palp > div { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; margin-bottom: 4px; border-radius: 8px; background: rgba(255,255,255,0.04); font-size: 12.5px; line-height: 1.4; }
.pr-palp .ic { font-size: 15px; width: 20px; text-align: center; }
.pr-palp b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pr-zs { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-z { font-size: 11.5px; padding: 2px 7px; border-radius: 8px; background: rgba(255,159,26,0.15); color: #ffb54d; }
.pr-z.main { background: rgba(255,59,48,0.18); color: #ff6b5f; }
ul.pr-probs { padding-left: 4px; list-style: none; margin: 4px 0; font-size: 12.5px; }
ul.pr-probs li { margin: 4px 0; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pr-actions button { font-size: 12px; padding: 6px 10px; }
.pr-sheet { font-size: 12px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.05); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pr-sheet span { background: rgba(255,255,255,0.08); border-radius: 6px; padding: 2px 4px 2px 7px; }
.pr-sheet span button { padding: 0 4px; font-size: 10px; margin-left: 3px; background: none; border: none; }
