/* Vue Roadmap (préfixe .rm-) : reprise de la page « Roadmap CampagneOS » — bandeau sombre avec frise
   des versions, barre d'outils collante, cartes par module, matrice modules × versions. */

.view-roadmap {
  --rm-gx: max(16px, env(safe-area-inset-left));
  --rm-gy: 18px;
}
.rm-wrap { max-width: 1320px; margin: 0 auto; }

/* --- Bandeau (pleine largeur, dans la continuité du bandeau du socle) -------------------------- */
.rm-band {
  background: var(--ink-band); color: var(--on-band);
  margin: calc(-1 * var(--rm-gy)) calc(-1 * var(--rm-gx)) 0;
  padding: 30px var(--rm-gx) 24px;
  border-top: 1px solid #ffffff14;
}
.rm-band-in { display: grid; gap: 26px; }
.rm-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.rm-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); font-weight: 600; }
.rm-h1 {
  font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin-top: 8px;
}
.rm-h1 em { font-style: normal; color: var(--accent); }
.rm-arrow { color: var(--band-muted); font-weight: 500; }
.rm-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.rm-stat b {
  display: block; font-family: var(--f-display); font-size: 32px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rm-stat span { font-size: 12px; color: var(--band-muted); letter-spacing: .06em; text-transform: uppercase; }

/* Frise : une version = un bouton dont la largeur suit la durée (--w en jours). */
.rm-frise { display: flex; align-items: stretch; min-width: 0; }
.rm-frise-vide { margin: 0; color: var(--band-muted); }
.rm-ph {
  flex: var(--w, 30) 1 0; min-width: 0; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-band); border-radius: 6px;
}
.rm-ph:focus-visible { outline: 2px solid var(--on-band); outline-offset: 4px; }
.rm-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: #ffffff26; transition: background .2s, height .12s; }
.rm-ph:hover .rm-bar { background: #ffffff55; }
.rm-ph[aria-pressed="true"] .rm-bar { background: var(--accent); }
.rm-ph-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 8px; }
.rm-lab { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.rm-lab small {
  display: block; font-family: var(--f-body); font-weight: 500; font-size: 12.5px; color: var(--band-muted); margin-top: 2px;
}
.rm-n { font-size: 12px; color: var(--band-muted); font-variant-numeric: tabular-nums; }
.rm-ms { flex: 0 0 26px; width: 26px; display: flex; flex-direction: column; align-items: center; }
.rm-ms i { width: 14px; height: 14px; background: var(--on-band); transform: rotate(45deg) translateY(-2px); border-radius: 2px; }
.rm-ms-end { flex-basis: 20px; }
.rm-today {
  position: absolute; left: var(--t, 0%); top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px;
  background: #ffd166; border-radius: 2px; box-shadow: 0 0 0 2px var(--ink-band);
}
.rm-today::after {
  content: ""; position: absolute; left: 50%; top: -5px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: #ffd166;
}
.rm-aplan { flex: 0 0 150px; margin-left: 18px; }
.rm-aplan .rm-bar { background: transparent; box-shadow: inset 0 0 0 1.5px #ffffff55; background-image: repeating-linear-gradient(-45deg, #ffffff22 0 4px, transparent 4px 8px); }
.rm-aplan[aria-pressed="true"] .rm-bar { background-color: var(--accent); }
.rm-dragging .rm-ph .rm-bar { background: #ffffff40; }
.rm-ph.over .rm-bar { background: var(--accent) !important; height: 14px; }
.rm-ph.over .rm-lab { text-decoration: underline; text-underline-offset: 3px; }

.rm-jalons { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--band-muted); }
.rm-jalons:empty { display: none; }
.rm-jalon { display: inline-flex; align-items: center; gap: 8px; }
.rm-jalon::before { content: ""; width: 9px; height: 9px; background: var(--on-band); transform: rotate(45deg); border-radius: 1px; flex: 0 0 auto; }
.rm-jalon b { color: var(--on-band); font-weight: 600; }
.rm-jalon-today::before { background: #ffd166; transform: none; border-radius: 50%; }

/* --- Barre d'outils collante -------------------------------------------------------------------- */
.rm-tools {
  position: sticky; top: var(--chrome-h); z-index: 6; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * var(--rm-gx)); padding: 10px var(--rm-gx);
}
.rm-tools-in { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.rm-grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-grp-l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.rm-grp .seg button { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.rm-grp .seg button:first-child { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; }
.rm-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 360px; margin-left: auto; display: flex; align-items: center; }
.rm-search-ico { position: absolute; left: 10px; color: var(--muted); font-size: 15px; pointer-events: none; }
.rm-search-input {
  width: 100%; padding: 6px 10px 6px 30px; min-height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 13.5px;
}
.rm-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.rm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-export { border-color: var(--ink); }

/* --- Corps ------------------------------------------------------------------------------------- */
.rm-body { padding-top: 24px; }
.rm-phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.rm-phead h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.rm-dates { color: var(--muted); font-weight: 500; }
.rm-cnt-big { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface-2); padding: 1px 9px; border-radius: 999px; }
.rm-next { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.rm-next::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: 0 0 auto; }
.rm-phead-sp { flex: 1 1 0; }
.rm-phead-tools { display: inline-flex; gap: 4px; align-items: center; align-self: center; }
.rm-phead-tools .btn.ghost { font-size: 18px; line-height: 1; padding: 2px 10px; }
.rm-desc { margin: -8px 0 18px; color: var(--muted); max-width: 80ch; white-space: pre-line; }

.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.rm-card {
  --mc: var(--accent);
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--mc);
  border-radius: 12px; padding: 16px 16px 12px; min-width: 0;
  scroll-margin-top: calc(var(--chrome-h) + 72px); transition: box-shadow .3s;
}
.rm-card.rm-flash { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 45%, transparent); }
.rm-card.rm-vide { background: transparent; border-style: dashed; border-top-width: 1px; border-top-color: var(--mc); padding: 12px 16px; }
.rm-card.rm-vide .rm-ch { margin: 0; }
.rm-card.rm-vide p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.rm-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-ch h3 { font-size: 17px; font-weight: 700; line-height: 1.25; flex: 1; min-width: 0; }
.rm-who {
  font-family: var(--f-mono); font-size: 11.5px; padding: 3px 7px; border-radius: 5px; background: var(--surface-2);
  color: var(--muted); letter-spacing: .04em; flex: 0 0 auto;
}
.rm-cnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.rm-epic + .rm-epic { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.rm-et-row { display: flex; align-items: center; gap: 2px; margin: 0 -6px 4px; }
.rm-et {
  flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; border: 0; background: none; text-align: left;
  font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 6px; padding: 3px 6px; color: var(--ink);
}
.rm-et:hover { background: var(--surface-2); }
.rm-et[aria-expanded="true"] { background: var(--surface-2); }
/* Texte à la couleur du module, foncé vers l'encre pour rester lisible (≥ 4,5:1) ; la couleur
   pure reste réservée aux liserés et pastilles. */
.rm-code { font-family: var(--f-mono); font-size: 11.5px; color: color-mix(in srgb, var(--mc) 62%, var(--ink)); flex: 0 0 auto; font-weight: 600; }
.rm-et-in { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.rm-et-t { min-width: 0; overflow-wrap: anywhere; }
.rm-et-sans { cursor: default; color: var(--muted); }
.rm-et-sans:hover { background: none; }
.rm-et-row[draggable="true"] { cursor: grab; }
.rm-mvbtn-epic { margin-top: 0; }

ul.rm-us { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-li { display: flex; align-items: flex-start; gap: 2px; border-radius: 7px; margin: 0 -6px; position: relative; }
.rm-li:hover { background: var(--surface-2); }
.rm-li.is-open { background: var(--accent-soft); }
.rm-li.is-open::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rm-li.rm-pending { opacity: .8; }
.rm-li.rm-pending .rm-open { cursor: progress; }
.rm-open {
  flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; align-items: start;
  border: 0; background: none; text-align: left; padding: 4px 6px; border-radius: 7px; cursor: pointer; color: var(--ink);
  font-size: 13.8px; line-height: 1.45;
}
.rm-ref { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-top: 2px; white-space: nowrap; min-width: 64px; }
.rm-ref.none { font-style: italic; }
.rm-txt { min-width: 0; overflow-wrap: anywhere; }
.rm-txt .badge { margin-left: 6px; vertical-align: 1px; text-transform: none; letter-spacing: 0; font-size: 11px; }
.rm-st { grid-column: 2; display: flex; }
.rm-st .pill { font-size: 11px; padding: 0 8px 0 6px; font-weight: 600; }
.rm-fini .rm-txt { color: var(--muted); }
.rm-maj .rm-ref { color: var(--accent); }
.rm-mvbtn {
  flex: 0 0 auto; width: 28px; height: 28px; margin-top: 2px; border: 0; background: none; border-radius: 6px; cursor: pointer;
  color: var(--muted); font-size: 14px; opacity: .5; transition: opacity .12s;
}
/* ⇄ toujours visible (atténué) : l'action de déplacement s'annonce sans survol. */
.rm-li:hover .rm-mvbtn, .rm-et-row:hover .rm-mvbtn, .rm-mvbtn:focus-visible, .rm-mvbtn[aria-expanded="true"] { opacity: 1; }
.rm-mvbtn:hover, .rm-mvbtn[aria-expanded="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: none) { .rm-mvbtn { opacity: 1; } }
.rm-li[draggable="true"] { cursor: grab; }
mark.rm-hl { background: var(--accent-soft); color: inherit; border-radius: 2px; padding: 0 1px; }

.rm-noresult { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.rm-legend { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rm-mv-ico { font-size: 13px; }

/* --- Vue d'ensemble : matrice modules × versions ------------------------------------------------ */
.rm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rm-table { border-collapse: collapse; width: 100%; min-width: 860px; }
.rm-table th, .rm-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rm-table thead th { font-family: var(--f-display); font-size: 14px; font-weight: 700; background: var(--surface-2); }
.rm-table thead th small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--muted); }
.rm-table tbody th { width: 210px; font-weight: 600; font-size: 14px; border-left: 4px solid var(--mc); }
.rm-table tbody th .rm-who { margin-top: 6px; display: table; }
.rm-table tbody tr:last-child > * { border-bottom: 0; }
.rm-cell {
  display: block; width: calc(100% + 16px); border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  border-radius: 8px; padding: 6px 8px; margin: -6px -8px;
}
.rm-cell:hover { background: var(--surface-2); }
.rm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.rm-chip { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: color-mix(in srgb, var(--mc) 62%, var(--ink)); }
.rm-cell:hover .rm-chip { background: var(--surface); }
.rm-cn { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-heat { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.rm-heat i { display: block; height: 100%; background: var(--mc); opacity: .75; }
.rm-void { color: var(--line); font-size: 20px; }

/* --- Menu de déplacement ------------------------------------------------------------------------ */
.rm-pop {
  position: fixed; z-index: 60; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px;
}
.rm-pop-t { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 6px 8px; }
.rm-pop-i {
  display: flex; align-items: baseline; gap: 8px; width: 100%; border: 0; background: none; text-align: left;
  padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink);
}
.rm-pop-i b { font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 14px; flex: 0 0 auto; }
.rm-pop-n { flex: 1; min-width: 0; }
.rm-pop-i:hover:not([disabled]) { background: var(--surface-2); }
.rm-pop-i:focus-visible { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
.rm-pop-i[disabled] { opacity: .5; cursor: default; }
.rm-pop-cur { font-size: 11px; color: var(--muted); }
.rm-pop-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* --- Dialogue de version ------------------------------------------------------------------------ */
.rm-dlg-layer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.rm-dlg-scrim { position: absolute; inset: 0; background: #0b0e23; opacity: .45; }
.rm-dlg {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); border-top: 4px solid var(--accent);
  animation: rm-dlg-in .16s ease-out;
}
@keyframes rm-dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rm-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 4px 20px; }
.rm-dlg-head h2 { font-size: 19px; }
.rm-dlg-form { display: grid; gap: 12px; padding: 8px 20px 18px; }
.rm-f { display: grid; gap: 4px; min-width: 0; }
.rm-f label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rm-f .ctl { width: 100%; }
.rm-f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-f-hint { font-size: 12px; color: var(--muted); }
.rm-dlg-err { margin: 0; color: var(--accent); font-weight: 600; font-size: 13px; }
.rm-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* --- Responsive --------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .view-roadmap { --rm-gy: 14px; }
  .rm-band { padding-top: 22px; }
}
@media (max-width: 720px) {
  .rm-frise { flex-direction: column; gap: 14px; }
  .rm-ms { display: none; }
  .rm-ph { flex-direction: row; align-items: stretch; gap: 12px; }
  .rm-bar { width: 8px; height: auto; flex: 0 0 8px; }
  .rm-ph.over .rm-bar { height: auto; width: 12px; flex-basis: 12px; }
  .rm-today { left: -5px; right: -5px; top: var(--t, 0%); bottom: auto; width: auto; height: 3px; margin: -1.5px 0 0; }
  .rm-today::after { left: -5px; top: 50%; margin: -3.5px 0 0; }
  .rm-aplan { flex: 0 0 auto; margin-left: 0; }
  .rm-search { margin-left: 0; max-width: none; flex-basis: 100%; }
  .rm-tools { position: static; }   /* trop haute sur téléphone pour rester collée */
  .rm-stats { gap: 18px; }
  .rm-stat b { font-size: 26px; }
  .rm-f-row { grid-template-columns: 1fr; }
  .rm-phead-sp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-bar, .rm-card, .rm-mv, .rm-mvbtn { transition: none; }
}

/* --- Avancement des versions (frise et vue par version) ---------------------------------------- */
.rm-ph-av { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 8px; font-size: 11.5px; color: var(--band-muted); font-variant-numeric: tabular-nums; }
.rm-ph-prog { flex: 0 0 46px; height: 4px; border-radius: 2px; background: #ffffff22; overflow: hidden; }
.rm-ph-prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--ok); border-radius: 2px; }
.rm-ph-av-t small { font-size: 11px; }
.rm-ph-flag { font-weight: 700; font-size: 11px; border-radius: 4px; padding: 0 4px; }
.rm-ph-flag.bloque { background: #ff6b5f33; color: #ffb3ad; }
.rm-ph-flag.retard { background: #ffd16633; color: #ffd166; }
.rm-avance {
  display: grid; gap: 8px; margin: -6px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); max-width: 640px;
}
.rm-av-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.rm-av-l { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.rm-av-bar { height: 8px; }
.rm-av-n { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-av-n small { color: var(--muted); }
.rm-av-flags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rm-txt .badge.bloque, .rm-txt .due { margin-left: 6px; }
@media (max-width: 720px) {
  .rm-ph-av { margin-left: auto; align-self: center; }
  .rm-av-row { grid-template-columns: 1fr auto; }
  .rm-av-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* US transverse (plusieurs modules) : présente dans la carte de chacun de ses modules. */
.badge.rm-trans { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.rm-cn-t { font-size: 11px; color: var(--muted); }

/* --- Prévision : badge de la frise, bloc « Projection », panneau « Charge » --------------------- */
.rm-proj-badge {
  display: inline-flex; align-items: baseline; gap: 2px; align-self: flex-start; max-width: 100%;
  font-size: 11px; font-weight: 700; line-height: 1.5; border-radius: 4px; padding: 0 5px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rm-proj-badge small { font-weight: 500; font-size: 10.5px; }
.rm-ph .rm-proj-badge { background: #ffffff1f; color: var(--on-band); margin-right: 8px; }
.rm-ph .rm-proj-badge.is-ok { background: #53d0a033; color: #9fe8c9; }
.rm-ph .rm-proj-badge.is-late { background: #ff6b5f40; color: #ffc2bd; }
.rm-ph .rm-proj-badge.is-no_data, .rm-ph .rm-proj-badge.is-unestimated { color: var(--band-muted); }
.rm-proj {
  display: grid; gap: 6px; margin: -6px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); max-width: 640px; border-left: 4px solid var(--line);
}
.rm-proj.is-ok { border-left-color: var(--ok); }
.rm-proj.is-late { border-left-color: var(--p-urgent); }
.rm-proj.is-no_end_date { border-left-color: var(--p-normal); }
.rm-proj.is-to_close { border-left-color: var(--p-normal); }
.rm-proj.is-unestimated, .rm-proj.is-no_data { border-left-color: var(--warn); }
.rm-proj-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rm-proj-t { font-weight: 700; font-size: 13px; }
.rm-proj .rm-proj-badge { background: var(--surface-2); color: var(--ink); }
.rm-proj .rm-proj-badge.is-ok { background: var(--ok-soft); color: var(--ok); }
.rm-proj .rm-proj-badge.is-late { background: var(--accent-soft); color: var(--p-urgent); }
.rm-proj .rm-proj-badge.is-unestimated, .rm-proj .rm-proj-badge.is-no_data { background: var(--warn-soft); color: var(--warn-ink); }
.rm-proj-date { font-size: 12.5px; color: var(--muted); }
.rm-proj-msg, .rm-proj-facts, .rm-proj-hint { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.rm-proj-facts, .rm-proj-hint { color: var(--muted); font-size: 12.5px; }
.rm-proj-hint code { font-size: 12px; }
.rm-charge-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rm-charge {
  margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  display: grid; gap: 10px; min-width: 0;
}
.rm-charge-h { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.rm-charge-h h2 { margin: 0; font-size: 16px; font-family: var(--f-display); }
.rm-charge-vel { margin: 0; font-size: 13px; color: var(--muted); }
.rm-charge-sk { display: block; height: 80px; border-radius: 8px; }
.rm-ch-scroll { overflow-x: auto; max-width: 100%; }
.rm-ch-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-ch-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.rm-ch-table th, .rm-ch-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
.rm-ch-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.rm-ch-table thead small, .rm-ch-table td small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.rm-ch-table td { font-variant-numeric: tabular-nums; }
.rm-ch-table tbody th { font-weight: 600; }
.rm-ch-0 { color: var(--muted); }
.rm-ch-cap { color: var(--muted); }
.rm-ch-over { background: var(--accent-soft); }
.rm-ch-over b, .rm-ch-flag { color: var(--p-urgent); }
.rm-ch-none th, .rm-ch-none td { color: var(--muted); font-style: italic; }
@media (max-width: 720px) {
  .rm-ph .rm-proj-badge { align-self: center; flex: 0 1 auto; min-width: 0; white-space: normal; margin-right: 0; }
  .rm-ph .rm-proj-badge small { display: none; }
}
