/* v449-pyblox: shared hub look for the pyblox.com login platform.
   Tokens match the live pi.osibytes.com logged-in shell (30 Nov 2026).
   Light theme is new (the hub itself is dark-only today). */
:root, [data-theme="dark"] {
  --bg: #070b12;
  --bg2: #0d1420;
  --panel: #111a27;
  --panel2: #172233;
  --border: #223147;
  --border2: #2d4060;
  --text: #eaf0f7;
  --muted: #8d9cb0;
  --blue: #2f8fe0;
  --green: #2ecc71;
  --accent: #3aa0e8;
  --warn: #e6b35a;
  --err: #f07178;
  --ok: #3ecf8e;
  --ink-on-accent: #04121c;
  --header-bg: rgba(7, 11, 18, .92);
  --side-bg: rgba(13, 20, 32, .7);
  --grad-glow:
    radial-gradient(900px 500px at 0% -10%, #14304a 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #0f3a2a 0%, transparent 50%);
  --r: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f6fa;
  --bg2: #e8eef5;
  --panel: #ffffff;
  --panel2: #eef3f8;
  --border: #d3deea;
  --border2: #c1cedc;
  --text: #122033;
  --muted: #5b6b7c;
  --blue: #1b7ad0;
  --green: #1fa85c;
  --accent: #1b7ad0;
  --warn: #b8860b;
  --err: #c4474e;
  --ok: #1fa85c;
  --ink-on-accent: #ffffff;
  --header-bg: rgba(243, 246, 250, .92);
  --side-bg: rgba(255, 255, 255, .86);
  --grad-glow:
    radial-gradient(900px 500px at 0% -10%, #d7e8f6 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #d8f3e6 0%, transparent 50%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.pbx-hub {
  font-family: var(--sans);
  color: var(--text);
  background: var(--grad-glow), var(--bg);
  font-size: 16px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.pbx-hub header.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.logo img, .logo svg { height: 38px; width: auto; border-radius: 8px; display: block; }
.spacer { flex: 1; }
.iconbtn { min-width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; font-size: 18px; color: inherit; text-decoration: none; }
.iconbtn:hover { border-color: var(--accent); }
.me { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); border: 0; display: grid; place-items: center; font-weight: 800; color: #04121c; text-decoration: none; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; }
.live.on { background: var(--ok); }
.shell { display: flex; align-items: flex-start; min-height: calc(100dvh - 69px); }
.shell main { flex: 1; min-width: 0; max-width: 1100px; margin: 0 auto; padding: 18px 16px 90px; }
aside.side { position: sticky; top: 69px; width: 264px; flex: 0 0 264px; height: calc(100dvh - 69px); overflow-y: auto; border-right: 1px solid var(--border); background: var(--side-bg); padding: 14px 10px 30px; }
.side .sadd { width: 100%; height: 48px; border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--blue), var(--green)); color: #04121c; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.side .sadd span { font-size: 22px; line-height: 1; }
.side .sh { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 8px 6px; display: flex; justify-content: space-between; }
.side .sempty { font-size: 13px; color: var(--muted); padding: 4px 10px; }
.sitem { display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 12px; padding: 6px 6px 6px 8px; border: 1px solid transparent; cursor: pointer; min-height: 46px; color: inherit; text-decoration: none; background: none; text-align: left; }
.sitem:hover { background: var(--panel2); }
.sitem.on { background: #13304b; border-color: var(--accent); }
[data-theme="light"] .sitem.on { background: #d7e9f8; }
.sitem .se { font-size: 24px; width: 30px; text-align: center; flex: 0 0 30px; line-height: 1; }
.sitem .sn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 15px; }
.sitem .st { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border2); color: var(--muted); text-transform: capitalize; flex: 0 0 auto; }
.sitem .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 8px; }
.sitem .sd.paused { background: var(--warn); }
.sitem .sd.pend { background: var(--muted); }
.sitem .sg { border: 0; background: none; font-size: 15px; width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; opacity: .75; color: inherit; }
.sitem .sg:hover { background: var(--panel); opacity: 1; }
.menubtn { display: none; }
.sideback { display: none; }
h1 { font-size: 26px; margin: 6px 0 14px; }
h2 { font-size: 19px; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.toprow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 16px; }
.toprow h1 { margin: 0; }
.addbig { height: 60px; padding: 0 28px; border-radius: 18px; border: 0; background: linear-gradient(135deg, var(--blue), var(--green)); color: #04121c; font-weight: 800; font-size: 19px; box-shadow: 0 8px 30px rgba(46,204,113,.18); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.addbig span { font-size: 28px; line-height: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tab { height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font-weight: 600; color: inherit; }
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.tab .n { opacity: .7; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 16px 16px; text-align: center; cursor: pointer; transition: transform .12s, border-color .12s; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.emo { font-size: 56px; line-height: 1; }
.card .name { font-weight: 700; font-size: 18px; word-break: break-word; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--border2); color: var(--muted); }
.chip.team { color: #1fa85c; border-color: #2c6b4c; }
[data-theme="dark"] .chip.team { color: #bfe9d2; }
.chip.warn { color: var(--warn); border-color: #6b5426; }
.gear { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; font-size: 20px; color: inherit; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--border2); background: var(--panel2); font-weight: 600; color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.btn.big { height: 56px; font-size: 18px; padding: 0 28px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 250px); min-height: 380px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; word-wrap: break-word; }
.m.u { align-self: flex-end; background: var(--accent); color: var(--ink-on-accent); border-bottom-right-radius: 4px; }
.m.b { align-self: flex-start; background: var(--panel2); border-bottom-left-radius: 4px; }
.m.s { align-self: center; background: none; color: var(--muted); font-size: 13px; text-align: center; }
.m .ts, .m .foot { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.m .preview-link { display: inline-flex; margin-top: 8px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); align-items: center; }
.composer input[type="text"] { flex: 1; min-height: 52px; border-radius: 14px; border: 1px solid var(--border2); background: var(--bg2); padding: 0 16px; min-width: 0; }
.send { width: 56px; height: 52px; border-radius: 14px; border: 0; background: var(--accent); color: var(--ink-on-accent); font-size: 22px; }
.iconfile { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border2); background: var(--bg2); display: grid; place-items: center; }
.banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.banner b { font-size: 16px; }
.stabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 6px 0 4px; }
.stab { height: 48px; padding: 0 16px; border: 0; background: none; border-bottom: 3px solid transparent; font-weight: 600; color: var(--muted); }
.stab.on { color: var(--text); border-bottom-color: var(--accent); }
.back { height: 44px; border: 0; background: none; color: var(--accent); font-weight: 600; padding: 0; font-size: 16px; text-decoration: none; }
.li { display: flex; align-items: center; gap: 12px; background: var(--panel2); border-radius: 12px; padding: 12px 14px; min-height: 56px; border: 0; width: 100%; text-align: left; color: inherit; text-decoration: none; }
.li:hover { outline: 1px solid var(--border2); }
.li .grow { flex: 1; min-width: 0; }
.li .sub { color: var(--muted); font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 8px; }
label.f { display: block; font-weight: 600; margin: 18px 0 8px; }
input.t, select.t, textarea.t { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--border2); background: var(--bg2); padding: 12px 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Login card (hub-aligned, SSO kept) */
body.pbx-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; font-family: var(--sans); color: var(--text); background: var(--grad-glow), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px 24px; box-shadow: 0 16px 48px rgba(0,0,0,.45); text-align: center; }
.login-card h1 { margin: 0 0 4px; font-size: 1.2rem; }
.login-card .sub { color: var(--muted); font-size: .82rem; margin: 0 0 18px; }
.login-card .primary { width: 100%; padding: 11px 14px; border-radius: 8px; border: none; background: linear-gradient(135deg, var(--blue), var(--green)); color: #04121c; font-weight: 800; font-size: .95rem; text-decoration: none; display: block; }
.login-card .ghost { display: inline-block; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.login-card .foot { margin-top: 16px; font-size: .78rem; color: var(--muted); }
.login-card a { color: var(--accent); }

/* Preview drawer / modal */
.pbx-preview-root[hidden] { display: none !important; }
.pbx-preview-root { position: fixed; inset: 0; z-index: 40; display: grid; justify-items: end; background: rgba(0,0,0,.55); }
.pbx-preview { width: min(560px, 100%); height: 100%; background: var(--panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; box-shadow: -16px 0 40px rgba(0,0,0,.35); }
.pbx-preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pbx-preview-head h2 { margin: 0; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbx-preview-meta { font-size: 12px; color: var(--muted); }
.pbx-preview-body { flex: 1; overflow: auto; padding: 14px; background: var(--bg2); }
.pbx-preview-body img, .pbx-preview-body iframe, .pbx-preview-body video { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); }
.pbx-preview-body iframe { width: 100%; min-height: 60vh; border: 0; background: #fff; }
.pbx-preview-body pre { margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.45; }
.pbx-preview-body table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; font-size: 14px; }
.pbx-preview-body th, .pbx-preview-body td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.pbx-preview-body th { background: var(--panel2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pbx-preview-md { line-height: 1.5; }
.pbx-preview-md h1, .pbx-preview-md h2, .pbx-preview-md h3 { margin: 0 0 10px; }
.pbx-preview-err { color: var(--err); padding: 12px; }
@media (max-width: 799px) {
  .menubtn { display: inline-flex; }
  aside.side { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; z-index: 20; width: 286px; max-width: 86vw; background: var(--bg2); transform: translateX(-102%); transition: transform .2s ease; padding-top: max(14px, env(safe-area-inset-top)); box-shadow: 0 0 40px rgba(0,0,0,.5); }
  body.sideopen aside.side { transform: none; }
  body.sideopen .sideback { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 19; }
  .pbx-preview { width: 100%; height: 100%; border-left: 0; border-radius: 0; }
  .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .m { max-width: 90%; }
}

/* v451-pyblox: Network Glance, bot Advanced/Analytics tabs, add-on gate (no live billing) */
.example-tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:2px 8px; border-radius:999px; background:#3a2f12; color:var(--warn); margin-left:6px; vertical-align:middle; }
[data-theme="light"] .example-tag { background:#f6e7b8; color:#7a5b00; }
.bot-tabs { display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--border); margin:4px 0 16px; }
.bot-tabs a, .bot-tabs button { height:48px; padding:0 16px; border:0; background:none; border-bottom:3px solid transparent; font-weight:600; color:var(--muted); text-decoration:none; display:inline-flex; align-items:center; }
.bot-tabs a.on, .bot-tabs button.on { color:var(--text); border-bottom-color:var(--accent); }
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.tool { background:var(--panel); border:1px solid var(--border); border-radius:var(--r); padding:16px; display:flex; flex-direction:column; gap:8px; min-height:150px; }
.tool h3 { margin:0; font-size:16px; }
.tool .out { font-family:var(--mono); font-size:12px; background:var(--bg2); border-radius:10px; padding:8px 10px; color:var(--muted); min-height:40px; }
.confirm { margin-top:14px; background:var(--panel); border:1px solid var(--warn); border-radius:var(--r); padding:14px 16px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.audit { margin-top:18px; }
.audit .li { cursor:default; }
.metrics-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin:8px 0 18px; }
.metric { background:var(--panel); border:1px solid var(--border); border-radius:var(--r); padding:16px; }
.metric b { display:block; font-size:26px; margin-top:4px; }
.bars { display:flex; align-items:flex-end; gap:10px; height:140px; padding:8px 4px 0; }
.bars .col { flex:1; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; min-width:0; }
.bars .col i { display:block; width:100%; max-width:48px; border-radius:8px 8px 0 0; background:linear-gradient(180deg,var(--blue),var(--green)); }
.bars .col span { font-size:11px; color:var(--muted); text-align:center; }
.glance { display:grid; grid-template-columns:1.2fr .8fr; gap:16px; }
@media (max-width:900px){ .glance { grid-template-columns:1fr; } }
.netmap { background:var(--panel); border:1px solid var(--border); border-radius:var(--r); padding:16px; min-height:320px; position:relative; }
.netnode { position:absolute; background:var(--panel2); border:1px solid var(--border2); border-radius:14px; padding:8px 12px; font-weight:600; font-size:13px; text-align:center; min-width:110px; }
.netnode .sub { display:block; font-weight:500; font-size:11px; color:var(--muted); }
.netnode.on { border-color:var(--ok); }
.netnode.warn { border-color:var(--warn); }
.devlist .li { cursor:default; }
.lock-wrap { position:relative; }
.lock-wrap .lock-body { filter:blur(3px); pointer-events:none; user-select:none; }
.lock-card { position:absolute; inset:24px 16px auto; margin:auto; max-width:420px; background:var(--panel); border:1px solid var(--border2); border-radius:20px; padding:22px; text-align:center; box-shadow:0 16px 48px rgba(0,0,0,.45); z-index:3; }
.staff-pill { display:inline-block; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:3px 8px; border-radius:999px; background:rgba(46,204,113,.15); color:var(--ok); border:1px solid rgba(46,204,113,.35); }
.price { font-weight:800; }

/* v615-pyblox: look and feel aligned with the pi.osibytes.com hub (read 1 Dec 2026).
   Shared chrome only. Mode kit classes (.pbx-modes, .pbx-plan, .pbx-step, .pbx-confirm) are
   neutral so the same CSS block can be pasted into the .226 hub for agentic mode. */
.pbx-hub [hidden] { display: none !important; }
.pbx-hub header.top { min-height: 69px; }
.pbx-hub .logo span { display: none; }
.pbx-hub .logo img { height: 38px; width: auto; max-width: 60vw; }
aside.side { width: 296px; flex: 0 0 296px; padding: 14px 10px 30px; }
.side .sadd + .sadd { margin-top: 8px; }
.side .sadd.alt { background: linear-gradient(135deg, var(--blue), var(--green)); }
[data-theme="light"] [data-theme="light"] .shell main { max-width: none; margin: 0; padding: 14px 20px 90px; }
@media (min-width: 800px) and (max-width: 1199px) { aside.side { width: 236px; flex-basis: 236px; } }
@media (min-width: 1800px) { aside.side { width: 320px; flex-basis: 320px; } }
.pbx-planbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; padding: 12px 16px; font-size: 14px; }
.pbx-planbox .tier-tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid #2c6b4c; background: transparent; }
.pbx-hub .tabs, .pbx-hub .bot-tabs { overflow-x: auto; flex-wrap: wrap; }
.pbx-hub h1 { font-size: 24px; }
.pbx-hub .create-box, .pbx-hub .chat-box, .pbx-hub .proj { background: var(--panel); border-color: var(--border); border-radius: var(--r); }
.pbx-hub .create-box input, .pbx-hub .create-box select, .pbx-hub .create-box textarea, .pbx-hub .chat-box input, .pbx-hub .chat-box select, .pbx-hub .chat-box textarea { min-height: 48px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; color: var(--text); max-width: 100%; }
.pbx-hub .create-box textarea, .pbx-hub .chat-box textarea { min-height: 96px; }
.pbx-hub .create-box button, .pbx-hub .chat-box button, .pbx-hub main form button { min-height: 48px; border-radius: 14px; }
.pbx-hub .btn.btn-primary { background: linear-gradient(135deg, var(--blue), var(--green)); border: 0; color: var(--ink-on-accent); font-weight: 800; height: auto; min-height: 48px; padding: 8px 20px; border-radius: 14px; }
.pbx-hub .btn.btn-ghost { background: var(--panel2); border: 1px solid var(--border2); color: inherit; height: auto; min-height: 44px; padding: 8px 16px; border-radius: 14px; }
.pbx-hub #pbxdName, .pbx-hub #pbxdScope { min-height: 48px; border-radius: 12px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text); padding: 0 14px; }
.pbx-hub #pbxdCmd { font-family: var(--mono); font-size: 12px; background: var(--bg2); border: 1px solid var(--border); }
.pbx-hub main img, .pbx-hub main video, .pbx-hub main pre, .pbx-hub main table { max-width: 100%; }
.pbx-hub main pre { overflow-x: auto; }
/* phone: one column, nothing wider than the screen */
@media (max-width: 799px) {
  html, body.pbx-hub { overflow-x: hidden; max-width: 100%; }
  .shell { display: block; }
  .shell main { padding: 12px 14px 90px; width: 100%; max-width: 100%; }
  .pbx-hub main *, .pbx-hub main *::before, .pbx-hub main *::after { min-width: 0; }
  .pbx-hub main input, .pbx-hub main select, .pbx-hub main textarea, .pbx-hub main button, .pbx-hub main .btn { max-width: 100%; }
  .pbx-hub main button, .pbx-hub main .btn { white-space: normal; height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
  .pbx-hub main [style*="grid-template-columns"], .pbx-hub main .row2, .pbx-hub main .grid2 { grid-template-columns: 1fr !important; }
  .pbx-hub main .row, .pbx-hub main .toprow { flex-wrap: wrap; }
  .pbx-hub main table { display: block; overflow-x: auto; }
  .pbx-hub main .proj { flex-direction: column; align-items: stretch; }
  .pbx-hub .stabs, .pbx-hub .bot-tabs { gap: 2px; }
  .pbx-hub .stab, .pbx-hub .bot-tabs a, .pbx-hub .bot-tabs button { padding: 0 12px; }
  .pbx-planbox { font-size: 13px; }
}
/* Mode kit: shared by pyblox.com and .226 (agentic). Advanced and Preview exist on pyblox.com only. */
.pbx-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); background: var(--panel); border-radius: 999px; max-width: 100%; }
.pbx-modes > button, .pbx-modes > a { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.pbx-modes > .on, .pbx-modes > [aria-pressed="true"] { background: var(--accent); color: var(--ink-on-accent); }
/* Staff/design view only: add class pbx-scope-labels to <body> to see which items are pyblox.com-only. Customers never see these labels. */
.pbx-scope-labels [data-only="pyblox"]::after { content: "pyblox.com only"; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid #6b5426; color: var(--warn); white-space: nowrap; }
.pbx-plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.pbx-plan > h3 { margin: 0 0 4px; font-size: 16px; }
.pbx-plan > .hint { margin: 0 0 10px; }
.pbx-steps { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pbx-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid transparent; }
.pbx-step .n { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg2); border: 1px solid var(--border2); }
.pbx-step .body { flex: 1; min-width: 0; }
.pbx-step .body b { display: block; font-size: 15px; }
.pbx-step .body .sub { font-size: 13px; color: var(--muted); word-break: break-word; }
.pbx-step .state { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border2); color: var(--muted); white-space: nowrap; }
.pbx-step[data-state="running"] { border-color: var(--accent); }
.pbx-step[data-state="running"] .state { color: var(--accent); border-color: var(--accent); }
.pbx-step[data-state="needs-ok"] { border-color: var(--warn); }
.pbx-step[data-state="needs-ok"] .state { color: var(--warn); border-color: var(--warn); }
.pbx-step[data-state="done"] .state { color: var(--ok); border-color: var(--ok); }
.pbx-step[data-state="failed"] { border-color: var(--err); }
.pbx-step[data-state="failed"] .state { color: var(--err); border-color: var(--err); }
.pbx-confirm { background: var(--panel); border: 1px solid var(--warn); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.pbx-confirm > b { display: block; font-size: 16px; margin-bottom: 6px; }
.pbx-confirm dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 8px 0 12px; font-size: 14px; }
.pbx-confirm dt { color: var(--muted); }
.pbx-confirm dd { margin: 0; word-break: break-word; }
.pbx-confirm .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pbx-confirm .actions button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border2); background: var(--panel2); font-weight: 600; }
.pbx-confirm .actions .approve { background: #1f7a46; border-color: #2a9; color: #fff; }
.pbx-confirm .actions .deny { background: #7a2330; border-color: #a33; color: #fff; }
.pbx-confirm .foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pbx-plan code, .pbx-confirm code { font-family: var(--mono); font-size: .92em; }
@media (max-width: 799px) { .pbx-modes { border-radius: 20px; width: 100%; } .pbx-modes > button, .pbx-modes > a { flex: 1 1 auto; justify-content: center; padding: 0 12px; } .pbx-confirm dl { grid-template-columns: 70px 1fr; } }
/* login: same logo-on-top card as the hub login */
body.pbx-login .login-card h1::before { content: ""; display: block; height: 44px; margin: 0 auto 14px; background: url(/pyblox.jpg) center / contain no-repeat; }
