/* pak-106 Pearl mobile (pmb-): phone and tablet behaviour for Pearl AI and PRSXA. Same file in both apps, loads last.
 * No new look: only how things move, where they sit and that they stay on screen. */

/* ---- switching chats: the rebuilt list is shown once it is complete (see pearl-mobile.js) */
html.pmb body #messages.pmb-settle{opacity:0 !important;transition:none !important}
html.pmb body #messages.pmb-in{transition:opacity .16s ease-out}
@media (prefers-reduced-motion: reduce) { html.pmb body #messages.pmb-in{transition:none} }

/* ---- sidebar: slides with transform (no pause, no layout work per frame), backdrop fades */
@media (max-width: 820px) {
  html.pmb body #app #sidebar{margin-left:0 !important;transform:translate3d(0,0,0);will-change:transform;touch-action:pan-y}
  html.pmb-ready body #app #sidebar{transition:transform .3s cubic-bezier(.32,.72,0,1),box-shadow .3s ease}
  html.pmb body #app #sidebar.collapsed{transform:translate3d(-104%,0,0);box-shadow:none}
  html.pmb body #sidebar-backdrop{display:block !important;opacity:0;visibility:hidden;touch-action:none}
  html.pmb body #sidebar-backdrop.show{opacity:1;visibility:visible}
  html.pmb-ready body #sidebar-backdrop{transition:opacity .28s ease,visibility 0s linear .28s}
  html.pmb-ready body #sidebar-backdrop.show{transition:opacity .28s ease,visibility 0s}
  html.pmb body #app #sidebar.pmb-drag,html.pmb body #sidebar-backdrop.pmb-drag{transition:none !important}
}
@media (prefers-reduced-motion: reduce) {
  html.pmb body #app #sidebar,html.pmb body #sidebar-backdrop{transition:none !important}
}

/* ---- toasts sit just above the message box on phones (never on top of its buttons) */
@media (max-width: 820px) {
  html.pmb body .pal-toast,html.pmb body .pnx-say,html.pmb body .pxs-toast,html.pmb body .pxc-say,html.pmb body #toast.toast{bottom:var(--pmb-toast-b,120px) !important;top:auto !important}
  /* while the drawer is open the message goes to the top, clear of the drawer's own buttons */
  html.pmb.pmb-sb-open body .pal-toast,html.pmb.pmb-sb-open body .pnx-say,html.pmb.pmb-sb-open body .pxs-toast,html.pmb.pmb-sb-open body .pxc-say,html.pmb.pmb-sb-open body #toast.toast{bottom:auto !important;top:calc(14px + env(safe-area-inset-top)) !important;z-index:2147483000}
}

/* ---- canvas top bar on phones: title shrinks, tools tighten, close button always on screen */
@media (max-width: 560px) {
  html.pmb body .pcp-ov .pcp-top{gap:4px;padding-left:10px;padding-right:6px;flex-wrap:nowrap}
  html.pmb body .pcp-ov .pcp-top .pcp-logo,html.pmb body .pcp-ov .pcp-top .pcp-sep,html.pmb body .pcp-ov .pcp-top .pcp-grow{display:none}
  html.pmb body .pcp-ov .pcp-top .pcp-tt{flex:1 1 0 !important;min-width:0 !important;max-width:none}
  html.pmb body .pcp-ov .pcp-top .pcp-ib{width:32px;height:32px}
  html.pmb body .pcp-ov .pcp-top .pcp-ver .pcp-sm{width:24px;height:26px}
  html.pmb body .pcp-ov .pcp-top .pcp-ver .pcp-vt{font-size:11.5px;padding:0 1px}
  html.pmb body .pcp-ov .pcp-top .pcp-mode button{padding:0 8px}
  html.pmb body .pcp-ov .pcp-top .pcp-mode button span{display:none}
  html.pmb body .pcp-ov .pcp-top .pcp-x{order:99;flex:none;margin-left:2px}
}

/* ---- Code Studio top bar on small phones: close stays visible */
@media (max-width: 400px) {
  html.pmb body .pcs-ov .pcs-top,html.pmb body .pcs-ov .pcs-head{gap:4px}
  html.pmb body .pcs-ov .pcs-x{flex:none}
}

/* ---- pop-ups never wider than the screen */
@media (max-width: 560px) {
  html.pmb body .pcp-qam,html.pmb body .pcp-dl{max-width:calc(100vw - 16px)}
}

/* ---- canvas top bar at any width (phones, tablets, a narrow side panel): it tightens step by step until the close
 *      button fits; the script adds pmb-t1..pmb-t5 only while the close button would be cut off */
html.pmb body .pcp-ov .pcp-top .pcp-x{flex:none}
html.pmb body .pcp-ov .pcp-top.pmb-t1 .pcp-logo,html.pmb body .pcp-ov .pcp-top.pmb-t1 .pcp-sep{display:none}
html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-mode button span,html.pmb body .pcp-ov .pcp-top.pmb-t2 .ppub-bt,html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-qal,
html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-vl,html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-vo{display:none !important}
html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-vs{display:inline !important}
html.pmb body .pcp-ov .pcp-top.pmb-t2 .pcp-mode button{padding:0 9px}
html.pmb body .pcp-ov .pcp-top.pmb-t3 .pcp-dev{display:none !important}
html.pmb body .pcp-ov .pcp-top.pmb-t4 .pcp-tt{flex:1 1 0 !important;min-width:0 !important}
html.pmb body .pcp-ov .pcp-top.pmb-t5 .pcp-maxb,html.pmb body .pcp-ov .pcp-top.pmb-t5 [data-act="reload"]{display:none !important}
html.pmb body .pcp-ov .pcp-top.pmb-t6 .pcp-vt{display:none !important}
html.pmb body .pcp-ov .pcp-top.pmb-t6{gap:2px}
html.pmb body .pcp-ov .pcp-top.pmb-t6 .pcp-ib{width:30px}
html.pmb body .pcp-ov .pcp-top.pmb-t6 .pcp-mode button{padding:0 6px}

/* ---- touch tablets held sideways (821-1366px, no mouse): the sidebar slides over the chat like on phones */
@media (min-width: 821px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  html.pmb body #app #sidebar{position:fixed;top:0;left:0;bottom:0;z-index:150;width:300px;min-width:0;max-width:82vw;box-shadow:var(--app-shadow-lg);
    margin-left:0 !important;transform:translate3d(0,0,0);will-change:transform;touch-action:pan-y}
  html.pmb-ready body #app #sidebar{transition:transform .3s cubic-bezier(.32,.72,0,1),box-shadow .3s ease}
  html.pmb body #app #sidebar.collapsed{transform:translate3d(-104%,0,0);box-shadow:none}
  html.pmb body #sidebar-backdrop{display:block !important;opacity:0;visibility:hidden;touch-action:none}
  html.pmb body #sidebar-backdrop.show{opacity:1;visibility:visible}
  html.pmb-ready body #sidebar-backdrop{transition:opacity .28s ease,visibility 0s linear .28s}
  html.pmb-ready body #sidebar-backdrop.show{transition:opacity .28s ease,visibility 0s}
  html.pmb body #app #sidebar.pmb-drag,html.pmb body #sidebar-backdrop.pmb-drag{transition:none !important}
}

/* ---- welcome P and its spinning ring: always centred on each other, at every size and in every mode
 *      (same proportions as before: picture 84% of the circle, ring on the outer edge) */
html.pmb body .pal-hero-orb img{inset:7.9% !important;width:84.2% !important;height:84.2% !important}
html.pmb body .pal-hero-orb span{inset:0 !important;-webkit-mask:radial-gradient(closest-side,transparent 81.5%,#000 84%) !important;mask:radial-gradient(closest-side,transparent 81.5%,#000 84%) !important}

/* ---- first load: the loader's picture and words disappear at once and only its background fades,
 *      so the two P marks are never seen on top of each other */
html.pmb body #boot-loader.hidden{transition:opacity .2s ease-out,visibility 0s linear .2s !important}
html.pmb body #boot-loader.hidden > *,html.pmb body #boot-loader.hidden::before,html.pmb body #boot-loader.hidden::after{opacity:0 !important;transition:none !important;animation:none !important}

/* ---- top bar when the chat area is narrow (side panel open on desktop, small laptops, tablets): the tools fold into
 *      the More menu exactly as on phones (pearl-mobile.js adds pmb-tbfold only while they would not fit); the menu
 *      button never shrinks and the chat title is shown in full or not at all, never as a sliver */
html.pmb body #app #sidebar-toggle{flex:none}
html.pmb.pmb-tbfold body #app #topbar-actions > :not(.ppl-more){display:none !important}
html.pmb.pmb-tbfold body #app #topbar-rename-btn{display:none !important}
html.pmb.pmb-tbfold body #app #topbar-actions > .ppl-unfold{display:inline-flex !important;position:fixed;margin:0;opacity:0;pointer-events:none;z-index:1}
html.pmb.pmb-tbfold body #app #topbar-actions .ppl-more{display:inline-flex;align-items:center;justify-content:center;width:38px;height:36px;padding:0}
html.pmb.pmb-tbnotitle body #app #topbar-title{display:none}

/* ---- phone pop-up sheets (plans, usage, settings and the rest): the last lines never sit on the screen edge, the browser bar or the
 *      home bar — clear space below the content, and the sheet sized to the part of the screen that is really visible */
@media (max-width: 820px) {
  html.pmb body .modal-overlay > .modal{max-height:92vh;max-height:92dvh}
  html.pmb body .modal-overlay > .modal .modal-body{padding-bottom:calc(32px + env(safe-area-inset-bottom)) !important;scroll-padding-bottom:32px}
}

/* pak-109b-orb: the welcome mark stays perfectly round at any browser zoom or short window. The welcome block no longer
 * squeezes the mark to fit a low screen: it keeps its natural size and the chat area scrolls instead (top always reachable). */
html body #messages > #empty-state{height:auto;min-height:100%;padding-top:12px;padding-bottom:12px;box-sizing:border-box}
html body #empty-state .pal-hero-orb{flex:none;aspect-ratio:1/1}

/* pak-140-scroll: every dialog scrolls inside itself on every screen (phone, tablet, laptop, short or zoomed window).
 * The title row stays put and the body scrolls. In a project the Save / Delete row stays in reach while files are added;
 * it looks exactly as before and only shows a thin top line while there is more to scroll. */
.modal-overlay > .modal{display:flex;flex-direction:column;max-height:86vh;max-height:min(86vh,calc(100dvh - 32px))}
.modal-overlay > .modal > .modal-header{flex:none}
.modal-overlay > .modal > .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#pxa-proj-modal .pxf-list{max-height:none;overflow:visible}
html body #pxa-proj-modal.modal-overlay > .modal > .modal-body:has(> .pxa-pm-btns:last-child){padding-bottom:0 !important}
#pxa-proj-modal .modal-body > .pxa-pm-btns:last-child{position:sticky;bottom:0;z-index:2;padding:0 0 24px;background:var(--app-bg,#fff);box-shadow:0 -10px 0 var(--app-bg,#fff)}
.ppj-d .ppj-body:has(> .ppj-btns:last-child){padding-bottom:0}
.ppj-d .ppj-body > .ppj-btns:last-child{position:sticky;bottom:0;z-index:2;padding:0 0 18px;background:var(--app-bg,#fff);box-shadow:0 -10px 0 var(--app-bg,#fff)}
#pxa-proj-modal .modal-body > .pxa-pm-btns:last-child,.ppj-d .ppj-body > .ppj-btns:last-child{animation:pak140-edge linear both;animation-timeline:scroll(nearest block)}
@keyframes pak140-edge{0%,97%{box-shadow:0 -10px 0 var(--app-bg,#fff),0 -11px 0 var(--app-border,#e5e7eb)}100%{box-shadow:0 -10px 0 var(--app-bg,#fff),0 -11px 0 transparent}}
@media (max-width: 820px){html.pmb body #pxa-proj-modal .modal-body > .pxa-pm-btns:last-child{padding-bottom:calc(32px + env(safe-area-inset-bottom))}}
.plb-list{min-height:min(200px,28vh)}
.pag-switch{position:relative}

/* pak-150-wl: "Make PRSXA / Pearl AI yours" setup window sized like the other dialogs (Project, Memory, Publish):
 * 16px title, 13px labels, 40px fields and 38px buttons. Phones keep 16px typing text so the screen never zooms. */
html body .pwl-ov .pwl-box{width:min(560px,100%);padding:20px 22px 18px;border-radius:16px;box-shadow:0 24px 64px rgba(0,0,0,.28)}
html body .pwl-ov .pwl-x{top:12px;right:12px;width:32px;height:32px;border-radius:8px}
html body .pwl-ov .pwl-hd{gap:12px;margin-right:30px}
html body .pwl-ov .pwl-hd .pwl-mark{flex:0 0 36px;width:36px;height:36px;border-radius:10px}
html body .pwl-ov .pwl-hd h2{margin:0 0 2px;font-size:16px;font-weight:700;line-height:1.35;letter-spacing:0}
html body .pwl-ov .pwl-hd p{font-size:12.5px;line-height:1.45}
html body .pwl-ov .pwl-steps{gap:6px;margin:16px 0 14px}
html body .pwl-ov .pwl-steps li{gap:7px;padding:6px 8px;border-radius:10px;font-size:12px;font-weight:600}
html body .pwl-ov .pwl-steps li i{flex:0 0 18px;width:18px;height:18px;font-size:10.5px;font-weight:700}
html body .pwl-ov .pwl-steps li i svg{width:11px;height:11px}
html body .pwl-ov .pwl-body{min-height:120px}
html body .pwl-ov .pwl-l{font-size:13px;font-weight:600;margin:0 0 6px}
html body .pwl-ov .pwl-l2{margin-top:14px}
html body .pwl-ov .pwl-in{height:40px;padding:0 12px;border-radius:10px;font-size:13.5px}
html body .pwl-ov .pwl-err{font-size:12.5px}
html body .pwl-ov .pwl-roles{max-height:260px}
html body .pwl-ov .pwl-gl{font-size:11px;margin:0 0 5px}
html body .pwl-ov .pwl-chip{min-height:32px;padding:0 11px;margin:0 5px 5px 0;font-size:12.5px;font-weight:500}
html body .pwl-ov .pwl-chip svg{width:12px;height:12px}
html body .pwl-ov .pwl-note{font-size:12.5px;line-height:1.45}
html body .pwl-ov .pwl-ft{margin-top:16px}
html body .pwl-ov .pwl-back,html body .pwl-ov .pwl-skip,html body .pwl-ov .pwl-next{height:38px;border-radius:10px;font-size:13.5px;font-weight:600}
html body .pwl-ov .pwl-back,html body .pwl-ov .pwl-skip{padding:0 14px}
html body .pwl-ov .pwl-next{gap:6px;padding:0 16px}
html body .pwl-ov .pwl-next svg{width:15px;height:15px}
@media (max-width:820px){html body .pwl-ov .pwl-in{font-size:16px}}
@media (max-width:520px){html body .pwl-ov .pwl-box{padding:18px 16px 16px}}
html body .pwl-ov [hidden]{display:none !important}
html body .pwl-ov .pwl-rs{position:relative;margin:0 0 10px}
html body .pwl-ov .pwl-rs > svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--app-text-dim,#64748b);pointer-events:none}
html body .pwl-ov .pwl-rs .pwl-in{padding-left:36px}
html body .pwl-ov .pwl-rnone{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:0 0 8px;font-size:12.5px;color:var(--app-text-dim,#64748b)}
html body .pwl-ov .pwl-rnone .pwl-chip{margin:0;border-style:dashed;border-color:var(--accent,#3161E8);color:var(--accent,#3161E8)}

/* pak-160-pick: "What do you do?" picker - category tabs, even tiles with an icon per kind of work, calm selected state */
html body .pwl-ov .pwl-box{width:min(640px,100%)}
html body .pwl-ov .pwl-tabs{display:flex;gap:6px;margin:0 0 10px;padding:1px 1px 2px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:24px}
html body .pwl-ov .pwl-tabs::-webkit-scrollbar{display:none}
html body .pwl-ov .pwl-tab{flex:none;height:30px;padding:0 12px;border:1px solid var(--app-border,#e5e7eb);border-radius:999px;background:transparent;color:var(--app-text-dim,#64748b);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
html body .pwl-ov .pwl-tab:hover{color:var(--app-text,#0f172a);border-color:var(--app-border-hi,#cbd5e1)}
html body .pwl-ov .pwl-tab:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:1px}
html body .pwl-ov .pwl-tab.on{background:var(--app-text,#0f172a);border-color:var(--app-text,#0f172a);color:var(--app-bg,#fff)}
html body .pwl-ov .pwl-roles{max-height:272px;overflow:auto;margin:0 -4px;padding:2px 4px;overscroll-behavior:contain;border:0}
html body .pwl-ov .pwl-roles.bad{border:1px solid #dc2626;border-radius:12px;padding:6px}
html body .pwl-ov .pwl-g{margin:0 0 12px}
html body .pwl-ov .pwl-g:last-child{margin-bottom:2px}
html body .pwl-ov .pwl-gh{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--app-text-dim,#64748b)}
html body .pwl-ov .pwl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body .pwl-ov .pwl-tile{position:relative;display:flex;align-items:center;gap:10px;min-height:50px;margin:0;padding:8px 10px 8px 8px;border:1px solid var(--app-border,#e5e7eb);border-radius:12px;background:var(--app-bg,#fff);color:var(--app-text,#0f172a);font:inherit;font-size:13px;font-weight:500;line-height:1.3;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
html body .pwl-ov .pwl-tile:hover{border-color:var(--app-border-hi,#cbd5e1);box-shadow:0 1px 4px rgba(16,24,40,.07)}
html body .pwl-ov .pwl-tile:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:1px}
html body .pwl-ov .pwl-tile.on{border-color:var(--accent,#3161E8);background:var(--accent-soft,rgba(49,97,232,.07));box-shadow:inset 0 0 0 1px var(--accent,#3161E8)}
html body .pwl-ov .pwl-ti{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;color:var(--c,#3161E8);background:rgba(127,127,127,.1);background:color-mix(in srgb,var(--c,#3161E8) 13%,transparent)}
html body .pwl-ov .pwl-ti svg{width:16px;height:16px}
html body .pwl-ov .pwl-tl{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .pwl-ov .pwl-tk{position:absolute;top:5px;right:5px;display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:var(--accent,#3161E8);color:#fff}
html body .pwl-ov .pwl-tk svg{width:10px;height:10px}
html body .pwl-ov .pwl-rnone{margin:0 0 10px}
@media (max-width:620px){html body .pwl-ov .pwl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}html body .pwl-ov .pwl-tile{min-height:46px;gap:8px;padding:7px 8px 7px 7px;font-size:12.5px}html body .pwl-ov .pwl-tl{-webkit-line-clamp:3}html body .pwl-ov .pwl-ti{width:26px;height:26px;border-radius:8px}html body .pwl-ov .pwl-ti svg{width:14px;height:14px}html body .pwl-ov .pwl-roles{max-height:min(300px,40dvh)}}
@media (prefers-reduced-motion:reduce){html body .pwl-ov .pwl-tile,html body .pwl-ov .pwl-tab{transition:none}}

/* pak-161-icons: "Help with" tiles match the "What you do" tiles; icons a little stronger */
html body .pwl-ov .pwl-goals.pwl-grid{margin:2px 0 0}
html body .pwl-ov .pwl-ti{background:rgba(127,127,127,.12);background:color-mix(in srgb,var(--c,#3161E8) 15%,transparent)}

/* pak-170-menu: + menu - an item that is switched off (hidden) takes no space.
   ".pal-menu button{display:flex}" was beating the hidden flag, so the empty
   "Your knowledge" item (pearl-knowledge.js, shown only when you have saved knowledge)
   left a 20px gap under "Add from Google Drive". When it is switched on it shows as before. */
html body .pal-menu > [hidden]{display:none !important}

/* pak-171-chart: Settings > Reflect chart - clean ticks, rounded bars, busiest-day label,
   daily-average line with a key, dim-others hover, today marker, grows in once */
html body .pxp-chart{padding:2px 16px 14px}
html body .pxp-kpis{display:flex;flex-wrap:wrap;gap:6px 28px;padding:2px 2px 12px}
html body .pxp-kpi{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .pxp-kpi span{font-size:11.5px;color:var(--pxs-faint)}
html body .pxp-kpi b{font-size:14px;font-weight:650;color:var(--pxs-text);white-space:nowrap}
html body .pxp-kpi b i{font-style:normal;font-weight:500;color:var(--pxs-dim)}
html body .pxp-plot{position:relative}
html body .pxp-chart svg{display:block;width:100%;height:auto;overflow:visible}
html body .pxp-grid{stroke:var(--pxs-line);stroke-width:1;opacity:.7}
html body .pxp-grid.is-base{stroke:var(--pxs-line-hi);opacity:1}
html body .pxp-ax{fill:var(--pxs-faint);font-size:11px;font-variant-numeric:tabular-nums}
html body .pxp-ax.is-now{fill:var(--pxs-text);font-weight:650}
html body .pxp-fill{fill:var(--pxs-acc);opacity:.88;transition:opacity .15s}
html body .pxp-bar.is-now .pxp-fill{opacity:1}
html body .pxp-zero{fill:var(--pxs-line-hi)}
html body .pxp-hit{fill:transparent;transition:fill .12s}
html body .pxp-bar{cursor:default;outline:none}
html body .pxp-plot.is-hover .pxp-fill{opacity:.32}
html body .pxp-plot.is-hover .pxp-bar.is-on .pxp-fill{opacity:1}
html body .pxp-bar.is-on .pxp-hit{fill:var(--pxs-acc-soft)}
html body .pxp-bar:focus-visible .pxp-hit{fill:var(--pxs-acc-soft);stroke:var(--pxs-acc);stroke-width:1}
html body .pxp-avg{stroke:var(--pxs-dim);stroke-width:1;stroke-dasharray:3 4;opacity:.8;pointer-events:none}
html body .pxp-peak{fill:var(--pxs-text);font-size:11.5px;font-weight:650;pointer-events:none}
html body .pxp-plot.is-hover .pxp-peak{opacity:0}
html body .pxp-key{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;font-size:11.5px;color:var(--pxs-dim)}
html body .pxp-key i{display:inline-block;flex:0 0 auto}
html body .pxp-key-bar{width:10px;height:10px;border-radius:3px;background:var(--pxs-acc)}
html body .pxp-key-avg{width:16px;height:0;border-top:1.5px dashed var(--pxs-dim);margin-left:12px}
html body .pxp-tip{display:flex;flex-direction:column;gap:1px;padding:7px 11px;border-radius:9px;font-size:12px;line-height:1.35;white-space:nowrap}
html body .pxp-tip b{font-weight:650}
html body .pxp-tip span{opacity:.82;font-weight:500}
html body .pxp-tip[hidden]{display:none}
@keyframes pak171grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
html body .pxp-plot.is-in .pxp-fill{transform-box:fill-box;transform-origin:50% 100%;animation:pak171grow .5s cubic-bezier(.2,.8,.2,1) both}
@media (prefers-reduced-motion:reduce){html body .pxp-plot.is-in .pxp-fill{animation:none}}
@media (max-width:820px){html body .pxp-chart{padding:2px 8px 12px} html body .pxp-kpis{gap:6px 18px}}

/* pak-174-pax: Activity & logs - code in a reply shows exactly like in the chat (dark box, light text),
   no white box and no second scroll bar inside it */
html body .pax-reply .md-code{margin:8px 0 12px;max-width:100%}
html body .pax-msg-b .pax-reply .md-code pre{max-height:none;margin:0;padding:12px 14px;border:0;border-radius:0;background:transparent;white-space:pre;overflow-x:auto;font-size:12.5px;line-height:1.55}
html body .pax-reply .md-code code{color:#e6e6e6;background:none;padding:0}
/* perf3-css1: the start-up loader, once hidden, stops its looping animations (they kept the screen redrawing all the time) */
#boot-loader.hidden::before,#boot-loader.hidden::after,#boot-loader.hidden *,#boot-loader.hidden *::before,#boot-loader.hidden *::after{animation:none !important}

/* pmb-nav1: leave-chat sheet (pmb-nav1e: compact, icon, buttons in one row) */
.pmb-leave{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,0);transition:background .18s}
.pmb-leave.is-on{background:rgba(0,0,0,.32)}
.pmb-lv-box{position:relative;width:100%;max-width:420px;box-sizing:border-box;padding:18px 16px calc(14px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.14);transform:translateY(100%);transition:transform .2s ease-out;font-family:inherit}
.pmb-leave.is-on .pmb-lv-box{transform:none}
.pmb-lv-box::before{content:"";position:absolute;top:6px;left:50%;width:32px;height:4px;margin-left:-16px;border-radius:2px;background:currentColor;opacity:.18}
.pmb-lv-hd{display:flex;align-items:center;gap:10px;margin:0 0 4px}
.pmb-lv-ic{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(47,107,255,.12);color:#2f6bff}
.pmb-lv-ic svg{width:16px;height:16px;display:block}
.pmb-lv-t{margin:0;font-size:15px;font-weight:650;line-height:1.3}
.pmb-lv-b{margin:0 0 14px 40px;font-size:13px;line-height:1.45;opacity:.72}
.pmb-lv-row{display:flex;gap:8px;justify-content:flex-end}
.pmb-lv-row button{min-height:36px;padding:0 14px;border-radius:9px;font-family:inherit;font-size:13.5px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap}
.pmb-lv-stay{order:2;border:0;background:#2f6bff;color:#fff}
.pmb-lv-go{order:1;border:1px solid rgba(127,127,127,.32);background:transparent;color:inherit}
.pmb-lv-row button:focus-visible{outline:2px solid #2f6bff;outline-offset:2px}
@media (max-width:640px){.pmb-lv-row button{flex:1;min-height:40px}}
@media (min-width:641px){.pmb-leave{align-items:center;padding:16px}.pmb-lv-box{max-width:380px;border-radius:14px;padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.18);transform:translateY(8px) scale(.98)}.pmb-lv-box::before{display:none}}
@media (prefers-reduced-motion:reduce){.pmb-leave,.pmb-lv-box{transition:none}}
