/* Header quota ribbon: full-width collapsible bar below single-row navigation.
   Accounts are ordered by importance (primary plans by 7-day usage first, backup
   and free tiers last). Clicking any card or collapsed chip opens the full detail
   popover with all windows, scopes, 7-day credit curve and trend deltas.
   All colors derive from theme tokens defined in agora.css.
   Level colors follow the consumed level alone: open (green) below 70 %, warm (orange)
   from 70 %, warn (dark orange) from 85 %, blocked (red) at 100 %. */

/* ============================================================================
   Header layout: single-row navigation + dedicated collapsible ribbon below
   ============================================================================ */

header.top:has(#forfaits:not([hidden])) {
  flex-wrap: wrap;
  row-gap: 8px;
  padding-bottom: 0;
}

@media (min-width: 1200px) {
  header.top {
    padding: 8px 20px;
    padding-top: calc(8px + env(safe-area-inset-top));
    column-gap: 14px;
  }
  header.top:has(#forfaits:not([hidden])) {
    padding-bottom: 0;
  }
  .top .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
  }
  .top .nav .tab {
    grid-row: auto;
    grid-column: auto;
    order: 0;
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .top .nav .tab[data-view="postes"] {
    order: 7;
  }
  .top .nav .menu-wrap.in-nav {
    grid-row: auto;
    grid-column: auto;
    order: 8;
  }
  .top .nav .menu-wrap.in-nav .menu-btn {
    padding: 6px 11px;
    font-size: 13px;
    height: auto;
  }
  .state-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .state-stack .act-btn,
  .state-stack .ra-btn {
    height: 32px;
    font-size: 12px;
    padding: 0 12px;
  }
}

@media (min-width: 1200px) and (max-width: 1539px) {
  .top .nav .tab {
    padding: 6px 9px;
    font-size: 12.5px;
  }
}

/* Reset legacy .plans grid rules from agora.css and stretch full header width. */
header.top .plans.pl-host {
  --pl-bleed: 20px;
  display: block;
  position: relative;
  flex: 0 0 calc(100% + 2 * var(--pl-bleed));
  order: 10;
  width: calc(100% + 2 * var(--pl-bleed));
  max-width: none;
  margin: 0 calc(-1 * var(--pl-bleed));
  padding: 7px var(--pl-bleed) 8px;
  box-sizing: border-box;
  border: 0;
  border-top: 1px solid var(--edging);
  border-radius: 0;
  background: rgba(var(--bg-rgb), .38);
  gap: 0;
}
header.top .plans.pl-host.is-folded {
  padding: 5px var(--pl-bleed);
}

@media (min-width: 900px) and (max-width: 1199px) {
  header.top .plans.pl-host {
    --pl-bleed: 16px;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  header.top .plans.pl-host {
    --pl-bleed: 14px;
    padding: 6px var(--pl-bleed) 8px;
  }
}

/* ============================================================================
   Ribbon strip (expanded cards & collapsed single-line chips) + fold toggle
   ============================================================================ */

.pl-bar {
  display: flex;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  min-width: 0;
}
.pl-host.is-folded .pl-bar {
  align-items: center;
}

.pl-track {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-track::-webkit-scrollbar { display: none; }
.pl-host.is-folded .pl-track {
  align-items: center;
  gap: 6px;
}

.pl-sep {
  width: 1px;
  flex: none;
  margin: 4px 2px;
  background: var(--line);
}
.pl-host.is-folded .pl-sep {
  height: 16px;
  margin: 0 3px;
}

.pl-group-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  font: 600 9.5px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 3px;
  user-select: none;
}

/* Expanded provider card: calm by default, amber/red emphasis only when pace is ahead or blocked. */
.pl-card {
  position: relative;
  flex: 0 1 206px;
  min-width: 170px;
  max-width: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 10px 7px;
  border-radius: 9px;
  border: 1px solid var(--edging);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.pl-card:hover {
  border-color: rgba(var(--accent-rgb), .5);
  background: var(--panel-2);
}
.pl-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.pl-card[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .32), 0 8px 20px -12px rgba(var(--accent-rgb), .65);
}
.pl-card.is-blocked,
.pl-card.is-crit {
  background: linear-gradient(180deg, rgba(var(--bad-rgb), .13), rgba(var(--bad-rgb), .03)), var(--panel);
  border-color: rgba(var(--bad-rgb), .52);
}
.pl-card.is-warn {
  background: linear-gradient(180deg, rgba(var(--warn-strong-rgb), .11), rgba(var(--warn-strong-rgb), .02)), var(--panel);
  border-color: rgba(var(--warn-strong-rgb), .48);
}
.pl-card.is-backup:not(.is-blocked):not(.is-crit):not(.is-warn),
.pl-card.is-manual:not(.is-blocked):not(.is-crit):not(.is-warn) {
  background: rgba(var(--panel-rgb), .72);
}
.pl-card.is-manual:not(.is-blocked):not(.is-crit):not(.is-warn) {
  opacity: .84;
}
.pl-card.is-free {
  flex: 0 1 232px;
  min-width: 214px;
}
.pl-card.is-stale {
  opacity: .76;
  border-style: dashed;
}

.pl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.pl-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-card.is-blocked .pl-name,
.pl-card.is-crit .pl-name { color: var(--bad); }
.pl-card.is-stale .pl-name { color: var(--faint); font-weight: 500; }

.pl-pct {
  font: 700 13px var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.pl-card.is-blocked .pl-pct,
.pl-card.is-crit .pl-pct { color: var(--bad); }
.pl-card.is-warm .pl-pct { color: var(--warn); }
.pl-card.is-warn .pl-pct { color: var(--warn-strong); }
.pl-card.is-stale .pl-pct { color: var(--faint); font-weight: 600; }

.pl-bars {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pl-gauge-bar {
  position: relative;
  flex: 1;
  height: 5.5px;
  border-radius: 99px;
  background: rgba(var(--bg-rgb), .85);
  border: 1px solid var(--edging);
  overflow: hidden;
}
.pl-gauge-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.pl-gauge-fill.is-open { background: var(--live); opacity: .88; }
.pl-gauge-fill.is-warm { background: var(--warn); }
.pl-gauge-fill.is-warn { background: var(--warn-strong); }
.pl-gauge-fill.is-crit,
.pl-gauge-fill.is-blocked { background: var(--bad); }
.pl-gauge-fill.is-stale {
  background: repeating-linear-gradient(135deg, var(--faint) 0 4px, transparent 4px 8px);
}

.pl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font: 500 10.5px var(--mono);
  color: var(--faint);
  line-height: 1.15;
}
.pl-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-reset {
  white-space: nowrap;
  flex: none;
}
.pl-card.is-blocked .pl-reset,
.pl-card.is-crit .pl-reset { color: var(--bad); font-weight: 650; }
.pl-card.is-warn .pl-reset { color: var(--warn-strong); font-weight: 650; }

/* Collapsed single-line chip: dot + name + longest-window usage (+ urgent reset or free tag). */
.pl-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--edging);
  background: var(--panel);
  color: var(--text);
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .14s, background .14s;
}
.pl-chip:hover {
  border-color: rgba(var(--accent-rgb), .5);
  background: var(--panel-2);
}
.pl-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.pl-chip[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--panel-2);
}
.pl-chip.is-blocked,
.pl-chip.is-crit {
  border-color: rgba(var(--bad-rgb), .5);
  background: linear-gradient(180deg, rgba(var(--bad-rgb), .12), rgba(var(--bad-rgb), .03)), var(--panel);
}
.pl-chip.is-warn {
  border-color: rgba(var(--warn-strong-rgb), .46);
  background: linear-gradient(180deg, rgba(var(--warn-strong-rgb), .10), rgba(var(--warn-strong-rgb), .02)), var(--panel);
}
.pl-chip.is-manual:not(.is-blocked):not(.is-crit):not(.is-warn) {
  opacity: .84;
}
.pl-chip.is-stale {
  opacity: .76;
  border-style: dashed;
}

.pl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.pl-dot.is-open { background: var(--live); }
.pl-dot.is-warm { background: var(--warn); }
.pl-dot.is-warn { background: var(--warn-strong); }
.pl-dot.is-crit,
.pl-dot.is-blocked { background: var(--bad); }
.pl-dot.is-stale { background: var(--faint); }

.pl-chip-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.pl-chip.is-blocked .pl-chip-name,
.pl-chip.is-crit .pl-chip-name { color: var(--bad); font-weight: 650; }
.pl-chip.is-stale .pl-chip-name { color: var(--faint); font-weight: 500; }

.pl-chip-pct {
  font: 650 12px var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.pl-chip.is-blocked .pl-chip-pct,
.pl-chip.is-crit .pl-chip-pct { color: var(--bad); }
.pl-chip.is-warm .pl-chip-pct { color: var(--warn); }
.pl-chip.is-warn .pl-chip-pct { color: var(--warn-strong); }
.pl-chip.is-stale .pl-chip-pct { color: var(--faint); }

.pl-chip-extra {
  font: 600 10.5px var(--mono);
  color: var(--faint);
}
.pl-chip.is-blocked .pl-chip-extra,
.pl-chip.is-crit .pl-chip-extra { color: var(--bad); }
.pl-chip.is-warn .pl-chip-extra { color: var(--warn-strong); }

/* Fold/unfold toggle attached directly to the right end of the ribbon cards/chips. */
.pl-fold-btn {
  flex: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 28px;
  border-radius: 9px;
  border: 1px solid var(--edging);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.pl-fold-btn:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .5);
  background: var(--panel-2);
}
.pl-fold-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.pl-fold-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-host.is-folded .pl-fold-btn {
  align-self: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 7px;
}

/* ============================================================================
   Floating provider detail popover (opened on click from card or chip)
   ============================================================================ */

.pl-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  z-index: 70;
  width: 416px;
  max-width: calc(100vw - 24px);
  padding: 15px 17px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--ligne-forte);
  box-shadow:
    inset 0 1px 0 var(--glass-reflection),
    0 26px 64px -16px rgba(var(--shadow-rgb), .9),
    0 0 0 1px rgba(var(--accent-rgb), .14);
  color: var(--text);
  font-family: var(--sans);
}
.pl-pop[hidden] { display: none; }

/* Luminous 7-day token sparkline inside the detail popover. */
.pl-pop .f-curve { display: block; width: 100%; height: 36px; }
.pl-pop .f-curve .fc-area { fill: var(--accent); opacity: .14; }
.pl-pop .f-curve .fc-line { fill: none; stroke: var(--accent); opacity: .55; stroke-width: 1.15; stroke-linejoin: round; }
.pl-pop .f-curve .fc-line-day { opacity: 1; stroke-width: 1.45; stroke: var(--accent-2); }
.pl-pop .f-curve .fc-point { fill: var(--accent); opacity: .5; }
.pl-pop .f-curve .fc-point-day { fill: var(--accent-2); opacity: 1; }
.pl-pop .f-curve .fc-point-end { fill: var(--accent-2); opacity: 1; }
.pl-pop .f-curve .fc-strip-24h { fill: var(--accent-2); fill-opacity: .11; }
.pl-pop .f-curve .fc-base { stroke: var(--faint); stroke-opacity: .34; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.pl-pop .f-curve .fc-day { stroke: var(--faint); stroke-opacity: .42; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.pl-pop .f-curve .fc-day-bord { stroke-opacity: .6; }
.pl-pop .f-curve .fc-day-24h { stroke: var(--accent-2); stroke-opacity: .75; }

/* One curve per scope, superposed: two colors, each on its own scale. No area — the
   lines must not hide each other. */
.pl-pop .f-curve .fc-line.fc-scope-a { stroke: var(--accent-2); opacity: 1; stroke-width: 1.3; }
.pl-pop .f-curve .fc-line.fc-scope-b { stroke: var(--warn); opacity: 1; stroke-width: 1.3; }
.pl-pop .f-curve .fc-point.fc-scope-a { fill: var(--accent-2); }
.pl-pop .f-curve .fc-point.fc-scope-b { fill: var(--warn); }
.pl-pop-curve-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px;
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-leg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fc-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fc-leg-dot.a { background: var(--accent-2); }
.fc-leg-dot.b { background: var(--warn); }

.pl-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--edging);
}
.pl-pop-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.pl-pop-title b {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-strong);
  white-space: nowrap;
}
.pl-pop-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-pop-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--edging);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.pl-pop-close:hover { color: var(--text); border-color: var(--accent); }

.pl-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font: 600 11px var(--mono);
  white-space: nowrap;
}
.pl-badge.is-blocked,
.pl-badge.is-crit { background: rgba(var(--bad-rgb), .16); color: var(--bad); border: 1px solid rgba(var(--bad-rgb), .42); }
.pl-badge.is-warn { background: rgba(var(--warn-strong-rgb), .15); color: var(--warn-strong); border: 1px solid rgba(var(--warn-strong-rgb), .42); }
.pl-badge.is-warm { background: rgba(var(--warn-rgb), .14); color: var(--warn); border: 1px solid rgba(var(--warn-rgb), .38); }
.pl-badge.is-open { background: rgba(var(--live-rgb), .13); color: var(--live); border: 1px solid rgba(var(--live-rgb), .34); }
.pl-badge.is-manual { background: var(--veil-nav); color: var(--muted); border: 1px solid var(--line); }
.pl-badge.is-stale { background: var(--veil-nav); color: var(--faint); border: 1px dashed var(--line); }

.pl-pop-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.pl-pop-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pl-pop-scope {
  font: 600 10.5px var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.pl-pop-win {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
}
.pl-pop-win .pl-gauge-bar { height: 7px; }
.pl-pop-tag {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--faint);
}
.pl-pop-pct {
  font: 650 12.5px var(--mono);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
  color: var(--text);
}
.pl-pop-pct.is-blocked,
.pl-pop-pct.is-crit { color: var(--bad); }
.pl-pop-pct.is-warm { color: var(--warn); }
.pl-pop-pct.is-warn { color: var(--warn-strong); }
.pl-pop-pct.is-stale { color: var(--faint); }

.pl-pop-reset {
  font: 500 11px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.pl-pop-reset.is-warn { color: var(--warn-strong); font-weight: 600; }
.pl-pop-reset.is-blocked,
.pl-pop-reset.is-crit { color: var(--bad); font-weight: 600; }

.pl-pop-trend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--edging);
}
.pl-pop-trend-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font: 500 11px var(--mono);
  color: var(--faint);
  white-space: nowrap;
}
.pl-pop-trend-head strong { color: var(--muted); font-weight: 600; }
.pl-pop-curve {
  display: flex;
  align-items: center;
}
.pl-pop-curve .f-curve-frame { flex: 1; display: block; }
.pl-pop-curve .fc-rep { display: block; font-size: 8.5px; }
.pl-pop-pace {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.pl-pop-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pl-pop-deltas .f-delta {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 7px;
}
.pl-pop-foot {
  padding-top: 9px;
  border-top: 1px solid var(--edging);
  font: 400 11px var(--mono);
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}
.pl-pop-err {
  color: var(--warn);
  font-weight: 500;
}

/* The sheet sums up; the Subscriptions screen holds the detail (each account,
   its machines, "Manual only", the attachments). */
.pl-pop-open {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--edging);
  display: block;
  font: 600 12px var(--sans);
  color: var(--accent);
  text-decoration: none;
}
.pl-pop-open:hover { text-decoration: underline; }

/* ============================================================================
   Mobile (<= 640 px): horizontal swipe ribbon below the top bar + fold toggle
   ============================================================================ */

@media (max-width: 640px) {
  header.top:has(#forfaits:not([hidden])) {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 10px 0;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  header.top > .menu-wrap {
    margin-left: auto;
  }
  header.top .plans.pl-host {
    --pl-bleed: 10px;
    display: block;
    padding: 7px var(--pl-bleed) 8px;
    overflow: visible;
  }
  header.top .plans.pl-host.is-folded {
    padding: 5px var(--pl-bleed);
  }
  .pl-group-tag { display: none; }
  .pl-track {
    scroll-snap-type: x proximity;
    gap: 6px;
    padding-right: 4px;
  }
  .pl-card {
    flex: 0 0 136px;
    min-width: 136px;
    max-width: 136px;
    padding: 6px 8px;
    gap: 4px;
    scroll-snap-align: start;
  }
  .pl-card.is-free {
    flex: 0 0 184px;
    min-width: 184px;
    max-width: 184px;
  }
  .pl-name { font-size: 12px; }
  .pl-pct { font-size: 12px; }
  .pl-meta { font-size: 9.5px; }
  .pl-sep { margin: 4px 1px; }
  .pl-fold-btn {
    width: 32px;
    min-height: 32px;
  }
  .pl-host.is-folded .pl-fold-btn {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }
  .pl-chip {
    height: 28px;
    padding: 0 9px;
    scroll-snap-align: start;
  }
  .pl-pop {
    position: fixed;
    top: calc(128px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
  }
  .pl-host.is-folded .pl-pop {
    top: calc(104px + env(safe-area-inset-top));
  }
  #forfaits-conso { display: none; }
}

/* Editorial palette: crisp alabaster-on-slate quota gauges while healthy, vermilion only on alert (zero green, zero amber). */
:root[data-palette="editorial"] .pl-gauge-bar { background: var(--gauge-track); border-color: var(--line); }
:root[data-palette="editorial"] .pl-gauge-fill.is-open,
:root[data-palette="editorial"] .pl-gauge-fill.is-warm { background: var(--gauge-fill); opacity: 1; }
:root[data-palette="editorial"] .pl-dot.is-open,
:root[data-palette="editorial"] .pl-dot.is-warm { background: var(--or-jonc); }
:root[data-palette="editorial"] .pl-card.is-warm .pl-pct,
:root[data-palette="editorial"] .pl-chip.is-warm .pl-chip-pct,
:root[data-palette="editorial"] .pl-pop-pct.is-warm { color: var(--text); }
:root[data-palette="editorial"] .pl-gauge-fill.is-warn,
:root[data-palette="editorial"] .pl-dot.is-warn { background: var(--bad); }
:root[data-palette="editorial"] .pl-card.is-warn {
  background: linear-gradient(180deg, rgba(var(--bad-rgb), .10), rgba(var(--bad-rgb), .02)), var(--panel);
  border-color: rgba(var(--bad-rgb), .46);
}
:root[data-palette="editorial"] .pl-card.is-warn .pl-pct,
:root[data-palette="editorial"] .pl-chip.is-warn .pl-chip-pct,
:root[data-palette="editorial"] .pl-pop-pct.is-warn,
:root[data-palette="editorial"] .pl-card.is-warn .pl-reset,
:root[data-palette="editorial"] .pl-pop-reset.is-warn { color: var(--bad); }
:root[data-palette="editorial"] .pl-card,
:root[data-palette="editorial"] .pl-chip,
:root[data-palette="editorial"] .pl-fold-btn { border-radius: 4px; }
