/* Endpoint screens (assets/js/endpoint*.js). Built on the shared panels, tables and charts;
   only layout and the Endpoint-specific pieces live here. */

/* ---------- Shared bits ---------- */

.ep-small { font-size: 11.5px; }
.ep-m { margin: 0 17px 12px; }
.ep-crumbs { margin-bottom: 6px; }
.ep-nowrap { white-space: nowrap; }
.ep-nowrap .spec-row { flex-wrap: nowrap; }
.ep-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.no-results .ep-btns { justify-content: center; margin-top: 14px; }
.ep-center { display: grid; place-content: center; min-height: 300px; }
.ep-center .no-results { max-width: 460px; }
.ep-run { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ep-run.ok { color: var(--ok); }
.ep-run.crit { color: var(--crit); }
.ep-run.run { color: var(--accent); }
.ep-run.run .icon { animation: spin 1.4s linear infinite; }
.ep-run.none { color: var(--ink-3); }
.ep-out {
  margin: 0; padding: 10px 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  border-radius: var(--r-md); background: var(--sunken); font: 12px/1.55 var(--font-data); color: var(--ink);
}
.ep-link-rows tbody tr[data-id] { cursor: pointer; }
.ep-link-rows tbody tr[data-id]:hover td { background: var(--surface-2); }
.ep-op { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--ink); font-weight: 500; font-size: 13px; }
.ep-op:hover { color: var(--accent); }

/* Simple tables inside panels: narrower than full data tables on small screens. */
dl.facts.ep-facts { grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); }
dl.facts.ep-facts dd { text-align: left; }
.ep-dfacts { margin: 12px 0; }
.ep-dlg { display: grid; gap: 10px; margin-top: 10px; font-size: 13px; }
.ep-dlg > p { color: var(--ink-2); line-height: 1.5; }

.ep-section { margin-top: 24px; }
.ep-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.ep-section-head h2 { font-size: 15px; font-weight: 700; }

/* ---------- Overview ---------- */

.kpis.ep-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.kpis.ep-k { margin-top: 0; }
a.ep-kpi { color: inherit; transition: background 0.15s; }
a.ep-kpi:hover { background: var(--surface-2); }
a.ep-kpi:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
a.ep-kpi:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.ep-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 17px; }
.ep-agent { display: grid; gap: 11px; }
.ep-lead { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ep-lead strong { color: var(--ink); }
.ep-ops .ep-run { margin-left: 4px; }

/* ---------- Devices ---------- */

.ep-browse { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 17px; align-items: start; }
.ep-tree { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 1px; padding: 6px; max-height: calc(var(--view-h, 100dvh) - var(--top-h) - 32px); overflow: auto; }
.ep-tree a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6.5px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); }
.ep-tree a:hover { background: var(--sunken); color: var(--ink); }
.ep-tree a .num { font-size: 11.5px; color: var(--ink-3); }
.ep-tree a.all, .ep-tree a.site { font-weight: 600; color: var(--ink); }
.ep-tree a.child { padding-left: 22px; }
.ep-tree a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ep-tree a[aria-current="page"] .num { color: var(--accent); }
/* Folder pane of the Devices view (UX-04, SidePane + TreeView): a note when the folders cannot be read, a hint while there are none,
   and below 860px the folder picker that replaces the tree, full width beside its « + ». */
.ep-folders-note { display: grid; gap: 8px; justify-items: start; padding: 6px 8px 10px; font-size: 12.5px; }
.ep-folders-hint { padding: 8px 10px 4px; font-size: 12px; line-height: 1.45; }
.ep-folder-pick.field.dd { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.ep-folder-pick > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A folder's maintenance window (M4-13): the applied window and its source on two lines, then inherit or this folder's own. */
.fw-applied { display: flex; align-items: flex-start; gap: 8px; min-height: 37px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--sunken); font-size: 12.5px; }
.fw-applied > .icon { flex: none; margin-top: 1px; color: var(--accent); }
.fw-applied > div { display: grid; gap: 2px; min-width: 0; }
.fw-applied .skel-line { display: block; }
.fw-choice { display: grid; gap: 6px; }
.fw-choice .muted { font-weight: 400; }
/* Devices header (operator, 2026-11-06): nothing above the rows moves when the folder changes. The title stays « Appareils », the
   folder follows a chevron on the same line and ends in an ellipsis, the intro is the same sentence everywhere, and the column beside
   the actions takes the room they leave (never its content's width), so a long folder name never pushes them to a new line. */
.ep-dev-head > div:first-child { flex: 1 1 0; min-width: 0; }
.ep-dev-title { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.ep-dev-title > a { flex: none; color: var(--ink-2); }
.ep-dev-title > a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ep-dev-sep { flex: none; color: var(--ink-3); }
.ep-dev-folder { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The search, the states and the « Afficher… » chips join the table's toolbar as its own items, so they wrap with « Colonnes »
   (one row at desktop widths, two on a narrow window); the search gives way first. */
.ep-devices .dt-toolbar > .ep-dev-filters { display: contents; }
@media (min-width: 861px) { .ep-devices .ep-dev-filters .search-field { flex: 1 1 200px; max-width: 300px; } }

/* ---------- Device ---------- */

.ep-device .tabs { margin-bottom: 14px; }
.ep-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; padding-top: 6px; }
.ep-hcell { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ep-hlabel { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ep-hcell .spark { width: 100%; }
.ep-collected { display: inline-flex; align-items: center; gap: 10px; }
.ep-inv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 17px; align-items: start; }
.ep-inv-body { min-width: 0; padding-bottom: 6px; }
.ep-inv-body > .panel-body, .ep-inv-scroll > .panel-body { padding-top: 8px; }
/* Inventory › Stockage: a group label over its two entries, physical disks and logical volumes (operator, 2026-11-05). */
.ep-subnav-group { display: flex; align-items: center; gap: 10px; padding: 8px 10px 2px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.account-nav a.ep-subnav-child { padding-left: 35px; }
.account-nav a.ep-subnav-child svg { display: none; }
/* Fixed frame (kit.css): the folder tree and inventory sections stay, their content scrolls. */
@media (min-width: 861px) and (min-height: 560px) {
  .frame .ep-browse, .frame .ep-inv { min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .frame .ep-tree { position: static; align-self: start; max-height: 100%; }
  .frame .ep-subnav { position: static; align-self: start; }
  .frame .ep-inv-body { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .frame .ep-inv-body > :last-child { flex: 1 1 auto; min-height: 0; overflow: auto; }
  /* The section's one body (facts, notes, lists) scrolls inside the card, never past it (operator, 2026-11-06). A list that is the
     section's body fills the card (DataTable Layout Fill): it fits its rows, and past the room its notes leave, its rows scroll
     under the sticky titles with the count pinned below; the notes stay above and under it. A list among other facts keeps its
     natural height in pages, and the body scrolls. */
  .frame .ep-inv-scroll { display: flex; flex-direction: column; overscroll-behavior: contain; }
  .frame .ep-inv-scroll > :not(.dt):not(.ep-inv-list), .frame .ep-inv-list > :not(.dt) { flex: none; }
  .frame .ep-inv-list { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
}
.ep-dt-flush .dt-toolbar { padding-top: 6px; }
/* Inventory › Virtualisation (M11-07): the engine on one line over the guests; a guest without the agent offers its install in line. */
.ep-virt-engine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px 17px 4px; font-size: 13px; }
.ep-virt-strong { font-weight: 600; color: var(--ink); }
.ep-virt-agent { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

/* ---------- Updates ---------- */

dl.facts.ep-ringfacts { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 12.5px; }
dl.facts.ep-ringfacts dd { overflow-wrap: normal; }

/* ---------- Deployment ---------- */

.ep-deploy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.ep-cmdline { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 7px 8px 7px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sunken); }
.ep-cmdline > code, .ep-cmdline > span { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.ep-code-big { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sunken); }
.ep-code-big .data { font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }

/* « Ajouter des machines » (M7-05): the steps are an ordered list; a step waiting for the one before is quieter, a done one
   shows a check. The token form, the chosen token, the line block and the arrival note. */
.ep-mt-s { margin-top: 8px; }
.ep-form { display: grid; gap: 13px; margin-top: 12px; }
.ep-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ep-form .field.dd { width: 100%; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-add .chip:disabled { opacity: 0.5; cursor: not-allowed; }
.ep-add .chip:disabled:hover { color: var(--ink-2); border-color: var(--line-strong); }
.ep-add .chip[aria-pressed="true"]:disabled { opacity: 0.7; color: var(--accent); border-color: var(--accent-line); }
.ep-at { max-width: 260px; margin-top: 6px; }
.ep-os + .pf-soon { margin-top: 10px; }
.ep-os { margin-top: 8px; max-width: 100%; overflow-x: auto; }
.ep-wait { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ep-wait .spin { color: var(--accent); }
.ep-arrived { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; line-height: 1.5;
  background: color-mix(in oklab, var(--ok-mark) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--ok-mark) 30%, var(--surface)); }
.ep-arrived > .icon { flex: none; margin-top: 2px; color: var(--ok); }
.ep-arrived strong { display: inline; font-size: 13px; }
.ep-arrived a { margin-left: 4px; }
.ep-tokens { margin-top: 17px; }
.ep-tok-name { display: inline-flex; align-items: center; gap: 6px; }
.ep-tok-name strong { font-weight: 600; }
.tag.ep-mass { color: var(--wait); background: color-mix(in oklab, var(--wait-mark) 12%, var(--surface)); border-color: color-mix(in oklab, var(--wait-mark) 35%, var(--surface)); }
.ep-row-mass > td:first-child { box-shadow: inset 3px 0 0 var(--wait-mark); }
.ep-token-machines .panel-head { gap: 8px; }
.ep-token-machines .panel-head h2:focus { outline: none; }
.ep-token-machines .panel-head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Settings tables ---------- */

.ep-settings .account-layout { align-content: start; }

.ep-thr { display: inline-flex; align-items: center; gap: 6px; }
.ep-thr .field { width: 64px; text-align: right; }
/* Maintenance window: « de [02:00] à [05:00] » on the controls' line, its rule under it, then the window in words. */
.mw-times { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
.mw-times > .muted { line-height: 32.5px; }
.mw-summary { display: flex; align-items: center; gap: 8px; padding: 12px 0 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.mw-summary:empty { padding: 0; border: 0; }
.mw-summary .icon { flex: none; color: var(--accent); }
.dlg-form .mw-summary { padding: 0; border: 0; font-size: 12.5px; }
/* The clock-change rule under the summary: one muted line, always present so changing the zone moves nothing. */
.mw-dst { margin: -8px 0 12px; padding-left: 22px; font-size: 12px; line-height: 1.5; }
.mw-summary:empty + .mw-dst { margin-top: 12px; padding-left: 0; }
.dlg-form .mw-dst { margin: -4px 0 0; }
.dlg-form .mw-summary:empty + .mw-dst { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .kpis.ep-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-kpis .kpi:nth-child(4) { border-left: 0; }
  .ep-kpis .kpi:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .ep-kpis .kpi:last-child:nth-child(5) { grid-column: span 2; }
  a.ep-kpi:first-child, a.ep-kpi:last-child { border-radius: 0; }
  .ep-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-cols-3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .ep-deploy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .kpis.ep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-kpis .kpi:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .ep-kpis .kpi:nth-child(odd) { border-left: 0; }
  .ep-kpis .kpi:nth-child(-n + 2) { border-top: 0; }
  .ep-kpis .kpi:last-child:nth-child(5) { grid-column: 1 / -1; }
  .ep-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .ep-inv { grid-template-columns: minmax(0, 1fr); align-content: start; }
  /* Sections above the card: the card takes the frame's remaining height (a single row would leave it its content height). */
  .frame .ep-inv { grid-template-rows: auto minmax(0, 1fr); }
  .ep-inv .ep-subnav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .ep-inv .ep-subnav a { flex: none; white-space: nowrap; }
}
@media (max-width: 860px) {
  .ep-dev-head > div:first-child { flex-basis: 100%; }
  .ep-browse { grid-template-columns: minmax(0, 1fr); }
  .ep-tree { display: none; }
}
@media (max-width: 520px) {
  .kpis.ep-kpis { grid-template-columns: minmax(0, 1fr); }
  .ep-kpis .kpi:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .ep-kpis .kpi:first-child { border-top: 0; }
  .ep-health { grid-template-columns: minmax(0, 1fr); }
  .ep-code-big .data { font-size: 18px; }
  .ep-form-row { grid-template-columns: minmax(0, 1fr); }
}

/* Replay of a recorded terminal (TerminalReplayPage): the emulator at its recorded size, then the player. */
.term-replay { display: grid; gap: 10px; min-width: 0; }
.term-replay .term { max-height: min(62vh, 640px); }

/* Recorded sessions (RecordingsPage): the device scope line and the type cell. */
.rec-scope { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; }
.rec-kind { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rec-kind svg { color: var(--muted); flex: none; }
/* Package updates an agent may not install (aptUnavailableReason): the reason in the waiting tone, no brick. */
.upd-blocked { color: var(--wait); }
.role.upd-blocked { font-size: 11.5px; }
.upd-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }

/* A donut's place while the fleet loads: the 122px ring with its legend under it (the shape of a donut whose names are long). */
.ep-donut-skel { display: grid; justify-items: start; gap: 18px; padding-top: 4px; }
.ep-donut-skel .skel-lines { width: 100%; display: grid; gap: 15px; }
.ep-agent[aria-busy="true"] { display: grid; gap: 12px; }

/* Inventory › Système: the OS with its logo above the facts (operator, 2026-11-05). */
.ep-os { padding-bottom: 0; font-weight: 600; }

/* Inventory nav counts, coverage notes, folded virtual interfaces, default routes and security by category (2026-11-05). */
.account-nav a .ep-subnav-count { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.account-nav a[aria-current="page"] .ep-subnav-count { color: var(--accent); }
.ep-coverage { margin-top: 10px; }
/* Inventory limits (UX-03, 2026-11-06): a normal platform limit is a quiet « À savoir » line under the section, never a banner; a
   fact the agent cannot give reads « Non disponible » with its reason in a hover card (the info button on touch). */
.ep-know { display: flex; gap: 6px; align-items: flex-start; margin: 10px 17px 12px; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.ep-know > .icon { flex: none; margin-top: 2px; color: var(--ink-3); }
.ep-know > p { display: grid; gap: 2px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ep-know-lead { font-weight: 600; }
.ep-na-text { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 400; cursor: help; border-radius: 4px; }
.ep-na-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .ep-na-text > .icon { display: none; } }
.ep-fact-title { margin-top: 12px; margin-bottom: 0; }
.ep-fact-title > .num { margin-left: 6px; }
.ep-default-pill { margin-left: 6px; }
/* Firmware et démarrage: boot entries keep readable columns and scroll sideways when the card is narrow; kernel arguments in one mono block. */
.ep-dt-wide .dt-table { min-width: 880px; }
/* Inventaire › Interfaces (operator, 2026-11-06): virtual interfaces listed with the physical ones, muted; a state off is a grey dot. */
.dt-table tr.ep-virtual td { color: var(--ink-3); }
.status.ep-state-off { color: var(--muted); }
.ep-ifd-sub { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.ep-ifd-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ep-args { margin: 0 17px 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--sunken); font: 500 12px/1.6 var(--font-data); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ep-sec { display: grid; gap: 4px; padding: 6px 17px 12px; }
.ep-sec-cat { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ep-sec-cat:first-child { border-top: 0; }
.ep-sec-cat h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ep-sec-cat h3 svg { color: var(--muted); }
.ep-sec-cat .rows { margin: 0; }
.ep-sec-cat .empty-note { margin: 0; }
.ep-sec-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 120px minmax(0, 2fr); align-items: center; gap: 12px; }
.ep-sec-facts { overflow-wrap: anywhere; }
@media (max-width: 860px) { .ep-sec-row { grid-template-columns: minmax(0, 1fr) auto; } .ep-sec-facts { grid-column: 1 / -1; } }

/* Remote assistance › portable tool (M10): the wizard's summary, the code beside the viewer, the clipboard received. */
.pa-summary { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sunken); font-size: 12.5px; }
.pa-summary strong { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pa-code-side .data { font-size: 17px; }
.pa-clip { max-height: 140px; margin: 0; padding: 8px 10px; overflow: auto; border-radius: var(--r-md); background: var(--sunken); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The technician's identity card (portable consent mockup `idc`): what the person sees before accepting, previewed on the technician's pages. */
.tech-card { border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tech-card-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tech-card-av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent); font: 800 15px/1 var(--font-ui); }
.tech-card-av img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tech-card-txt { flex: 1; min-width: 0; }
.tech-card-name { font: 700 14.5px/1.4 var(--font-ui); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-card-role, .tech-card-contact { display: flex; align-items: center; min-width: 0; height: 18px; font: 500 12px/18px var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.tech-card-sep { flex: none; margin: 0 6px; color: var(--ink-3); }
.tech-card-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tech-card-org { flex: none; max-width: 60%; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.tech-card-org:only-child { max-width: 100%; }
.tech-card-org > span, .tech-card-email > span { overflow: hidden; text-overflow: ellipsis; }
.tech-card-org img { flex: none; display: block; width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.tech-card-org svg, .tech-card-contact svg { flex: none; color: var(--ink-3); }
.tech-card-contact { gap: 14px; }
.tech-card-contact > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.tech-card-phone { flex: none; font-variant-numeric: tabular-nums; }
.tech-card-email { flex: 0 1 auto; }
.tech-card-foot { border-top: 1px solid var(--line); padding: 9px 14px 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.tech-card-foot a { color: var(--accent); font-weight: 600; }
.tech-card-foot svg { vertical-align: -2px; margin-right: 5px; color: var(--ink-3); }
.pa-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.pa-preview-head { font-size: 12.5px; font-weight: 600; }
.pa-preview-says { font-size: 12.5px; color: var(--ink-2); }
/* Remote assistance page (operator, 2026-11-07): the code waiting in the head, the live sessions above the table of every session.
   A live row keeps one height (52px) whether it is loading, empty or filled, so the table under it does not move when they land. */
.pa-rules { margin-left: 4px; white-space: nowrap; }
.pa-page .page-head > div:first-child { flex: 1 1 340px; min-width: 0; }
.pa-page .page-head .actions { align-items: center; }
.pa-head-code { display: inline-flex; align-items: center; gap: 4px; height: 32.5px; padding: 0 4px 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sunken); }
.pa-head-code .data { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; }
.pa-live { display: grid; gap: 7px; margin-bottom: 13.5px; }
.pa-live-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 10px 7px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.pa-live-row.active { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent-soft) 45%, var(--surface)); }
.pa-live-none { border-style: dashed; background: transparent; box-shadow: none; }
.pa-live-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink-3); }
.pa-live-row.active .pa-live-ico { background: var(--accent-soft); color: var(--accent); }
.pa-live-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pa-live-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-live-main strong { font-size: 13px; line-height: 18px; }
.pa-live-main .muted { font-size: 12px; line-height: 16px; }
.pa-live-acts { flex: none; display: flex; align-items: center; gap: 6px; }
.pa-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; vertical-align: middle; }
.pa-acts .icon-btn { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .pa-live-row { flex-wrap: wrap; row-gap: 8px; }
  .pa-live-main { flex-basis: calc(100% - 42px); }
  .pa-live-row > .pill { margin-left: 42px; }
  .pa-live-acts { margin-left: auto; }
}

/* The person's page /assistance (docs/design/portable-assistance, `download`, `download-started`, SPEC section 7): the Ink hero
   with one button, then three step cards with their illustrations and the footer line. The hero keeps its colours in both themes. */
.pd { min-height: var(--app-h, 100vh); padding: 0 0 var(--safe-b, 0px); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 13px/1.5 var(--font-ui); outline: none; }
.pd-hero { position: relative; min-height: 372px; color: #FFFFFF; --wm-color: #FFFFFF; overflow: hidden; isolation: isolate; background: radial-gradient(90% 75% at 50% 110%, #0B2C7A 0%, #061641 62%); }
.pd-hero::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -272px; height: 300px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 1.5px solid rgba(91, 151, 255, 0.35); background: linear-gradient(180deg, rgba(10, 92, 255, 0.16), transparent 50%); }
.pd-top { position: absolute; left: max(32px, var(--safe-l, 0px)); right: max(24px, var(--safe-r, 0px)); top: var(--safe-t, 0px); height: 72px; display: flex; align-items: center; justify-content: space-between; }
.pd-lang { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; background: none; font: 600 12.5px/1 var(--font-ui); color: #B4BFDB; cursor: pointer; }
.pd-lang:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.pd-main { display: grid; justify-items: center; padding: calc(84px + var(--safe-t, 0px)) 24px 38px; text-align: center; }
.pd-who { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 40px; padding: 0 14px 0 4px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font: 500 13px/1.5 var(--font-ui); color: #DCE3F5; }
.pd-who b { font-weight: 700; color: #FFFFFF; }
.pd-who b.data { font: 600 12.5px/1 var(--font-data); letter-spacing: 0.08em; }
.pd-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, #00235E, #0A5CFF); }
.pd-main h1 { margin-top: 20px; font: 800 29px/1.2 var(--font-ui); letter-spacing: -0.015em; }
.pd-main .sub { margin-top: 8px; max-width: 560px; font: 400 15px/1.5 var(--font-ui); color: #DCE3F5; }
.pd-btn { margin-top: 24px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px/1.2 var(--font-ui); color: #DCE3F5; text-decoration: none;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); cursor: default; }
.pd-btn.primary { color: #FFFFFF; background: #0A5CFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -10px #0A5CFF; cursor: pointer; }
.pd-btn.primary:hover { background: color-mix(in oklab, #0A5CFF 88%, #000000); }
.pd-btn[disabled] { cursor: progress; }
.pd-hero :focus-visible { outline-color: #8FB6FF; }
.pd-file { margin-top: 12px; max-width: 560px; font: 400 12.5px/1.5 var(--font-ui); color: #B4BFDB; font-variant-numeric: tabular-nums; }
.pd-file .data { font-family: var(--font-data); font-size: 0.86em; letter-spacing: -0.01em; color: #DCE3F5; }
.pd-started { margin-top: 24px; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.pd-ok { height: 48px; padding: 0 18px 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-ui); color: #FFFFFF; background: rgba(47, 194, 133, 0.14); box-shadow: inset 0 0 0 1px rgba(61, 213, 152, 0.45); }
.pd-ok svg { color: #3DD598; }
.pd-again { height: 48px; padding: 0 18px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; background: none; font: 600 13px/1 var(--font-ui); color: #FFFFFF; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); cursor: pointer; }
.pd-again:hover { background: rgba(255, 255, 255, 0.06); }
.pd-note, .pd-error { margin-top: 10px; max-width: 560px; font: 500 12.5px/1.5 var(--font-ui); color: #DCE3F5; }
.pd-note svg, .pd-error svg { vertical-align: -2px; margin-right: 6px; color: #B4BFDB; }
.pd-error { padding: 7px 12px; border-radius: 8px; color: #FFFFFF; background: rgba(232, 23, 58, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 107, 127, 0.45); }
.pd-error svg { color: #FF6B7F; }
.pd-alt { margin-top: 10px; font: 400 12.5px/1.5 var(--font-ui); color: #B4BFDB; }
.pd-alt a { font-weight: 600; color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.pd-form { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pd-form .pd-btn { margin-top: 0; }
.pd-code { width: 240px; height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font: 500 17px/1 var(--font-data); letter-spacing: 0.08em; text-align: center; text-transform: uppercase; color: #FFFFFF; }
.pd-code::placeholder { font: 500 14px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: #8C98B5; }
.pd-code:focus, .pd-code:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px #4F8DFF, 0 0 0 3px rgba(79, 141, 255, 0.25); }
.pd-code[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #FF6B7F; }
.pd-steps { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 64px 0; }
.pd-steps h2 { font: 700 14.5px/1.5 var(--font-ui); letter-spacing: -0.015em; color: var(--ink); }
.pd-steps h2 span { font-weight: 500; color: var(--ink-3); }
.pd-grid { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.pd-card { position: relative; min-width: 0; padding: 14px 14px 17px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
[data-theme="dark"] .pd-card { box-shadow: inset 0 0 0 1px var(--line); }
.pd-card.now, [data-theme="dark"] .pd-card.now { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px var(--accent-soft); }
.pd-card .hd { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.pd-card .n { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 11px/1 var(--font-ui); color: var(--ink-3); }
.pd-card.now .n { border-color: var(--btn); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pd-card h3 { font: 700 14.5px/1.4 var(--font-ui); letter-spacing: -0.015em; }
.pd-card p { margin-top: 6px; padding-left: 32px; font: 400 13px/1.5 var(--font-ui); color: var(--ink-2); }
.pd-card .pd-now { margin-left: auto; height: 20.5px; padding: 0 7.5px; border-radius: 99px; display: inline-flex; align-items: center; font: 600 11.5px/1 var(--font-ui); color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pd-copy { margin-top: 10px; padding-left: 32px; }
.pd-foot { margin-top: auto; padding: 48px 17px 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font: 500 12.5px/1.5 var(--font-ui); color: var(--ink-2); }
.pd-foot span { display: inline-flex; align-items: center; gap: 8px; }
.pd-foot svg { color: var(--ink-3); }
/* Step illustrations: the downloads list, then the consent card or the code entry. */
.pd-ill { position: relative; height: 168px; border-radius: 10px; background: var(--sunken); overflow: hidden; }
.pd-mini { position: absolute; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -12px rgba(6, 22, 65, 0.35); }
[data-theme="dark"] .pd-mini { box-shadow: inset 0 0 0 1px var(--line-strong), 0 12px 26px -12px rgba(0, 0, 0, 0.7); }
.pd-ill-dl { left: 28px; right: 28px; top: 26px; padding: 10px 12px; }
.pd-ill-dl .h { font: 700 11px/1.4 var(--font-ui); color: var(--ink); }
.pd-ill-dl .f { margin-top: 8px; display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pd-ill-dl .f .ic { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pd-ill-dl .f > div { min-width: 0; }
.pd-ill-dl .f b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10px/1.3 var(--font-data); letter-spacing: -0.01em; color: var(--ink); }
.pd-ill-dl .f span { display: block; font: 400 10px/1.4 var(--font-ui); color: var(--ink-3); }
.pd-ill-dl .open { margin-top: 8px; display: inline-flex; padding: 3px 7px; border-radius: 5px; font: 700 11px/1.3 var(--font-ui); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.pd-cursor { position: absolute; left: 110px; top: 88px; width: 18px; height: 18px; }
.pd-cursor svg { display: block; fill: #FFFFFF; stroke: #061641; stroke-width: 1.5; }
.pd-ill-ok, .pd-ill-code { left: 50%; top: 14px; width: 168px; height: 196px; margin-left: -84px; overflow: hidden; border-radius: 10px; }
.pd-ill-ok .st, .pd-ill-code .st { height: 52px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: radial-gradient(110% 70% at 50% 105%, #0B2C7A 0%, #061641 60%); --wm-color: #FFFFFF; }
.pd-ill-ok .st .ask { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(79, 141, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(79, 141, 255, 0.5); color: #FFFFFF; }
.pd-ill-ok .st .txt b { display: block; font: 700 9.5px/1.3 var(--font-ui); color: #FFFFFF; }
.pd-ill-ok .st .txt span { display: block; font: 500 8px/1.3 var(--font-ui); color: #DCE3F5; }
.pd-ill-ok .idm { margin: 8px 9px 0; height: 30px; padding: 0 7px; border-radius: 6px; display: flex; align-items: center; gap: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pd-ill-ok .idm .av { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, #00235E, #0A5CFF); }
.pd-ill-ok .idm b { display: block; font: 700 8px/1.25 var(--font-ui); color: var(--ink); }
.pd-ill-ok .idm span i { display: block; width: 64px; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--line-strong); }
.pd-ill-ok .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 8px 9px 0; }
.pd-ill-ok .tiles i { display: block; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pd-ill-ok .tiles i.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pd-ill-ok .ac { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5px; padding: 9px 9px 0; }
.pd-ill-ok .ac i { display: block; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pd-ill-ok .ac i.p, .pd-ill-code i.p { display: grid; place-items: center; background: #0A5CFF; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); font: 700 7.5px/1 var(--font-ui); font-style: normal; color: #FFFFFF; }
.pd-ill-code .st { height: 40px; }
.pd-ill-code .lb { margin: 12px 10px 0; font: 700 8.5px/1.3 var(--font-ui); color: var(--ink); }
.pd-ill-code .in { margin: 6px 10px 0; height: 28px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px var(--accent-soft); font: 500 10.5px/1 var(--font-data); letter-spacing: 0.06em; color: var(--ink); }
.pd-ill-code i.p { margin: 12px 10px 0; height: 22px; border-radius: 5px; font-size: 8.5px; }
@media (max-width: 860px) {
  .pd-top { left: max(17px, var(--safe-l, 0px)); right: max(12px, var(--safe-r, 0px)); }
  .pd-main { padding: calc(76px + var(--safe-t, 0px)) 17px 40px; }
  .pd-steps { padding: 28px 17px 0; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .pd-main h1 { font-size: 25px; }
  .pd-main .sub { font-size: 14px; }
  .pd-btn { width: 100%; padding: 12px 18px; }
  .pd-form { flex-direction: column; align-items: stretch; width: 100%; }
  .pd-code { width: 100%; }
  .pd-started { width: 100%; }
  .pd-ok, .pd-again { flex: 1 1 auto; justify-content: center; }
}

/* « Ajouter des machines » step wizard (AddMachinesWizard, DESIGN.md Overlays › Step wizard). Cards and rows reuse the theme cards'
   selected ring (accent border, 3px accent-soft halo) and the Sunken code ground of .ep-cmdline. */
.ep-wizard { min-width: 0; }
.ep-wizard .wizard-body { gap: 14px; }
.ep-os-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ep-os-card { position: relative; display: grid; align-content: start; gap: 4px; min-height: 112px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
.ep-os-card:hover { border-color: var(--ink-3); }
.ep-os-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ep-os-card.on .tile { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.ep-os-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ep-os-card.off { cursor: not-allowed; background: var(--sunken); }
.ep-os-card.off > :not(.ep-os-tag) { opacity: 0.6; }
.ep-os-card .tile { margin-bottom: 6px; }
.ep-os-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ep-os-hint { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.ep-os-tag { position: absolute; top: 12px; right: 12px; padding: 0 8px; height: 21px; }
.ep-token-choice { display: grid; gap: 10px; }
.ep-pick-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.ep-pick-row.check input { margin-top: 1px; }
.ep-pick-row > span { display: grid; gap: 2px; min-width: 0; }
.ep-pick-row strong { font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ep-pick-sub { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.ep-pick-row.on { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent-soft) 60%, var(--surface)); }
.ep-pick-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ep-pick-row.off { cursor: not-allowed; opacity: 0.7; }
div.ep-pick-row .tile { flex: none; width: 27px; height: 27px; }
.ep-pick-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ep-pick-list .ep-pick-row { width: 100%; }
.ep-more > summary, .ep-help > summary { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; list-style: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-radius: var(--r-sm); }
.ep-more > summary::-webkit-details-marker, .ep-help > summary::-webkit-details-marker { display: none; }
.ep-more > summary:hover, .ep-help > summary:hover { color: var(--ink); }
.ep-more > summary:focus-visible, .ep-help > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ep-more > summary .icon, .ep-help > summary .icon { transition: transform 0.2s var(--ease-out); }
.ep-more[open] > summary .icon, .ep-help[open] > summary .icon { transform: rotate(90deg); }
.ep-more-count { margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--sunken); color: var(--ink-3); font-size: 11.5px; }
.ep-more > .ep-form { margin-top: 10px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); }
.ep-command { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sunken); }
.ep-command > code { display: block; font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.ep-command-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.btn.primary.copy-btn.ep-copy-cmd { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn.primary.copy-btn.is-copied { color: #FFFFFF; border-color: var(--ok-mark); background: color-mix(in oklab, var(--ok-mark) 82%, #000000); }
.btn.primary.copy-btn.is-failed { color: #FFFFFF; }
.ep-tips { display: grid; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; counter-reset: ep-tip; }
.ep-tips > li { position: relative; display: grid; gap: 2px; padding-left: 32px; font-size: 13px; line-height: 1.5; counter-increment: ep-tip; }
.ep-tips > li::before { content: counter(ep-tip); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.ep-tips > li > span { color: var(--ink-2); }
.ep-tips kbd, .ep-help kbd { display: inline-block; min-width: 20px; margin: 0 1px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  background: var(--surface); font: 600 11.5px/18px var(--font-ui); text-align: center; color: var(--ink); }
.ep-valid { font-size: 12.5px; color: var(--ink-3); }
.ep-arrival { display: grid; gap: 8px; }
.ep-wait-big { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ep-wait-big .spin { width: 16px; height: 16px; }
.ep-arrived-big { align-items: center; margin-top: 0; padding: 14px 16px; font-size: 14.5px; }
.ep-arrived-big strong { font-size: 14.5px; }
.ep-arrived-big > .icon { margin-top: 0; }
.ep-arrived-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-help { padding-top: 10px; border-top: 1px solid var(--line); }
.ep-help-main { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.ep-help-main > li > span { display: block; color: var(--ink-2); }
.ep-help-act { margin-left: 6px; }
.ep-help code, .ep-codes code { font-size: 11.5px; color: var(--ink-2); }
.ep-codes { display: grid; gap: 8px; margin: 6px 0 0; }
.ep-codes > div { display: grid; gap: 1px; }
.ep-codes dt { font-size: 12.5px; font-weight: 600; }
.ep-codes dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 620px) {
  .ep-os-cards { grid-template-columns: minmax(0, 1fr); }
  .ep-os-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 0; padding: 12px 14px; }
  .ep-os-card .tile { grid-row: span 2; margin-bottom: 0; }
  /* The tag (« Cet ordinateur », « Bientôt ») stays in the card's corner beside the name, as on a desk, so a card keeps its
     height when the visitor's system is detected or the catalog lands. */
  .ep-os-name { padding-right: 112px; }
  .ep-command { padding: 12px; }
  .ep-copy-cmd { width: 100%; justify-content: center; }
}

/* « Jeton de masse » (M7-06): its choice and form in step 2, the sites with their public networks, the value shown once in step 3,
   the machines waiting for approval in step 4, the « Jetons de masse » table and the token's page. */
.ep-mt-0 { margin-top: 0; }
.ep-dt-note { margin: 0; padding: 8px 17px 12px; }
.ep-mass-soon { margin: -4px 0 0 12px; }
.tag.ep-soon-tag { margin-left: 8px; height: 20px; padding: 0 8px; vertical-align: 1px; }
.ep-mass-form { margin-top: 0; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); }
.ep-inline-field { display: flex; align-items: center; gap: 8px; }
.ep-inline-field > .field { width: 110px; }
.ep-mass-approve { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.ep-mass-approve > .icon { flex: none; margin-top: 2px; color: var(--accent); }
.ep-site-search { width: 100%; margin-top: 6px; }
.ep-site-list { max-height: 248px; overflow-y: auto; margin-top: 6px; padding: 1px; overscroll-behavior: contain; }
.ep-site-list .ep-pick-row { padding: 8px 10px; }
.ep-site-nets { display: flex; flex-wrap: wrap; gap: 4px; }
.ep-site-nets code { padding: 0 6px; border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--line); font-size: 11.5px; line-height: 18px; color: var(--ink-2); }
.banner.ep-once { margin: 0; }
.token-box.ep-token-value { margin-top: 0; }
.token-box.ep-token-value code { font-size: 12.5px; user-select: all; }
.ep-awaiting { background: color-mix(in oklab, var(--wait-mark) 10%, var(--surface)); border-color: color-mix(in oklab, var(--wait-mark) 32%, var(--surface)); }
.ep-arrived.ep-awaiting > .icon { color: var(--wait); }
.ep-waiting { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.ep-bulk-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.ep-bulk-sites { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ep-bulk-sites > li { display: grid; gap: 3px; font-size: 13px; }
.ep-bulk-explain { display: grid; gap: 6px; padding-top: 0; }
.ep-bulk-explain p { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ep-bulk-explain p > .icon { flex: none; margin-top: 3px; color: var(--accent); }
.ep-wait-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ep-wait-inline .spin { color: var(--accent); }
@media (max-width: 860px) { .ep-bulk-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ep-mass-soon { margin-left: 0; } }

/* « Désinstaller l'agent »: what an approved uninstall does, as the dialog's paragraphs read. */
.ep-uninstall-list { display: grid; gap: 4px; margin: 0; padding-left: 18px; list-style: disc; color: var(--ink-2); font-size: 13px; line-height: 1.55; }

/* Scripts: an archived script's banner under its head, and « Archivés » with its « bientôt » in the filter. */
.banner.compact.ep-archived { margin-bottom: 17px; }
.segmented .pf-soon-pill { height: 16px; margin-left: 4px; font-size: 10.5px; }
@media (max-width: 520px) { .filters .segmented.ep-script-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }

/* ---------- Session side panel: the Machine and En direct cards (remote screen, portable assistance) ----------
   SessionCard folds: its head is a button (chevron, title) with an aside on the right (freshness, copy), the body hidden when
   folded. Facts at 12.5px; figures as the kit's volume rows (.mounts/.mount) with a 5px bar, a 56×16 trend and an 11.5px subline. */
.sp-card .sp-head { flex-wrap: nowrap; }
.sp-card.is-folded .sp-head { padding-bottom: 13.5px; }
.sp-head h2 { flex: 1 1 auto; min-width: 0; }
.sp-toggle {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: -3px -5px; padding: 3px 5px;
  border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; white-space: nowrap; cursor: pointer;
}
.sp-toggle:hover { background: var(--sunken); }
.sp-chev { flex: none; color: var(--ink-3); transition: transform 0.2s var(--ease-out); }
.sp-card.is-folded .sp-chev { transform: rotate(-90deg); }
.sp-body[hidden] { display: none; }
.sp-aside { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.sp-aside .btn.copy-btn.inline { margin-left: 0; }

.sp-facts { gap: 6px 12px; font-size: 12.5px; }
.sp-facts dd { display: flex; align-items: flex-start; justify-content: flex-end; gap: 2px; }
.sp-facts .sp-val { min-width: 0; overflow-wrap: anywhere; }
/* The copy button sits before its value, so values stay flush with the card's edge like any facts list. */
.sp-facts .btn.copy-btn.inline { flex: none; order: -1; height: 20px; margin: -1px 0 0; }
.sp-facts .btn.copy-btn.inline.compact { width: 20px; }
/* With a pointer, a fact's copy button shows on its row's hover or focus; « Copier » in the head copies the whole card. */
@media (hover: hover) {
  .sp-facts .copy-btn.inline:not(.is-copied):not(.is-failed):not(:focus-visible) { opacity: 0; }
  .sp-facts dd:hover .copy-btn.inline:not(.is-copied):not(.is-failed) { opacity: 1; }
}
.sp-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.sp-note:first-child { margin-top: 0; }
.sp-note .icon { flex: none; margin-top: 1.5px; }

.sp-rows { gap: 10px; }
.sp-top { align-items: center; gap: 8px; font-size: 12.5px; }
.sp-term { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--ink-2); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.mount-top .sp-term.data { overflow-wrap: normal; }
.sp-spark { flex: none; width: 56px; height: 16px; }
.sp-top .v { min-width: 46px; text-align: right; }
.sp-row .bar { height: 5px; margin-top: 5px; }
.sp-row .bar span { border-radius: 2.5px; }
.sp-sub { margin-top: 4px; }
.sp-more { font-size: 12px; }
.sp-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12.5px; }
.sp-fresh { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-fresh .mon-live-dot { width: 6px; height: 6px; }
.sp-fresh.is-live { color: var(--ink-2); }
.sp-fresh.is-live .mon-live-dot {
  background: var(--ok-mark); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok-mark) 22%, transparent);
  animation: mon-breathe 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sp-chev { transition: none; }
  .sp-fresh.is-live .mon-live-dot { animation: none; }
}

/* Live session pages (Écran of a machine, an assistance session): a fixed frame, so the viewer fills the room under its bar and
   beside the side panel without a page scroll, whatever the window; from 1100 px down the panel opens over it with « Détails »;
   on a phone the page scrolls, the viewer gets a screen-sized box and the panel follows under it. */
.rc-page .rc-main > .rd-host { min-width: 0; }
@media (max-width: 860px) {
  .rc-page .rc-main { flex-direction: column; }
  .rc-page .rc-main > .rd-host { flex: none; height: min(72dvh, 560px); }
  .rc-page .rc-side, .rc-page .rc-console.side-open .rc-side {
    position: static; display: flex; width: auto; padding: 0; overflow: visible; background: none; box-shadow: none;
  }
  .rc-page .rc-side-toggle { display: none; }
}
/* A pop-out window (PopoutWindows, ?popout=1): the terminal or the screen alone, filling the window under its own bar, at
   every width (no shell, rail, top bar or side panel; the page does not scroll). */
main.popout { display: flex; flex-direction: column; height: var(--view-h, 100dvh); padding: 8px; overflow: hidden; }
main.popout > .page.frame { flex: 1 1 auto; min-height: 0; }
main.popout .frame > * { flex: none; }
main.popout .frame > .fill { flex: 1 1 auto; min-height: 0; }
main.popout .rc-main { flex-direction: row; }
main.popout .rc-main > .rd-host, main.popout .rc-main > .term, main.popout .rc-main > .panel { flex: 1 1 auto; height: auto; min-height: 0; }
main.popout .rc-main > .term:has(> .term-screen:not(.fixed)) { height: auto; min-height: 0; }
/* « Ouvrir dans une fenêtre » keeps its icon alone where the console's top row is short of room. */
@media (max-width: 640px) { .rc-popout .rc-popout-label { display: none; } }

/* Windows Update from Breckly (WinUpdateCenter): last search and « Rechercher maintenant » on one line, the one-click classification
   approvals as small buttons, the restart notice as a compact warning banner, the approval dialog's choices with a hint line each. */
.wu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.wu-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13px; }
.wu-facts time { font-weight: 600; }
.wu-managed { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.wu-managed .icon { color: var(--ink-3); }
.wu-progress { display: block; }
.wu-note { margin: 0 17px 10px; }
.wu-reboot { margin-top: 0; margin-bottom: 14px; }
.wu-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wu-cats .wu-count { margin-left: 2px; opacity: .8; }
.wu-hint { display: block; margin-top: 1px; color: var(--ink-3); font-size: 12px; font-weight: 400; line-height: 1.45; }
p.wu-hint { margin-top: 2px; }
.wu-dlg { gap: 14px; }
.wu-dlg .wu-dlg-what { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.wu-dlg .radio-set { display: grid; gap: 8px; }
.wu-dlg .radio-set .check { align-items: flex-start; }
.wu-dlg .radio-set .check input { margin-top: 1px; }
.wu-notify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 0 25px; font-size: 13px; }
.wu-notify .select-wrap, .wu-notify select { width: auto; }
.wu-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wu-nowrap { white-space: nowrap; }
/* Inventory › Conteneurs and Virtualisation from the agent's own engines (M11-09/10): one line per engine over the list; a fact the
   engine did not give reads « inconnu », quieter than a value and never 0. */
.ep-rt-engines { display: grid; padding-bottom: 2px; }
.ep-virt-engine.ep-rt-engine { padding-top: 6px; padding-bottom: 0; }
.ep-rt-filter { padding: 8px 17px 0; }
.ep-unknown { color: var(--ink-3); font-style: italic; }
/* A hypervisor's guests with the node's own engine: every column stays readable, the list scrolls sideways. */
.ep-dt-virt .dt-table { min-width: 1280px; }
/* A wide list's empty or no-match state stays in the visible frame (pve01, 2026-11-08: its text ran past the card's right edge): it is
   as wide as the scrolling area and keeps to its left edge. */
.ep-dt-wide .dt-scroll { container-type: inline-size; }
.ep-dt-wide .dt-table td.span > .no-results { position: sticky; left: 12px; box-sizing: border-box; width: calc(100cqi - 24px); }
