/* Po uses the existing Khan green/gold materials and remains a nonmodal companion. */
button.nx-po { background:transparent; border:0; padding:0; line-height:1.1; font-family:inherit; }
html:not(.bb-on) body:not(.nx-focus) #nx-po { display:block !important; }
button.nx-po:focus-visible { outline:3px solid var(--ui-gold,#c9a227); outline-offset:6px; border-radius:16px; }
.po-panel { position:fixed; z-index:1500; right:20px; bottom:98px; width:min(420px,calc(100vw - 32px)); max-height:min(720px,calc(100dvh - 125px)); display:flex; flex-direction:column; color:var(--ui-ink,#213a29); background:var(--ui-paper,#fffdf5); border:1px solid var(--ui-line,#d3d9cc); border-radius:24px; box-shadow:0 25px 80px -25px rgba(4,24,12,.5),inset 0 1px 0 rgba(236,220,165,.2); overflow:hidden; font:400 13px/1.65 var(--sans,system-ui); }
.po-head { display:flex; align-items:center; gap:12px; padding:19px 19px 15px; background:linear-gradient(120deg,#183e2c,#183327); color:#fff7da; }
.po-avatar { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; font-size:32px; border:1px solid rgba(232,206,130,.3); border-radius:14px; background:rgba(255,255,255,.06); }
html[data-design="signature"] .po-head h2,.po-head h2 { color:#fff7da !important; margin:0; font:600 17px/1.4 var(--sans,system-ui) !important; letter-spacing:-.025em; }
.po-head p { margin:4px 0 0; color:#c1d0bb; font-size:10px; line-height:1.55; }
.po-close { margin-left:auto; flex:0 0 38px; width:38px; height:38px; border-radius:11px; color:#efe6c9; border:1px solid rgba(225,212,162,.2); background:rgba(255,255,255,.04); font:400 25px/1 system-ui; cursor:pointer; }
.po-tabs { display:flex; gap:5px; padding:11px 15px 0; }
.po-tabs button { flex:1; min-height:39px; border:1px solid transparent; border-radius:10px; background:var(--ui-soft,#f1f3e9); color:var(--ui-muted,#5e6f61); font:600 11px var(--sans,system-ui); cursor:pointer; }
.po-tabs button[aria-pressed="true"] { color:var(--ui-heading,#183e2c); border-color:var(--ui-gold,#c9a227); background:var(--ui-paper,#fffdf5); }
.po-tabs button:disabled { opacity:.45; cursor:default; }
.po-context { padding:10px 18px; color:var(--ui-muted,#5e6f61); font-size:10px; border-bottom:1px solid var(--ui-line,#d3d9cc); }
.po-messages { min-height:80px; overflow:auto; overscroll-behavior:contain; padding:16px; flex:1 1 auto; scrollbar-width:thin; }
.po-message { padding:15px; border:1px solid var(--ui-line,#d3d9cc); background:var(--ui-soft,#f1f3e9); border-radius:15px 15px 15px 4px; overflow-wrap:anywhere; }
.po-message+.po-message { margin-top:12px; }
.po-message.is-user { margin-left:30px; background:var(--ui-paper,#fffdf5); border-radius:15px 15px 4px 15px; }
.po-source { display:block; color:var(--ui-muted,#5e6f61); font-size:9px; letter-spacing:.05em; margin-bottom:6px; }
html[data-design="signature"] .po-message h3,.po-message h3 { color:var(--ui-heading,#183e2c) !important; font:600 14px/1.5 var(--sans,system-ui) !important; margin:0 0 9px; letter-spacing:-.015em; }
.po-message p { margin:0; color:var(--ui-ink,#213a29); font-size:13px; line-height:1.85; white-space:pre-wrap; }
.po-message p+p { margin-top:12px; }
.po-message .po-note { color:var(--ui-muted,#5e6f61); font-size:10px; border-top:1px solid var(--ui-line,#d3d9cc); padding-top:10px; margin-top:12px; }
.po-step,.po-actions :is(button,a) { display:inline-flex; align-items:center; justify-content:center; min-height:35px; padding:7px 10px; border:1px solid var(--ui-line,#d3d9cc); border-radius:9px; background:var(--ui-paper,#fffdf5); color:var(--ui-brand,#1b5e20); font:600 10px/1.5 var(--sans,system-ui); text-decoration:none; cursor:pointer; }
.po-step { margin-top:12px; }
.po-actions { display:flex; flex-wrap:wrap; gap:7px; padding:0 16px 12px; }
.po-actions button:disabled,.po-send:disabled { opacity:.5; cursor:wait; }
.po-form { display:flex; align-items:end; gap:9px; padding:12px 16px; border-top:1px solid var(--ui-line,#d3d9cc); }
html[data-design="signature"] .po-form textarea,.po-form textarea { min-width:0; flex:1; min-height:54px; max-height:130px; resize:vertical; width:100%; border:1px solid var(--ui-line,#d3d9cc) !important; background:var(--ui-soft,#f1f3e9) !important; color:var(--ui-ink,#213a29) !important; border-radius:11px; padding:10px 11px; font:400 12px/1.6 var(--sans,system-ui); box-sizing:border-box; }
.po-send { flex:0 0 auto; min-height:44px; padding:10px 12px; border:1px solid #b89b45; border-radius:11px; background:linear-gradient(120deg,#e3cf88,#c9a852); color:#203b22; font:700 11px/1.5 var(--sans,system-ui); cursor:pointer; }
.po-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 17px 11px; color:var(--ui-muted,#5e6f61); font-size:9px; line-height:1.6; }
.po-foot button { background:none; border:0; color:var(--ui-brand,#1b5e20); font:600 9px/1.5 var(--sans,system-ui); cursor:pointer; padding:5px 0; }
.po-status { padding:0 17px; font-size:11px; color:var(--ui-heading,#183e2c); }
.po-status:not(:empty) { padding-bottom:14px; }
.po-panel[aria-busy="true"] .po-avatar { animation:po-breathe 1.4s ease-in-out infinite; }
@keyframes po-breathe { 50%{transform:translateY(-2px);opacity:.75} }
.po-panel :is(button,a,textarea):focus-visible,.po-help :is(button,input):focus-visible { outline:3px solid var(--ui-gold,#c9a227) !important; outline-offset:3px; }
.po-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.po-question-button { display:block; margin:14px 0 0; min-height:40px; padding:9px 15px; border:1px solid var(--ui-line,#c9d6c5); border-radius:11px; background:var(--ui-soft,#f2f5e9); color:var(--ui-brand,#1b5e20); font:600 12px/1.5 var(--sans,system-ui); cursor:pointer; }
.bb-qbar>.po-question-button { margin:0 0 0 auto; font:600 11px/1.5 system-ui; }
.po-help { max-width:1160px; margin:0 auto; color:var(--ui-ink); }
.po-help-hero { display:flex; align-items:center; gap:27px; padding:34px 38px; border:1px solid #63734b; border-radius:24px; background:radial-gradient(ellipse at 90% 10%,rgba(201,162,39,.17),transparent 55%),linear-gradient(125deg,#193e2b,#102b1e); color:#fbf4d9; margin-bottom:25px; box-shadow:inset 0 1px rgba(244,222,155,.2),0 18px 35px -25px #173e24; }
.po-help-hero>span { font-size:67px; transform:rotate(-7deg); filter:drop-shadow(5px 10px 6px rgba(0,0,0,.25)); }
.po-eyebrow { font:600 10px/1.5 monospace; letter-spacing:.15em; color:#d9c17d; margin-bottom:12px; }
html[data-design="signature"] .po-help-hero h1 { font:600 clamp(26px,3vw,38px)/1.2 var(--sans) !important; color:#fbf4d9 !important; margin:0 0 12px; letter-spacing:-.04em; }
.po-help-hero p { margin:0; font-size:13px; color:#c4d0bd; line-height:1.8; max-width:65ch; }
.po-help-search { display:grid; gap:9px; color:var(--ui-muted); font-size:12px; margin:24px 0; }
html[data-design="signature"] .po-help-search input { border:1px solid var(--ui-line) !important; background:var(--ui-paper) !important; color:var(--ui-ink) !important; border-radius:12px; min-height:46px; padding:12px 15px; width:100%; box-sizing:border-box; font:400 14px/1.5 var(--sans); }
.po-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.po-guide-card { display:flex; flex-direction:column; gap:13px; padding:23px; border-radius:18px; background:var(--ui-paper); border:1px solid var(--ui-line); color:var(--ui-ink); text-align:left; font-family:var(--sans); cursor:pointer; box-shadow:inset 0 1px var(--sp-glint); }
.po-guide-card strong { font:600 17px/1.5 var(--sans); color:var(--ui-heading); letter-spacing:-.02em; }
.po-guide-card span { font-size:11px; line-height:1.85; color:var(--ui-muted); flex:1; }
.po-guide-card small { font-size:10px; color:var(--ui-brand); font-weight:600; }
.po-guide-card[hidden] { display:none; }
.po-search-empty { color:var(--ui-muted); font-size:13px; }
@media(min-width:1100px){
  html:not(.bb-on):not(.ksat-fill) body.po-open #root .app-shell>.main { width:calc(100% - 460px) !important; max-width:none !important; margin-left:0 !important; margin-right:460px !important; padding-left:24px !important; padding-right:24px !important; }
  body.po-open .runner { grid-template-columns:minmax(0,1fr) !important; }
  body.po-open .runner .q-side { position:static; }
  body.po-open .po-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px){.po-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.po-panel{right:10px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 20px);max-height:calc(100dvh - 95px - env(safe-area-inset-bottom));border-radius:21px}.po-head{padding:15px}.po-close{width:44px;height:44px;flex-basis:44px}.po-tabs button,.po-actions :is(button,a),.po-step,.po-question-button{min-height:44px}.po-form{padding:11px 13px;gap:7px}.po-form textarea,html[data-design="signature"] .po-form textarea{font-size:16px}.po-help-hero{padding:26px 23px;gap:18px}.po-help-hero>span{font-size:44px}.po-guide-grid{grid-template-columns:1fr}.po-guide-card{padding:21px}.po-foot button{min-height:35px}}
@media(prefers-reduced-motion:reduce){.po-panel .po-avatar{animation:none!important}}
