:root {
  --xp-shell-bg: #0b1120;
  --xp-shell-panel: #111a2c;
  --xp-shell-panel-2: #17233a;
  --xp-shell-line: #30415f;
  --xp-shell-text: #edf4ff;
  --xp-shell-muted: #a9b8d0;
  --xp-shell-accent: #69ddff;
  --xp-shell-warm: #f6b94f;
  --xp-shell-danger: #ff6b70;
  --xp-shell-header-h: 66px;
  --xp-shell-rail-w: 288px;
}

body[data-xp-surface="public"] > nav.top,
body[data-xp-surface="public"] > nav.pxs-nav,
body[data-xp-surface="public"] > nav.forum-nav,
body[data-xp-surface="public"] > header.site-header,
body[data-xp-surface="public"] > header.fb-topbar,
body[data-xp-surface="auth"] > nav.top,
body[data-xp-surface="auth"] > nav.pxs-nav,
body[data-xp-surface="admin"] > nav.pxs-nav,
body[data-xp-surface="public"] > footer:not(.xp-site-footer),
body[data-xp-surface="auth"] > footer:not(.xp-compact-footer),
body[data-xp-surface] > .xp-beta-banner { display: none !important; }

body.xp-scroll-locked { overflow: hidden !important; }
body[data-xp-surface] { max-width: 100vw; overflow-x: hidden; }
#xp-shell-root, #xp-footer-root { font-family: Inter, "Space Grotesk", system-ui, sans-serif; }
#xp-shell-root *, #xp-footer-root * { box-sizing: border-box; }
#xp-shell-root a, #xp-footer-root a { text-decoration: none; }

.xp-beta-disclosure {
  min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 7px 18px; background: #171224; border-bottom: 1px solid #4c335f;
  color: #d9cde7; font-size: 12px; letter-spacing: .01em; position: relative; z-index: 3001;
}
.xp-beta-disclosure strong { color: #ffd274; font-size: 11px; letter-spacing: .13em; }
.xp-beta-disclosure a { min-height: 44px; display: inline-flex; align-items: center; color: #8de8ff; text-decoration: underline !important; }

.xp-site-header {
  min-height: var(--xp-shell-header-h); padding: 0 max(18px, calc((100vw - 1480px) / 2));
  display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); position: relative; z-index: 3000;
  color: var(--xp-shell-text); background: color-mix(in srgb, var(--xp-shell-bg) 95%, transparent);
  border-bottom: 1px solid var(--xp-shell-line); box-shadow: 0 8px 30px #0003;
}
.xp-logo { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--xp-shell-text); white-space: nowrap; }
.xp-logo span { color: var(--xp-shell-accent); font-size: 22px; }
.xp-logo b { font-size: 14px; letter-spacing: .14em; }

.xp-primary { display: flex; align-self: stretch; align-items: center; gap: 2px; min-width: 0; }
.xp-primary-link, .xp-primary-group > summary {
  min-height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 7px;
  color: var(--xp-shell-muted); border-radius: 8px; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none;
}
.xp-primary-group > summary::-webkit-details-marker { display: none; }
.xp-primary-link:hover, .xp-primary-link[aria-current="page"],
.xp-primary-group[data-active="true"] > summary, .xp-primary-group[open] > summary { color: white; background: var(--xp-shell-panel-2); }
.xp-primary-group { position: relative; }
.xp-primary-popover {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; width: min(620px, calc(100vw - 32px));
  padding: 18px; grid-template-columns: 180px 1fr; gap: 18px; color: var(--xp-shell-text);
  background: #10192bf5; border: 1px solid var(--xp-shell-line); border-radius: 14px; box-shadow: 0 24px 70px #000b;
}
.xp-primary-group[open] .xp-primary-popover { display: grid; }
.xp-primary-intro { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.xp-primary-intro strong { color: var(--xp-shell-accent); font-size: 15px; }
.xp-primary-intro span { color: var(--xp-shell-muted); font-size: 13px; line-height: 1.5; }
.xp-primary-children { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.xp-primary-children a { min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 10px; border-radius: 8px; color: var(--xp-shell-text); }
.xp-primary-children a:hover, .xp-primary-children a:focus-visible { background: var(--xp-shell-panel-2); }
.xp-primary-children strong { font-size: 13px; }
.xp-primary-children span { color: var(--xp-shell-muted); font-size: 11px; line-height: 1.25; }

.xp-site-utilities { margin-left: auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.xp-world-status { min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; color: var(--xp-shell-muted); font-size: 11px; white-space: nowrap; }
.xp-world-status::first-line { text-transform: uppercase; letter-spacing: .07em; }
.xp-world-status > span { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #66db8b; box-shadow: 0 0 10px #66db8b; }
.xp-world-status b { color: var(--xp-shell-text); font-size: 10px; font-weight: 500; }
.xp-search-toggle, .xp-menu-toggle {
  width: 44px; min-width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center;
  color: var(--xp-shell-text); background: transparent; border: 1px solid var(--xp-shell-line); border-radius: 9px; cursor: pointer;
}
.xp-menu-toggle { display: none; align-content: center; gap: 4px; }
.xp-menu-toggle span { width: 18px; height: 2px; display: block; background: currentColor; }
.xp-user-utility, .xp-user-utility > * { display: flex; align-items: center; gap: 8px; }
.xp-utility-link { min-height: 44px; padding: 0 8px; color: var(--xp-shell-muted); font-size: 13px; }
.xp-primary-cta {
  min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center;
  color: #07111b !important; background: var(--xp-shell-accent); border: 1px solid var(--xp-shell-accent); border-radius: 9px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.xp-account-menu { position: relative; }
.xp-account-menu > summary { min-height: 44px; display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; color: var(--xp-shell-text); font-size: 12px; }
.xp-account-menu > summary::-webkit-details-marker { display: none; }
.xp-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--xp-shell-panel-2); border: 1px solid var(--xp-shell-line); color: var(--xp-shell-accent); font-weight: 800; }
.xp-account-popover {
  position: absolute; top: calc(100% + 9px); right: 0; width: 230px; padding: 8px; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 2px !important;
  background: #10192bf8; border: 1px solid var(--xp-shell-line); border-radius: 12px; box-shadow: 0 24px 70px #000b;
}
.xp-account-popover a, .xp-account-popover button { min-height: 44px; padding: 0 11px; display: flex; align-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--xp-shell-text); font: inherit; font-size: 13px; cursor: pointer; }
.xp-account-popover a:hover, .xp-account-popover button:hover { background: var(--xp-shell-panel-2); }
.xp-account-attribution { padding: 10px 11px; color: var(--xp-shell-muted); font-size: 11px; border-bottom: 1px solid var(--xp-shell-line); }
.xp-account-attribution b { color: var(--xp-shell-warm); letter-spacing: .1em; }

.xp-global-search {
  position: absolute; top: 100%; left: 50%; width: min(720px, calc(100vw - 30px)); transform: translateX(-50%);
  padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; background: #10192bf8; border: 1px solid var(--xp-shell-line); border-radius: 0 0 12px 12px; box-shadow: 0 24px 60px #0008;
}
.xp-global-search[hidden] { display: none; }
.xp-global-search label { grid-column: 1 / -1; color: var(--xp-shell-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.xp-global-search input { min-width: 0; min-height: 44px; padding: 0 13px; color: var(--xp-shell-text); background: #0a1120; border: 1px solid var(--xp-shell-line); border-radius: 8px; font: inherit; }
.xp-global-search button { min-height: 44px; padding: 0 18px; color: #06111b; background: var(--xp-shell-accent); border: 0; border-radius: 8px; font-weight: 800; }

.xp-local-nav { min-height: 48px; padding: 0 max(18px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; gap: 18px; background: var(--xp-shell-panel); border-bottom: 1px solid var(--xp-shell-line); color: var(--xp-shell-text); overflow: hidden; }
.xp-local-nav > span { flex: 0 0 auto; color: var(--xp-shell-accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.xp-local-nav > div { min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 3px; overflow-x: auto; contain: inline-size layout paint; scrollbar-width: none; }
.xp-local-nav > div::-webkit-scrollbar { display: none; }
.xp-local-nav a, .xp-local-nav button { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; flex: 0 0 auto; border: 0; border-radius: 7px; background: transparent; color: var(--xp-shell-muted); font: inherit; font-size: 12px; cursor: pointer; }
.xp-local-nav a:hover, .xp-local-nav button:hover, .xp-local-nav .xp-local-action { color: white; background: var(--xp-shell-panel-2); }
.xp-local-nav details { position: relative; flex: 0 0 auto; }
.xp-local-nav details > summary { min-height: 44px; padding: 0 12px; display: flex; align-items: center; color: var(--xp-shell-muted); border-radius: 7px; list-style: none; font-size: 12px; cursor: pointer; }
.xp-local-nav details > summary::-webkit-details-marker { display: none; }
.xp-local-nav details[open] > summary { color: white; background: var(--xp-shell-panel-2); }
.xp-local-nav details > div { position: fixed; z-index: 3200; margin-top: 4px; padding: 6px; display: none; min-width: 150px; background: #10192b; border: 1px solid var(--xp-shell-line); border-radius: 8px; box-shadow: 0 16px 40px #0008; }
.xp-local-nav details[open] > div { display: grid; }

.xp-drawer-scrim, .xp-admin-scrim { position: fixed; inset: 0; z-index: 3998; background: #0009; }
.xp-wiki-scrim { position: fixed; inset: 0; z-index: 2899; background: #0009; }
.xp-mobile-drawer { position: fixed; top: 0; right: 0; z-index: 3999; width: min(380px, 92vw); height: 100dvh; padding: 14px; transform: translateX(105%); transition: transform .2s ease; overflow-y: auto; background: #0b1221; border-left: 1px solid var(--xp-shell-line); color: var(--xp-shell-text); }
.xp-mobile-drawer[aria-hidden="true"] { display: none; }
.xp-mobile-drawer.is-open { transform: translateX(0); }
.xp-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.xp-drawer-head button { width: 44px; height: 44px; color: white; background: transparent; border: 1px solid var(--xp-shell-line); border-radius: 8px; font-size: 25px; }
.xp-drawer-group { border-bottom: 1px solid var(--xp-shell-line); }
.xp-drawer-group > summary, .xp-drawer-direct { min-height: 52px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; list-style: none; color: white; font-weight: 750; }
.xp-drawer-group > summary::-webkit-details-marker { display: none; }
.xp-drawer-group[open] > summary span { transform: rotate(45deg); }
.xp-drawer-group > div { padding: 0 0 10px 10px; display: grid; }
.xp-drawer-group > div a { min-height: 44px; padding: 0 10px; display: flex; align-items: center; border-radius: 7px; color: var(--xp-shell-muted); }
.xp-drawer-group > div a:hover { background: var(--xp-shell-panel-2); color: white; }
.xp-drawer-utility { padding-top: 14px; display: flex; gap: 8px; }
.xp-drawer-utility a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--xp-shell-line); border-radius: 8px; color: var(--xp-shell-muted); }

.xp-site-footer { padding: 54px max(22px, calc((100vw - 1320px) / 2)) 24px; background: #080d18; border-top: 1px solid var(--xp-shell-line); color: var(--xp-shell-muted); }
.xp-footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; }
.xp-footer-grid section { display: flex; flex-direction: column; gap: 4px; }
.xp-footer-grid h2 { margin: 0 0 10px; color: var(--xp-shell-text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.xp-footer-grid a { min-height: 44px; display: flex; align-items: center; color: var(--xp-shell-muted); font-size: 13px; }
.xp-footer-grid a:hover { color: var(--xp-shell-accent); }
.xp-footer-base { margin-top: 38px; padding-top: 20px; display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--xp-shell-line); font-size: 12px; }
.xp-footer-base p { margin: 0; }
.xp-footer-base nav { margin-left: auto; display: flex; gap: 16px; }
.xp-footer-base nav a { color: var(--xp-shell-muted); }

.xp-auth-header { min-height: 62px; padding: 0 max(18px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; gap: 18px; color: var(--xp-shell-text); background: var(--xp-shell-bg); border-bottom: 1px solid var(--xp-shell-line); }
.xp-auth-header > span { color: var(--xp-shell-muted); font-size: 13px; }
.xp-auth-header nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.xp-auth-header nav a, .xp-auth-header nav button { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--xp-shell-muted); background: transparent; border: 0; border-radius: 8px; font: inherit; cursor: pointer; }
.xp-auth-header nav a:hover, .xp-auth-header nav button:hover { color: white; background: var(--xp-shell-panel-2); }
.xp-compact-footer { min-height: 72px; padding: 14px max(18px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; gap: 22px; color: var(--xp-shell-muted); background: #080d18; border-top: 1px solid var(--xp-shell-line); font-size: 12px; }
.xp-compact-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.xp-compact-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--xp-shell-muted); }

.xp-contributor-header { flex: 0 0 auto; position: relative; z-index: 2500; color: var(--xp-shell-text); background: #0c1424; border-bottom: 1px solid var(--xp-shell-line); }
.xp-contributor-top { min-height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #263654; }
.xp-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--xp-shell-muted); font-size: 12px; overflow: hidden; white-space: nowrap; }
.xp-breadcrumb a { color: var(--xp-shell-muted); }
.xp-breadcrumb a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.xp-breadcrumb strong { color: var(--xp-shell-text); overflow: hidden; text-overflow: ellipsis; }
.xp-contributor-account { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; color: var(--xp-shell-muted); font-size: 12px; }
.xp-contributor-actions { min-height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 5px; }
.xp-contributor-actions > a, .xp-contributor-actions summary { min-height: 44px; padding: 0 11px; display: inline-flex; align-items: center; color: var(--xp-shell-muted); border-radius: 7px; list-style: none; font-size: 12px; cursor: pointer; }
.xp-contributor-actions > a:hover, .xp-contributor-actions summary:hover { color: white; background: var(--xp-shell-panel-2); }
.xp-contributor-actions details { margin-left: auto; position: relative; }
.xp-contributor-actions summary::-webkit-details-marker { display: none; }
.xp-contributor-actions details > div { position: absolute; top: 100%; right: 0; width: 190px; padding: 7px; display: grid; background: #10192b; border: 1px solid var(--xp-shell-line); border-radius: 9px; box-shadow: 0 18px 50px #000a; }
.xp-contributor-actions details a { min-height: 44px; padding: 0 10px; display: flex; align-items: center; color: var(--xp-shell-muted); border-radius: 6px; }
.xp-contributor-actions details a:hover, .xp-contributor-actions details a[aria-current="page"] { color: white; background: var(--xp-shell-panel-2); }
.xp-workflow { min-height: 38px; margin: 0; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 0; list-style: none; background: #0a101d; }
.xp-workflow li { min-width: 100px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #6f7f99; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.xp-workflow li:not(:last-child)::after { content: "→"; margin-left: 24px; color: #43516a; }
.xp-workflow .is-current { color: var(--xp-shell-accent); }
body.xp-shell-contributor .editor-header .header-nav,
body.xp-shell-contributor .editor-header .user-info,
body.xp-shell-contributor .editor-header #logoutBtn { display: none !important; }
body.xp-shell-contributor .editor-header { border-top: 0; }

body.xp-shell-admin { --xp-shell-rail-w: 288px; padding: 64px 0 0 var(--xp-shell-rail-w) !important; box-sizing: border-box !important; transition: padding-left .18s ease; }
body.xp-shell-admin.xp-admin-collapsed { --xp-shell-rail-w: 76px; }
body.xp-shell-admin > nav.pxs-nav { display: none !important; }
body.xp-shell-admin .editor-header .header-nav,
body.xp-shell-admin .editor-header .user-info,
body.xp-shell-admin .editor-header #logoutBtn { display: none !important; }
.xp-admin-rail { position: fixed; z-index: 3200; inset: 0 auto 0 0; width: var(--xp-shell-rail-w); overflow-x: hidden; overflow-y: auto; color: var(--xp-shell-text); background: #0a1120; border-right: 1px solid var(--xp-shell-line); transition: width .18s ease, transform .18s ease; }
.xp-admin-brand { height: 64px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--xp-shell-line); }
.xp-admin-brand button { width: 44px; height: 44px; color: var(--xp-shell-muted); background: transparent; border: 1px solid var(--xp-shell-line); border-radius: 7px; cursor: pointer; }
.xp-admin-home { min-height: 48px; margin: 10px; padding: 0 11px; display: flex; align-items: center; color: var(--xp-shell-accent); background: #13223a; border: 1px solid #28476a; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.xp-admin-group { border-top: 1px solid #22304a; }
.xp-admin-group > summary { min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; list-style: none; color: var(--xp-shell-muted); cursor: pointer; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.xp-admin-group > summary::-webkit-details-marker { display: none; }
.xp-admin-group > summary span { min-width: 22px; padding: 2px 5px; border-radius: 8px; background: #1b2941; text-align: center; font-size: 10px; }
.xp-admin-group > div, .xp-admin-shortcuts { padding: 0 7px 9px; }
.xp-admin-shortcuts h2 { margin: 13px 8px 7px; color: #74839d; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.xp-admin-tool-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; }
.xp-admin-tool-row > a { min-height: 44px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #b8c5d9; border-radius: 6px; white-space: nowrap; overflow: hidden; font-size: 12px; }
.xp-admin-tool-row > a span { overflow: hidden; text-overflow: ellipsis; }
.xp-admin-tool-row > a small { color: var(--xp-shell-accent); }
.xp-admin-tool-row > a:hover, .xp-admin-tool-row > a[aria-current="page"] { color: white; background: #172640; }
.xp-admin-tool-row > button { width: 44px; height: 44px; border: 0; background: transparent; color: #3d4b62; cursor: pointer; }
.xp-admin-tool-row > button[aria-pressed="true"] { color: var(--xp-shell-warm); }
.xp-admin-topbar { position: fixed; z-index: 3100; top: 0; right: 0; left: var(--xp-shell-rail-w); height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: var(--xp-shell-text); background: #0c1423f7; border-bottom: 1px solid var(--xp-shell-line); transition: left .18s ease; }
.xp-admin-topbar > .xp-breadcrumb { flex: 1 1 auto; }
.xp-command-trigger { min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: var(--xp-shell-muted); background: #111c2f; border: 1px solid var(--xp-shell-line); border-radius: 8px; cursor: pointer; }
.xp-admin-badges { display: flex; align-items: center; gap: 5px; }
.xp-admin-badges span { padding: 5px 8px; color: #d8e7ff; background: #1d3151; border-radius: 10px; font-size: 10px; white-space: nowrap; }
.xp-env-badge { padding: 6px 9px; color: #b7ffd0; background: #123b29; border: 1px solid #236443; border-radius: 7px; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.xp-env-badge.is-prod { color: #fff0c2; background: #542710; border-color: #a6571c; }
.xp-admin-topbar > a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--xp-shell-muted); font-size: 11px; white-space: nowrap; }
.xp-admin-account { position: relative; }
.xp-admin-account > summary { min-height: 44px; padding: 0 10px; display: flex; align-items: center; color: white; list-style: none; cursor: pointer; font-size: 12px; }
.xp-admin-account > div { position: absolute; top: 100%; right: 0; width: 150px; padding: 6px; display: grid; background: #10192b; border: 1px solid var(--xp-shell-line); border-radius: 8px; }
.xp-admin-account a, .xp-admin-account button { min-height: 44px; padding: 0 9px; display: flex; align-items: center; color: var(--xp-shell-muted); background: transparent; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
.xp-admin-mobile-toggle { display: none; position: fixed; z-index: 3300; top: 10px; left: 10px; width: 44px; height: 44px; color: white; background: #111c2f; border: 1px solid var(--xp-shell-line); border-radius: 8px; }
.xp-command-backdrop { position: fixed; z-index: 5000; inset: 0; padding: 10vh 18px 18px; background: #02050bc7; }
.xp-command-backdrop[hidden] { display: none; }
.xp-command-palette { width: min(720px, 100%); max-height: 76vh; margin: 0 auto; padding: 16px; color: var(--xp-shell-text); background: #0e1728; border: 1px solid #405375; border-radius: 14px; box-shadow: 0 30px 100px #000; }
.xp-command-palette h2 { margin: 0 0 12px; font-size: 13px; }
.xp-command-palette > input { width: 100%; min-height: 48px; padding: 0 13px; color: white; background: #080f1d; border: 1px solid #43597d; border-radius: 9px; font: inherit; }
.xp-command-results { max-height: 54vh; margin-top: 10px; overflow-y: auto; }
.xp-command-results a { min-height: 58px; padding: 9px 11px; display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; color: var(--xp-shell-text); border-radius: 8px; }
.xp-command-results a[aria-selected="true"], .xp-command-results a:hover { background: #172843; }
.xp-command-results a span { display: flex; flex-direction: column; gap: 3px; }
.xp-command-results small, .xp-command-results em { color: var(--xp-shell-muted); font-size: 11px; font-style: normal; }
.xp-command-palette > p { margin: 10px 0 0; color: #71809a; font-size: 10px; }
.xp-admin-denied { min-height: 64px; padding: 10px 18px; display: flex; align-items: center; gap: 15px; color: var(--xp-shell-text); background: var(--xp-shell-bg); border-bottom: 1px solid var(--xp-shell-line); }
.xp-admin-denied p { flex: 1; color: var(--xp-shell-muted); }
.xp-admin-denied > a:not(.xp-logo) { min-height: 44px; display: inline-flex; align-items: center; color: var(--xp-shell-accent); }
body.xp-admin-collapsed .xp-admin-rail nav,
body.xp-admin-collapsed .xp-admin-shortcuts,
body.xp-admin-collapsed .xp-admin-home,
body.xp-admin-collapsed .xp-admin-brand .xp-logo b { display: none; }
body.xp-admin-collapsed .xp-admin-brand { justify-content: center; }

@media (max-width: 1100px) {
  .xp-primary { display: none; }
  .xp-menu-toggle { display: grid; }
  .xp-site-header { gap: 12px; }
  .xp-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.xp-shell-admin { --xp-shell-rail-w: 0px; padding-left: 0 !important; }
  .xp-admin-rail { width: min(310px, 88vw); transform: translateX(-105%); }
  .xp-admin-rail.is-mobile-open { transform: translateX(0); }
  .xp-admin-topbar { left: 0; padding-left: 62px; }
  .xp-admin-mobile-toggle { display: block; }
  .xp-admin-brand .xp-logo b { display: inline !important; }
  .xp-admin-rail nav, .xp-admin-shortcuts { display: block !important; }
  .xp-admin-home { display: flex !important; }
}

@media (max-width: 760px) {
  .xp-beta-disclosure { justify-content: flex-start; flex-wrap: wrap; gap: 4px 8px; padding: 7px 12px; }
  .xp-world-status, .xp-search-toggle, .xp-utility-link { display: none; }
  .xp-site-header { padding: 0 10px; box-shadow: none; }
  .xp-account-menu > summary > span:nth-child(2), .xp-account-menu > summary > span:last-child { display: none; }
  .xp-account-menu > summary { min-width: 44px; justify-content: center; }
  .xp-primary-cta { padding: 0 12px; }
  .xp-local-nav { padding: 0 10px; gap: 9px; }
  .xp-local-nav details { display: contents; }
  .xp-local-nav details > summary { display: none; }
  .xp-local-nav details > div, .xp-local-nav details[open] > div { display: contents; }
  .xp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .xp-footer-base { align-items: flex-start; flex-wrap: wrap; }
  .xp-footer-base nav { width: 100%; margin-left: 0; }
  .xp-auth-header { padding: 0 10px; }
  .xp-auth-header > span { display: none; }
  .xp-auth-header nav a, .xp-auth-header nav button { padding: 0 8px; font-size: 11px; }
  .xp-compact-footer { align-items: flex-start; flex-direction: column; gap: 2px; }
  .xp-compact-footer nav { margin-left: 0; }
  .xp-contributor-actions { overflow-x: auto; }
  .xp-contributor-actions details { margin-left: 0; flex: 0 0 auto; }
  .xp-workflow { justify-content: flex-start; overflow-x: auto; }
  .xp-workflow li { min-width: 82px; }
  .xp-workflow li:not(:last-child)::after { margin-left: 12px; }
  .xp-command-trigger span, .xp-admin-topbar > .xp-breadcrumb span, .xp-admin-topbar > .xp-breadcrumb a,
  .xp-admin-topbar > a, .xp-admin-badges { display: none; }
  .xp-admin-topbar { gap: 7px; padding-right: 8px; }
  .xp-command-trigger { margin-left: auto; }
  .xp-command-results a { grid-template-columns: 1fr; gap: 3px; }
  body[data-xp-route-id="leaderboards"] .lb-content { padding-left: 16px !important; padding-right: 16px !important; }
  body[data-xp-route-id="codex"] .wiki-side { position: fixed; z-index: 2900; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); margin: 0; padding: 78px 18px 18px; overflow-y: auto; transform: translateX(-105%); transition: transform .18s ease; background: #0c1423; box-shadow: 20px 0 60px #0009; }
  body.xp-wiki-browse-open .wiki-side { transform: translateX(0); }
  .xp-wiki-browse-close { min-height: 44px; margin: 0 0 12px; padding: 0 12px; color: white; background: #172640; border: 1px solid #40557a; border-radius: 8px; }
}

@media (max-width: 430px) {
  .xp-logo b { font-size: 12px; letter-spacing: .1em; }
  .xp-logo span { font-size: 18px; }
  .xp-site-utilities { gap: 5px; }
  .xp-avatar { width: 34px; height: 34px; }
  .xp-menu-toggle { width: 44px; min-width: 44px; }
  .xp-primary-cta { min-height: 44px; font-size: 11px; }
  .xp-footer-grid { grid-template-columns: 1fr 1fr; }
  .xp-contributor-top, .xp-contributor-actions, .xp-workflow { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .xp-mobile-drawer, .xp-admin-rail, .xp-admin-topbar, body.xp-shell-admin { transition: none !important; }
}

#xp-shell-root :focus-visible, #xp-footer-root :focus-visible { outline: 3px solid var(--xp-shell-accent); outline-offset: 2px; }
