/* Breckly Platform (M16): the MSP's administration of the installation. Layout on the reference's own parts (kpis, panels,
   facts, rows, data tables); what is specific here is the « bientôt » marking of figures the API does not serve yet, the
   licence and capacity blocks, the client head and the client-by-product switch matrix. */

.kpis.pf-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.kpis.pf-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 17px; }
a.pf-kpi { color: inherit; transition: background 0.15s; }
a.pf-kpi:hover { background: var(--surface-2); }
a.pf-kpi:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
a.pf-kpi:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.pf-cols { margin-top: 17px; }
.pf-top { margin-top: 0; }
.pf-gap { margin-top: 17px; }
.pf-hint { margin: 12px 0 0; }
.tile.crit { color: var(--crit); background: color-mix(in oklab, var(--crit-mark) 8%, var(--surface)); border-color: color-mix(in oklab, var(--crit-mark) 35%, var(--surface)); }

/* What waits for its route: a quiet dashed note with a « Bientôt » tag, and a small pill inside a cell or a fact. */
.pf-soon {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 13.5px 15.5px; border: 1px dashed var(--line-strong); border-radius: var(--r-md, 10px); background: var(--surface-2);
}
.pf-soon strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.pf-soon p { margin: 3.5px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.pf-soon-tag, .pf-soon-pill {
  display: inline-flex; align-items: center; height: 20.5px; padding: 0 7.5px; border-radius: 84px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.pf-soon-pill { height: 18px; padding: 0 6px; font-weight: 600; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-strong); }

/* Licence facts and capacities. */
.pf-modules { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.pf-modules .tag { padding: 0 8px; }
.pf-modules .pf-skel-tag { flex: none; }
.tag.pf-on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.tag.pf-off { color: var(--ink-3); background: var(--surface); border-style: dashed; }
.pf-capacity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pf-capacity li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: 13px; }
.pf-capacity .meter { grid-column: 1 / -1; }
.pf-cap-label { color: var(--ink-2); }
.pf-cap-value { font-weight: 700; font-size: 14.5px; }
.pf-cap-value .muted { font-weight: 500; font-size: 12.5px; }

.pf-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 17px; }

/* A customer: head with its mark, profile, products and usage panels. */
.pf-link-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pf-link-cell .data { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-client-title { display: flex; align-items: center; gap: 13.5px; min-width: 0; }
.pf-client-title h1 { margin: 0; }
.pf-client-title p { display: flex; align-items: center; gap: 8.5px; flex-wrap: wrap; margin: 5px 0 0; }
.org-badge.pf-mark-lg { width: 42.5px; height: 42.5px; border-radius: 12px; font-size: 15px; }
.org-badge.logo.pf-mark-lg { width: auto; max-width: 120px; padding: 4px 7px; }
.org-badge.logo.pf-mark-lg img { height: 32px; max-width: 106px; }

/* The customer page, where everything about a customer is done in place: the machine-detail grid (1.6fr / 1fr) with both columns
   ending level (the last card of each grows), dense cards, and at 1180px one flow in a useful order (profile, products and Brix
   side by side, usage and sites, then delegations), one column under 960px. */
.pf-card .panel-head { min-height: 44px; }
.pf-head-end { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pf-card .panel-body > .fhint.pf-hint, .pf-card .panel-body > .ferr.pf-hint { margin-top: 10px; }
.pf-prof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8.5px 34px; }
.pf-prof dl.facts dd { min-width: 0; }
.pf-line { display: block; }
dl.facts.pf-access { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-access .pf-link-cell { justify-content: flex-end; }
.pf-form { display: grid; gap: 13.5px; }
.pf-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8.5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-form .pf-form-foot { margin-top: 0; }
.pf-form-foot > .muted:first-child { margin-right: auto; font-size: 12px; }
.pf-switches { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-switches li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.pf-switches li + li { border-top: 1px solid var(--line); }
.pf-sw-text { display: grid; min-width: 0; }
.pf-sw-text .n { font-weight: 600; }
.pf-sw-text .d { font-size: 11.5px; color: var(--ink-3); }
.pf-selects { display: grid; gap: 10px; }
.pf-use-bar { display: flex; align-items: center; justify-content: space-between; gap: 8.5px; flex-wrap: wrap; margin-bottom: 12px; }
dl.facts.pf-use dt .muted { font-size: 11.5px; }
.pf-roles { display: grid; gap: 9.5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-roles legend { margin-bottom: 4px; padding: 0; }
.pf-role { font-size: 13px; }
dd.data .pf-soon-pill, .data .pf-soon-pill { font-family: var(--font-ui); }
.pf-form .addr { max-width: none; }
/* A stretched table card keeps its pager at the bottom (DESIGN.md: table panels keep their footer at the bottom). */
.pf-client .table-panel.pf-card { display: flex; flex-direction: column; }
.pf-client .table-panel.pf-card > .dt { flex: 1 1 auto; display: flex; flex-direction: column; }
.pf-client .table-panel.pf-card > .dt > .dt-scroll { flex: 1 1 auto; }
.pf-client.detail-grid { margin-top: 0; }
@media (max-width: 1180px) {
  .pf-client.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .pf-client.detail-grid > .stack { display: contents; }
  .pf-client > .stack > * { grid-column: 1 / -1; }
  .pf-client > .stack:first-child > :nth-child(1) { order: 1; }
  .pf-client > .stack:last-child > :nth-child(1), .pf-client > .stack:last-child > :nth-child(2) { order: 2; grid-column: auto; }
  .pf-client > .stack:last-child > :nth-child(3), .pf-client > .stack:first-child > :nth-child(2) { order: 3; grid-column: auto; }
  .pf-client > .stack:first-child > :nth-child(3) { order: 4; }
}
@media (max-width: 960px) {
  .pf-client.detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pf-prof { grid-template-columns: minmax(0, 1fr); }
  dl.facts.pf-access { grid-template-columns: minmax(0, 1fr); gap: 3.5px; }
  dl.facts.pf-access dd { text-align: left; margin-bottom: 6px; }
  .pf-access .pf-link-cell { justify-content: space-between; width: 100%; }
  .pf-dels .pf-head-end > .muted { display: none; }
}

/* The switch matrix: customers in rows, products in columns; the customer column stays put when the table scrolls sideways. */
.pf-matrix-wrap { overflow-x: auto; }
.pf-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-matrix th, .pf-matrix td { padding: 9.5px 17px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pf-matrix thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pf-matrix th[scope="row"], .pf-matrix thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pf-matrix th[scope="row"] { font-weight: 500; min-width: 200px; }
.pf-matrix tbody tr:hover > * { background: var(--surface-2); }
.pf-prod { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.pf-lic { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--accent); }
.pf-lic.off { color: var(--ink-3); }

/* Platform rights of the signed-in person. */
.pf-perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 9.5px; }
.pf-perms li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8.5px; align-items: center; font-size: 13px; }
.pf-perms .icon { color: var(--ok); }

/* Breckly ID: the card that points to Platform since customer organizations moved there. */
a.panel.id-moved { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13.5px; align-items: center; margin-top: 17px; padding: 13.5px 17px; color: inherit; }
a.panel.id-moved:hover { background: var(--surface-2); }
a.panel.id-moved strong { display: block; font-size: 13px; }
a.panel.id-moved .muted { display: block; font-size: 12.5px; margin-top: 2px; }
a.panel.id-moved > .icon { color: var(--accent); }

@media (max-width: 1180px) {
  .kpis.pf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-kpis .kpi:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .pf-kpis .kpi:nth-child(4) { border-left: 0; }
  a.pf-kpi:first-child, a.pf-kpi:last-child { border-radius: 0; }
}
@media (max-width: 960px) {
  .kpis.pf-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-kpis.five .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pf-kpis.five .kpi:nth-child(odd) { border-left: 0; }
  .pf-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .kpis.pf-kpis, .kpis.pf-kpis.five { grid-template-columns: minmax(0, 1fr); }
  .pf-matrix th, .pf-matrix td { padding: 8.5px 10px; }
  .pf-matrix th[scope="row"] { min-width: 140px; }
}

/* Reports: Brix usage per model beside the per-customer breakdown to come. */
.pf-report-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 17px; }
.pf-sub { margin: 0 0 9.5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 960px) { .pf-report-split { grid-template-columns: minmax(0, 1fr); } }

/* AI providers and models. */
.pf-cell-sub { display: block; font-size: 11.5px; }
.pf-row-actions { display: inline-flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.pf-default { margin-top: 0; }

/* Release notes: versions in service, then the timeline. */
.pf-versions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.pf-version { display: grid; gap: 4px; align-content: start; padding: 13.5px 17px; }
.pf-version-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pf-version-head .icon { color: var(--accent); }
.pf-version-num { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pf-version > .muted { font-size: 12px; }
.pf-fleet { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pf-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pf-release { padding: 15.5px 0; border-top: 1px solid var(--line); display: grid; gap: 8.5px; }
.pf-release:first-child { border-top: 0; padding-top: 4px; }
.pf-release-head { display: flex; align-items: center; gap: 9.5px; flex-wrap: wrap; }
.pf-release-v { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.pf-new { display: inline-flex; align-items: center; height: 20.5px; padding: 0 7.5px; border-radius: 84px; font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--btn); }
.pf-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; }
.pf-release .pf-sub { margin: 4px 0 0; }
.panel-body > .pf-soon + .pf-soon { margin-top: 9.5px; }
.panel-body > .pf-soon + .pf-timeline { margin-top: 13.5px; }
.panel-body > .banner + .pf-timeline { margin-top: 13.5px; }
.pf-chip { gap: 5px; padding: 0 8px; }
.pf-chip .icon { color: var(--ink-3); }
.pf-more { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding-top: 13.5px; border-top: 1px solid var(--line); }
/* The agent fleet against the latest agent release: one line, the versions as one bar, their legend. */
.pf-fleet-block { display: grid; gap: 11px; }
.pf-fleet-lead { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pf-fleet-lead strong { color: var(--ink); }
.pf-fleet-sep { margin: 0 4px; color: var(--ink-3); }
@media (max-width: 960px) { .pf-versions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-use-bar .pf-use-period { flex: 1 1 220px; min-width: 0; max-width: 300px; }

/* A panel head whose note fills in after loading (the model name): one line, the note ends in an ellipsis, so the panel does not grow
   a second line and push the page down on a phone. The title keeps its one line: the note gives way. */
.panel-head.pf-head-nowrap { flex-wrap: nowrap; }
.panel-head.pf-head-nowrap > h2 { flex: none; }
.pf-head-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The note fills the head after the title, its words at the end: a model read late is inserted before the period, nothing moves. */
.pf-head-nowrap > .pf-head-note { flex: 1 1 auto; text-align: right; }

/* The roadmap (M16-08): progress and current priorities side by side, the open questions to the operator highlighted in the
   waiting tone (the reference's « approval needed »), then one card per milestone that opens on its tasks. Built on the reference's
   panels, pills, tags, stacked bar, legend, filters and segmented controls. */
.page-head p.rm-stamp { margin-top: 3.5px; font-size: 12px; color: var(--ink-3); }
.rm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 17px; align-items: start; }
.rm-head.solo { grid-template-columns: minmax(0, 1fr); }
.rm-total { margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); }
.rm-total strong { font-size: 25.5px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-right: 2px; }
.rm-total .num:not(strong) { font-weight: 600; color: var(--ink); }
.rm-progress .rm-legend { margin-top: 10px; }
.rm-sub { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.rm-prio-src { font-size: 11.5px; }
.rm-priorities .md { font-size: 13px; line-height: 1.55; }
.rm-priorities .md > :first-child { margin-top: 0; }
.rm-failed { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.rm-questions { border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); background: color-mix(in oklab, var(--wait-mark) 4%, var(--surface)); }
.rm-questions .panel-head h2 { display: inline-flex; align-items: center; gap: 7px; }
.rm-questions .panel-head h2 .icon { color: var(--wait); }
.pill.rm-wait { color: var(--wait); border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); background: color-mix(in oklab, var(--wait-mark) 10%, var(--surface)); }
.rm-q-intro { margin: 0; padding: 0 17px 8.5px; font-size: 12.5px; color: var(--ink-2); max-width: 78ch; }
.rm-questions .rm-tasks { border-top: 1px solid color-mix(in oklab, var(--wait-mark) 30%, var(--line)); }
.rm-q-foot { padding: 8.5px 17px 12px; border-top: 1px solid var(--line); }
.rm-more { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.rm-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.rm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rm-section-head h2 { font-size: 16px; font-weight: 700; }
.rm-filters .search-field { flex: 1 1 220px; max-width: 300px; }
.rm-filters .rm-done-toggle { margin-left: auto; }
.rm-none { margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); display: flex; align-items: baseline; gap: 8.5px; flex-wrap: wrap; }

.rm-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8.5px; }
.rm-phase { overflow: hidden; }
.rm-phase-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 240px); gap: 8.5px 24px; align-items: center; padding: 12px 17px; }
.rm-phase-head:hover { background: var(--surface-2); }
.rm-phase-toggle { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rm-phase-toggle::after { content: ""; position: absolute; inset: 0; }
.rm-phase-toggle:focus-visible { outline: none; }
.rm-phase-toggle:focus-visible::after { border-radius: var(--r-lg); box-shadow: inset 0 0 0 2px var(--accent); }
.rm-chev { color: var(--ink-3); transition: transform 0.2s var(--ease-out); margin-top: 1px; }
.open > .rm-phase-head .rm-chev, .rm-task.open > .rm-task-row .rm-chev { transform: rotate(90deg); }
.rm-phase-text { display: grid; gap: 3px; min-width: 0; }
.rm-phase-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.rm-phase-desc { font-size: 12px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.open > .rm-phase-head .rm-phase-desc { display: block; }
.rm-phase-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.rm-phase-progress .rm-bar { grid-column: 1 / -1; grid-row: 2; }
.rm-phase-count { grid-row: 1; font-size: 12px; color: var(--ink-3); }
.rm-phase-count strong { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rm-phase-split { grid-row: 1; grid-column: 2; font-size: 11.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.rm-bar.stack-bar { background: var(--sunken); }
[data-theme="dark"] .rm-bar.stack-bar { background: var(--line); }
.rm-phase.done .rm-phase-title { color: var(--ink-2); }

.rm-tasks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rm-task + .rm-task { border-top: 1px solid var(--line); }
.rm-task-row {
  display: grid; grid-template-columns: 14px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  padding: 8.5px 17px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rm-task-row:hover { background: var(--surface-2); }
.rm-task-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.rm-id { color: var(--ink-3); white-space: nowrap; }
.rm-title { font-size: 13px; line-height: 1.4; min-width: 0; }
.rm-meta { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.pill.rm-doing { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pill.rm-todo { color: var(--ink-3); }
.tag.rm-owner { height: 20.5px; padding: 0 7px; font-size: 11px; }
.tag.rm-operator { color: var(--wait); border-color: color-mix(in oklab, var(--wait-mark) 40%, var(--surface)); background: color-mix(in oklab, var(--wait-mark) 9%, var(--surface)); }
.rm-task-detail { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 17px; margin: 0; padding: 2px 17px 13.5px calc(17px + 14px + 10px + 64px + 10px); font-size: 12.5px; line-height: 1.5; }
.rm-task-detail dt { color: var(--ink-3); font-weight: 600; }
.rm-task-detail dd { margin: 0; color: var(--ink-2); max-width: 90ch; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .rm-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .rm-filters .search-field { flex: 1 1 100%; max-width: none; }
  .rm-filters .rm-done-toggle { margin-left: 0; }
  .rm-phase-head { grid-template-columns: minmax(0, 1fr); padding: 12px 13.5px; }
  .rm-phase-progress { padding-left: 26px; }
  .rm-task-row { grid-template-columns: 14px auto minmax(0, 1fr); gap: 4px 8.5px; align-items: start; padding: 8.5px 13.5px; }
  .rm-task-row .rm-chev { margin-top: 1px; }
  .rm-task-row .rm-title { grid-column: 2 / -1; grid-row: 2; }
  .rm-task-row .rm-meta { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .rm-task-detail { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 0 13.5px 12px 36px; }
  .rm-task-detail dd + dt { margin-top: 6px; }
  .rm-q-intro { padding: 0 13.5px 8.5px; }
  .rm-q-foot { padding: 8.5px 13.5px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-chev { transition: none; }
}

/* Inference providers and models (M16-04): the last test beside its date, a provider's models with the provider picker in the head,
   « à compléter » on a model without its context window, the model dialog's two-column numbers and its reasoning levels. */
.pf-test { display: inline-flex; align-items: center; gap: 8.5px; flex-wrap: wrap; }
.pf-test .pf-cell-sub { display: inline; }
.panel-head.pf-models-head { gap: 10px; flex-wrap: wrap; }
.panel-head.pf-models-head > h2 { margin-right: auto; }
.pf-models-pick { min-width: 160px; max-width: 260px; }
.pill.pf-pill-todo { margin-left: 8px; height: 18px; padding: 0 6px; font-size: 11px; font-weight: 600; color: var(--wait); background: var(--surface); border: 1px dashed var(--line-strong); }
.pf-discovered { border-top: 1px solid var(--line); padding-bottom: 0; }
.pf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.pf-currency { max-width: 90px; }
.pf-levels { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-levels legend { margin-bottom: 4px; padding: 0; }
.pf-levels .fhint { margin: 2px 0 0; }
.pf-gap-b { margin-bottom: 17px; }
@media (max-width: 520px) { .pf-two { grid-template-columns: minmax(0, 1fr); } .pf-models-pick { max-width: none; flex: 1 1 100%; } }

/* Model consumption (M16-05): period and grouping in the head, five figures, the columns per bucket, then the tables. A figure some
   samples did not report carries their count, quieter. */
.panel-head.pf-mc-head { gap: 10px; flex-wrap: wrap; }
.panel-head.pf-mc-head > h2 { margin-right: auto; }
.pf-mc-tools { display: flex; align-items: center; gap: 8.5px; flex-wrap: wrap; }
.pf-mc-tools .pf-mc-period { min-width: 0; width: 250px; max-width: 100%; }
.kpis.pf-kpis.five.pf-mc-kpis { margin-top: 0; }
.pf-mc-chart { margin-top: 17px; }
.panel-body.pf-mc-sub { padding-bottom: 0; border-top: 1px solid var(--line); }
.panel-body.pf-mc-sub .pf-sub { margin: 0; }
.pf-unknown { display: block; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.pf-nowrap { white-space: nowrap; }
.pf-brix-use { margin-top: 13.5px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-brix-use-head { display: flex; align-items: center; justify-content: space-between; gap: 8.5px; margin-bottom: 9.5px; }
.pf-brix-use-head .pf-sub { margin: 0; }
.pf-brix-use > .fhint { margin: 0; }
@media (max-width: 640px) { .pf-mc-tools { width: 100%; } .pf-mc-tools .pf-mc-period { flex: 1 1 200px; width: auto; } }

/* A customer's profile being edited: the name row, then the shared company profile form (Breckly ID settings), as one block of the
   customer page's column. */
.pf-prof-edit { display: grid; gap: 17px; min-width: 0; }
.pf-name-row { display: flex; align-items: center; gap: 8.5px; }
.pf-name-row > :first-child { flex: 1 1 auto; min-width: 0; }
.pf-prof-refused { margin-bottom: 12px; }
/* A figure's name before it in a table's stacked rows (phone), where column titles are not shown. */
.pf-mlabel { display: none; }
@media (max-width: 860px) { .pf-mlabel { display: block; font-family: var(--font-ui); color: var(--ink-3); font-size: 11px; line-height: 1.3; } .pf-fig { display: inline-block; white-space: normal; } }

/* Create-customer dialog: the first site's name and use under « Cette adresse crée le premier site » (M17-03). */
.pf-first-site { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
@media (max-width: 480px) { .pf-first-site { grid-template-columns: minmax(0, 1fr); } }
