/*
 * Genesis WP Ops theme — loaded after the pinned Genesis Dashboard Shell.
 *
 * The shell keeps owning structure (side-mini-panel, iconbar, sidebarmenu,
 * topbar, body-wrapper); this layer owns the look: navy-tinted dark first,
 * the Genesis cyan as the single accent, and the wpo-* components the WP Ops
 * pages render. Shell rules use !important heavily, so overrides here are
 * scoped under html[data-gd-shell] to win on specificity.
 */

html[data-gd-shell="consumer"][data-bs-theme] {
  --wpo-accent: #38d9f9;
  --wpo-accent-rgb: 56, 217, 249;
  --wpo-navy: #10275e;
  --wpo-on-accent: #04132e;
  --wpo-ok: #4ade80;
  --wpo-ok-rgb: 74, 222, 128;
  --wpo-warn: #f5b84b;
  --wpo-warn-rgb: 245, 184, 75;
  --wpo-crit: #ff7a70;
  --wpo-crit-rgb: 255, 122, 112;
  --wpo-neutral: #8c97ae;
  --wpo-neutral-rgb: 140, 151, 174;
  --wpo-radius: 14px;
  --wpo-radius-lg: 18px;
  --wpo-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-gd-shell="consumer"][data-bs-theme="dark"] {
  --wpo-focus: #38d9f9;
  --wpo-bg: #070b16;
  --wpo-sidebar: #091021;
  --wpo-surface: #0d1424;
  --wpo-surface-2: #111b30;
  --wpo-raised: #14203a;
  --wpo-border: #18233b;
  --wpo-border-strong: #24314f;
  --wpo-track: #1a2540;
  --wpo-text: #e6eaf2;
  --wpo-muted: #a3adc2;
  --wpo-faint: #8590a8;
  --wpo-link: #7fe6fb;
  --wpo-ok-ink: #86efac;
  --wpo-warn-ink: #f8cc7a;
  --wpo-crit-ink: #ff9a90;
  --wpo-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

html[data-gd-shell="consumer"][data-bs-theme="light"] {
  --wpo-focus: #075985;
  --wpo-bg: #f3f6fb;
  --wpo-sidebar: #ffffff;
  --wpo-surface: #ffffff;
  --wpo-surface-2: #f7f9fc;
  --wpo-raised: #eaf0f8;
  --wpo-border: #e2e8f1;
  --wpo-border-strong: #c9d2e0;
  --wpo-track: #e2e8f1;
  --wpo-text: #0b1a3f;
  --wpo-muted: #4b5873;
  --wpo-faint: #5d6a84;
  --wpo-link: #0a7392;
  --wpo-ok-ink: #15803d;
  --wpo-warn-ink: #9a5b00;
  --wpo-crit-ink: #c2352b;
  --wpo-shadow: 0 1px 2px rgba(11, 26, 63, 0.04), 0 12px 32px -24px rgba(11, 26, 63, 0.25);
  color-scheme: light;
}

/* ---- Bootstrap tokens ---------------------------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] {
  --bs-body-bg: var(--wpo-bg) !important;
  --bs-body-color: var(--wpo-text) !important;
  --bs-heading-color: var(--wpo-text) !important;
  --bs-secondary-color: var(--wpo-muted) !important;
  --bs-emphasis-color: var(--wpo-text) !important;
  --bs-border-color: var(--wpo-border) !important;
  --bs-card-bg: var(--wpo-surface) !important;
  --bs-primary: var(--wpo-accent) !important;
  --bs-primary-rgb: var(--wpo-accent-rgb) !important;
  --bs-primary-bg-subtle: rgba(var(--wpo-accent-rgb), 0.12) !important;
  --bs-link-color: var(--wpo-link) !important;
  --bs-link-hover-color: var(--wpo-accent) !important;
  --gd-bg: var(--wpo-bg);
  --gd-ink: var(--wpo-text);
  --gd-brand: var(--wpo-link);
}

html[data-gd-shell="consumer"][data-bs-theme] body {
  background: var(--wpo-bg) !important;
  color: var(--wpo-text) !important;
  -webkit-font-smoothing: antialiased;
}

html[data-gd-shell="consumer"][data-bs-theme] h1,
html[data-gd-shell="consumer"][data-bs-theme] h2,
html[data-gd-shell="consumer"][data-bs-theme] h3,
html[data-gd-shell="consumer"][data-bs-theme] h4,
html[data-gd-shell="consumer"][data-bs-theme] h5,
html[data-gd-shell="consumer"][data-bs-theme] h6,
html[data-gd-shell="consumer"][data-bs-theme] .card-title {
  color: var(--wpo-text) !important;
  letter-spacing: -0.01em;
}

html[data-gd-shell="consumer"][data-bs-theme] a:not(.btn):not(.sidebar-link):not(.nav-link) {
  color: var(--wpo-link);
  text-decoration: none;
}

html[data-gd-shell="consumer"][data-bs-theme] a:not(.btn):not(.sidebar-link):not(.nav-link):hover {
  color: var(--wpo-accent);
}

html[data-gd-shell="consumer"][data-bs-theme] .text-muted {
  color: var(--wpo-muted) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] :focus-visible {
  outline: 2px solid var(--wpo-focus);
  outline-offset: 2px;
}

/* ---- Shell chrome ---------------------------------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item > a,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .sidebarmenu .sidebar-nav,
html[data-gd-shell="consumer"][data-bs-theme] .nav-logo {
  background: var(--wpo-sidebar) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] aside.side-mini-panel,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .simplebar-content-wrapper,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .simplebar-content {
  background: var(--wpo-sidebar) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .iconbar,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav {
  border-color: var(--wpo-border) !important;
  border-right: 1px solid var(--wpo-border);
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .sidebarmenu .sidebar-nav,
html[data-gd-shell="consumer"][data-bs-theme] .nav-logo {
  border-right: 1px solid var(--wpo-border) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item > a iconify-icon,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .sidebartoggler {
  color: var(--wpo-muted) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item > a:hover iconify-icon,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item.selected > a iconify-icon {
  color: var(--wpo-accent) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item > a:hover::before,
html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .mini-nav .mini-nav-item.selected > a::before {
  background: rgba(var(--wpo-accent-rgb), 0.12) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .nav-small-cap {
  color: var(--wpo-faint) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link {
  color: var(--wpo-muted) !important;
  border-radius: 10px !important;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link:hover {
  background: var(--wpo-surface-2) !important;
  color: var(--wpo-text) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link.active {
  background: var(--wpo-raised) !important;
  color: var(--wpo-text) !important;
  box-shadow: inset 2px 0 0 var(--wpo-accent);
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link.active iconify-icon {
  color: var(--wpo-accent) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .topbar {
  background: color-mix(in srgb, var(--wpo-bg) 82%, transparent) !important;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--wpo-border);
  box-shadow: none !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .topbar .nav-link,
html[data-gd-shell="consumer"][data-bs-theme] .topbar .navbar-toggler,
html[data-gd-shell="consumer"][data-bs-theme] .topbar iconify-icon {
  color: var(--wpo-muted) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .topbar .fw-semibold {
  color: var(--wpo-text);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper {
  background: var(--wpo-bg) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .preloader {
  background: var(--wpo-bg) !important;
}

/* Logo */

.wpo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wpo-text);
}

.wpo-logo__mark {
  flex: none;
}

.wpo-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wpo-logo__word {
  font-family: "Montserrat", "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--wpo-text);
}

.wpo-logo__product {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wpo-link);
}

/* ---- Bootstrap content, restyled for every page ----------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .card {
  background: var(--wpo-surface) !important;
  border: 1px solid var(--wpo-border) !important;
  border-radius: var(--wpo-radius-lg) !important;
  box-shadow: var(--wpo-shadow) !important;
  overflow: hidden;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wpo-text);
  --bs-table-border-color: var(--wpo-border);
  --bs-table-hover-bg: var(--wpo-surface-2);
  color: var(--wpo-text);
  margin-bottom: 0;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .table > :not(caption) > * > * {
  background: transparent;
  border-color: var(--wpo-border);
  padding: 14px 16px;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .table thead th {
  color: var(--wpo-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .table tbody tr {
  transition: background 0.15s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .table tbody tr:hover > * {
  background: var(--wpo-surface-2);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.38em 0.75em;
  letter-spacing: 0.01em;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .badge.bg-secondary {
  background: var(--wpo-raised) !important;
  color: var(--wpo-text) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .badge.bg-danger {
  background: rgba(var(--wpo-crit-rgb), 0.16) !important;
  color: var(--wpo-crit-ink) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .badge.bg-warning {
  background: rgba(var(--wpo-warn-rgb), 0.16) !important;
  color: var(--wpo-warn-ink) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .badge.bg-info {
  background: rgba(var(--wpo-accent-rgb), 0.14) !important;
  color: var(--wpo-link) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn {
  border-radius: 10px;
  font-weight: 600;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-primary {
  --bs-btn-bg: var(--wpo-accent);
  --bs-btn-border-color: var(--wpo-accent);
  --bs-btn-color: var(--wpo-on-accent);
  --bs-btn-hover-bg: var(--wpo-accent);
  --bs-btn-hover-border-color: var(--wpo-accent);
  --bs-btn-hover-color: var(--wpo-on-accent);
  background: var(--wpo-accent) !important;
  border-color: var(--wpo-accent) !important;
  color: var(--wpo-on-accent) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-primary:hover,
html[data-gd-shell="consumer"][data-bs-theme] .btn-success:hover {
  filter: brightness(1.08);
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-success {
  background: var(--wpo-ok) !important;
  border-color: var(--wpo-ok) !important;
  color: #052e16 !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-primary,
html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-secondary {
  background: var(--wpo-surface-2) !important;
  border: 1px solid var(--wpo-border-strong) !important;
  color: var(--wpo-text) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-primary:hover,
html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-secondary:hover {
  border-color: var(--wpo-accent) !important;
  color: var(--wpo-accent) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-danger {
  background: transparent !important;
  border: 1px solid rgba(var(--wpo-crit-rgb), 0.5) !important;
  color: var(--wpo-crit-ink) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .btn-outline-danger:hover {
  background: rgba(var(--wpo-crit-rgb), 0.12) !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .alert {
  border-radius: var(--wpo-radius);
  border: 1px solid var(--wpo-border-strong);
  background: var(--wpo-surface-2);
  color: var(--wpo-text);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .alert-success {
  border-color: rgba(var(--wpo-ok-rgb), 0.4);
  background: rgba(var(--wpo-ok-rgb), 0.1);
  color: var(--wpo-ok-ink);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .alert-danger {
  border-color: rgba(var(--wpo-crit-rgb), 0.4);
  background: rgba(var(--wpo-crit-rgb), 0.1);
  color: var(--wpo-crit-ink);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .alert-warning {
  border-color: rgba(var(--wpo-warn-rgb), 0.4);
  background: rgba(var(--wpo-warn-rgb), 0.1);
  color: var(--wpo-warn-ink);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .nav-tabs {
  border-bottom: 1px solid var(--wpo-border);
  gap: 4px;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--wpo-muted);
  font-weight: 500;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper .nav-tabs .nav-link.active {
  border-bottom-color: var(--wpo-accent);
  color: var(--wpo-text);
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper code {
  color: var(--wpo-link);
  font-family: var(--wpo-mono);
}

html[data-gd-shell="consumer"][data-bs-theme] .form-control {
  background: var(--wpo-surface-2);
  border-color: var(--wpo-border-strong);
  color: var(--wpo-text);
  border-radius: 10px;
}

/* ---- WP Ops components ------------------------------------------------------- */

.wpo-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

.wpo-live {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpo-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wpo-faint);
}

.wpo-mono {
  font-family: var(--wpo-mono);
  font-size: 0.92em;
}

.wpo-muted {
  color: var(--wpo-muted);
}

.wpo-faint {
  color: var(--wpo-faint);
  font-size: 12px;
}

.wpo-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wpo-card {
  background: var(--wpo-surface);
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
  box-shadow: var(--wpo-shadow);
  padding: 20px 22px;
  min-width: 0;
}

.wpo-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: -2px 0 14px;
}

.wpo-card__title {
  margin: 0;
  font-size: 15px !important;
  font-weight: 700;
}

.wpo-card__head .wpo-muted {
  font-size: 12.5px;
}

.wpo-subtitle {
  margin: 16px 0 8px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--wpo-muted) !important;
}

.wpo-empty {
  margin: 0;
  color: var(--wpo-muted);
  font-size: 13.5px;
}

.wpo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wpo-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--wpo-surface-2);
  border: 1px solid var(--wpo-border);
  color: var(--wpo-muted) !important;
  font-size: 12.5px;
  font-weight: 500;
}

a.wpo-chip:hover {
  border-color: var(--wpo-accent);
  color: var(--wpo-text) !important;
}

.wpo-chip--risk-green {
  background: rgba(var(--wpo-ok-rgb), 0.1);
  border-color: rgba(var(--wpo-ok-rgb), 0.3);
  color: var(--wpo-ok-ink) !important;
}

.wpo-chip--risk-yellow {
  background: rgba(var(--wpo-warn-rgb), 0.1);
  border-color: rgba(var(--wpo-warn-rgb), 0.3);
  color: var(--wpo-warn-ink) !important;
}

.wpo-chip--risk-red {
  background: rgba(var(--wpo-crit-rgb), 0.1);
  border-color: rgba(var(--wpo-crit-rgb), 0.3);
  color: var(--wpo-crit-ink) !important;
}

/* Tones drive dots, bars and status pills. */

.wpo-tone-active { --wpo-tone: var(--wpo-accent); --wpo-tone-rgb: var(--wpo-accent-rgb); --wpo-tone-ink: var(--wpo-link); }
.wpo-tone-waiting { --wpo-tone: var(--wpo-warn); --wpo-tone-rgb: var(--wpo-warn-rgb); --wpo-tone-ink: var(--wpo-warn-ink); }
.wpo-tone-success { --wpo-tone: var(--wpo-ok); --wpo-tone-rgb: var(--wpo-ok-rgb); --wpo-tone-ink: var(--wpo-ok-ink); }
.wpo-tone-danger { --wpo-tone: var(--wpo-crit); --wpo-tone-rgb: var(--wpo-crit-rgb); --wpo-tone-ink: var(--wpo-crit-ink); }
.wpo-tone-neutral { --wpo-tone: var(--wpo-neutral); --wpo-tone-rgb: var(--wpo-neutral-rgb); --wpo-tone-ink: var(--wpo-muted); }

.wpo-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wpo-tone, var(--wpo-neutral));
}

.wpo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--wpo-tone-rgb), 0.12);
  color: var(--wpo-tone-ink);
  font-size: 13px;
  font-weight: 600;
}

.wpo-tone-active .wpo-status .wpo-dot {
  animation: wpo-pulse 1.8s ease-out infinite;
}

.wpo-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wpo-ok-ink);
  font-weight: 600;
}

.wpo-live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wpo-ok);
  animation: wpo-pulse-ok 1.8s ease-out infinite;
}

/* Operation header */

.wpo-op-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.wpo-op-head__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--wpo-accent-rgb), 0.12);
  color: var(--wpo-accent);
}

.wpo-op-head__main {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wpo-op-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

/* Live progress */

.wpo-progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpo-progress__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.wpo-progress__pct {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.wpo-progress__meta {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--wpo-faint);
  font-family: var(--wpo-mono);
}

.wpo-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--wpo-track);
  overflow: hidden;
}

.wpo-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: var(--wpo-tone, var(--wpo-accent));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wpo-bar__fill.is-moving {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 180px 100%;
  background-repeat: no-repeat;
  animation: wpo-shimmer 1.5s linear infinite;
}

.wpo-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.wpo-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
}

.wpo-stage__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--wpo-border-strong);
}

.wpo-stage__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wpo-faint);
}

.wpo-stage__hint {
  font-size: 12px;
  color: var(--wpo-faint);
}

.wpo-stage--done .wpo-stage__mark {
  border: 0;
  background: var(--wpo-ok);
  color: #052e16;
}

.wpo-stage--done .wpo-stage__label,
.wpo-stage--active .wpo-stage__label,
.wpo-stage--failed .wpo-stage__label {
  color: var(--wpo-text);
}

.wpo-stage--active {
  border-color: rgba(var(--wpo-tone-rgb), 0.6);
  background: rgba(var(--wpo-tone-rgb), 0.07);
}

.wpo-stage--active .wpo-stage__mark {
  border-color: rgba(var(--wpo-tone-rgb), 0.25);
  border-top-color: var(--wpo-tone);
  animation: wpo-spin 0.9s linear infinite;
}

.wpo-tone-waiting .wpo-stage--active .wpo-stage__mark {
  animation: none;
  border-color: var(--wpo-tone);
}

.wpo-stage--failed {
  border-color: rgba(var(--wpo-tone-rgb), 0.5);
  background: rgba(var(--wpo-tone-rgb), 0.08);
}

.wpo-stage--failed .wpo-stage__mark {
  border: 0;
  background: var(--wpo-tone);
  color: var(--wpo-bg);
}

.wpo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wpo-actions:empty {
  display: none;
}

/* Two-column area */

.wpo-split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.wpo-split__wide {
  flex: 3 1 520px;
}

.wpo-split__narrow {
  flex: 2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Timeline */

.wpo-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpo-timeline__item {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}

.wpo-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--wpo-border-strong);
}

.wpo-timeline__item:first-child {
  animation: wpo-enter 0.4s ease-out;
}

.wpo-timeline__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--wpo-tone);
  box-shadow: 0 0 0 4px rgba(var(--wpo-tone-rgb), 0.14);
}

.wpo-timeline__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}

.wpo-timeline__title {
  flex: 1 1 220px;
  font-weight: 600;
}

.wpo-timeline__detail {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--wpo-muted);
  overflow-wrap: anywhere;
}

/* Steps and evidence */

.wpo-evidence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wpo-evidence__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-evidence__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.wpo-evidence__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpo-evidence__name {
  flex: 1;
  font-weight: 600;
}

.wpo-evidence__status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wpo-tone-ink);
}

.wpo-evidence__error {
  font-size: 12.5px;
  color: var(--wpo-crit-ink);
}

.wpo-hash {
  display: block;
  font-family: var(--wpo-mono);
  font-size: 11.5px;
  color: var(--wpo-muted) !important;
  word-break: break-all;
}

.wpo-evidence__proof summary {
  cursor: pointer;
  color: var(--wpo-faint);
  font-size: 12px;
}

.wpo-evidence__proof .wpo-hash {
  margin-top: 4px;
}

.wpo-op-plan {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--wpo-muted);
  font-size: 13px;
}

/* Site page */

.wpo-chip__extra {
  margin-left: 6px;
  color: var(--wpo-warn-ink);
  font-family: var(--wpo-mono);
}

.wpo-chip--tone {
  gap: 7px;
  background: rgba(var(--wpo-tone-rgb), 0.1);
  border-color: rgba(var(--wpo-tone-rgb), 0.3);
  color: var(--wpo-tone-ink) !important;
}

.wpo-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

/* Default tone only: :where() keeps it below the .wpo-tone-* classes, which
   are defined earlier in this file and used to lose to this rule. */
:where(.wpo-tile) {
  --wpo-tone: var(--wpo-accent);
  --wpo-tone-rgb: var(--wpo-accent-rgb);
  --wpo-tone-ink: var(--wpo-link);
}

.wpo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--wpo-radius-lg);
  border: 1px solid var(--wpo-border);
  background: linear-gradient(160deg, rgba(var(--wpo-tone-rgb), 0.09), rgba(var(--wpo-tone-rgb), 0) 60%), var(--wpo-surface);
  box-shadow: var(--wpo-shadow);
  overflow: hidden;
}

.wpo-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--wpo-tone);
  opacity: 0.85;
}

.wpo-tile__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wpo-muted);
}

.wpo-tile__value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--wpo-text);
}

.wpo-tile__hint {
  font-size: 12.5px;
  color: var(--wpo-tone-ink);
}

.wpo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.wpo-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
  color: var(--wpo-muted) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.wpo-filter:hover {
  border-color: var(--wpo-border-strong);
  color: var(--wpo-text) !important;
}

.wpo-filter[aria-current="true"] {
  border-color: rgba(var(--wpo-accent-rgb), 0.55);
  background: rgba(var(--wpo-accent-rgb), 0.12);
  color: var(--wpo-text) !important;
}

.wpo-filter__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--wpo-raised);
  color: var(--wpo-muted);
  font-family: var(--wpo-mono);
  font-size: 11.5px;
  text-align: center;
}

.wpo-plugins__empty {
  padding: 8px 0 18px;
}

.wpo-plugins {
  list-style: none;
  margin: 0 -22px -20px;
  padding: 0;
}

.wpo-plugin {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 20px;
  padding: 14px 22px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-plugin.wpo-tone-danger {
  background: linear-gradient(90deg, rgba(var(--wpo-crit-rgb), 0.07), rgba(var(--wpo-crit-rgb), 0) 55%);
  box-shadow: inset 3px 0 0 var(--wpo-crit);
}

.wpo-plugin__main {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wpo-plugin__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpo-plugin.wpo-tone-neutral .wpo-plugin__name .wpo-dot {
  background: var(--wpo-border-strong);
}

.wpo-plugin__title {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wpo-plugin__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-left: 16px;
  color: var(--wpo-faint);
  font-size: 12.5px;
}

.wpo-plugin__next {
  color: var(--wpo-warn-ink);
  font-weight: 500;
}

.wpo-plugin__side {
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.wpo-plugin__actions {
  display: flex;
  gap: 6px;
}

.wpo-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--wpo-border-strong);
  color: var(--wpo-faint);
  font-size: 11.5px;
  font-weight: 600;
}

.wpo-tag--tone {
  border-color: rgba(var(--wpo-tone-rgb), 0.35);
  background: rgba(var(--wpo-tone-rgb), 0.12);
  color: var(--wpo-tone-ink);
}

.wpo-vuln {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 0 16px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--wpo-tone-rgb), 0.28);
  background: rgba(var(--wpo-tone-rgb), 0.06);
}

.wpo-vuln__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wpo-vuln__ref {
  color: var(--wpo-tone-ink);
  font-weight: 600;
}

.wpo-vuln__title {
  font-size: 13px;
  color: var(--wpo-text);
}

.wpo-mini {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--wpo-accent-rgb), 0.3);
  background: rgba(var(--wpo-accent-rgb), 0.06);
  color: var(--wpo-text) !important;
  text-decoration: none !important;
}

.wpo-mini:hover {
  border-color: var(--wpo-accent);
}

.wpo-mini__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.wpo-mini__label {
  font-weight: 600;
}

.wpo-mini__pct {
  font-family: var(--wpo-mono);
  font-variant-numeric: tabular-nums;
  color: var(--wpo-link);
}

.wpo-bar--thin {
  display: block;
  height: 6px;
}

.wpo-oplist,
.wpo-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wpo-oplist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--wpo-border);
  color: var(--wpo-text) !important;
  text-decoration: none !important;
}

.wpo-oplist li:first-child .wpo-oplist__row,
.wpo-checks li:first-child {
  border-top: 0;
  padding-top: 0;
}

.wpo-oplist__row:hover .wpo-oplist__title {
  color: var(--wpo-link);
}

.wpo-oplist__title {
  flex: 1 1 160px;
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.wpo-oplist .wpo-status {
  padding: 3px 10px;
  font-size: 12px;
}

.wpo-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--wpo-border);
  font-size: 13.5px;
}

.wpo-checks__result {
  margin-left: auto;
  color: var(--wpo-tone-ink);
  font-weight: 600;
  font-size: 12.5px;
}

/* Page head, stacks and shared list pieces */

.wpo-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
}

.wpo-title--page {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.wpo-page-head__lead {
  margin: 4px 0 0;
  color: var(--wpo-muted);
  font-size: 14px;
}

.wpo-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpo-card__link {
  margin-left: auto;
  font-size: 13px;
}

.wpo-status--sm {
  padding: 3px 10px;
  font-size: 12px;
  text-decoration: none !important;
}

.wpo-linkbtn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wpo-link);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.wpo-linkbtn:hover {
  text-decoration: underline;
}

.wpo-vuln--compact {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.wpo-vuln--compact .wpo-vuln__head {
  flex: 1 1 auto;
}

/* Pagination */

.wpo-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-plugins:has(+ .wpo-pager),
.wpo-oprows:has(+ .wpo-pager) {
  margin-bottom: 0;
}

.wpo-pager__info {
  font-size: 12.5px;
  color: var(--wpo-faint);
  font-variant-numeric: tabular-nums;
}

.wpo-pager__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wpo-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
  color: var(--wpo-muted) !important;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
}

a.wpo-pager__link:hover {
  border-color: var(--wpo-border-strong);
  color: var(--wpo-text) !important;
}

.wpo-pager__link[aria-current="page"] {
  border-color: rgba(var(--wpo-accent-rgb), 0.55);
  background: rgba(var(--wpo-accent-rgb), 0.14);
  color: var(--wpo-text) !important;
}

.wpo-pager__link[aria-disabled="true"]:not([aria-current]) {
  opacity: 0.45;
}

/* Dialogs */

.wpo-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 0;
  border: 1px solid var(--wpo-border-strong);
  border-radius: var(--wpo-radius-lg);
  background: var(--wpo-surface);
  color: var(--wpo-text);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.wpo-dialog::backdrop {
  background: rgba(4, 8, 18, 0.62);
  backdrop-filter: blur(3px);
}

.wpo-dialog[open] {
  animation: wpo-enter 0.18s ease-out;
}

.wpo-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}

.wpo-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wpo-dialog__head .wpo-muted {
  font-size: 13px;
}

.wpo-dialog__title {
  margin: 0 0 2px;
  font-size: 17px !important;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-dialog__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
  color: var(--wpo-muted);
  font-size: 20px;
  line-height: 1;
}

.wpo-dialog__close:hover {
  color: var(--wpo-text);
  border-color: var(--wpo-border-strong);
}

.wpo-dialog__link {
  font-size: 12.5px;
}

.wpo-advisories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpo-advisories .wpo-vuln {
  margin: 0;
}

/* Fleet */

.wpo-runs,
.wpo-fleet,
.wpo-needs,
.wpo-feed,
.wpo-inbox,
.wpo-oprows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpo-runs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpo-run {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
  color: var(--wpo-text) !important;
  text-decoration: none !important;
}

.wpo-run:hover {
  border-color: rgba(var(--wpo-accent-rgb), 0.5);
}

.wpo-run__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.wpo-run__title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wpo-run__stage {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wpo-link);
}

.wpo-fleet {
  margin: 0 -22px;
}

.wpo-fleet__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.3fr) 200px auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-fleet__row.wpo-tone-danger {
  background: linear-gradient(90deg, rgba(var(--wpo-crit-rgb), 0.07), rgba(var(--wpo-crit-rgb), 0) 55%);
  box-shadow: inset 3px 0 0 var(--wpo-crit);
}

.wpo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wpo-raised);
  box-shadow: inset 0 0 0 2px rgba(var(--wpo-tone-rgb), 0.55);
  color: var(--wpo-text);
  font-size: 13px;
  font-weight: 700;
}

.wpo-fleet__site,
.wpo-fleet__last {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.wpo-fleet__name {
  color: var(--wpo-text) !important;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wpo-fleet__name:hover {
  color: var(--wpo-link) !important;
}

.wpo-fleet__host {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--wpo-faint) !important;
}

.wpo-fleet__last .wpo-status {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpo-fleet__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.wpo-needs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -6px -10px;
}

.wpo-need {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
}

.wpo-need:hover {
  background: var(--wpo-surface-2);
}

.wpo-need__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(var(--wpo-tone-rgb), 0.14);
  color: var(--wpo-tone-ink);
  font-weight: 800;
}

.wpo-need__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wpo-need__title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wpo-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wpo-feed li {
  display: flex;
  gap: 12px;
}

.wpo-feed .wpo-dot {
  margin-top: 6px;
}

.wpo-feed__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--wpo-text) !important;
  text-decoration: none !important;
}

.wpo-feed__title {
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.wpo-feed__body:hover .wpo-feed__title {
  color: var(--wpo-link);
}

/* Exceptions inbox */

.wpo-inbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpo-exception {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 18px;
  border-radius: var(--wpo-radius);
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
}

.wpo-exception.wpo-tone-danger {
  border-color: rgba(var(--wpo-crit-rgb), 0.35);
  background: linear-gradient(90deg, rgba(var(--wpo-crit-rgb), 0.08), rgba(var(--wpo-crit-rgb), 0) 60%), var(--wpo-surface-2);
}

.wpo-exception__main {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wpo-exception__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.wpo-exception__title {
  margin: 0;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--wpo-text);
  overflow-wrap: anywhere;
}

.wpo-exception__detail {
  font-size: 13px;
  color: var(--wpo-muted);
}

.wpo-exception__alert {
  color: var(--wpo-crit-ink);
}

.wpo-exception__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wpo-exception__facts {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}

.wpo-exception__facts dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--wpo-faint);
}

.wpo-exception__facts dd {
  margin: 2px 0 0;
  font-size: 13.5px;
}

.wpo-exception__safe {
  color: var(--wpo-ok-ink);
}

.wpo-exception__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

/* Operations list */

.wpo-oprows {
  margin: 0 -22px -20px;
}

.wpo-oprow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 13px 22px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-oprow__main {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wpo-oprow__title {
  color: var(--wpo-text) !important;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wpo-oprow__title:hover {
  color: var(--wpo-link) !important;
}

.wpo-oprow__state {
  flex: 0 1 240px;
  display: flex;
  justify-content: flex-end;
}

.wpo-mini--flat {
  padding: 0;
  border: 0;
  background: none;
}

@media (max-width: 1199.98px) {
  .wpo-fleet__row {
    grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.3fr) auto;
  }

  .wpo-fleet__last {
    display: none;
  }
}

/* Maintenance window form */

.wpo-linkbtn--inline {
  margin-left: 0;
  align-self: center;
}

.wpo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpo-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wpo-muted);
}

.wpo-form__days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.wpo-form__days legend {
  width: 100%;
  float: none;
}

.wpo-daypick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpo-daypick span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
  color: var(--wpo-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wpo-daypick input:checked + span {
  border-color: rgba(var(--wpo-accent-rgb), 0.6);
  background: rgba(var(--wpo-accent-rgb), 0.14);
  color: var(--wpo-text);
}

.wpo-daypick input:focus-visible + span {
  outline: 2px solid var(--wpo-focus);
  outline-offset: 2px;
}

.wpo-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.wpo-form__row--wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wpo-form__actions {
  display: flex;
  justify-content: flex-end;
}

/* Health ring, icon buttons and SLA */

.wpo-ring {
  --wpo-ring-size: 40px;
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wpo-ring-size);
  height: var(--wpo-ring-size);
}

.wpo-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wpo-ring__track,
.wpo-ring__value {
  fill: none;
  stroke-width: 3.5;
}

.wpo-ring__track {
  stroke: var(--wpo-track);
}

.wpo-ring__value {
  stroke: var(--wpo-tone);
  stroke-linecap: round;
}

.wpo-ring__score {
  font-family: var(--wpo-mono);
  font-size: calc(var(--wpo-ring-size) * 0.3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--wpo-text);
}

.wpo-tile__unit {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wpo-faint);
  letter-spacing: 0;
}

.wpo-iconbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--wpo-border-strong);
  background: var(--wpo-surface-2);
  color: var(--wpo-muted) !important;
  font-size: 18px;
  text-decoration: none !important;
  cursor: pointer;
}

.wpo-iconbtn:hover,
.wpo-iconbtn:focus-visible {
  border-color: rgba(var(--wpo-accent-rgb), 0.6);
  color: var(--wpo-link) !important;
}

.wpo-iconbtn--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 15px;
}

.wpo-vuln__more {
  margin-left: auto;
}

.wpo-exception__late {
  color: var(--wpo-crit-ink);
  font-weight: 600;
}

/* Motion */

@keyframes wpo-shimmer {
  0% { background-position: -180px 0; }
  100% { background-position: calc(100% + 180px) 0; }
}

@keyframes wpo-spin {
  to { transform: rotate(360deg); }
}

@keyframes wpo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--wpo-tone-rgb), 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(var(--wpo-tone-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--wpo-tone-rgb), 0); }
}

@keyframes wpo-pulse-ok {
  0% { box-shadow: 0 0 0 0 rgba(var(--wpo-ok-rgb), 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(var(--wpo-ok-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--wpo-ok-rgb), 0); }
}

@keyframes wpo-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wpo-bar__fill,
  .wpo-bar__fill.is-moving,
  .wpo-stage--active .wpo-stage__mark,
  .wpo-status .wpo-dot,
  .wpo-live-tag::before,
  .wpo-timeline__item:first-child {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  .wpo-card {
    padding: 16px;
  }

  .wpo-plugins {
    margin: 0 -16px -16px;
  }

  .wpo-plugin {
    padding: 14px 16px;
  }

  .wpo-plugin__side {
    flex-basis: 100%;
    align-items: stretch;
  }

  .wpo-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wpo-tile__value {
    font-size: 26px;
  }

  .wpo-progress__pct {
    font-size: 36px;
  }

  .wpo-progress__meta {
    margin-left: 0;
    flex-basis: 100%;
  }

  .wpo-fleet {
    margin: 0 -16px;
  }

  .wpo-fleet__row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 14px 16px;
  }

  .wpo-fleet__signals {
    grid-column: 2 / -1;
  }

  .wpo-fleet__open {
    grid-column: 3;
    grid-row: 1;
  }

  .wpo-oprows {
    margin: 0 -16px -16px;
  }

  .wpo-oprow {
    padding: 13px 16px;
  }

  .wpo-oprow__state {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .wpo-exception {
    padding: 14px;
  }

  .wpo-exception__actions {
    margin-left: 0;
    width: 100%;
  }

  .wpo-exception > .wpo-need__icon {
    display: none;
  }

  .wpo-exception__actions .btn {
    flex: 1 1 0;
    white-space: nowrap;
  }

  .wpo-title--page {
    font-size: 24px;
  }

  .wpo-page-head > .btn {
    width: 100%;
  }

  .wpo-dialog__panel {
    padding: 16px;
  }
}

/* Bulk fix of vulnerable plugins */

.wpo-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.wpo-batch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--wpo-tone-rgb), 0.35);
  border-radius: 10px;
  background: rgba(var(--wpo-tone-rgb), 0.08);
}

.wpo-batch__text {
  flex: 1 1 200px;
  font-size: 13.5px;
}

.wpo-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: decimal;
  color: var(--wpo-muted);
  font-size: 13px;
  line-height: 1.6;
}

.wpo-steps strong {
  color: var(--wpo-text);
}

.wpo-fixlist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.wpo-fixlist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-fixlist__name {
  flex: 1 1 160px;
  min-width: 0;
  font-weight: 600;
}

.wpo-fixlist__versions {
  font-size: 12.5px;
}

/* Advisory feed freshness */

.wpo-feed {
  gap: 6px;
  margin-top: 8px;
}

/* Page head actions */

.wpo-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sign-in and sign-up */

body.wpo-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(var(--wpo-accent-rgb), 0.12), transparent 70%),
    var(--wpo-bg);
  color: var(--wpo-text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.wpo-auth__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  gap: 20px;
}

.wpo-auth__card {
  width: 100%;
  max-width: 26rem;
  padding: 28px;
  background: var(--wpo-surface);
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
  box-shadow: var(--wpo-shadow);
}

.wpo-auth__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-auth__lead {
  margin: 0 0 20px;
  color: var(--wpo-muted);
  font-size: 13.5px;
}

.wpo-auth__switch,
.wpo-auth__foot {
  margin: 16px 0 0;
  color: var(--wpo-muted);
  font-size: 13px;
  text-align: center;
}

.wpo-auth__foot {
  margin: 0;
  max-width: 26rem;
  color: var(--wpo-faint);
}

.wpo-auth__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.wpo-auth__aside {
  margin-bottom: 6px;
  font-size: 12.5px;
}

.wpo-auth__resend {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-auth__resend-row {
  display: flex;
  gap: 8px;
}

.wpo-auth__resend-row .btn,
.wpo-auth .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wpo-mail__reset {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--wpo-border);
}

/* Site onboarding: connect the agent */

.wpo-onboard {
  margin: 16px 0;
  border-color: rgba(var(--wpo-accent-rgb), 0.35);
}

.wpo-onboard__code {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: var(--wpo-radius);
  background: rgba(var(--wpo-accent-rgb), 0.08);
  border: 1px solid rgba(var(--wpo-accent-rgb), 0.3);
}

.wpo-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpo-copy__value {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  font-family: var(--wpo-mono);
  font-size: 12.5px;
  color: var(--wpo-text);
  background: var(--wpo-surface-2);
  border-radius: 8px;
  user-select: all;
}

.wpo-copy .btn,
.wpo-onboard__steps .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

[data-wpo-copy][data-wpo-copied]::after {
  content: " ✓";
}

.wpo-onboard__steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpo-onboard__steps > li {
  display: flex;
  gap: 14px;
}

.wpo-onboard__num {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: var(--wpo-on-accent);
  background: var(--wpo-accent);
}

@media (max-width: 575.98px) {
  .wpo-page-head__actions {
    width: 100%;
  }

  .wpo-page-head__actions > * {
    flex: 1 1 auto;
  }

  .wpo-copy {
    flex-direction: column;
    align-items: stretch;
  }
}

/*
 * Below 992px the shell reserves a 64px rail for the side-mini-panel, but the
 * theme moves that panel off-screen until the menu button opens it, so the
 * reserved space stayed empty. Content takes the full width with a 16px gutter;
 * the opened menu overlays it.
 */
@media (max-width: 991.98px) {
  html[data-gd-shell] .body-wrapper,
  html[data-gd-shell] .page-wrapper {
    margin-left: 0 !important;
  }

  html[data-gd-shell] .page-wrapper > .container-fluid,
  html[data-gd-shell] .body-wrapper > .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/*
 * Below 1300px the shell's topbar is sticky, so it already takes its height in
 * the flow; the body-wrapper margin meant for the fixed desktop topbar doubled
 * the space above every page.
 */
@media (max-width: 1299.98px) {
  html[data-gd-shell] .body-wrapper {
    margin-top: 0 !important;
  }
}

/* Billing: plan, usage and plan picker */

.wpo-usage {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpo-usage__bar {
  flex: 1;
  max-width: 320px;
  height: 8px;
  border-radius: 999px;
  background: var(--wpo-surface-2);
  overflow: hidden;
}

.wpo-usage__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wpo-accent);
}

.wpo-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.wpo-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--wpo-surface);
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
}

.wpo-plan--current {
  border-color: rgba(var(--wpo-accent-rgb), 0.6);
  box-shadow: 0 0 0 1px rgba(var(--wpo-accent-rgb), 0.25);
}

.wpo-plan__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-plan__price {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-plan__price span {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wpo-muted);
}

.wpo-plan__limit {
  margin: 0;
  color: var(--wpo-muted);
}

.wpo-plan .btn,
.wpo-billing__cancel .btn,
.wpo-plan-row .btn,
.wpo-webhook-url .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wpo-plan .btn:disabled {
  opacity: 0.35;
  filter: grayscale(1);
}

.wpo-billing__cancel summary {
  cursor: pointer;
  color: var(--wpo-muted);
  font-weight: 600;
}

.wpo-billing-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wpo-billing-notice .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpo-webhook-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.wpo-webhook-url code {
  word-break: break-all;
}

.wpo-plan-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  align-items: end;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-plan-row:first-of-type {
  border-top: 0;
}

.wpo-plan-row__active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  color: var(--wpo-muted);
}

@media (max-width: 767.98px) {
  .wpo-plan-row {
    grid-template-columns: 1fr 1fr;
  }

  .wpo-plan-row > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Billing gateways: active switch and per-environment credentials */

.wpo-gateway-switch__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.wpo-gateway-switch__row .form-select {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.wpo-gateway-switch .btn,
.wpo-gateway-env .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpo-gateway-envs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.wpo-gateway-env {
  padding: 16px;
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius);
  background: var(--wpo-surface-2);
}

.wpo-gateway-env__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Team and account */

.wpo-team {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpo-team__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-team__row:first-child {
  border-top: 0;
}

.wpo-team__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--wpo-accent-rgb), 0.14);
  color: var(--wpo-accent);
  font-weight: 700;
}

.wpo-team__avatar--pending {
  background: var(--wpo-surface-2);
  color: var(--wpo-muted);
}

.wpo-team__who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.wpo-team__who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpo-team__role .form-select {
  min-width: 150px;
}

.wpo-team .btn,
.wpo-page-head__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpo-team__roles summary,
.wpo-danger-zone summary {
  cursor: pointer;
  color: var(--wpo-muted);
  font-weight: 600;
}

.wpo-team__roles dl {
  margin: 12px 0 0;
}

.wpo-team__roles dt {
  margin-top: 8px;
  color: var(--wpo-text);
}

.wpo-team__roles dd {
  margin: 0;
  color: var(--wpo-muted);
}

.wpo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.wpo-check input[type="checkbox"] {
  margin-top: 4px;
}

.wpo-check span {
  display: flex;
  flex-direction: column;
}

.wpo-danger-zone {
  border-color: rgba(var(--wpo-crit-rgb), 0.35);
}

@media (max-width: 575.98px) {
  .wpo-team__row {
    flex-wrap: wrap;
  }

  .wpo-team__who {
    flex-basis: calc(100% - 50px);
  }

  .wpo-team__role {
    flex: 1;
    margin-left: 50px;
  }

  .wpo-team__row > .wpo-chip,
  .wpo-team__row > form:only-of-type {
    margin-left: 50px;
  }
}

/* Public front page */

body.wpo-landing {
  margin: 0;
  background:
    radial-gradient(70rem 36rem at 50% -14rem, rgba(var(--wpo-accent-rgb), 0.16), transparent 70%),
    var(--wpo-bg);
  color: var(--wpo-text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.wpo-landing a {
  color: inherit;
}

.wpo-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wpo-landing .btn-primary {
  color: #071426;
}

.wpo-landing__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}

.wpo-landing__brand {
  text-decoration: none;
}

.wpo-landing__links {
  display: flex;
  flex: 1;
  gap: 24px;
}

.wpo-landing__links a {
  color: var(--wpo-muted);
  font-weight: 600;
  text-decoration: none;
}

.wpo-landing__links a:hover {
  color: var(--wpo-text);
}

.wpo-landing__actions {
  display: flex;
  gap: 8px;
}

.wpo-landing__hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.wpo-landing__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--wpo-accent-rgb), 0.4);
  border-radius: 999px;
  color: var(--wpo-accent);
  font-size: 13px;
  font-weight: 600;
}

.wpo-landing__hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wpo-text);
}

.wpo-landing__hero p {
  margin: 0 auto 28px;
  max-width: 640px;
  color: var(--wpo-muted);
  font-size: 17px;
  line-height: 1.6;
}

.wpo-landing__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.wpo-landing__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--wpo-radius);
  background: rgba(var(--wpo-accent-rgb), 0.12);
  color: var(--wpo-accent);
  font-weight: 600;
}

.wpo-landing__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--wpo-muted);
  font-size: 14px;
}

.wpo-landing__proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpo-landing__proof iconify-icon {
  color: var(--wpo-accent);
}

.wpo-landing__section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.wpo-landing__section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  text-align: center;
  color: var(--wpo-text);
}

.wpo-landing__section-lead {
  margin: 0 auto 8px;
  max-width: 620px;
  color: var(--wpo-muted);
  text-align: center;
}

.wpo-landing__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.wpo-landing__feature {
  padding: 24px;
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
  background: var(--wpo-surface);
}

.wpo-landing__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(var(--wpo-accent-rgb), 0.12);
  color: var(--wpo-accent);
  font-size: 22px;
}

.wpo-landing__feature h3,
.wpo-landing__steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-landing__feature p,
.wpo-landing__steps p {
  margin: 0;
  color: var(--wpo-muted);
  line-height: 1.55;
}

.wpo-landing__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.wpo-landing__steps li {
  padding: 24px;
  border: 1px dashed rgba(var(--wpo-accent-rgb), 0.35);
  border-radius: var(--wpo-radius-lg);
}

.wpo-landing__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--wpo-accent);
  color: #071426;
  font-weight: 800;
}

.wpo-landing .wpo-plans {
  margin-top: 32px;
}

.wpo-landing .wpo-plan {
  position: relative;
  align-items: flex-start;
}

.wpo-landing__badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.wpo-landing__faq {
  max-width: 760px;
  margin: 28px auto 0;
}

.wpo-landing__faq details {
  border-bottom: 1px solid var(--wpo-border);
}

.wpo-landing__faq summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-landing__faq p {
  margin: 0 0 18px;
  color: var(--wpo-muted);
  line-height: 1.6;
}

.wpo-landing__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--wpo-border);
  color: var(--wpo-faint);
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .wpo-landing__links,
  .wpo-landing__cta-sm {
    display: none;
  }

  .wpo-landing__nav {
    justify-content: space-between;
    padding: 16px;
  }

  .wpo-landing .wpo-landing__cta-sm {
    display: none;
  }

  .wpo-landing__hero {
    padding: 40px 16px 32px;
  }

  .wpo-landing__section {
    padding: 40px 16px;
  }

  .wpo-landing__footer {
    flex-direction: column;
    padding: 24px 16px 32px;
  }
}

/* Legal pages */

.wpo-landing__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.wpo-landing__footer-links a,
.wpo-auth__foot a {
  color: var(--wpo-muted);
  text-decoration: none;
}

.wpo-landing__footer-links a:hover,
.wpo-auth__foot a:hover {
  color: var(--wpo-text);
}

.wpo-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  line-height: 1.7;
}

.wpo-legal h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--wpo-text);
}

.wpo-legal__meta {
  margin: 0 0 28px;
  color: var(--wpo-faint);
  font-size: 14px;
}

.wpo-legal__lead {
  color: var(--wpo-text);
  font-size: 17px;
}

.wpo-legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-legal p,
.wpo-legal li {
  color: var(--wpo-muted);
}

.wpo-legal ul {
  padding-left: 20px;
}

.wpo-legal li {
  margin-bottom: 8px;
}

.wpo-legal a {
  color: var(--wpo-accent);
}

@media (max-width: 767.98px) {
  .wpo-legal {
    padding: 28px 16px 40px;
  }
}

/* Help center */

.wpo-help__hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  text-align: center;
}

.wpo-help__hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--wpo-text);
}

.wpo-help__hero p {
  margin: 0 0 22px;
  color: var(--wpo-muted);
}

.wpo-help__search {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 15px;
}

.wpo-help {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}

.wpo-help__section h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wpo-text);
}

.wpo-help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.wpo-landing .wpo-help__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
  background: var(--wpo-surface);
  text-decoration: none;
}

.wpo-help__card:hover,
.wpo-help__card:focus-visible {
  border-color: rgba(var(--wpo-accent-rgb), 0.55);
}

.wpo-help__card strong {
  color: var(--wpo-text);
}

.wpo-help__card span {
  color: var(--wpo-muted);
  font-size: 14px;
}

.wpo-help__article h2 {
  margin-top: 28px;
}

.wpo-help__article ol,
.wpo-help__article ul {
  padding-left: 22px;
  color: var(--wpo-muted);
}

.wpo-help__article ol {
  list-style: decimal;
}

.wpo-help__article ul {
  list-style: disc;
}

.wpo-help__article strong {
  color: var(--wpo-text);
}

.wpo-help__article code {
  color: var(--wpo-accent);
}

.wpo-help__related {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-help__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid rgba(var(--wpo-accent-rgb), 0.35);
  border-radius: var(--wpo-radius-lg);
  background: rgba(var(--wpo-accent-rgb), 0.06);
}

.wpo-help__contact h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--wpo-text);
}

.wpo-help__contact p {
  margin: 0;
  color: var(--wpo-muted);
}

/* Support tickets */

.wpo-tickets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpo-tickets__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-tickets__row:first-child {
  border-top: 0;
}

.wpo-tickets__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wpo-tickets__main summary {
  cursor: pointer;
  color: var(--wpo-faint);
  font-size: 13px;
}

.wpo-tickets__message {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: var(--wpo-muted);
}

.wpo-tickets__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wpo-tickets__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 575.98px) {
  .wpo-tickets__row {
    flex-wrap: wrap;
  }

  .wpo-tickets__actions {
    width: 100%;
  }

  .wpo-help {
    padding: 8px 16px 24px;
  }
}

/* First-steps checklist */

.wpo-onboarding {
  border-color: rgba(var(--wpo-accent-rgb), 0.35);
}

.wpo-onboarding__dismiss {
  color: var(--wpo-muted);
  text-decoration: none;
}

.wpo-onboarding__bar {
  margin: 4px 0 14px;
}

.wpo-onboarding__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpo-onboarding__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-onboarding__step:first-child {
  border-top: 0;
}

.wpo-onboarding__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wpo-surface-2);
  color: var(--wpo-muted);
  font-weight: 700;
  font-size: 13px;
}

.wpo-onboarding__step.is-done .wpo-onboarding__mark {
  background: rgba(var(--wpo-ok-rgb, 52, 211, 153), 0.15);
  color: var(--wpo-ok-ink, #34d399);
  font-size: 18px;
}

.wpo-onboarding__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.wpo-onboarding__step.is-done strong {
  color: var(--wpo-muted);
  text-decoration: line-through;
}

/* Activity trail */

.wpo-activity__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wpo-activity__site {
  max-width: 260px;
}

.wpo-activity {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpo-activity__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--wpo-border);
}

.wpo-activity__item:first-child {
  border-top: 0;
}

.wpo-activity__item .wpo-dot {
  margin-top: 7px;
}

.wpo-activity__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wpo-activity__body strong {
  color: var(--wpo-text);
}

.wpo-activity__more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.wpo-activity__more .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Public status */

.wpo-legal .wpo-status-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--wpo-border);
  border-radius: var(--wpo-radius-lg);
  background: var(--wpo-surface);
}

.wpo-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--wpo-border);
}

.wpo-status-list li:first-child {
  border-top: 0;
}

.wpo-status-list li > div {
  display: flex;
  flex-direction: column;
}

.wpo-status-list strong {
  color: var(--wpo-text);
}

.wpo-news h2 {
  margin-top: 36px;
  color: var(--wpo-accent);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wpo-news h3 {
  margin: 20px 0 4px;
  font-size: 17px;
  color: var(--wpo-text);
}

/* Admin sales desk (Pedidos) */

.wpo-leads__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wpo-leads__notes {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 8px;
}

.wpo-leads__notes .btn {
  justify-self: start;
}

.wpo-leads__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wpo-leads__link iconify-icon {
  color: var(--wpo-link);
}

.wpo-leads__actions {
  flex-direction: column;
  align-items: stretch;
  width: 260px;
  flex: none;
}

.wpo-leads__actions .btn,
.wpo-leads__actions .form-select {
  width: 100%;
  justify-content: center;
}

.wpo-leads__charge .input-group .btn {
  width: auto;
}

.wpo-leads__score {
  min-width: 46px;
  justify-content: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wpo-leads__converted {
  color: var(--wpo-success, #34d399);
}

@media (max-width: 760px) {
  .wpo-leads__row {
    flex-wrap: wrap;
  }

  .wpo-leads__actions {
    width: 100%;
  }
}

/* ---- Premium app shell (2026-11) ------------------------------------------
 * One sidebar with every group visible, a slim sticky topbar, an ambient
 * backdrop, and motion that only reinforces information. The shell's literal
 * structure (side-mini-panel, iconbar, sidebarmenu, topbar, body-wrapper)
 * stays in the markup; the iconbar is kept for the contract but not shown.
 * --------------------------------------------------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] {
  --wpo-sidebar-w: 264px;
  --wpo-topbar-h: 64px;
  --wpo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-gd-shell="consumer"][data-bs-theme="dark"] {
  --wpo-glow-a: rgba(56, 217, 249, 0.10);
  --wpo-glow-b: rgba(16, 39, 94, 0.55);
  --wpo-hex-opacity: 0.09;
  --wpo-glass: rgba(13, 20, 36, 0.72);
}

html[data-gd-shell="consumer"][data-bs-theme="light"] {
  --wpo-glow-a: rgba(56, 217, 249, 0.16);
  --wpo-glow-b: rgba(16, 39, 94, 0.08);
  --wpo-hex-opacity: 0.07;
  --wpo-glass: rgba(255, 255, 255, 0.78);
}

/* Ambient backdrop: two soft glows and a faint hex field, fixed behind the app. */

html[data-gd-shell="consumer"][data-bs-theme] body {
  background: var(--wpo-bg) !important;
}

.wpo-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -12%, var(--wpo-glow-a), transparent 62%),
    radial-gradient(760px 560px at 8% 112%, var(--wpo-glow-b), transparent 62%);
}

.wpo-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--wpo-hex-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M28 64L0 80v32' fill='none' stroke='%2338D9F9' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 75%);
}

/* No z-index here: the phone menu overlay sits outside #main-wrapper and must
   stay under the sidebar, so the wrapper cannot become a stacking context. */
html[data-gd-shell="consumer"][data-bs-theme] #main-wrapper {
  position: relative;
}

html[data-gd-shell="consumer"][data-bs-theme] .page-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper {
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: calc(100vh - var(--wpo-topbar-h));
}

html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper > .container-fluid {
  max-width: 1480px !important;
  padding: 28px 32px 48px !important;
}

/* Sidebar: a single panel. */

html[data-gd-shell="consumer"][data-bs-theme] aside.side-mini-panel {
  width: var(--wpo-sidebar-w) !important;
  background: var(--wpo-sidebar) !important;
  border-right: 1px solid var(--wpo-border);
  z-index: 100;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .iconbar {
  display: none !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .sidebarmenu {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .nav-logo {
  position: static !important;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto !important;
  height: var(--wpo-topbar-h);
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--wpo-border) !important;
  background: transparent !important;
}

.wpo-sidebar__close {
  display: none !important;
}

.wpo-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px;
  scrollbar-width: thin;
}

html[data-gd-shell="consumer"][data-bs-theme] .side-mini-panel .sidebarmenu .sidebar-nav {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav + .sidebar-nav {
  margin-top: 14px;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .nav-small-cap {
  padding: 6px 10px 8px !important;
  margin: 0 !important;
  font-size: 10.5px;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-item {
  margin: 0 0 2px;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 10px !important;
  font-size: 14px;
  white-space: nowrap;
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link iconify-icon {
  flex: none;
  font-size: 19px;
  color: var(--wpo-faint);
  transition: color 0.15s ease, transform 0.25s var(--wpo-ease);
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link:hover iconify-icon {
  color: var(--wpo-text);
  transform: translateX(1px);
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link.active {
  background: linear-gradient(90deg, rgba(var(--wpo-accent-rgb), 0.16), rgba(var(--wpo-accent-rgb), 0.04)) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--wpo-accent-rgb), 0.18);
}

html[data-gd-shell="consumer"][data-bs-theme] .sidebar-nav .sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--wpo-accent);
  box-shadow: 0 0 12px rgba(var(--wpo-accent-rgb), 0.7);
}

/* Who is signed in, and the way out. */

.wpo-sideuser {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 14px;
  padding: 10px;
  border: 1px solid var(--wpo-border);
  border-radius: 14px;
  background: var(--wpo-surface);
}

.wpo-sideuser__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--wpo-navy), #1b3d8a);
  color: #e8fbff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wpo-sideuser__who {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.wpo-sideuser__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--wpo-text);
  font-size: 13px;
  font-weight: 600;
}

.wpo-sideuser__role {
  color: var(--wpo-faint);
  font-size: 11.5px;
}

.wpo-sideuser__logout {
  margin: 0;
}

/* Topbar: where you are, search and commands, live state, theme. */

html[data-gd-shell="consumer"][data-bs-theme] .topbar {
  position: sticky !important;
  top: 0;
  left: auto !important;
  width: auto !important;
  height: var(--wpo-topbar-h);
  padding: 0 !important;
  z-index: 50;
  background: var(--wpo-glass) !important;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}

.wpo-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 32px;
}

.wpo-topbar__logo {
  display: none;
  text-decoration: none !important;
}

.wpo-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
}

.wpo-trail__root {
  color: var(--wpo-faint);
}

.wpo-trail__sep {
  color: var(--wpo-border-strong);
}

.wpo-trail__parent {
  color: var(--wpo-muted) !important;
  text-decoration: none !important;
}

.wpo-trail__parent:hover {
  color: var(--wpo-link) !important;
}

.wpo-topbar__back {
  display: none !important;
}

.wpo-trail__here {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--wpo-text);
  font-weight: 600;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-search.gd-hotkey-chip {
  flex: 0 1 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  margin: 0 0 0 auto;
  padding: 0 8px 0 12px;
  border: 1px solid var(--wpo-border-strong);
  border-radius: 11px;
  background: var(--wpo-surface);
  color: var(--wpo-faint);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-search.gd-hotkey-chip:hover,
html[data-gd-shell="consumer"][data-bs-theme] .wpo-search.gd-hotkey-chip:focus-visible {
  border-color: rgba(var(--wpo-accent-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--wpo-accent-rgb), 0.1);
  color: var(--wpo-muted);
}

.wpo-search iconify-icon {
  flex: none;
  font-size: 17px;
}

.wpo-search__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-search__kbd {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--wpo-border-strong);
  border-radius: 6px;
  background: var(--wpo-surface-2);
  color: var(--wpo-muted);
  font-family: var(--wpo-mono);
  font-size: 11px;
  box-shadow: none;
}

.wpo-sync {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface);
  color: var(--wpo-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.wpo-sync[hidden] {
  display: none;
}

.wpo-sync__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wpo-neutral);
}

.wpo-sync.is-live {
  border-color: rgba(var(--wpo-ok-rgb), 0.3);
  background: rgba(var(--wpo-ok-rgb), 0.09);
  color: var(--wpo-ok-ink);
}

.wpo-sync.is-live .wpo-sync__dot {
  background: var(--wpo-ok);
  animation: wpo-pulse-ok 1.8s infinite;
}

html[data-gd-shell="consumer"][data-bs-theme] .topbar .wpo-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--wpo-surface);
}

html[data-gd-shell="consumer"][data-bs-theme] .topbar .wpo-iconbtn iconify-icon {
  color: inherit !important;
}

.wpo-topbar__menu {
  display: none !important;
}

/* Desktop: sidebar always on screen (the shell only did this from 1300px). */

@media (min-width: 1200px) {
  html[data-gd-shell="consumer"][data-bs-theme] aside.side-mini-panel {
    left: 0 !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .page-wrapper {
    margin-left: var(--wpo-sidebar-w) !important;
    width: auto !important;
  }
}

/* Tablet and phone: the sidebar slides in over the page. */

@media (max-width: 1199.98px) {
  html[data-gd-shell="consumer"][data-bs-theme] aside.side-mini-panel {
    left: calc(-1 * var(--wpo-sidebar-w) - 24px) !important;
    width: min(var(--wpo-sidebar-w), 86vw) !important;
    box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.7);
    transition: left 0.35s var(--wpo-ease) !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] #main-wrapper.show-sidebar aside.side-mini-panel {
    left: 0 !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .page-wrapper {
    margin-left: 0 !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .show-sidebar + .dark-transparent {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(3, 7, 16, 0.55);
    backdrop-filter: blur(2px);
  }

  .wpo-sidebar__close,
  .wpo-topbar__menu {
    display: inline-flex !important;
  }

  .wpo-topbar {
    padding: 0 16px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper > .container-fluid {
    padding: 22px 20px 40px !important;
  }
}

@media (max-width: 767.98px) {
  .wpo-trail {
    display: none;
  }

  .wpo-topbar__logo {
    display: inline-flex;
    margin-right: auto;
  }

  .wpo-topbar__back {
    display: inline-flex !important;
  }

  .wpo-topbar__back + .wpo-topbar__logo .wpo-logo__text {
    display: none;
  }

  .wpo-topbar__logo .wpo-logo__product {
    display: none;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-search.gd-hotkey-chip {
    flex: none;
    width: 38px;
    margin: 0;
    padding: 0;
    justify-content: center;
  }

  .wpo-search__text,
  .wpo-search__kbd {
    display: none;
  }

  .wpo-sync {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .wpo-sync [data-wpo-sync-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  html[data-gd-shell="consumer"][data-bs-theme] .body-wrapper > .container-fluid {
    padding: 18px 16px 36px !important;
  }
}

/* The shell's light theme paints .btn-primary orange from a :root rule; WP Ops keeps its single cyan accent in both themes. */
html[data-gd-shell="consumer"][data-bs-theme]:root .btn-primary {
  --bs-btn-bg: var(--wpo-accent) !important;
  --bs-btn-border-color: var(--wpo-accent) !important;
  --bs-btn-hover-bg: var(--wpo-accent) !important;
  --bs-btn-hover-border-color: var(--wpo-accent) !important;
  --bs-btn-active-bg: var(--wpo-accent) !important;
  background-color: var(--wpo-accent) !important;
  border-color: var(--wpo-accent) !important;
  color: var(--wpo-on-accent) !important;
}

/* ---- Surfaces: glass cards, a spotlight under the pointer ----------------- */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-card,
html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile {
  position: relative;
  isolation: isolate;
  background-color: var(--wpo-glass);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: border-color 0.25s ease, transform 0.35s var(--wpo-ease), box-shadow 0.35s var(--wpo-ease);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-card::after,
html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--wpo-mx, 50%) var(--wpo-my, 0%), rgba(var(--wpo-accent-rgb), 0.07), transparent 60%);
  transition: opacity 0.3s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-card:hover::after,
html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile:hover::after {
  opacity: 1;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-card:hover {
  border-color: var(--wpo-border-strong);
}

/* ---- Fleet tiles: icon, number, meter ------------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-tiles {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile {
  gap: 6px;
  padding: 18px 18px 16px;
  background-image: linear-gradient(160deg, rgba(var(--wpo-tone-rgb), 0.1), rgba(var(--wpo-tone-rgb), 0) 55%);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile::before {
  display: none;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--wpo-tone-rgb), 0.35);
}

.wpo-tile__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wpo-tile__label iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(var(--wpo-tone-rgb), 0.14);
  color: var(--wpo-tone-ink);
  font-size: 15px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile__value {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.wpo-tile__unit {
  margin-left: 2px;
  color: var(--wpo-faint);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.wpo-meter {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--wpo-track);
  overflow: hidden;
}

.wpo-meter__fill {
  --wpo-tone: inherit;
  display: block;
  flex: none;
  width: var(--wpo-meter, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--wpo-tone-rgb), 0.55), rgb(var(--wpo-tone-rgb)));
  box-shadow: 0 0 10px rgba(var(--wpo-tone-rgb), 0.45);
}

.wpo-meter--split .wpo-meter__fill + .wpo-meter__fill {
  border-radius: 0 999px 999px 0;
}

.wpo-meter--split .wpo-meter__fill {
  min-width: 6px;
}

.wpo-meter.is-live .wpo-meter__fill {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(90deg, rgba(var(--wpo-tone-rgb), 0.55), rgb(var(--wpo-tone-rgb)));
  background-size: 160px 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: wpo-shimmer 1.4s linear infinite;
}

/* ---- Fleet rows ----------------------------------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-fleet__row {
  transition: background-color 0.2s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-fleet__row:hover {
  background-color: rgba(var(--wpo-accent-rgb), 0.04);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-fleet__row:hover .wpo-fleet__open {
  border-color: rgba(var(--wpo-accent-rgb), 0.6);
  color: var(--wpo-link) !important;
  transform: translateX(2px);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-fleet__open {
  transition: transform 0.25s var(--wpo-ease), border-color 0.2s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-page-head {
  margin-bottom: 22px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-title--page {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---- First paint motion (only when JS confirms motion is welcome) --------- */

@keyframes wpo-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes wpo-meter-grow {
  from { width: 0; }
}

html.wpo-motion .wpo-page-head,
html.wpo-motion .wpo-tile,
html.wpo-motion .wpo-split > * > * {
  animation: wpo-rise 0.6s var(--wpo-ease) both;
}

html.wpo-motion .wpo-tile:nth-child(2) { animation-delay: 0.05s; }
html.wpo-motion .wpo-tile:nth-child(3) { animation-delay: 0.1s; }
html.wpo-motion .wpo-tile:nth-child(4) { animation-delay: 0.15s; }
html.wpo-motion .wpo-split > * > :nth-child(1) { animation-delay: 0.18s; }
html.wpo-motion .wpo-split > * > :nth-child(2) { animation-delay: 0.26s; }
html.wpo-motion .wpo-split > * > :nth-child(3) { animation-delay: 0.34s; }

@media (max-width: 575.98px) {
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-page-head__actions {
    width: 100%;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-page-head__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile {
    padding: 14px 14px 12px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile__value {
    font-size: 26px;
  }

  .wpo-tile__label {
    font-size: 12px;
  }

  .wpo-tile__label iconify-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}

html.wpo-motion .wpo-meter__fill {
  animation: wpo-meter-grow 1.1s var(--wpo-ease) 0.2s both;
}

html.wpo-motion .wpo-meter.is-live .wpo-meter__fill {
  animation: wpo-meter-grow 1.1s var(--wpo-ease) 0.2s both, wpo-shimmer 1.4s linear 1.3s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wpo-sync.is-live .wpo-sync__dot,
  .wpo-meter.is-live .wpo-meter__fill {
    animation: none !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-card,
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile,
  html[data-gd-shell="consumer"][data-bs-theme] aside.side-mini-panel {
    transition: none !important;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-tile:hover {
    transform: none;
  }
}

/* ---- Premium: live operation (phase 2) ------------------------------------ */

/* Header: the operation's identity, tinted by its state. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head {
  overflow: hidden;
  padding: 22px 24px;
  background-image: radial-gradient(520px 220px at 0% 0%, rgba(var(--wpo-tone-rgb), 0.14), transparent 70%);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head .wpo-op-head__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(var(--wpo-tone-rgb), 0.24), rgba(var(--wpo-tone-rgb), 0.06));
  box-shadow: inset 0 0 0 1px rgba(var(--wpo-tone-rgb), 0.35), 0 10px 30px -12px rgba(var(--wpo-tone-rgb), 0.6);
  color: rgb(var(--wpo-tone-rgb));
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head .wpo-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head .wpo-chip {
  gap: 6px;
  padding: 5px 10px;
}

.wpo-chip iconify-icon {
  font-size: 14px;
  opacity: 0.85;
}

/* Progress: the number, the bar and the stages read as one instrument. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress {
  gap: 18px;
  padding: 24px;
  background-image: radial-gradient(600px 200px at 100% 0%, rgba(var(--wpo-tone-rgb), 0.1), transparent 70%);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress__pct {
  font-size: 52px;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--wpo-text), rgba(var(--wpo-tone-rgb), 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress .wpo-bar {
  height: 12px;
  background: var(--wpo-track);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress .wpo-bar__fill {
  background-color: rgb(var(--wpo-tone-rgb));
  box-shadow: 0 0 18px rgba(var(--wpo-tone-rgb), 0.55);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stages {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage {
  position: relative;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.35s var(--wpo-ease);
}

.wpo-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wpo-stage__n {
  font-family: var(--wpo-mono);
  font-size: 11.5px;
  color: var(--wpo-faint);
  letter-spacing: 0.04em;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage--active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(var(--wpo-tone-rgb), 0.8);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage--active .wpo-stage__n {
  color: rgb(var(--wpo-tone-rgb));
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage--done {
  border-color: rgba(var(--wpo-ok-rgb), 0.25);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage--done .wpo-stage__mark {
  box-shadow: 0 0 0 4px rgba(var(--wpo-ok-rgb), 0.14);
}

/* Timeline: a glowing rail, and a highlight on events that just arrived. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-timeline__item:not(:last-child)::before {
  background: linear-gradient(180deg, rgba(var(--wpo-tone-rgb), 0.5), var(--wpo-border-strong) 70%);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-timeline__item:first-child .wpo-timeline__dot {
  box-shadow: 0 0 0 4px rgba(var(--wpo-tone-rgb), 0.18), 0 0 14px rgba(var(--wpo-tone-rgb), 0.7);
}

@keyframes wpo-arrive {
  0% { background-color: rgba(var(--wpo-accent-rgb), 0.16); }
  100% { background-color: rgba(var(--wpo-accent-rgb), 0); }
}

.wpo-timeline__item.is-new {
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  animation: wpo-enter 0.45s var(--wpo-ease), wpo-arrive 2.4s ease-out;
}

/* Evidence: steps read like a signed log. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-evidence__item {
  padding: 12px 0;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-evidence__proof {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--wpo-border);
  background: var(--wpo-surface-2);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-evidence__proof summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-evidence__proof summary::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-plan {
  counter-reset: wpo-plan;
  list-style: none;
  padding-left: 0;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-plan > li {
  counter-increment: wpo-plan;
  display: flex;
  gap: 10px;
}

html[data-gd-shell="consumer"][data-bs-theme] ol.wpo-op-plan > li::before {
  content: counter(wpo-plan, decimal-leading-zero);
  flex: none;
  font-family: var(--wpo-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--wpo-faint);
}

@media (max-width: 575.98px) {
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head,
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress {
    padding: 18px 16px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-op-head .wpo-title {
    font-size: 21px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-progress__pct {
    font-size: 40px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpo-timeline__item.is-new {
    animation: none;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-stage {
    transition: none;
  }
}

/* ---- Premium: site page and plugins (phase 3) ----------------------------- */

/* The health ring glows in the site's tone; the header takes it too. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head {
  overflow: hidden;
  padding: 22px 24px;
  background-image: radial-gradient(520px 220px at 0% 0%, rgba(var(--wpo-tone-rgb), 0.14), transparent 70%);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head .wpo-ring {
  filter: drop-shadow(0 0 14px rgba(var(--wpo-tone-rgb), 0.45));
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head .wpo-ring__score {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head .wpo-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Plugin rows: a severity rail, hover, and the next version in the accent. */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin {
  position: relative;
  transition: background-color 0.2s ease;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin:hover {
  background-color: rgba(var(--wpo-accent-rgb), 0.035);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin.wpo-tone-waiting {
  background-image: linear-gradient(90deg, rgba(var(--wpo-warn-rgb), 0.06), rgba(var(--wpo-warn-rgb), 0) 50%);
  box-shadow: inset 3px 0 0 rgba(var(--wpo-warn-rgb), 0.8);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin__title {
  font-weight: 650;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin__next {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(var(--wpo-accent-rgb), 0.1);
  color: var(--wpo-link);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-vuln {
  position: relative;
  border-color: rgba(var(--wpo-tone-rgb), 0.35);
  background: linear-gradient(90deg, rgba(var(--wpo-tone-rgb), 0.1), rgba(var(--wpo-tone-rgb), 0.03));
  box-shadow: 0 8px 22px -18px rgba(var(--wpo-tone-rgb), 0.9);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-vuln__ref {
  color: var(--wpo-tone-ink);
  font-weight: 500;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-plugin .wpo-mini {
  min-width: 200px;
}

/* ---- Premium: exceptions inbox (phase 4) ---------------------------------- */

html[data-gd-shell="consumer"][data-bs-theme] .wpo-inbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception {
  position: relative;
  padding: 18px 20px;
  border-radius: 16px;
  background-color: var(--wpo-surface-2);
  transition: border-color 0.25s ease, transform 0.35s var(--wpo-ease), box-shadow 0.35s var(--wpo-ease);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgb(var(--wpo-tone-rgb));
  box-shadow: 0 0 12px rgba(var(--wpo-tone-rgb), 0.6);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--wpo-tone-rgb), 0.45);
  box-shadow: 0 16px 34px -24px rgba(var(--wpo-tone-rgb), 0.8);
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(var(--wpo-tone-rgb), 0.22), rgba(var(--wpo-tone-rgb), 0.06));
  box-shadow: inset 0 0 0 1px rgba(var(--wpo-tone-rgb), 0.3);
  font-size: 20px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception__title {
  font-size: 15.5px;
  font-weight: 700;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception__safe {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(var(--wpo-ok-rgb), 0.12);
  color: var(--wpo-ok-ink);
  font-weight: 600;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception__facts dd {
  font-size: 13.5px;
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception__late {
  color: var(--wpo-crit-ink);
  font-weight: 600;
}

html.wpo-motion .wpo-inbox > li {
  animation: wpo-rise 0.5s var(--wpo-ease) both;
}

html.wpo-motion .wpo-inbox > li:nth-child(2) { animation-delay: 0.04s; }
html.wpo-motion .wpo-inbox > li:nth-child(3) { animation-delay: 0.08s; }
html.wpo-motion .wpo-inbox > li:nth-child(4) { animation-delay: 0.12s; }
html.wpo-motion .wpo-inbox > li:nth-child(n + 5) { animation-delay: 0.16s; }

@media (max-width: 575.98px) {
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head {
    padding: 18px 16px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-site-head .wpo-title {
    font-size: 21px;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception {
    transition: none;
  }

  html[data-gd-shell="consumer"][data-bs-theme] .wpo-exception:hover {
    transform: none;
  }
}

html[data-gd-shell="consumer"][data-bs-theme] .wpo-need__icon iconify-icon {
  font-size: 17px;
}

/* Sidebar counter: open exceptions, red when any is critical. */

.wpo-navbadge {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(var(--wpo-tone-rgb));
  color: #0a0f1c;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 12px rgba(var(--wpo-tone-rgb), 0.55);
}

html.wpo-motion .wpo-navbadge {
  animation: wpo-rise 0.4s var(--wpo-ease) both;
}

/* Public help/status pages: "Serviços" menu and the phone menu (native <details>) */

.wpo-landing__links {
  align-items: center;
}

.wpo-pubmenu {
  position: relative;
}

.wpo-pubmenu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wpo-muted);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.wpo-pubmenu > summary::-webkit-details-marker {
  display: none;
}

.wpo-pubmenu > summary:hover,
.wpo-pubmenu[open] > summary {
  color: var(--wpo-text);
}

.wpo-pubmenu > summary iconify-icon {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.wpo-pubmenu[open] > summary iconify-icon {
  transform: rotate(180deg);
}

.wpo-pubmenu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  z-index: 60;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--wpo-border-strong);
  border-radius: 16px;
  background: var(--wpo-surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.wpo-landing .wpo-pubmenu__panel a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  color: var(--wpo-text);
  text-decoration: none;
}

.wpo-landing .wpo-pubmenu__panel a:hover {
  background: var(--wpo-surface-2);
}

.wpo-pubmenu__panel iconify-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(var(--wpo-accent-rgb), 0.12);
  color: var(--wpo-accent);
  font-size: 17px;
}

.wpo-pubmenu__panel span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wpo-pubmenu__panel strong {
  font-size: 14px;
}

.wpo-pubmenu__panel small {
  color: var(--wpo-muted);
  font-size: 12.5px;
}

.wpo-pubmenu--phone {
  display: none;
}

@media (max-width: 767.98px) {
  .wpo-pubmenu--phone {
    display: block;
  }

  .wpo-pubmenu--phone > summary {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid var(--wpo-border-strong);
    border-radius: 12px;
    color: var(--wpo-text);
    font-size: 20px;
  }

  .wpo-pubmenu--phone > summary iconify-icon {
    font-size: 20px;
    transform: none !important;
  }

  .wpo-pubmenu--phone .wpo-pubmenu__panel {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 32px));
  }
}

/* The shell paints every link cyan; the public nav keeps muted links that brighten on hover. */
.wpo-landing .wpo-landing__links > a,
.wpo-landing .wpo-pubmenu > summary {
  color: var(--wpo-muted) !important;
}

.wpo-landing .wpo-landing__links > a:hover,
.wpo-landing .wpo-pubmenu > summary:hover,
.wpo-landing .wpo-pubmenu[open] > summary {
  color: var(--wpo-text) !important;
}

.wpo-landing .wpo-pubmenu__panel a {
  color: var(--wpo-text) !important;
}
