/* ==========================================================================
   product-console.css — brrain.io/console (The bRRAIn Console)
   Layered on marketing-console.css (.mc-*) and product-pages.css (.pp-*).
   Everything is scoped under .pp-console.

   Two kinds of rules live here:
   1. Page rules (eyebrow tints, small grids). These use the site tokens
      (--color-*) and the --pp-* accents only, so both site themes work.
   2. The console screenshots (.cx). They recreate the real Console UI in
      its own dark palette (black canvas, cyan accent, per-tile KPI colours,
      JetBrains Mono labels, IBM Plex Serif titles) and keep it in both site
      themes, like the app frames on the other product pages.
   ========================================================================== */

/* ---------- 1. Page rules ---------- */

.pp-console .pp-eb--violet,
.pp-console .pp-eb--green,
.pp-console .pp-eb--amber,
.pp-console .pp-eb--rose {
    color: var(--pp-tint);
    background: color-mix(in srgb, var(--pp-tint) 10%, transparent);
    border-color: color-mix(in srgb, var(--pp-tint) 28%, transparent);
}
.pp-console .pp-eb--violet { --pp-tint: var(--pp-violet); }
.pp-console .pp-eb--green  { --pp-tint: var(--pp-green); }
.pp-console .pp-eb--amber  { --pp-tint: var(--pp-amber); }
.pp-console .pp-eb--rose   { --pp-tint: var(--pp-rose); }

.pp-console .pp-console__stats { padding: 0 0 64px; }
.pp-console .mc-stat__label { line-height: 1.4; }

.pp-console .pp-console__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Four per-project permissions, one card each. */
.pp-console .pp-console__perm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}
@media (max-width: 1000px) { .pp-console .pp-console__perm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px)  { .pp-console .pp-console__perm-grid { grid-template-columns: 1fr; } }

.pp-console .pp-console__perm-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    font: 600 15px/1 var(--font-mono, ui-monospace, monospace);
    color: var(--pp-tint, var(--pp-cyan));
    background: color-mix(in srgb, var(--pp-tint, var(--pp-cyan)) 14%, transparent);
}

.pp-console .pp-console__note {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.pp-console .pp-console__flow-wrap .mc-lede { margin-bottom: 40px; }

.pp-console .mc-surface__copy .mc-feature__list { margin-bottom: 24px; }

/* ---------- 2. Console screenshots (.cx) ---------- */

.pp-console .cx {
    --cx-bg: #000;
    --cx-surface: rgba(255, 255, 255, 0.03);
    --cx-elev: rgba(255, 255, 255, 0.06);
    --cx-fg1: #fff;
    --cx-fg2: rgba(255, 255, 255, 0.85);
    --cx-fg3: rgba(255, 255, 255, 0.58);
    --cx-fg4: rgba(255, 255, 255, 0.36);
    --cx-border: rgba(255, 255, 255, 0.10);
    --cx-accent: #00ebff;
    --cx-accent-soft: rgba(0, 235, 255, 0.12);
    --cx-violet: #a78bfa;
    --cx-amber: #fbbf24;
    --cx-lime: #a3e635;
    --cx-magenta: #ec4899;
    --cx-green: #4ade80;
    --cx-blue: #60a5fa;
    --cx-red: #f87171;
    color: var(--cx-fg2);
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    text-align: left;
}

/* The browser frame keeps the console's dark canvas in both site themes.
   The radial glow stands in for the console's brain backdrop. */
.pp-console .mc-canvas.cx,
[data-theme="light"] .pp-console .mc-canvas.cx {
    aspect-ratio: auto;
    background:
        radial-gradient(ellipse 60% 55% at 55% 45%, rgba(0, 150, 160, 0.20), transparent 70%),
        #000;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 235, 255, 0.05);
}
[data-theme="light"] .pp-console .mc-canvas.cx { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22); }
.pp-console .cx .mc-canvas__chrome,
[data-theme="light"] .pp-console .cx .mc-canvas__chrome { border-bottom-color: rgba(255, 255, 255, 0.07); }
.pp-console .cx .mc-canvas__url,
[data-theme="light"] .pp-console .cx .mc-canvas__url {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}
.pp-console .cx .mc-canvas__body { height: auto; grid-template-columns: 136px minmax(0, 1fr); }
.pp-console .cx .mc-canvas__sidebar,
[data-theme="light"] .pp-console .cx .mc-canvas__sidebar {
    background: rgba(0, 0, 0, 0.55);
    border-right-color: var(--cx-border);
    padding: 12px 0;
    gap: 0;
}
.pp-console .cx .mc-canvas__main {
    display: block;
    padding: 0;
    min-width: 0;
}

/* Sidebar */
.pp-console .cx-brand {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--cx-border);
}
.pp-console .cx-logo { font: 600 13px/1 var(--font-serif, Georgia, serif); color: var(--cx-fg1); letter-spacing: -0.01em; }
.pp-console .cx-brand-pill {
    margin-left: auto;
    padding: 3px 5px;
    border-radius: 3px;
    background: var(--cx-accent);
    color: #000;
    font: 700 7px/1 var(--font-sans, Inter, sans-serif);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pp-console .cx-mega {
    display: flex; align-items: center; gap: 5px;
    margin: 8px 0 2px;
    padding: 8px 12px 2px;
    border-top: 1px solid var(--cx-border);
    font: 700 7.5px/1 var(--font-sans, Inter, sans-serif);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cx-fg1);
}
.pp-console .cx-mega b { margin-left: auto; font-weight: 500; color: var(--cx-fg4); }
.pp-console .cx-group {
    margin: 0;
    padding: 8px 12px 4px;
    font: 500 7.5px/1 var(--font-sans, Inter, sans-serif);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cx-fg4);
}
.pp-console .cx-tab {
    display: flex; align-items: center; gap: 7px;
    margin: 0 6px;
    padding: 5px 7px;
    border-left: 2px solid transparent;
    font-size: 9.5px;
    color: var(--cx-fg2);
    white-space: nowrap;
    overflow: hidden;
}
.pp-console .cx-tab svg { width: 11px; height: 11px; flex: none; opacity: .85; }
.pp-console .cx-tab.is-on {
    border-left-color: var(--cx-accent);
    background: var(--cx-accent-soft);
    color: var(--cx-fg1);
    font-weight: 500;
}
.pp-console .cx-pip {
    width: 6px; height: 6px;
    margin-left: auto;
    flex: none;
    border-radius: 50%;
    background: var(--cx-green);
    box-shadow: 0 0 6px var(--cx-green);
}
.pp-console .cx-pip--amber { background: var(--cx-amber); box-shadow: none; }

/* Top bar */
.pp-console .cx-top {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--cx-border);
}
.pp-console .cx-search {
    flex: 1;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--cx-border);
    border-radius: 6px;
    font-size: 8.5px;
    color: var(--cx-fg4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-console .cx-live {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 6px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 4px;
    font: 600 7.5px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.12em;
    color: var(--cx-green);
}
.pp-console .cx-live .pp-live { width: 5px; height: 5px; --pp-line: #4ade80; }
.pp-console .cx-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border: 1px solid var(--cx-border);
    border-radius: 5px;
    color: var(--cx-fg3);
}
.pp-console .cx-icon-btn svg { width: 10px; height: 10px; }
.pp-console .cx-user { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--cx-fg1); white-space: nowrap; }
.pp-console .cx-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(0, 235, 255, 0.18);
    border: 1px solid rgba(0, 235, 255, 0.4);
    color: var(--cx-accent);
    font: 700 7px/1 var(--font-sans, Inter, sans-serif);
    flex: none;
}

/* Page body */
.pp-console .cx-page { padding: 14px; }
.pp-console .cx-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.pp-console .cx-head > div:first-child { flex: 1; min-width: 0; }
.pp-console .cx-kicker {
    margin: 0 0 4px;
    font: 500 7.5px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cx-fg4);
}
.pp-console .cx-title {
    margin: 0;
    font: 600 17px/1.1 var(--font-serif, Georgia, serif);
    letter-spacing: -0.02em;
    color: var(--cx-fg1);
}
.pp-console .cx-title small { font: 400 9px/1 var(--font-sans, Inter, sans-serif); color: var(--cx-fg3); letter-spacing: 0; margin-left: 4px; }
.pp-console .cx-sub { margin: 4px 0 0; font-size: 8.5px; color: var(--cx-fg3); line-height: 1.4; }
.pp-console .cx-btn {
    display: inline-flex; align-items: center;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--cx-accent);
    color: #000;
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 14px -4px var(--cx-accent);
}
.pp-console .cx-btn--ghost {
    background: transparent;
    color: var(--cx-fg1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* KPI strip */
.pp-console .cx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.pp-console .cx-kpi {
    position: relative;
    padding: 8px 9px;
    border: 1px solid var(--cx-border);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    min-width: 0;
}
.pp-console .cx-kpi::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--k);
    opacity: .7;
}
.pp-console .cx-kpi__label { font: 500 7px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--k); }
.pp-console .cx-kpi__value { display: flex; align-items: center; gap: 5px; margin: 6px 0 4px; font: 600 15px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg1); }
.pp-console .cx-kpi__value em { font-style: normal; font-size: 8px; color: var(--cx-green); }
.pp-console .cx-kpi__sub { font-size: 7.5px; color: var(--cx-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-kpi__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-green); box-shadow: 0 0 6px var(--cx-green); flex: none; }

/* Cards */
.pp-console .cx-card {
    padding: 10px;
    border: 1px solid var(--cx-border);
    border-radius: 8px;
    background: var(--cx-surface);
    min-width: 0;
}
.pp-console .cx-card__head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pp-console .cx-label { font: 500 7px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cx-fg3); white-space: nowrap; }
.pp-console .cx-pills { display: flex; gap: 2px; margin-left: auto; }
.pp-console .cx-pills span {
    padding: 2px 4px;
    border: 1px solid var(--cx-border);
    border-radius: 3px;
    font: 500 6.5px/1 var(--font-mono, ui-monospace, monospace);
    color: var(--cx-fg3);
    white-space: nowrap;
}
.pp-console .cx-pills span.is-on { border-color: rgba(0, 235, 255, 0.5); color: var(--cx-accent); background: var(--cx-accent-soft); }
.pp-console .cx-link { margin-left: auto; font-size: 8px; color: var(--cx-accent); white-space: nowrap; }

.pp-console .cx-row2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }

/* Compute chart inside the frame: fixed dark-palette grid + axis. */
.pp-console .cx .pp-chart .pp-grid { stroke: rgba(255, 255, 255, 0.07); }
.pp-console .cx .pp-chart .pp-axis { fill: rgba(255, 255, 255, 0.4); font-size: 7px; }
.pp-console .cx .pp-chart .pp-draw { stroke-width: 1.6; }
.pp-console .cx-legend { display: flex; gap: 10px; margin: -2px 0 6px; font-size: 7.5px; color: var(--cx-fg3); }
.pp-console .cx-legend i { display: inline-block; width: 8px; height: 2px; margin-right: 4px; vertical-align: middle; border-radius: 1px; }

/* Storage donut */
.pp-console .cx-storage { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pp-console .cx-donut { position: relative; width: 54px; flex: none; }
.pp-console .cx .pp-ring circle { stroke-width: 4.2; }
.pp-console .cx .pp-ring__track { stroke: rgba(255, 255, 255, 0.07); }
.pp-console .cx-donut__c {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font: 600 11px/1 var(--font-mono, ui-monospace, monospace);
    color: var(--cx-fg1);
}
.pp-console .cx-donut__c small { margin-top: 2px; font-size: 6px; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-fg4); font-weight: 500; }
.pp-console .cx-storage__num { font: 600 13px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg1); white-space: nowrap; }
.pp-console .cx-storage__num span { font-size: 8px; color: var(--cx-fg4); font-weight: 400; }
.pp-console .cx-leg { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; font: 400 7.5px/1.2 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg3); }
.pp-console .cx-leg i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 1px; vertical-align: -1px; }

/* Quick start */
.pp-console .cx-qs-label {
    display: flex; align-items: center; gap: 5px;
    margin: 0 0 8px;
    font: 500 8px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cx-fg2);
}
.pp-console .cx-qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pp-console .cx-qs-card {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 5px;
    padding: 9px;
    min-height: 74px;
    border: 1px solid var(--cx-border);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
}
.pp-console .cx-qs-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--k); opacity: .7; }
.pp-console .cx-qs-card__num {
    position: absolute;
    right: 2px; bottom: -14px;
    font: 700 64px/1 var(--font-sans, Inter, sans-serif);
    color: var(--k);
    opacity: .28;
    pointer-events: none;
}
.pp-console .cx-qs-card svg { width: 12px; height: 12px; color: var(--k); position: relative; }
.pp-console .cx-qs-card__title { position: relative; font-size: 9px; font-weight: 600; color: var(--cx-fg1); line-height: 1.25; }
.pp-console .cx-qs-card__go { position: relative; margin-top: auto; font: 500 7px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cx-fg3); }

/* Activity feed */
.pp-console .cx-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pp-console .cx-feed li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 6px 6px;
    border-radius: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 8.5px;
    color: var(--cx-fg2);
}
.pp-console .cx-feed li:last-child { border-bottom: none; }
.pp-console .cx-feed b { font-weight: 600; color: var(--cx-fg1); }
.pp-console .cx-feed time { font: 400 7.5px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg4); white-space: nowrap; }
.pp-console .cx-feed .cx-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--cx-accent)); }
.pp-console .cx-feed li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-feed[data-pp-cycle] li.is-active { background: rgba(0, 235, 255, 0.07); }

/* Members table */
.pp-console .cx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pp-console .cx-chip {
    padding: 3px 7px;
    border: 1px solid var(--cx-border);
    border-radius: 999px;
    font-size: 8px;
    color: var(--cx-fg3);
    white-space: nowrap;
}
.pp-console .cx-chip.is-on { border-color: rgba(0, 235, 255, 0.5); color: var(--cx-accent); background: var(--cx-accent-soft); }
.pp-console .cx-table { border: 1px solid var(--cx-border); border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.pp-console .cx-tr {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.85fr) minmax(0, .85fr) minmax(0, .9fr) 14px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 8.5px;
}
.pp-console .cx-tr--head {
    border-top: none;
    background: rgba(255, 255, 255, 0.025);
    font: 500 7px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cx-fg4);
}
.pp-console .cx-subj { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--font-mono, ui-monospace, monospace); color: var(--cx-fg1); }
.pp-console .cx-subj span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-mono { font: 400 8px/1.2 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg3); white-space: nowrap; }
.pp-console .cx-role {
    justify-self: start;
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid;
    border-radius: 3px;
    font: 500 7.5px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-console .cx-role--sovereign  { color: var(--cx-accent); background: rgba(0, 235, 255, 0.10); border-color: rgba(0, 235, 255, 0.35); }
.pp-console .cx-role--architect  { color: #9ff5ff; background: rgba(0, 235, 255, 0.06); border-color: rgba(0, 235, 255, 0.20); }
.pp-console .cx-role--librarian  { color: var(--cx-green); background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); }
.pp-console .cx-role--operator   { color: var(--cx-blue); background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.25); }
.pp-console .cx-role--contributor { color: var(--cx-amber); background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25); }
.pp-console .cx-role--custom     { color: var(--cx-violet); background: rgba(167, 139, 250, 0.08); border-color: rgba(167, 139, 250, 0.3); }
.pp-console .cx-group-chip { justify-self: start; padding: 2px 6px; border: 1px solid var(--cx-border); border-radius: 999px; font-size: 7.5px; color: var(--cx-fg2); white-space: nowrap; }
.pp-console .cx-more { color: var(--cx-fg4); font-size: 10px; text-align: right; letter-spacing: 1px; }
.pp-console .cx-tr.is-pending { background: rgba(0, 235, 255, 0.035); }
.pp-console .cx-status { display: inline-flex; align-items: center; gap: 4px; font-size: 7.5px; color: var(--cx-amber); white-space: nowrap; }

/* Role editor */
.pp-console .cx-fieldset {
    margin: 0 0 8px;
    padding: 9px 10px 10px;
    border: 1px solid var(--cx-border);
    border-radius: 8px;
    background: var(--cx-surface);
}
.pp-console .cx-legend-t {
    margin: 0 0 7px;
    font: 600 7.5px/1 var(--font-sans, Inter, sans-serif);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cx-fg2);
}
.pp-console .cx-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-console .cx-field-l { display: block; margin-bottom: 3px; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-fg3); }
.pp-console .cx-input {
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 8.5px;
    color: var(--cx-fg1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-console .cx-perms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp-console .cx-perm-group { padding: 7px 8px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 5px; background: rgba(0, 0, 0, 0.3); min-width: 0; }
.pp-console .cx-perm-group p { margin: 0 0 5px; font: 600 7px/1 var(--font-sans, Inter, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-fg2); }
.pp-console .cx-check { display: flex; align-items: center; gap: 5px; padding: 2px 0; font-size: 7.5px; color: var(--cx-fg2); white-space: nowrap; overflow: hidden; }
.pp-console .cx-check code { font: 400 7px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg3); background: rgba(255, 255, 255, 0.05); padding: 2px 3px; border-radius: 2px; }
.pp-console .cx-box {
    position: relative;
    width: 9px; height: 9px;
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}
.pp-console .cx-box.is-on { background: var(--cx-accent); border-color: var(--cx-accent); }
.pp-console .cx-box.is-on::after {
    content: "";
    position: absolute;
    left: 2.5px; top: .5px;
    width: 2.5px; height: 5px;
    border: solid #000;
    border-width: 0 1.4px 1.4px 0;
    transform: rotate(45deg);
}
.pp-console .cx-prow {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, auto);
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 8px;
    color: var(--cx-fg2);
}
.pp-console .cx-prow:first-of-type { border-top: none; }
.pp-console .cx-prow .cx-check { padding: 0; }
.pp-console .cx-hint { margin: 6px 0 0; font-size: 7.5px; color: var(--cx-fg4); line-height: 1.4; }
/* The Add tick on the drop-box row lights up in turn with its neighbours. */
.pp-console [data-pp-cycle] > .cx-prow.is-active { background: rgba(0, 235, 255, 0.05); }

/* Extensions (Manage installed) */
.pp-console .cx-banner {
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(0, 235, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 235, 255, 0.06);
    font-size: 8.5px;
    color: var(--cx-fg1);
}
.pp-console .cx-banner .cx-btn { margin-left: auto; }
.pp-console .cx-ext {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--cx-border);
    border-radius: 8px;
    background: var(--cx-surface);
}
.pp-console .cx-ext__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--k) 16%, transparent);
    color: var(--k);
}
.pp-console .cx-ext__icon svg { width: 15px; height: 15px; }
.pp-console .cx-ext__name { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--cx-fg1); white-space: nowrap; }
.pp-console .cx-ext__state {
    padding: 2px 5px;
    border: 1px solid rgba(0, 235, 255, 0.35);
    border-radius: 3px;
    font: 500 6.5px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cx-accent);
}
.pp-console .cx-ext__state--amber { color: var(--cx-amber); border-color: rgba(251, 191, 36, 0.4); }
.pp-console .cx-ext__desc { margin: 3px 0 5px; font-size: 8px; color: var(--cx-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-ext__meta { display: flex; gap: 12px; font: 400 7.5px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg4); }
.pp-console .cx-ext__meta b { font-weight: 500; color: var(--cx-fg2); }
.pp-console .cx-ext__actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.pp-console .cx-ext .pp-meter { height: 3px; margin-top: 6px; background: rgba(255, 255, 255, 0.08); }
.pp-console .cx-ext .pp-meter > span { background: var(--cx-amber); }

/* Split frame: mini sidebar next to a panel (Marketplace shot). */
.pp-console .cx-split { display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.pp-console .cx-mega { white-space: nowrap; font-size: 7px; letter-spacing: .1em; }
.pp-console .cx-split .cx-mega { font-size: 7px; letter-spacing: .1em; }

/* LLM Registry */
.pp-console .cx-reg-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pp-console .cx-reg-tools .cx-search { flex: 1; }
.pp-console .cx-btn--danger { background: transparent; color: var(--cx-red); border: 1px solid rgba(248, 113, 113, 0.4); box-shadow: none; }
.pp-console .cx-reg {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 8.5px;
}
.pp-console .cx-reg:first-child { border-top: none; }
.pp-console .cx-reg__name { color: var(--cx-fg1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-reg__name small { display: block; margin-top: 2px; font: 400 7.5px/1 var(--font-mono, ui-monospace, monospace); color: var(--cx-fg4); }
.pp-console .cx-health {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    font: 600 7px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pp-console .cx-health::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pp-console .cx-health--live  { color: var(--cx-green); background: rgba(74, 222, 128, 0.12); }
.pp-console .cx-health--stale { color: var(--cx-amber); background: rgba(251, 191, 36, 0.12); }
.pp-console .cx-health--dead  { color: var(--cx-red); background: rgba(248, 113, 113, 0.12); }
.pp-console .cx-test { padding: 3px 7px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; font-size: 7.5px; color: var(--cx-fg2); }

/* Outbound client cards */
.pp-console .cx-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pp-console .cx-client { padding: 8px; border: 1px solid var(--cx-border); border-radius: 6px; background: rgba(0, 0, 0, 0.4); min-width: 0; }
.pp-console .cx-client b { display: block; font-size: 8.5px; color: var(--cx-fg1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-client span { display: block; margin-top: 3px; font: 400 7px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--cx-fg4); }

/* Audit log */
.pp-console .cx-audit-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pp-console .cx-audit-pills span {
    padding: 3px 7px;
    border: 1px solid var(--cx-border);
    border-radius: 999px;
    font-size: 7.5px;
    color: var(--cx-fg3);
}
.pp-console .cx-audit-pills span.is-on { color: var(--cx-accent); border-color: rgba(0, 235, 255, 0.5); background: var(--cx-accent-soft); }
.pp-console .cx-filter { display: flex; gap: 6px; margin-bottom: 8px; }
.pp-console .cx-filter .cx-input { flex: 1; color: var(--cx-fg3); }
.pp-console .cx-at {
    display: grid;
    grid-template-columns: 56px 54px minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font: 400 8px/1.2 var(--font-mono, ui-monospace, monospace);
    color: var(--cx-fg2);
}
.pp-console .cx-at > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-console .cx-at--head { border-top: none; background: rgba(255, 255, 255, 0.025); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-fg4); }
.pp-console .cx-at .cx-t { color: var(--cx-fg4); }
.pp-console .cx-at .cx-a { color: var(--cx-accent); }
.pp-console .cx-at .cx-a--warn { color: var(--cx-amber); }
.pp-console [data-pp-cycle] > .cx-at.is-active { background: rgba(0, 235, 255, 0.06); }

/* ---------- Small screens: the shots simplify, never overflow ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
    .pp-console .cx .mc-canvas__body { grid-template-columns: 0 minmax(0, 1fr); }
    .pp-console .cx .mc-canvas__sidebar { display: none; }
}
@media (max-width: 900px) {
    .pp-console .mc-surface--reverse .mc-surface__copy { order: -1; }
}
@media (max-width: 640px) {
    .pp-console .cx .mc-canvas__body { grid-template-columns: minmax(0, 1fr); }
    .pp-console .cx .mc-canvas__sidebar { display: none; }
    .pp-console .cx-split { grid-template-columns: minmax(0, 1fr); }
    .pp-console .cx-split > .mc-canvas__sidebar { display: none; }
    .pp-console .cx-row2 { grid-template-columns: minmax(0, 1fr); }
    .pp-console .cx-user span:last-child, .pp-console .cx-icon-btn { display: none; }
    .pp-console .cx-head .cx-btn--ghost { display: none; }
    .pp-console .cx-tr { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 14px; }
    .pp-console .cx-tr > :nth-child(3) { display: none; }
    .pp-console .cx-perms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pp-console .cx-perms > :nth-child(3) { display: none; }
    .pp-console .cx-input-row { grid-template-columns: minmax(0, 1fr); }
    .pp-console .cx-prow { gap: 7px; }
    .pp-console .cx-at { grid-template-columns: 50px minmax(0, 1.3fr) minmax(0, 1fr); }
    .pp-console .cx-at > :nth-child(2), .pp-console .cx-at > :nth-child(4) { display: none; }
    .pp-console .cx-reg { grid-template-columns: minmax(0, 1.5fr) auto auto; }
    .pp-console .cx-reg > :nth-child(2) { display: none; }
    .pp-console .cx-qs-card__num { font-size: 52px; }
}
@media (max-width: 420px) {
    .pp-console .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-console .cx-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-console .cx-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-console .cx-ext { grid-template-columns: 26px minmax(0, 1fr); }
    .pp-console .cx-ext__actions { grid-column: 2; flex-direction: row; }
    .pp-console .cx-ext__icon { width: 26px; height: 26px; }
}
.pp-console .cx-actions { display: flex; gap: 6px; }

.pp-console .cx-row2 + .cx-card { margin-top: 8px; }
.pp-console .cx-feed--compact li { padding: 4px 6px; }
