/* Shell chrome + menu. Topbar-mode and menu-base first (hoisted from the
   old core.css in original cascade order), then the shell skin. */
/* ============ core/shell/chrome/topbar-mode.css ============ */
body.pm-collapsed{--pm-w:52px}
@media (min-width:769px){body.topbar-mode .pmenu,body.topbar-mode:not(.pm-collapsed) .pmenu{left:0;right:0;top:0;bottom:auto;width:auto;height:calc(var(--bar-h) + 6px);min-height:calc(var(--bar-h) + 6px);max-height:calc(var(--bar-h) + 6px);flex-direction:row;align-items:center;padding:0 56px 0 var(--bar-pad);background:var(--c-white);border:none;border-bottom:none;border-radius:0;box-shadow:none;overflow:visible;transition:none}
body.menu-dark.topbar-mode .pmenu {background:#0A0A0A;box-shadow:none;border-bottom:none}body.topbar-mode .pmenu-head{border-bottom:none;border-right:none;padding:0;margin-right:44px;display:flex;align-items:center;flex:0 0 auto}
body.topbar-mode .pmenu-logo{width:auto;height:28px}
body.topbar-mode .pmenu-body{flex:1 1 auto;overflow:visible;display:flex;align-items:center;min-width:0}
body.topbar-mode .pmenu-sec{display:flex;align-items:center;gap:28px;padding:0;min-width:0}
body.topbar-mode .pmenu-sec-label{display:none}
body.topbar-mode .pmenu-item{width:auto;margin:0;grid-template-columns:auto;gap:0;padding:6px 14px;background:transparent;white-space:nowrap}
body.topbar-mode .pmenu-item .pmenu-ic{display:none}
body.topbar-mode .pmenu-item:hover{background:transparent}
body.topbar-mode .pmenu-item:hover .pmenu-lb{color:var(--c-ink)}
body.topbar-mode .pmenu-item .pmenu-lb{font-size:17px;font-weight:500;letter-spacing:-0.005em;line-height:1.4;color:#545454;transition:color 0.15s var(--ease-out)}
body.topbar-mode .pmenu-item.active{background:transparent;color:#0A0A0A}
body.topbar-mode .pmenu-item.active:hover{background:transparent}
body.topbar-mode .pmenu-item.active .pmenu-lb{color:#0A0A0A;font-weight:500}
body.topbar-mode .pmenu-item .pmenu-badge,body.topbar-mode .pmenu-item .pmenu-bal{display:none}
body.topbar-mode .pmenu-more-btn{grid-template-columns:auto auto;border-radius:999px;background:transparent;transition:background-color 0.18s var(--ease-out)}
body.topbar-mode .pmenu-more-btn:hover,body.topbar-mode .pmenu-more-btn.open{background:rgba(10,10,10,0.05)}body.topbar-mode .pmenu-acc-car{margin-left:6px;opacity:0.55;display:inline-flex;transform:rotate(90deg);transition:transform 0.18s var(--ease-out),opacity 0.18s var(--ease-out)}
body.topbar-mode .pmenu-more-btn.open .pmenu-acc-car{transform:rotate(-90deg);opacity:0.8}
body.topbar-mode .pmenu-ctx{display:flex;align-items:center;gap:6px;min-height:0}
body.topbar-mode .pmenu .pmenu-bottom{margin-top:0}
body.topbar-mode .pmenu-id{padding:0;grid-template-columns:auto;gap:0;align-items:center;background:transparent;border:none;box-shadow:none;border-radius:50%}
body.topbar-mode .pmenu-id:hover{background:var(--bg-hover)}
body.topbar-mode .pmenu-id .pmenu-av{width:42px;height:42px;font-size:15px;font-weight:600;border-radius:50%;color:#fff}
body.topbar-mode .pmenu-bottom{margin-top:0;margin-left:auto;border-top:none;border-left:none;padding:0;flex:0 0 auto;display:flex;align-items:center;gap:22px}
body.topbar-mode .tb-extra{display:flex;align-items:center;gap:20px}
body.topbar-mode .tb-search{display:flex;align-items:center;justify-content:center;height:46px;background:transparent;border:1px solid transparent;border-radius:50%;cursor:pointer;overflow:hidden;box-shadow:none;width:46px;padding:0;gap:0;transition:width 0.28s var(--ease-out),padding 0.28s var(--ease-out),background 0.18s var(--ease-out),border-color 0.18s var(--ease-out),gap 0.18s var(--ease-out),border-radius 0.2s var(--ease-out)}
body.topbar-mode .tb-search:hover{background:var(--bg-1)}
body.topbar-mode .tb-search.open{width:240px;padding:0 12px 0 14px;gap:8px;justify-content:flex-start;border-radius:23px;background:var(--c-white);border-color:var(--hr-strong);cursor:text}
body.topbar-mode .tb-search svg{width:20px;height:20px;flex:none;color:var(--ink-mid);opacity:0.75;transition:color 0.15s,opacity 0.15s;pointer-events:none}
body.topbar-mode .tb-search.open svg{color:var(--ink-mid);opacity:1}
body.topbar-mode .tb-search input{flex:0 1 0;border:0;background:transparent;outline:0;font-family:"Inter",sans-serif;font-size:13px;color:var(--ink-hi);min-width:0;width:0;opacity:0;transition:opacity 0.2s var(--ease-out) 0.05s;pointer-events:none}
body.topbar-mode .tb-search.open input{flex:1 1 auto;width:auto;opacity:1;pointer-events:auto}
body.topbar-mode .tb-search input::placeholder{color:var(--ink-low)}
body.topbar-mode .tb-notif{position:relative;width:46px;height:46px;border-radius:50%;background:transparent;border:1px solid transparent;color:var(--ink-mid);cursor:pointer;display:grid;place-items:center;box-shadow:none;transition:background 0.14s,color 0.14s,border-color 0.14s}
body.topbar-mode .tb-notif:hover{background:var(--bg-1);color:var(--ink-hi)}
body.topbar-mode .tb-notif svg{width:20px;height:20px}
body.topbar-mode .tb-notif-dot{position:absolute;top:11px;right:13px;width:6px;height:6px;border-radius:50%;background:#DF6662;border:1.5px solid var(--c-white)}.tb-extra{display:none}
body.topbar-mode .pmenu-id .pmenu-id-name{display:none}
body.topbar-mode .pmenu-id .pmenu-id-tx{justify-content:center;gap:0;display:none}body.topbar-mode .pmenu-collapse{display:none}
body.topbar-mode .pmore.open{opacity:1;transform:translateY(0);pointer-events:auto}
body.topbar-mode .pmore .pmega-inner{display:grid;grid-template-columns:minmax(0,0.55fr) 1px minmax(0,3.4fr);gap:56px;align-items:center;max-width:1200px;margin:0 auto;padding:36px var(--bar-pad) 40px;box-sizing:border-box}
body.topbar-mode .pmega-manifesto{display:flex;flex-direction:column;justify-content:flex-start;align-self:start;padding-right:4px}
body.topbar-mode .pmega-manifesto-title{font-family:"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:21px;font-weight:700;line-height:1.18;letter-spacing:-0.02em;color:var(--c-ink);margin:0;text-wrap:balance}
body.menu-dark.topbar-mode .pmega-manifesto-title{color:#FFFFFF}
body.topbar-mode .pmega-divider{width:1px;background:#EAEAEA;height:180px;align-self:center;justify-self:center}
body.menu-dark.topbar-mode .pmega-divider{background:rgba(255,255,255,0.10)}
body.topbar-mode .pmega-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 20px;align-items:start;align-self:start}
body.topbar-mode .pmega-group{display:flex;flex-direction:column;min-width:0}
body.topbar-mode .pmega-group-hd{font-family:"Inter",sans-serif;font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--ink-low);padding:2px 10px 10px}
body.menu-dark.topbar-mode .pmega-group-hd{color:#7A7A7A}
body.topbar-mode .pmore .pmega-link{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:100%;margin:1px 0;padding:8px 14px;border:none;border-radius:999px;background:transparent;text-align:left;cursor:pointer;grid-template-columns:none;transition:background 0.15s var(--ease-out),color 0.15s var(--ease-out)}
body.topbar-mode .pmore .pmega-link--expand{justify-content:space-between}
body.topbar-mode .pmore .pmega-link-lb{font-family:"Inter",sans-serif;font-size:16px;font-weight:500;line-height:1.2;color:#1A1A1A;letter-spacing:-0.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.menu-dark.topbar-mode .pmore .pmega-link-lb{color:#EDEDED}
body.topbar-mode .pmore .pmega-link:hover{background:rgba(10,10,10,0.05)}
body.topbar-mode .pmore .pmega-link:hover .pmega-link-lb{color:#0A0A0A}
body.menu-dark.topbar-mode .pmore .pmega-link:hover{background:rgba(255,255,255,0.07)}
body.menu-dark.topbar-mode .pmore .pmega-link:hover .pmega-link-lb{color:#FFFFFF}
body.topbar-mode .pmore .pmega-link:focus-visible{outline:1.5px solid #0A0A0A;outline-offset:-1.5px}
body.menu-dark.topbar-mode .pmore .pmega-link:focus-visible{outline-color:#FFFFFF}
body.topbar-mode .pmore .pmega-link.active,body.topbar-mode .pmore .pmega-link.active:hover{background:transparent}
body.topbar-mode .pmore .pmega-link.active .pmega-link-lb{color:#0A0A0A;font-weight:600}
body.topbar-mode .pmore .pmega-link.active:hover{background:rgba(10,10,10,0.05)}
body.menu-dark.topbar-mode .pmore .pmega-link.active,body.menu-dark.topbar-mode .pmore .pmega-link.active:hover{background:transparent}
body.menu-dark.topbar-mode .pmore .pmega-link.active .pmega-link-lb{color:#FFFFFF}
body.menu-dark.topbar-mode .pmore .pmega-link.active:hover{background:rgba(255,255,255,0.07)}
body.topbar-mode .pmore .pmega-chevron{width:14px;height:14px;color:var(--ink-low);flex:none;opacity:0.7;transform:translateX(0);transition:transform 0.15s var(--ease-out),opacity 0.15s var(--ease-out),color 0.15s var(--ease-out)}
body.topbar-mode .pmore .pmega-link--expand:hover .pmega-chevron{transform:translateX(3px);opacity:1;color:#0A0A0A}
body.menu-dark.topbar-mode .pmore .pmega-chevron{color:#7A7A7A}
body.menu-dark.topbar-mode .pmore .pmega-link--expand:hover .pmega-chevron{color:#FFFFFF}
body.topbar-mode .pmore .pmega-sub{position:relative}
body.topbar-mode .pmore .pmega-flyout{position:absolute;top:-8px;left:calc(100% + 8px);width:224px;box-sizing:border-box;padding:6px;background:#FFFFFF;border:1px solid #EAEAEA;border-radius:16px;box-shadow:0 1px 2px rgba(10,10,10,0.04),0 14px 40px -20px rgba(10,10,10,0.22);z-index:10;opacity:0;visibility:hidden;transform:translateX(-4px);pointer-events:none;transition:opacity 0.13s var(--ease-out),transform 0.13s var(--ease-out),visibility 0s linear 0.13s}
body.topbar-mode .pmore .pmega-flyout::before{content:"";position:absolute;top:0;bottom:0;left:-12px;width:12px}
body.topbar-mode .pmore .pmega-sub:hover>.pmega-flyout,body.topbar-mode .pmore .pmega-sub:focus-within>.pmega-flyout{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto;transition:opacity 0.14s var(--ease-out),transform 0.14s var(--ease-out),visibility 0s}
body.topbar-mode .pmore .pmega-sub:hover>.pmega-link--expand,body.topbar-mode .pmore .pmega-sub:focus-within>.pmega-link--expand{background:rgba(10,10,10,0.05)}
body.topbar-mode .pmore .pmega-sub:hover>.pmega-link--expand .pmega-chevron,body.topbar-mode .pmore .pmega-sub:focus-within>.pmega-link--expand .pmega-chevron{transform:translateX(3px);opacity:1;color:#0A0A0A}
body.topbar-mode .pmore .pmega-flyout .pmega-link{margin:0;padding:8px 10px}
body.menu-dark.topbar-mode .pmore .pmega-flyout{background:#141414;border-color:rgba(255,255,255,0.10);box-shadow:0 1px 2px rgba(0,0,0,0.4),0 14px 40px -20px rgba(0,0,0,0.7)}
body.menu-dark.topbar-mode .pmore .pmega-sub:hover>.pmega-link--expand,body.menu-dark.topbar-mode .pmore .pmega-sub:focus-within>.pmega-link--expand{background:rgba(255,255,255,0.07)}
body.menu-dark.topbar-mode .pmore .pmega-sub:hover>.pmega-link--expand .pmega-chevron,body.menu-dark.topbar-mode .pmore .pmega-sub:focus-within>.pmega-link--expand .pmega-chevron{color:#FFFFFF}
body.topbar-mode .pmore .pmega-sub.flip-left>.pmega-flyout{left:auto;right:calc(100% + 8px);transform:translateX(4px)}
body.topbar-mode .pmore .pmega-sub.flip-left:hover>.pmega-flyout,body.topbar-mode .pmore .pmega-sub.flip-left:focus-within>.pmega-flyout{transform:translateX(0)}
body.topbar-mode .pmore .pmega-sub.flip-left>.pmega-flyout::before{left:auto;right:-12px}
@media (max-width:980px){body.topbar-mode .pmore .pmega-inner{grid-template-columns:1fr;gap:24px;padding:26px 28px 28px}
body.topbar-mode .pmega-divider{display:none}
body.topbar-mode .pmega-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px}
body.topbar-mode .pmega-manifesto-title{font-size:20px}}
@media (max-width:720px){body.topbar-mode .pmega-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}}
body.topbar-mode .pmenu-more-btn.open{background:rgba(10,10,10,0.05) !important;border-radius:8px}
body.topbar-mode .pmenu-flyout{left:var(--bar-pad);top:calc(var(--bar-h) + 4px)}
body.topbar-mode .hud-info-btn{top:calc(var(--bar-h) + 12px)}
body.topbar-mode .hud-info-panel{top:calc(var(--bar-h) + 12px + 48px)}
body.topbar-mode{--pm-w:0px;--bar-h:66px;--bar-gap:14px;--bar-pad:40px;--content-chat:min(760px,62vw);--elev-1:0 1px 2px rgba(10,10,10,0.04),0 1px 1px rgba(10,10,10,0.03);--elev-2:0 1px 2px rgba(10,10,10,0.05),0 6px 16px -10px rgba(10,10,10,0.18);--elev-3:0 1px 2px rgba(10,10,10,0.06),0 12px 28px -14px rgba(10,10,10,0.22)}
body.topbar-mode .pmenu{box-shadow:0 1px 0 rgba(10,10,10,0.04),0 6px 18px -14px rgba(10,10,10,0.18)}
body.topbar-mode .pmore{position:fixed;left:0;right:0;top:var(--bar-h);width:auto;max-width:none;max-height:calc(var(--vh100) - var(--bar-h));overflow:visible;border:none;border-bottom:1px solid rgba(10,10,10,0.08);border-radius:0;background:#FFFFFF;padding:0;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity 0.16s var(--ease-out),transform 0.18s var(--ease-out);box-shadow:0 18px 40px -28px rgba(10,10,10,0.18)}
body.menu-dark.topbar-mode .pmore {background:#0A0A0A;border-bottom-color:rgba(255,255,255,0.10);box-shadow:0 18px 40px -28px rgba(0,0,0,0.6)}}
.shell{margin-left:0;transition:grid-template-columns 0.35s var(--ease-out)}
.pmenu{position:fixed;left:var(--pm-gap);top:var(--pm-gap);bottom:var(--pm-gap);width:var(--pm-w);z-index:60;background:#FFFFFF;border:1px solid rgba(10,10,10,0.14);border-radius:10px;display:flex;flex-direction:column;overflow:hidden;transition:width 0.38s var(--ease-out);box-shadow:0 0 0 0.5px rgba(10,10,10,0.04),0 1px 1px rgba(10,10,10,0.03),0 18px 44px -26px rgba(10,10,10,0.32);user-select:none}@media (min-width:769px){body.topbar-mode:not(.pm-collapsed) .pmenu,body.topbar-mode.pm-collapsed .pmenu{transition:transform 0.28s var(--ease-out);will-change:transform}
body.topbar-mode.nav-hidden .pmenu{transform:translateY(-100%)}
body.topbar-mode.nav-hidden.menu-open .pmenu{transform:translateY(0)}}
@media (max-width:768px){.mobile-topbar{transition:transform 0.28s var(--ease-out);will-change:transform}
body.nav-hidden .mobile-topbar{transform:translateY(-100%)}}
.pmenu-head{display:flex;align-items:center;justify-content:space-between;padding:15px 11px 13px 14px;border-bottom:1px solid rgba(10,10,10,0.09);flex:0 0 auto;white-space:nowrap}
.pmenu-logo{cursor:pointer;width:50%;height:auto;display:block}
.pmenu-head:hover .pmenu-logo{opacity:0.82}
.pmenu-mark.pm-min{display:none;font-family:"JetBrains Mono",monospace;font-size:12px;font-weight:600;color:#0A0A0A}
.pmenu-ver{font-family:"JetBrains Mono",monospace;font-size:8px;letter-spacing:0.1em;color:#CFC8B6;font-variant-numeric:tabular-nums}
.pmenu-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding-bottom:0}
.pmenu-body::-webkit-scrollbar{width:0}
.pmenu-sec{padding-top:3px}
.pmenu-sec-label{display:flex;align-items:center;gap:8px;font-family:"JetBrains Mono",monospace;font-size:9px;font-weight:500;letter-spacing:0.1em;color:#CFC8B6;padding:11px 14px 6px;white-space:nowrap}
.pmenu-sec-label::after{content:"";flex:1;height:1px;background:rgba(10,10,10,0.06)}
.pmenu-item{display:grid;grid-template-columns:17px 1fr auto;align-items:center;gap:9px;width:calc(100% - 12px);margin:1px 6px;padding:7.5px 9px;border:none;border-radius:6px;background:transparent;color:#0A0A0A;font-family:"JetBrains Mono",monospace;font-size:11.5px;font-weight:500;letter-spacing:0;text-align:left;cursor:pointer;position:relative;transition:background 0.15s var(--ease-out),color 0.15s var(--ease-out);white-space:nowrap}
.pmenu-item:hover{background:rgba(10,10,10,0.045)}
.pmenu-item:focus-visible{outline:1.5px solid #0A0A0A;outline-offset:-1.5px}
.pmenu-item.active{background:#0A0A0A;color:#FFFFFF}
.pmenu-item.active:hover{background:#0A0A0A}
.pmore .pm-app.active{background:#0A0A0A;color:#FFFFFF}
.pmore .pm-app.active:hover{background:#0A0A0A}
.pmore .pm-app.active .pmenu-lb,.pmore .pm-app.active .pmenu-ic,.pmore .pm-app.active .pmenu-ic svg{color:#FFFFFF;opacity:1}
.pmenu-ic{display:flex;align-items:center;justify-content:center}
.pmenu-ic svg{width:15px;height:15px;display:block;opacity:0.9}
.pmenu-item.active .pmenu-ic svg{opacity:1}
.pmenu-lb{overflow:hidden;text-overflow:ellipsis}
.pmenu-bal{font-family:"JetBrains Mono",monospace;font-size:9px;letter-spacing:0.03em;color:#888888;justify-self:end;font-variant-numeric:tabular-nums}
.pmenu-item.active .pmenu-bal{color:#B8B8B8}
.pmenu-item:not(.active):hover .pmenu-bal{opacity:0}
.pmenu-delta{position:absolute;right:8px;top:50%;transform:translateY(-50%) translateX(4px);font-family:"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:10.5px;font-weight:500;padding:3px 8px;border-radius:6px;border:1px solid transparent;background:#FFFFFF;color:#FFFFFF;min-width:46px;display:inline-flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity 0.25s var(--ease-out),transform 0.25s var(--ease-out);z-index:2}
@media (min-width:1101px){}
