:root{
  --px-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --px-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --px-radius-xs: 10px;
  --px-radius-sm: 14px;
  --px-radius-md: 18px;
  --px-radius-lg: 24px;
  --px-radius-xl: 32px;
  --px-shadow-sm: 0 10px 24px rgba(10, 18, 35, 0.10);
  --px-shadow-md: 0 20px 50px rgba(10, 18, 35, 0.16);
  --px-shadow-lg: 0 34px 90px rgba(8, 14, 28, 0.22);
  --px-page-max: 1520px;
  --px-page-gutter: 18px;
  --px-focus: 0 0 0 3px color-mix(in srgb, var(--px-accent) 24%, transparent);
  --px-bg: #091628;
  --px-bg-2: #0e1e34;
  --px-surface: rgba(10, 21, 40, 0.76);
  --px-surface-strong: rgba(12, 25, 48, 0.90);
  --px-surface-soft: rgba(255,255,255,0.045);
  --px-border: rgba(160, 188, 255, 0.16);
  --px-border-strong: rgba(160, 188, 255, 0.28);
  --px-text: #f7f9ff;
  --px-text-soft: #dde6fb;
  --px-muted: #a4b5d8;
  --px-muted-2: #7d8fb4;
  --px-accent: #6baeff;
  --px-accent-strong: #3a83e6;
  --px-accent-soft: rgba(107,174,255,.16);
  --px-ok: #41d79c;
  --px-warn: #f4c96d;
  --px-danger: #ff8ea5;
  --px-theme-chip: rgba(255,255,255,.06);
  --px-theme-chip-active: rgba(255,255,255,.12);
  --px-chat-user: color-mix(in srgb, var(--px-accent) 15%, transparent);
  --px-chat-user-border: color-mix(in srgb, var(--px-accent) 32%, transparent);
  --px-chat-bot: rgba(255,255,255,.06);
  --px-chat-bot-border: rgba(255,255,255,.10);
  --px-page-glow-1: color-mix(in srgb, var(--px-accent) 22%, transparent);
  --px-page-glow-2: rgba(84,212,142,.10);
}

/* Le thème Standard est la référence visuelle commune, identique à la landing. */
html[data-theme="standard"]{
  --px-bg: #f6f9fc;
  --px-bg-2: #eef5fb;
  --px-surface: rgba(255,255,255,0.86);
  --px-surface-strong: rgba(255,255,255,0.96);
  --px-surface-soft: #eef5fb;
  --px-border: #cdd9e8;
  --px-border-strong: #b7c9df;
  --px-text: #10233d;
  --px-text-soft: #203254;
  --px-muted: #54667f;
  --px-muted-2: #71839c;
  --px-accent: #075cc7;
  --px-accent-strong: #054fae;
  --px-accent-soft: rgba(7,92,199,.10);
  --px-theme-chip: rgba(16,35,61,.04);
  --px-theme-chip-active: rgba(7,92,199,.12);
  --px-chat-user: rgba(7,92,199,.10);
  --px-chat-user-border: rgba(7,92,199,.20);
  --px-chat-bot: rgba(16,35,61,.035);
  --px-chat-bot-border: rgba(16,35,61,.08);
  --px-page-glow-1: rgba(7,92,199,.12);
  --px-page-glow-2: rgba(15,163,163,.06);
  --px-shadow-sm: 0 12px 28px rgba(16,35,61,.08);
  --px-shadow-md: 0 24px 60px rgba(16,35,61,.12);
  --px-shadow-lg: 0 36px 90px rgba(16,35,61,.14);
}
html[data-theme="dark"]{
  --px-bg: #05070d;
  --px-bg-2: #0c1018;
  --px-surface: rgba(13, 16, 24, 0.88);
  --px-surface-strong: rgba(17, 20, 29, 0.96);
  --px-surface-soft: rgba(255,255,255,0.03);
  --px-border: rgba(255,255,255,0.10);
  --px-border-strong: rgba(255,255,255,0.20);
  --px-text: #f7f8fb;
  --px-text-soft: #e5e8f1;
  --px-muted: #aeb6cb;
  --px-muted-2: #858da2;
  --px-page-glow-1: color-mix(in srgb, var(--px-accent) 16%, transparent);
  --px-page-glow-2: rgba(255,255,255,0.03);
}

html[data-theme="light"]{
  --px-bg: #eff4fb;
  --px-bg-2: #f8fbff;
  --px-surface: rgba(255,255,255,0.86);
  --px-surface-strong: rgba(255,255,255,0.96);
  --px-surface-soft: rgba(7, 20, 39, 0.03);
  --px-border: rgba(18, 41, 78, 0.10);
  --px-border-strong: rgba(18, 41, 78, 0.18);
  --px-text: #13233f;
  --px-text-soft: #203254;
  --px-muted: #526583;
  --px-muted-2: #71839c;
  --px-accent-soft: rgba(58,131,230,.10);
  --px-chat-user: rgba(58,131,230,.10);
  --px-chat-user-border: rgba(58,131,230,.20);
  --px-chat-bot: rgba(19,35,63,.035);
  --px-chat-bot-border: rgba(19,35,63,.08);
  --px-theme-chip: rgba(19,35,63,.04);
  --px-theme-chip-active: rgba(58,131,230,.12);
  --px-page-glow-1: rgba(58,131,230,.12);
  --px-page-glow-2: rgba(95, 124, 255, .06);
  --px-shadow-sm: 0 12px 28px rgba(17, 31, 54, 0.08);
  --px-shadow-md: 0 24px 60px rgba(17, 31, 54, 0.12);
  --px-shadow-lg: 0 36px 90px rgba(17, 31, 54, 0.14);
}

html{
  color-scheme: dark;
  scroll-behavior: smooth;
}
html[data-theme="standard"],
html[data-theme="light"]{ color-scheme: light; }
*{ box-sizing: border-box; }
html, body{ min-height:100%; }
body{
  margin:0;
  font-family:var(--px-font-sans);
  color:var(--px-text);
  background:
    radial-gradient(1200px 720px at 14% -4%, var(--px-page-glow-1), transparent 58%),
    radial-gradient(900px 620px at 100% 16%, var(--px-page-glow-2), transparent 56%),
    linear-gradient(180deg, var(--px-bg) 0%, var(--px-bg-2) 100%);
}
body[data-brand="cm"]{ --px-accent:#66da63; --px-accent-strong:#3cb34d; --px-page-glow-1:rgba(102,218,99,.22); --px-page-glow-2:rgba(147,255,164,.08); }
body[data-brand="search"]{ --px-accent:#f3c449; --px-accent-strong:#de9d00; --px-page-glow-1:rgba(243,196,73,.20); --px-page-glow-2:rgba(255,178,44,.08); }
body[data-brand="plan"]{ --px-accent:#8e6cff; --px-accent-strong:#6f4dff; --px-page-glow-1:rgba(142,108,255,.22); --px-page-glow-2:rgba(189,162,255,.08); }

img{ max-width:100%; display:block; }
a{ color:var(--px-accent-strong); text-decoration:none; }
a:hover{ text-decoration:underline; }
button, input, select, textarea{ font:inherit; }
button{ cursor:pointer; }
button, input, select, textarea, summary, a{ -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline:2px solid transparent;
  box-shadow:var(--px-focus);
}
input, select, textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--px-border);
  background: color-mix(in srgb, var(--px-surface-strong) 82%, transparent);
  color:var(--px-text);
}
input::placeholder, textarea::placeholder{ color:var(--px-muted); }
textarea{ resize:vertical; }
select{
  appearance:none;
  -webkit-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--px-text) 50%),
    linear-gradient(135deg, var(--px-text) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:42px;
}
select option{ background:var(--px-bg-2); color:var(--px-text); }
button:disabled, input:disabled, select:disabled, textarea:disabled{
  opacity:.66;
  cursor:not-allowed;
}
hr{ border:0; border-top:1px solid var(--px-border); }

.page-shell,
.marketing-shell,
.auth-shell-page,
.console-shell{
  width:min(var(--px-page-max), calc(100vw - (var(--px-page-gutter) * 2)));
  margin:0 auto;
  padding:24px var(--px-page-gutter) 36px;
}
.is-hidden, [hidden]{ display:none !important; }
.visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.proxi-token-usage{
  width:100%;
  margin:0 0 16px;
  padding:14px;
  border:1px solid var(--px-border);
  border-radius:8px;
  background:color-mix(in srgb, var(--px-surface-strong) 76%, transparent);
  box-shadow:var(--px-shadow-sm);
}
.proxi-token-usage-shell{
  width:min(var(--page-max, var(--px-page-max)), 98vw);
  margin:0 auto;
  padding:14px 0 0;
}
.proxi-token-usage__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.proxi-token-usage__label,
.proxi-token-usage__status,
.proxi-token-usage__grid span{
  color:var(--px-muted);
  font-size:12px;
  line-height:1.35;
}
.proxi-token-usage__head strong{
  display:block;
  margin-top:2px;
  color:var(--px-text);
  font-size:16px;
  line-height:1.25;
}
.proxi-token-usage__status{
  flex:0 0 auto;
  padding:4px 8px;
  border:1px solid var(--px-border);
  border-radius:999px;
  background:var(--px-surface-soft);
}
.proxi-token-usage__meter{
  height:7px;
  margin:12px 0;
  overflow:hidden;
  border-radius:999px;
  background:var(--px-surface-soft);
}
.proxi-token-usage__meter span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--px-accent);
}
.proxi-token-usage[data-state="blocked"] .proxi-token-usage__meter span{
  background:var(--px-danger);
}
.proxi-token-usage[data-state="overage"] .proxi-token-usage__meter span{
  background:var(--px-warn);
}
.proxi-token-usage__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.proxi-token-usage__grid div{
  min-width:0;
  padding:10px;
  border:1px solid var(--px-border);
  border-radius:8px;
  background:var(--px-surface-soft);
}
.proxi-token-usage__grid strong{
  display:block;
  margin-top:3px;
  color:var(--px-text);
  font-size:15px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
@media (max-width: 760px){
  .proxi-token-usage__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px){
  .proxi-token-usage__head{
    flex-direction:column;
  }
  .proxi-token-usage__status{
    align-self:flex-start;
  }
}

.px-topbar{
  position:sticky;
  top:0;
  z-index:60;
  border-bottom:1px solid var(--px-border);
  background: color-mix(in srgb, var(--px-bg) 74%, transparent);
  backdrop-filter: blur(16px);
}
.px-topbar-inner{
  width:min(var(--px-page-max), calc(100vw - (var(--px-page-gutter) * 2)));
  margin:0 auto;
  padding:14px var(--px-page-gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.px-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.px-brand-mark{
  width:50px;
  height:50px;
  border-radius:18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--px-accent) 62%, white), var(--px-accent-strong));
  box-shadow:var(--px-shadow-md);
  display:grid;
  place-items:center;
  color:white;
  font-weight:900;
  font-size:22px;
}
.px-brand-copy h1,
.px-brand-copy h2,
.px-brand-copy h3{ margin:0; }
.px-brand-kicker{
  color:var(--px-muted);
  font-size:14px;
  margin-top:4px;
}
.theme-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:999px;
  border:1px solid var(--px-border);
  background:var(--px-surface);
  box-shadow:var(--px-shadow-sm);
}
.theme-switch__btn{
  min-height:36px;
  min-width:72px;
  padding:0 12px;
  border-radius:999px;
  border:0;
  background:transparent;
  color:var(--px-muted);
  font-weight:700;
}
.theme-switch__btn[aria-pressed="true"]{
  background:var(--px-theme-chip-active);
  color:var(--px-text);
}

.surface,
.card,
.panel,
.tool-panel,
.hero-card,
.marketing-card{
  background:var(--px-surface);
  border:1px solid var(--px-border);
  border-radius:var(--px-radius-lg);
  box-shadow:var(--px-shadow-md);
}
.card-head,
.panel-head,
.tool-panel-head,
.hero-card__head{
  padding:24px;
  border-bottom:1px solid var(--px-border);
  background:var(--px-surface-soft);
}
.card-body,
.panel-body,
.tool-panel-body,
.hero-card__body{ padding:24px; }
.page-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.page-title{
  margin:0;
  font-size:clamp(28px, 3vw, 46px);
  line-height:1.06;
  letter-spacing:-.03em;
}
.page-subtitle,
.sub,
.hint,
.small,
.muted{
  color:var(--px-muted);
  line-height:1.6;
}
.section-title{
  margin:0;
  font-size:22px;
  line-height:1.15;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--px-border);
  background:var(--px-surface-soft);
  color:var(--px-text-soft);
  font-size:13px;
  font-weight:700;
}
.pill,
.badge,
.chip,
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--px-border);
  background:var(--px-theme-chip);
  color:var(--px-text);
  font-size:12px;
  font-weight:700;
}
.badge.ok{ background:rgba(65,215,156,.10); border-color:rgba(65,215,156,.26); }
.badge.warn{ background:rgba(244,201,109,.12); border-color:rgba(244,201,109,.28); }
.badge.err{ background:rgba(255,142,165,.12); border-color:rgba(255,142,165,.28); }
.badge.info{ background:var(--px-accent-soft); border-color:color-mix(in srgb, var(--px-accent) 28%, transparent); }
.actions,
.inline-actions,
.toolbar-actions,
.result-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.btn,
.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid var(--px-border);
  background:var(--px-theme-chip);
  color:var(--px-text);
  text-decoration:none;
  font-weight:700;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover,
.btn-link:hover{
  transform:translateY(-1px);
  background:color-mix(in srgb, var(--px-theme-chip-active) 82%, transparent);
  text-decoration:none;
}
.btn.primary,
.btn-link.primary,
.btn.ok{
  border-color:color-mix(in srgb, var(--px-accent) 36%, transparent);
  background:linear-gradient(135deg, color-mix(in srgb, var(--px-accent) 38%, transparent), color-mix(in srgb, var(--px-accent-strong) 36%, transparent));
}
.btn.secondary{ background:var(--px-theme-chip); }
.btn.ghost{ background:transparent; border-style:dashed; }
.btn.err{ border-color:rgba(255,142,165,.30); background:rgba(255,142,165,.12); }
.btn.small{ min-height:38px; padding:0 12px; border-radius:12px; }

.state,
.status-box,
.alert,
.notice,
.empty-state{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--px-border);
  background:var(--px-surface-soft);
  color:var(--px-text-soft);
  line-height:1.55;
}
.state.ok,
.status-box[data-tone="success"],
.alert.success{ border-color:rgba(65,215,156,.28); background:rgba(65,215,156,.10); }
.state.warn,
.status-box[data-tone="warn"],
.alert.warn{ border-color:rgba(244,201,109,.26); background:rgba(244,201,109,.12); }
.state.err,
.status-box[data-tone="error"],
.alert.error{ border-color:rgba(255,142,165,.28); background:rgba(255,142,165,.12); }
.status-box[data-tone="info"],
.alert.info{ border-color:color-mix(in srgb, var(--px-accent) 26%, transparent); background:var(--px-accent-soft); }

body.modal-open{ overflow:hidden; }
.confirmation-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:grid;
  place-items:center;
  padding:24px;
}
.confirmation-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5, 12, 24, .68);
  backdrop-filter:blur(8px);
}
.confirmation-modal__panel{
  position:relative;
  width:min(560px, calc(100vw - 32px));
  max-height:min(720px, calc(100vh - 32px));
  overflow:auto;
  padding:24px;
  border:1px solid var(--px-border-strong);
  border-radius:22px;
  background:color-mix(in srgb, var(--px-surface-strong) 96%, transparent);
  color:var(--px-text);
  box-shadow:var(--px-shadow-lg);
}
.confirmation-modal__head{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}
.confirmation-modal__head .badge{
  justify-self:start;
}
.confirmation-modal__title{
  margin:0;
  font-size:24px;
  line-height:1.15;
  letter-spacing:0;
}
.confirmation-modal__body{
  margin:0 0 18px;
  color:var(--px-text-soft);
  font-size:15px;
  line-height:1.55;
}
.confirmation-modal__details{
  display:grid;
  gap:10px;
  margin:0;
}
.confirmation-modal__detail{
  display:grid;
  grid-template-columns:minmax(120px, .62fr) minmax(0, 1fr);
  gap:14px;
  align-items:start;
  padding:12px;
  border:1px solid var(--px-border);
  border-radius:14px;
  background:var(--px-surface-soft);
}
.confirmation-modal__detail dt{
  color:var(--px-muted);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
}
.confirmation-modal__detail dd{
  margin:0;
  color:var(--px-text);
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.confirmation-modal__notice{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid color-mix(in srgb, var(--px-accent) 30%, transparent);
  border-radius:14px;
  background:var(--px-accent-soft);
  color:var(--px-text-soft);
  line-height:1.5;
}
.confirmation-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
}

.grid-2,
.form-row,
.grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.grid-3{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }
.grid-4{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.stack{ display:flex; flex-direction:column; gap:14px; }
.list{ display:grid; gap:14px; }
.field{ display:grid; gap:8px; }
.field.full{ grid-column:1/-1; }
label,.label{ display:block; font-size:14px; font-weight:800; color:var(--px-text); }
.check{ display:flex; align-items:flex-start; gap:10px; color:var(--px-text-soft); }
.check input[type="checkbox"]{ width:20px; min-width:20px; height:20px; min-height:20px; margin-top:2px; accent-color:var(--px-accent-strong); }
.kv-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.kv,
.kv-item,
.summary-card,
.account,
.stack-item,
.feature-card,
.story-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--px-border);
  background:var(--px-surface-soft);
}
.kv-label,.summary-card .label,.meta-label{ color:var(--px-muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.kv-value,.summary-card .value{ font-size:20px; font-weight:800; color:var(--px-text); }
.kv-meta,.member-meta,.summary-card .meta{ color:var(--px-muted); font-size:13px; line-height:1.55; }
.table-wrap{ overflow:auto; border:1px solid var(--px-border); border-radius:18px; }
table{ width:100%; border-collapse:collapse; }
th, td{ padding:14px 12px; text-align:left; vertical-align:top; border-bottom:1px solid var(--px-border); }
th{ background:color-mix(in srgb, var(--px-surface-soft) 90%, transparent); color:var(--px-text-soft); font-size:13px; }
.member-name{ font-size:15px; font-weight:800; color:var(--px-text); }

.auth-hero{
  display:grid;
  grid-template-columns:minmax(320px, 1fr) minmax(320px, 460px);
  gap:22px;
  align-items:start;
}
.auth-card,
.auth-aside{
  background:var(--px-surface);
  border:1px solid var(--px-border);
  border-radius:28px;
  box-shadow:var(--px-shadow-lg);
  overflow:hidden;
}
.auth-card__head,
.auth-aside__head{ padding:28px 28px 20px; border-bottom:1px solid var(--px-border); }
.auth-card__body,
.auth-aside__body{ padding:28px; }
.auth-brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:14px;
}
.auth-brand__mark{
  width:58px;
  height:58px;
  border-radius:22px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--px-accent) 64%, white), var(--px-accent-strong));
  box-shadow:var(--px-shadow-md);
  display:grid;
  place-items:center;
  color:white;
  font-size:24px;
  font-weight:900;
}
.auth-brand__title{ font-size:18px; font-weight:900; }
.auth-brand__subtitle{ color:var(--px-muted); font-size:14px; margin-top:4px; }
.auth-feature-list{ display:grid; gap:12px; }
.auth-feature{ display:flex; gap:12px; align-items:flex-start; }
.auth-feature__dot{
  width:12px; height:12px; border-radius:999px; margin-top:7px;
  background:linear-gradient(135deg, var(--px-accent), var(--px-accent-strong));
  flex:0 0 auto;
}
.auth-feature strong{ display:block; margin-bottom:4px; }

.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:34px; align-items:center; }
.hero-copy .page-title{ max-width:11ch; }
.hero-lead{ font-size:18px; color:var(--px-muted); max-width:65ch; }
.hero-proof{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.hero-proof .pill{ background:var(--px-surface-soft); }
.hero-visual,
.mascot-card{
  position:relative;
  min-height:420px;
  border-radius:32px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--px-accent) 28%, transparent), transparent 28%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--px-accent-strong) 22%, transparent), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--px-surface-strong) 78%, transparent), color-mix(in srgb, var(--px-surface) 90%, transparent));
  border:1px solid var(--px-border);
  box-shadow:var(--px-shadow-lg);
}
.hero-visual__mascot{
  position:absolute;
  right:0;
  bottom:0;
  width:min(100%, 520px);
  object-fit:contain;
  filter:drop-shadow(0 28px 42px rgba(0,0,0,.18));
}
.hero-visual__content{
  position:absolute;
  inset:26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:20px;
}
.screen-card{ padding:16px; border-radius:22px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.screen-stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.screen-stat{ padding:14px; border-radius:18px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.screen-stat strong{ display:block; font-size:18px; }

.tool-shell{ padding-top:18px; }
.tool-workspace{ display:grid; grid-template-columns:minmax(320px, 1fr) minmax(560px, 2fr); gap:18px; align-items:stretch; }
.tool-panel{ min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.tool-panel-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.tool-panel-body{ padding:22px; min-height:0; flex:1; }
.tool-statusline{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; color:var(--px-muted); font-size:13px; }
.tool-statusdot{ width:10px; height:10px; border-radius:999px; background:var(--px-muted); }
.tool-statusdot.ok{ background:var(--px-ok); }
.tool-statusdot.warn{ background:var(--px-warn); }
.tool-statusdot.err{ background:var(--px-danger); }
.tool-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tool-card-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tool-card-tab{ min-height:38px; padding:0 14px; border-radius:999px; border:1px solid var(--px-border); background:transparent; color:var(--px-muted); font-weight:700; }
.tool-card-tab.active{ background:var(--px-accent-soft); color:var(--px-text); border-color:color-mix(in srgb, var(--px-accent) 26%, transparent); }
.tool-chat-zone,
.chat-shell{ height:100%; min-height:0; display:flex; flex-direction:column; gap:12px; }
.chat-messages{
  flex:1;
  min-height:320px;
  overflow:auto;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--px-border);
  background:color-mix(in srgb, var(--px-surface-strong) 78%, transparent);
}
.chat-row{ display:flex; margin:10px 0; }
.chat-row.user{ justify-content:flex-end; }
.chat-row.bot{ justify-content:flex-start; }
.chat-bubble{
  max-width:min(90%, 780px);
  padding:14px 16px;
  border-radius:20px;
  border:1px solid var(--px-chat-bot-border);
  background:var(--px-chat-bot);
  color:var(--px-text);
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.chat-bubble.user{ background:var(--px-chat-user); border-color:var(--px-chat-user-border); }
.chat-meta{ margin:4px 8px 0; color:var(--px-muted); font-size:12px; }
.chat-compose{ display:flex; gap:12px; align-items:flex-end; }
.chat-compose textarea{ min-height:112px; padding:16px 18px; border-radius:22px; }
.chat-compose button{ flex:0 0 auto; min-width:120px; }
.chat-helper{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--px-muted); font-size:13px; }
.chat-copy-feedback{ min-height:1.2em; color:var(--px-muted); }

.agent-loader{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
}
.agent-loader__avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  object-fit:cover;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  animation:pxMascotBob 1.8s ease-in-out infinite;
}
.agent-loader__body{ display:flex; flex-direction:column; gap:4px; }
.agent-loader__title{ font-weight:800; color:var(--px-text); }
.agent-loader__bar{
  width:170px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  overflow:hidden;
  position:relative;
}
.agent-loader__bar::after{
  content:"";
  position:absolute;
  inset:0;
  width:44%;
  border-radius:999px;
  background:linear-gradient(90deg, color-mix(in srgb, var(--px-accent) 24%, transparent), var(--px-accent), color-mix(in srgb, var(--px-accent-strong) 24%, transparent));
  animation:pxLoaderSweep 1.2s ease-in-out infinite;
}
.agent-loader__caption{ font-size:12px; color:var(--px-muted); }
@keyframes pxMascotBob{ 0%,100%{ transform:translateY(0) rotate(-2deg);} 50%{ transform:translateY(-5px) rotate(2deg);} }
@keyframes pxLoaderSweep{ 0%{ transform:translateX(-55%);} 50%{ transform:translateX(95%);} 100%{ transform:translateX(165%);} }

.preview-layout{ display:flex; flex-direction:column; gap:14px; height:100%; min-height:0; }
.preview-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.preview-surface{
  flex:1;
  min-height:320px;
  border-radius:24px;
  border:1px solid var(--px-border);
  background:color-mix(in srgb, var(--px-surface-strong) 82%, transparent);
  overflow:auto;
  padding:18px;
}
.preview-frame{
  width:100%;
  min-height:320px;
  border:1px solid var(--px-border);
  border-radius:20px;
  background:white;
}
.preview-empty{ min-height:260px; display:grid; place-items:center; text-align:center; }
.preview-empty__mascot{ width:min(180px, 44vw); margin:0 auto 12px; }
.preview-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.preview-card{ padding:16px; border-radius:20px; border:1px solid var(--px-border); background:var(--px-surface-soft); }

.console-grid,
.console-summary,
.console-members{
  display:grid;
  gap:18px;
}
.console-hero{ display:grid; grid-template-columns:1.2fr .8fr; gap:18px; }
.console-grid-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.console-grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.summary-cards{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.beta-monitor{ display:grid; gap:16px; }
.beta-monitor-card{
  display:grid;
  gap:16px;
  padding:16px;
  border:1px solid var(--px-border);
  border-radius:8px;
  background:var(--px-surface-soft);
}
.beta-monitor-card__header{
  display:grid;
  grid-template-columns:minmax(220px, 1fr) minmax(240px, .9fr);
  gap:16px;
  align-items:start;
  padding-bottom:14px;
  border-bottom:1px solid var(--px-border);
}
.beta-monitor-card__org,
.beta-monitor-card__owner{ min-width:0; }
.beta-monitor-card__content{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}
.beta-monitor-card__section{ min-width:0; }
.beta-monitor-card__section h4{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.2;
}
.beta-allocation-grid{ display:grid; gap:12px; }
.beta-allocation-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--px-border);
  border-radius:8px;
  background:color-mix(in srgb, var(--px-surface-strong) 42%, transparent);
}
.beta-allocation-card__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.beta-quota-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--px-text-soft);
}
.beta-quota-line strong{ color:var(--px-text); }
.beta-allocation-form{
  display:grid;
  grid-template-columns:minmax(96px, .55fr) minmax(180px, 1fr) auto;
  gap:10px;
  align-items:end;
}
.beta-allocation-form input{ min-height:42px; border-radius:8px; }
.beta-allocation-form .btn{ min-height:42px; border-radius:8px; white-space:nowrap; }
.beta-prompt-list{ display:grid; gap:10px; }
.beta-prompt-item{
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid var(--px-border);
  border-radius:8px;
  background:color-mix(in srgb, var(--px-surface-strong) 32%, transparent);
}
.beta-prompt-item__meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--px-muted);
  font-size:13px;
}
.beta-prompt-item__text{
  color:var(--px-text-soft);
  line-height:1.45;
  overflow-wrap:anywhere;
}

@media (max-width: 1180px){
  .tool-workspace,
  .auth-hero,
  .hero-grid,
  .console-hero,
  .console-grid-2,
  .console-grid-3,
  .grid-3,
  .grid-4,
  .summary-cards,
  .kv-grid,
  .preview-grid,
  .beta-monitor-card__header,
  .beta-monitor-card__content,
  .beta-allocation-form{ grid-template-columns:1fr; }
  .beta-allocation-form .btn{ width:100%; }
}
@media (max-width: 860px){
  .page-shell,
  .marketing-shell,
  .auth-shell-page,
  .console-shell,
  .px-topbar-inner{ width:min(100vw, calc(100vw - 20px)); padding-left:14px; padding-right:14px; }
  .grid, .form-row{ grid-template-columns:1fr; }
  .chat-compose{ flex-direction:column; align-items:stretch; }
  .chat-compose button{ width:100%; }
  .theme-switch__btn{ min-width:60px; }
}
@media (max-width: 640px){
  .card-head,
  .panel-head,
  .tool-panel-head,
  .hero-card__head,
  .card-body,
  .panel-body,
  .tool-panel-body,
  .hero-card__body,
  .auth-card__head,
  .auth-aside__head,
  .auth-card__body,
  .auth-aside__body{ padding:20px; }
  .page-title{ font-size:clamp(24px, 7vw, 34px); }
  .chat-messages{ min-height:280px; }
  .confirmation-modal{ padding:16px; }
  .confirmation-modal__panel{
    width:100%;
    padding:20px;
    border-radius:18px;
  }
  .confirmation-modal__detail{
    grid-template-columns:1fr;
    gap:4px;
  }
  .confirmation-modal__actions{
    flex-direction:column-reverse;
  }
  .confirmation-modal__actions .btn{
    width:100%;
  }
}


.px-notice-host{position:fixed;right:16px;bottom:16px;z-index:2000;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:min(92vw,420px)}
.px-notice{pointer-events:auto;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);box-shadow:var(--px-shadow);background:rgba(9,18,35,.96);color:var(--px-text);font-size:14px;line-height:1.45}
.px-notice.is-visible{opacity:1;transform:translateY(0)}
.px-notice--error{border-color:rgba(255,154,177,.42);background:rgba(70,18,28,.96);color:#fff1f4}
.px-notice--success{border-color:rgba(67,214,172,.4);background:rgba(7,59,44,.96);color:#e8fff8}
.px-notice--info{border-color:rgba(124,197,255,.4);background:rgba(11,37,69,.96);color:#eef6ff}

/* === Round targeted fix: organization console standard theming === */
html[data-theme="standard"] body[data-page-kind="organization-console"]{
  --px-bg: #f6f9fc;
  --px-bg-2: #eef5fb;
  --px-surface: rgba(255,255,255,0.86);
  --px-surface-strong: rgba(255,255,255,.97);
  --px-surface-soft: #eef5fb;
  --px-border: #cdd9e8;
  --px-border-strong: #b7c9df;
  --px-text: #10233d;
  --px-text-soft: #223a63;
  --px-muted: #54667f;
  --px-muted-2: #7a90b2;
  --px-accent: #075cc7;
  --px-accent-strong: #054fae;
  --px-accent-soft: rgba(7,92,199,.10);
  --px-theme-chip: rgba(17,36,69,.045);
  --px-theme-chip-active: rgba(7,92,199,.12);
  --px-chat-user: rgba(7,92,199,.10);
  --px-chat-user-border: rgba(7,92,199,.20);
  --px-chat-bot: rgba(17,36,69,.03);
  --px-chat-bot-border: rgba(17,36,69,.08);
  --px-page-glow-1: rgba(91,156,255,.16);
  --px-page-glow-2: rgba(47,114,215,.06);
  --px-header-surface: rgba(255,255,255,.92);
  --px-header-surface-2: rgba(255,255,255,.96);
  --px-header-surface-soft: rgba(17,36,69,.035);
  --px-header-border: rgba(18,55,108,.10);
  --px-header-text: #173056;
  --px-header-muted: #465f82;
  --px-header-accent: #2f72d7;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] .console-shell{
  padding-top: 28px;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] .surface,
html[data-theme="standard"] body[data-page-kind="organization-console"] .panel,
html[data-theme="standard"] body[data-page-kind="organization-console"] .card,
html[data-theme="standard"] body[data-page-kind="organization-console"] .notice,
html[data-theme="standard"] body[data-page-kind="organization-console"] .summary-card,
html[data-theme="standard"] body[data-page-kind="organization-console"] .kv,
html[data-theme="standard"] body[data-page-kind="organization-console"] .kv-item,
html[data-theme="standard"] body[data-page-kind="organization-console"] .table-wrap{
  box-shadow: var(--px-shadow-md);
}
html[data-theme="standard"] body[data-page-kind="organization-console"] .surface,
html[data-theme="standard"] body[data-page-kind="organization-console"] .panel,
html[data-theme="standard"] body[data-page-kind="organization-console"] .card{
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,249,255,.90));
}
html[data-theme="standard"] body[data-page-kind="organization-console"] .notice,
html[data-theme="standard"] body[data-page-kind="organization-console"] .summary-card,
html[data-theme="standard"] body[data-page-kind="organization-console"] .kv,
html[data-theme="standard"] body[data-page-kind="organization-console"] .kv-item{
  background: rgba(255,255,255,.72);
}
html[data-theme="standard"] body[data-page-kind="organization-console"] th{
  background: rgba(35,82,153,.06);
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header{
  background: color-mix(in srgb, var(--px-bg) 90%, transparent);
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__banner{
  background: rgba(255,255,255,.10);
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__brand-name,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__tool-link,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-name,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-org-pill,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-badge,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .theme-switch__btn,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-btn,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-logout-btn{
  color: var(--px-header-text) !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__tool-link,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-card,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .theme-switch,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-org-pill,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-org-select,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-badge,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-logout-btn,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-avatar,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__tool-link{
  background: var(--px-header-surface) !important;
  border-color: var(--px-header-border) !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-email,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-org-label,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-pill code,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .theme-switch__btn:not([aria-pressed="true"]){
  color: var(--px-header-muted) !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__tool-link:hover,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-btn:hover,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-logout-btn:hover{
  background: var(--px-header-surface-2) !important;
  color: #102746 !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header__tool-link[aria-current="page"],
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .theme-switch__btn[aria-pressed="true"],
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-btn--primary,
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-badge--internal{
  background: rgba(47,114,215,.14) !important;
  border-color: rgba(47,114,215,.24) !important;
  color: var(--px-header-text) !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-logout-btn{
  background: rgba(255,99,132,.08) !important;
  border-color: rgba(222,108,132,.22) !important;
}
html[data-theme="standard"] body[data-page-kind="organization-console"] #appHeader .px-header .auth-avatar{
  background: rgba(47,114,215,.14) !important;
  color: #173056 !important;
}

/* === Organization console layout and member access UI === */
body[data-page-kind="organization-console"] .console-shell{
  width:min(1720px, calc(100% - 48px));
}
body[data-page-kind="organization-console"] .console-grid{
  gap:18px;
}
body[data-page-kind="organization-console"] .surface,
body[data-page-kind="organization-console"] .panel,
body[data-page-kind="organization-console"] .product-card,
body[data-page-kind="organization-console"] .summary-card,
body[data-page-kind="organization-console"] .kv,
body[data-page-kind="organization-console"] .table-wrap,
body[data-page-kind="organization-console"] label{
  min-width:0;
  max-width:100%;
}
body[data-page-kind="organization-console"] .product-card{
  background:var(--px-surface);
  border:1px solid var(--px-border);
  border-radius:22px;
  box-shadow:var(--px-shadow-md);
  overflow:hidden;
  display:grid;
  align-content:start;
  gap:18px;
  padding:22px;
}
body[data-page-kind="organization-console"] .product-card .stack{
  gap:16px;
}
body[data-page-kind="organization-console"] .product-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--px-border);
}
body[data-page-kind="organization-console"] .product-title{
  margin:0;
  color:var(--px-text);
  font-size:20px;
  line-height:1.2;
}
body[data-page-kind="organization-console"] .product-section{
  border:1px solid var(--px-border);
  border-radius:18px;
  background:var(--px-surface-soft);
  padding:18px;
  display:grid;
  gap:14px;
  min-width:0;
}
body[data-page-kind="organization-console"] .product-section--subscription{
  border-color:color-mix(in srgb, var(--px-accent) 28%, var(--px-border));
  background:color-mix(in srgb, var(--px-accent) 7%, var(--px-surface-strong));
  box-shadow:0 16px 38px color-mix(in srgb, var(--px-accent) 8%, transparent);
}
body[data-page-kind="organization-console"] .product-section--usage{
  background:color-mix(in srgb, var(--px-surface-soft) 76%, transparent);
}
body[data-page-kind="organization-console"] .product-section__title{
  font-size:13px;
  font-weight:800;
  color:var(--px-text);
  margin:0;
}
body[data-page-kind="organization-console"] .product-metrics{
  display:grid;
  gap:10px;
}
body[data-page-kind="organization-console"] .product-metric{
  display:grid;
  grid-template-columns:minmax(160px, .9fr) minmax(0, 1.1fr);
  gap:16px;
  align-items:start;
  line-height:1.45;
}
body[data-page-kind="organization-console"] .product-metric span{
  min-width:0;
  overflow-wrap:anywhere;
}
body[data-page-kind="organization-console"] .product-card .actions{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
  margin-top:8px;
  padding-top:4px;
}
body[data-page-kind="organization-console"] .product-card .btn{
  min-width:0;
  white-space:normal;
}
body[data-page-kind="organization-console"] .payment-method-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
body[data-page-kind="organization-console"] .payment-method-summary > div:first-child{
  min-width:220px;
}
body[data-page-kind="organization-console"] .page-intro{
  align-items:flex-start;
}
body[data-page-kind="organization-console"] .page-title{
  letter-spacing:0;
}
body[data-page-kind="organization-console"] .product-card--disabled{
  border-style:dashed;
  background:color-mix(in srgb, var(--px-surface-soft) 78%, transparent);
}
body[data-page-kind="organization-console"] .product-card--disabled .btn,
body[data-page-kind="organization-console"] .product-card--disabled select{
  cursor:not-allowed;
}
body[data-page-kind="organization-console"] .offer-select{
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:46px;
}
body[data-page-kind="organization-console"] .offer-current{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:end;
  padding:14px;
  border:1px solid var(--px-border);
  border-radius:14px;
  background:var(--px-surface-strong);
}
body[data-page-kind="organization-console"] .offer-current strong{
  font-size:18px;
  line-height:1.25;
}
body[data-page-kind="organization-console"] .offer-price{
  font-size:24px;
  font-weight:900;
  color:var(--px-text);
  white-space:nowrap;
}
body[data-page-kind="organization-console"] .offer-details{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
body[data-page-kind="organization-console"] .offer-detail,
body[data-page-kind="organization-console"] .usage-chip{
  padding:14px;
  border:1px solid var(--px-border);
  border-radius:14px;
  background:var(--px-surface-strong);
  min-width:0;
}
body[data-page-kind="organization-console"] .product-section label{
  display:grid;
  gap:8px;
  margin-top:2px;
}
body[data-page-kind="organization-console"] .offer-detail span,
body[data-page-kind="organization-console"] .usage-chip span{
  display:block;
  color:var(--px-text-soft);
  font-size:12px;
  line-height:1.35;
  margin-bottom:4px;
}
body[data-page-kind="organization-console"] .offer-detail strong,
body[data-page-kind="organization-console"] .usage-chip strong{
  display:block;
  color:var(--px-text);
  font-size:15px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body[data-page-kind="organization-console"] .usage-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}
body[data-page-kind="organization-console"] .product-card--disabled .offer-current,
body[data-page-kind="organization-console"] .product-card--disabled .offer-detail,
body[data-page-kind="organization-console"] .product-card--disabled .usage-chip{
  background:color-mix(in srgb, var(--px-surface-soft) 72%, transparent);
}
body[data-page-kind="organization-console"] .console-full{
  grid-column:1 / -1;
}
body[data-page-kind="organization-console"] #subscriptionItemsGrid{
  grid-template-columns:repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  align-items:stretch;
}
body[data-page-kind="organization-console"] .console-compact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
body[data-page-kind="organization-console"] .console-section{
  padding:24px;
}
body[data-page-kind="organization-console"] .section-intro{
  margin-bottom:14px;
}
body[data-page-kind="organization-console"] .section-title-spaced{
  margin-bottom:12px;
}
body[data-page-kind="organization-console"] .spaced-top{
  margin-top:14px;
}
body[data-page-kind="organization-console"] .wordpress-connection-status-card{
  margin:0;
  border-radius:14px;
}
body[data-page-kind="organization-console"] .wordpress-connection-form{
  display:grid;
  gap:16px;
}
body[data-page-kind="organization-console"] .wordpress-connection-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}
body[data-page-kind="organization-console"] .wordpress-connection-field{
  position:relative;
  gap:9px;
}
body[data-page-kind="organization-console"] .wordpress-connection-field--wide{
  grid-column:1 / -1;
}
body[data-page-kind="organization-console"] .wordpress-field-label{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  width:max-content;
  max-width:100%;
  min-width:0;
}
body[data-page-kind="organization-console"] .wordpress-field-label label{
  flex:0 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
}
body[data-page-kind="organization-console"] .wordpress-help{
  display:inline-flex;
  position:static;
  flex:0 0 auto;
}
body[data-page-kind="organization-console"] .wordpress-help-trigger{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  padding:0;
  border-radius:999px;
  border:1px solid var(--px-border-strong);
  background:transparent;
  color:var(--px-muted);
  font-size:11px;
  font-weight:800;
  line-height:1;
}
body[data-page-kind="organization-console"] .wordpress-help-trigger:hover,
body[data-page-kind="organization-console"] .wordpress-help-trigger:focus-visible{
  background:var(--px-accent-soft);
  border-color:color-mix(in srgb, var(--px-accent) 46%, transparent);
  color:var(--px-text);
}
body[data-page-kind="organization-console"] .wordpress-help-bubble{
  position:absolute;
  left:0;
  top:28px;
  z-index:20;
  width:min(420px, 100%);
  padding:10px 12px;
  border:1px solid var(--px-border-strong);
  border-radius:12px;
  background:color-mix(in srgb, var(--px-surface-strong) 96%, #000 4%);
  color:var(--px-text-soft);
  box-shadow:var(--px-shadow-md);
  font-size:12px;
  font-weight:650;
  line-height:1.45;
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events:none;
}
body[data-page-kind="organization-console"] .wordpress-help-bubble::after{
  content:"";
  position:absolute;
  left:38px;
  top:-6px;
  width:10px;
  height:10px;
  border-left:1px solid var(--px-border-strong);
  border-top:1px solid var(--px-border-strong);
  background:inherit;
  transform:rotate(45deg);
}
body[data-page-kind="organization-console"] .wordpress-help-bubble--wide{
  width:min(520px, 100%);
}
body[data-page-kind="organization-console"] .wordpress-help:hover .wordpress-help-bubble,
body[data-page-kind="organization-console"] .wordpress-help:focus-within .wordpress-help-bubble{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
body[data-page-kind="organization-console"] .wordpress-connection-actions{
  justify-content:flex-end;
}
body[data-page-kind="organization-console"] .members-access-section{
  padding:24px;
  display:grid;
  gap:18px;
}
body[data-page-kind="organization-console"] .members-access-head,
body[data-page-kind="organization-console"] .members-block-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
body[data-page-kind="organization-console"] .members-access-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body[data-page-kind="organization-console"] .members-notice{
  margin:0;
}
body[data-page-kind="organization-console"] .invite-panel,
body[data-page-kind="organization-console"] .members-block{
  border:1px solid var(--px-border);
  border-radius:18px;
  background:color-mix(in srgb, var(--px-surface-strong) 72%, transparent);
  overflow:hidden;
}
body[data-page-kind="organization-console"] .members-block{
  padding:18px;
  display:grid;
  gap:14px;
}
body[data-page-kind="organization-console"] .invite-form-grid{
  display:grid;
  grid-template-columns:minmax(260px, 1.2fr) minmax(220px, .8fr);
  gap:14px;
}
body[data-page-kind="organization-console"] .user-access-form{
  display:grid;
  gap:18px;
}
body[data-page-kind="organization-console"] .product-access-fieldset{
  margin:0;
  padding:0;
  border:0;
  min-width:0;
}
body[data-page-kind="organization-console"] .product-access-fieldset legend{
  margin:0 0 10px;
  color:var(--px-text);
  font-weight:800;
}
body[data-page-kind="organization-console"] .product-access-list{
  display:grid;
  gap:10px;
}
body[data-page-kind="organization-console"] .check-option{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--px-border);
  border-radius:14px;
  background:var(--px-surface-strong);
  min-width:0;
  min-height:100%;
}
body[data-page-kind="organization-console"] .check-option.is-disabled{
  background:color-mix(in srgb, var(--px-surface-soft) 76%, transparent);
}
body[data-page-kind="organization-console"] .check-option input{
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px;
  margin-top:2px;
  accent-color:var(--px-accent-strong);
}
body[data-page-kind="organization-console"] .check-option span{
  min-width:0;
  overflow-wrap:anywhere;
}
body[data-page-kind="organization-console"] .field-error{
  min-height:18px;
  color:var(--px-danger);
  font-size:13px;
  line-height:1.35;
}
body[data-page-kind="organization-console"] input[aria-invalid="true"]{
  border-color:color-mix(in srgb, var(--px-danger) 58%, var(--px-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--px-danger) 16%, transparent);
}
body[data-page-kind="organization-console"] .form-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:2px;
}
body[data-page-kind="organization-console"] .member-table-wrap,
body[data-page-kind="organization-console"] .table-wrap{
  display:block;
  overflow-x:auto;
}
body[data-page-kind="organization-console"] table{
  table-layout:fixed;
  min-width:640px;
}
body[data-page-kind="organization-console"] th,
body[data-page-kind="organization-console"] td{
  overflow-wrap:anywhere;
}
body[data-page-kind="organization-console"] .members-table{
  min-width:980px;
}
body[data-page-kind="organization-console"] .members-table th:nth-child(1){ width:25%; }
body[data-page-kind="organization-console"] .members-table th:nth-child(2){ width:16%; }
body[data-page-kind="organization-console"] .members-table th:nth-child(3){ width:27%; }
body[data-page-kind="organization-console"] .members-table th:nth-child(4){ width:18%; }
body[data-page-kind="organization-console"] .members-table th:nth-child(5){ width:14%; }
body[data-page-kind="organization-console"] .member-row td{
  vertical-align:top;
}
body[data-page-kind="organization-console"] .member-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
}
body[data-page-kind="organization-console"] .btn-compact{
  min-height:40px;
  justify-content:center;
}
body[data-page-kind="organization-console"] .role-badge,
body[data-page-kind="organization-console"] .status-badge,
body[data-page-kind="organization-console"] .product-access-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--px-border);
  background:var(--px-surface-soft);
  color:var(--px-text);
  font-size:12px;
  font-weight:750;
  line-height:1.2;
}
body[data-page-kind="organization-console"] .role-badge{
  border-color:color-mix(in srgb, var(--px-accent) 28%, var(--px-border));
  background:color-mix(in srgb, var(--px-accent) 10%, var(--px-surface-strong));
}
body[data-page-kind="organization-console"] .status-badge.ok,
body[data-page-kind="organization-console"] .product-access-badge.is-enabled{
  border-color:color-mix(in srgb, var(--px-ok) 38%, var(--px-border));
  background:color-mix(in srgb, var(--px-ok) 14%, var(--px-surface-strong));
}
body[data-page-kind="organization-console"] .status-badge.warn{
  border-color:color-mix(in srgb, var(--px-warn) 42%, var(--px-border));
  background:color-mix(in srgb, var(--px-warn) 15%, var(--px-surface-strong));
}
body[data-page-kind="organization-console"] .status-badge.err{
  border-color:color-mix(in srgb, var(--px-danger) 42%, var(--px-border));
  background:color-mix(in srgb, var(--px-danger) 13%, var(--px-surface-strong));
}
body[data-page-kind="organization-console"] .product-access-badge.is-disabled{
  color:var(--px-text-soft);
}
body[data-page-kind="organization-console"] .product-access-badge.is-unavailable{
  border-style:dashed;
  color:var(--px-muted);
}
body[data-page-kind="organization-console"] .product-access-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body[data-page-kind="organization-console"] .member-status-stack{
  display:grid;
  gap:8px;
}
body[data-page-kind="organization-console"] .role-note{
  color:var(--px-text);
  font-size:13px;
  font-weight:750;
}
body[data-page-kind="organization-console"] .member-access-row td{
  padding-top:0;
  background:color-mix(in srgb, var(--px-surface-soft) 70%, transparent);
}
body[data-page-kind="organization-console"] .member-access-panel{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--px-border);
  border-radius:16px;
  background:var(--px-surface-strong);
}
body[data-page-kind="organization-console"] .member-access-panel h4{
  margin:0;
  color:var(--px-text);
}
body[data-page-kind="organization-console"] .member-access-panel p{
  margin:4px 0 0;
  color:var(--px-muted);
}
body[data-page-kind="organization-console"] .access-list{
  display:grid;
  gap:10px;
  min-width:0;
}
body[data-page-kind="organization-console"] .access-line{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--px-border);
  border-radius:14px;
  background:var(--px-surface-soft);
}
body[data-page-kind="organization-console"] .access-main{
  min-width:0;
}
body[data-page-kind="organization-console"] .access-action{
  display:flex;
  justify-content:flex-end;
}
body[data-page-kind="organization-console"] .empty-state{
  padding:18px;
  border:1px dashed var(--px-border);
  border-radius:16px;
  background:var(--px-surface-soft);
  color:var(--px-text-soft);
}
body[data-page-kind="organization-console"] .invite-email{
  font-weight:800;
  color:var(--px-text);
  line-height:1.35;
}
body[data-page-kind="organization-console"] .result-box{
  border-style:solid;
  white-space:normal;
}
body[data-page-kind="organization-console"] .result-box code{
  word-break:break-all;
}
body[data-page-kind="organization-console"] .token-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
@media (max-width: 1180px){
  body[data-page-kind="organization-console"] .users-admin-layout,
  body[data-page-kind="organization-console"] .invite-form-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 860px){
  body[data-page-kind="organization-console"] .console-shell{
    width:min(100% - 20px, 1720px);
  }
  body[data-page-kind="organization-console"] .page-intro .actions,
  body[data-page-kind="organization-console"] .btn{
    width:100%;
  }
  body[data-page-kind="organization-console"] .kv-grid,
  body[data-page-kind="organization-console"] .form-row,
  body[data-page-kind="organization-console"] .wordpress-connection-grid,
  body[data-page-kind="organization-console"] .grid-3,
  body[data-page-kind="organization-console"] .product-metric,
  body[data-page-kind="organization-console"] .offer-current,
  body[data-page-kind="organization-console"] .offer-details,
  body[data-page-kind="organization-console"] .usage-metrics,
  body[data-page-kind="organization-console"] #subscriptionItemsGrid{
    grid-template-columns:1fr;
  }
  body[data-page-kind="organization-console"] .members-access-actions,
  body[data-page-kind="organization-console"] .form-actions{
    width:100%;
    justify-content:stretch;
  }
  body[data-page-kind="organization-console"] .members-table,
  body[data-page-kind="organization-console"] .members-table thead,
  body[data-page-kind="organization-console"] .members-table tbody,
  body[data-page-kind="organization-console"] .members-table tr,
  body[data-page-kind="organization-console"] .members-table th,
  body[data-page-kind="organization-console"] .members-table td{
    display:block;
    min-width:0;
    width:100%;
  }
  body[data-page-kind="organization-console"] .members-table{
    min-width:0;
  }
  body[data-page-kind="organization-console"] .members-table thead{
    display:none;
  }
  body[data-page-kind="organization-console"] .member-row,
  body[data-page-kind="organization-console"] .invite-row{
    margin:0 0 12px;
    border:1px solid var(--px-border);
    border-radius:16px;
    overflow:hidden;
    background:var(--px-surface-strong);
  }
  body[data-page-kind="organization-console"] .members-table td{
    border-bottom:1px solid var(--px-border);
  }
  body[data-page-kind="organization-console"] .members-table td:last-child{
    border-bottom:0;
  }
  body[data-page-kind="organization-console"] .member-access-row{
    margin:-8px 0 12px;
  }
  body[data-page-kind="organization-console"] .member-access-row td{
    border:0;
    background:transparent;
  }
  body[data-page-kind="organization-console"] .access-line{
    grid-template-columns:1fr;
  }
  body[data-page-kind="organization-console"] .access-action{
    justify-content:stretch;
  }
}

@media (min-width: 981px){
  body[data-brand="search"] #appHeader .px-header__right,
  body[data-brand="plan"] #appHeader .px-header__right,
  body[data-brand="cm"] #appHeader .px-header__right{
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  body[data-brand="search"] #appHeader .px-header__toolbar-slot,
  body[data-brand="plan"] #appHeader .px-header__toolbar-slot,
  body[data-brand="cm"] #appHeader .px-header__toolbar-slot{
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
  }
  body[data-brand="search"] #appHeader .px-header__toolbar-group,
  body[data-brand="plan"] #appHeader .px-header__toolbar-group,
  body[data-brand="cm"] #appHeader .px-header__toolbar-group{
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
  }
  body[data-brand="search"] #appHeader .auth-shell,
  body[data-brand="plan"] #appHeader .auth-shell,
  body[data-brand="cm"] #appHeader .auth-shell{
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
  }
  body[data-brand="search"] #appHeader .px-header .auth-card,
  body[data-brand="plan"] #appHeader .px-header .auth-card,
  body[data-brand="cm"] #appHeader .px-header .auth-card,
  body[data-brand="search"] #appHeader .px-header .auth-meta,
  body[data-brand="plan"] #appHeader .px-header .auth-meta,
  body[data-brand="cm"] #appHeader .px-header .auth-meta,
  body[data-brand="search"] #appHeader .px-header .auth-org,
  body[data-brand="plan"] #appHeader .px-header .auth-org,
  body[data-brand="cm"] #appHeader .px-header .auth-org{
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  body[data-brand="search"] #appHeader .px-header .auth-org-label,
  body[data-brand="plan"] #appHeader .px-header .auth-org-label,
  body[data-brand="cm"] #appHeader .px-header .auth-org-label,
  body[data-brand="search"] #appHeader .px-header .auth-org-pill,
  body[data-brand="plan"] #appHeader .px-header .auth-org-pill,
  body[data-brand="cm"] #appHeader .px-header .auth-org-pill,
  body[data-brand="search"] #appHeader .px-header .auth-org-select,
  body[data-brand="plan"] #appHeader .px-header .auth-org-select,
  body[data-brand="cm"] #appHeader .px-header .auth-org-select{
    white-space: nowrap !important;
  }
}
