:root{
--a2-amber:#edcf8e;
--a2-sky:#dce8ed;
--a2-sage:#dce5d6;
--a2-clay:#f0dcd5;
--a2-quiet:#e9e3d8;
--a2-organic:17px 21px 18px 15px / 19px 16px 21px 17px;
--a2-nav-selected:color-mix(in srgb,var(--amber-solid) 17%,var(--bg));
--a2-nav-surface:color-mix(in srgb,var(--hairline) 38%,var(--bg));
}
[data-theme="dark"]{
--a2-amber:#b98b43;
--a2-sky:#31454d;
--a2-sage:#334437;
--a2-clay:#53372f;
--a2-quiet:#332e26;
}
/* Primary navigation is an approved shared component on every signed-in route.
   Its skin is independent of the A2 page shell: Crews/You keep their existing
   topbar, local destinations and context controls until those layouts are reviewed. */
html.logged-in #tabbar{left:max(14px,var(--safe-inline-left,0px));right:max(14px,var(--safe-inline-right,0px));bottom:max(10px,env(safe-area-inset-bottom,0px));width:auto;min-height:62px;padding:5px;gap:2px;border:0;border-radius:22px 26px 23px 21px;background:var(--a2-nav-surface);backdrop-filter:none;box-shadow:none}
html.logged-in .tab-item{min-width:0;min-height:52px;padding:5px 2px;gap:4px}
html.logged-in :is(.tab-item,.ds-nav-item){color:var(--text);border-radius:var(--a2-organic)}
html.logged-in :is(.tab-item,.ds-nav-item).active{color:var(--text);background:var(--a2-nav-selected)}
html.logged-in :is(.tab-item,.ds-nav-item).active::after{display:none}
html.logged-in :is(.tab-item,.ds-nav-item)>.icon{width:21px;height:21px;stroke-width:1.65;flex-shrink:0}
html.logged-in .tab-item>span:not(.count-badge),html.logged-in .ds-nav-label{font:500 10px/1.2 var(--font-ui);letter-spacing:normal}
html.logged-in :is(.tab-item,.ds-nav-item):focus-visible{outline:2px solid var(--text);outline-offset:-2px}
@media (min-width:768px),(min-width:440px) and (max-height:720px){
html.logged-in:not(.a2-shell) #sidebar .ds-nav{padding:5px;gap:5px;background:var(--a2-nav-surface);border:0;border-radius:22px 18px 24px 20px}
html.logged-in:not(.a2-shell) #sidebar .ds-nav-item{min-width:44px;min-height:48px;padding:5px 2px;gap:4px}
}
@media (min-width:1024px){
/* The existing expanded sidebar has inline labels, rather than icon captions. */
html.logged-in:not(.a2-shell) #sidebar .ds-nav-item{min-height:44px;padding:10px;gap:12px}
html.logged-in:not(.a2-shell) #sidebar .ds-nav-label{font-size:14.5px}
}
html.a2-shell{
  --a2-left:max(var(--duo-rail-side-left,0px),calc(var(--safe-inline-left) - var(--duo-rail-overlap-left,0px)));
  --a2-right:max(var(--duo-rail-side-right,0px),calc(var(--safe-inline-right) - var(--duo-rail-overlap-right,0px)));
}
html.logged-in.a2-shell #email-verification-root:not(:empty){margin:0;padding:calc(16px + env(safe-area-inset-top,0px)) 22px 0}
html.a2-shell #topbar,html.a2-shell #sidebar{display:none}
html.logged-in.a2-shell #app{margin-inline:0;padding-top:0;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
html.logged-in.a2-shell #tabbar{display:flex;left:max(14px,var(--a2-left));right:max(14px,var(--a2-right));bottom:max(10px,env(safe-area-inset-bottom,0px));width:auto;min-height:62px;padding:5px;gap:2px;border:0;border-radius:22px 26px 23px 21px;background:var(--a2-nav-surface);backdrop-filter:none;box-shadow:none}
html.logged-in.a2-shell.viewport-entry-active #tabbar{display:none}
html.a2-shell .tab-item{min-width:0;min-height:52px;padding:5px 2px;gap:4px;color:var(--text);border-radius:var(--a2-organic)}
html.a2-shell :is(.tab-item,.ds-nav-item).active{color:var(--text);background:var(--a2-nav-selected)}
html.a2-shell :is(.tab-item,.ds-nav-item).active::after{display:none}
html.a2-shell :is(.tab-item,.ds-nav-item)>.icon{width:21px;height:21px;stroke-width:1.65}
html.a2-shell .tab-item>span,html.a2-shell .ds-nav-label{font:500 10px/1.2 var(--font-ui)}
html.a2-shell :is(.tab-item,.ds-nav-item):focus-visible{outline:2px solid var(--text);outline-offset:-2px}
html.a2-detail-open :is(#tabbar,#sidebar){z-index:120}
html.a2-detail-open #modal-root>.modal-backdrop{padding:0;background:var(--bg);backdrop-filter:none;align-items:stretch;justify-content:stretch}
html.a2-detail-open #modal-root .gd-modal.gd-dialog{position:relative;inset:auto;width:100%;max-width:none;height:var(--shell-viewport-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;transform:none;animation:none;box-shadow:none}
html.logged-in.a2-detail-open #modal-root .gd-dialog .modal-body{padding-bottom:calc(172px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:172px}
html.logged-in.a2-detail-open .gd-dialog .gd-floating-actions{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.shelf-a2{max-width:1440px;padding-top:calc(var(--space-4) + env(safe-area-inset-top,0px))}
.shelf-a2 .shelf-shell-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]){position:static;background:var(--a2-quiet);border:0;border-radius:var(--a2-organic);padding:4px;margin:0 0 12px;width:100%}
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch{display:flex;flex-wrap:wrap;width:100%;max-width:none;background:transparent;gap:3px;border:0;padding:0;overflow:visible}
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch-indicator{display:none}
/* Equal columns when labels fit; intrinsic widths and wrapping protect enlarged
   text without shrinking type or hiding a destination behind an ellipsis. */
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch-item{flex:1 1 0;justify-content:center;min-width:max-content;min-height:44px;height:auto;padding:9px clamp(6px,2vw,12px);border:0;border-radius:13px 16px 12px 15px;font:500 15px/1.3 var(--font-ui);letter-spacing:normal;color:var(--text)}
html.a2-shell :is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch-item>span{flex-shrink:0;overflow:visible;text-overflow:clip}
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch-item::after{display:none}
html.a2-shell :is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]) .local-switch-item[aria-current="page"]{background:var(--a2-nav-selected);box-shadow:none;color:var(--text);font-weight:600}
@media (min-width:768px),(min-width:440px) and (max-height:720px){
html.logged-in.a2-shell #email-verification-root:not(:empty){margin-right:calc(92px + var(--a2-right));margin-left:var(--a2-left)}
html.logged-in.a2-shell.a2-rail-left #email-verification-root:not(:empty){margin-left:calc(92px + var(--a2-left));margin-right:var(--a2-right)}
html.logged-in.a2-shell #tabbar{display:none}
html.logged-in.a2-shell #sidebar{display:flex;flex-direction:column;justify-content:center;gap:18px;position:fixed;left:auto;right:max(12px,var(--a2-right));top:max(12px,env(safe-area-inset-top,0px),var(--duo-rail-top-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));width:68px;padding:8px 5px;border:0;border-radius:22px 18px 24px 20px;background:var(--a2-nav-surface);overflow:visible;box-shadow:none}
html.a2-shell #sidebar :is(.ds-logo,.ds-crew-card,.ds-nav-label--full){display:none}
html.a2-shell #sidebar .ds-nav{display:grid;gap:5px;padding:0}
html.a2-shell #sidebar .ds-nav-item{display:flex;text-align:center;flex-direction:column;justify-content:center;align-items:center;width:58px;min-height:48px;padding:5px 2px;gap:4px;border:0;border-radius:var(--a2-organic);color:var(--text)}
html.a2-shell #sidebar .ds-nav-label--short{display:block}
html.logged-in.a2-shell #app{margin:0;padding:0 calc(92px + var(--a2-right)) 24px var(--a2-left)}
html.a2-shell #sidebar .a2-shelf-actions{flex-direction:column;gap:2px;padding:8px 0 0;border-top:1px solid color-mix(in srgb,var(--muted) 18%,transparent);border-radius:0;background:transparent}
html.a2-shell.a2-rail-left #sidebar{top:max(12px,env(safe-area-inset-top,0px),var(--duo-rail-top-left,0px));right:auto;left:max(12px,var(--a2-left))}
/* With actions beside Search, the navigation dock hugs its links. Keep the
   available-height limit so either native cutout side remains protected. */
html.logged-in.a2-shell:not(.a2-actions-in-rail) #sidebar{top:auto;max-height:calc(var(--shell-viewport-height,100dvh) - max(12px,env(safe-area-inset-top,0px),var(--duo-rail-top-right,0px)) - max(12px,env(safe-area-inset-bottom,0px)))}
html.logged-in.a2-shell.a2-rail-left:not(.a2-actions-in-rail) #sidebar{max-height:calc(var(--shell-viewport-height,100dvh) - max(12px,env(safe-area-inset-top,0px),var(--duo-rail-top-left,0px)) - max(12px,env(safe-area-inset-bottom,0px)))}
html.logged-in.a2-shell.a2-rail-left #app{padding-inline:calc(92px + var(--a2-left)) var(--a2-right)}
html.logged-in.a2-detail-open.a2-rail-left #modal-root>.modal-backdrop{left:calc(92px + var(--a2-left));right:0}
html.logged-in.a2-detail-open #modal-root>.modal-backdrop{right:calc(92px + var(--a2-right))}
html.logged-in.a2-detail-open #modal-root .gd-dialog .modal-body{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:96px}
html.logged-in.a2-detail-open .gd-dialog .gd-floating-actions{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
.shelf-a2 .a2-search-home{flex:1;min-width:0}
.shelf-a2 .a2-shelf-controls{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.a2-search{display:flex;align-items:center;gap:8px;min-width:0;flex:1;padding:3px 5px 3px 13px;background:var(--surface);border-radius:var(--a2-organic)}
.a2-search>span{display:flex;color:var(--muted)}
:is(.shelf-a2,.a2-menu-panel) .a2-search input[type="search"]{min-width:0;width:100%;padding:10px 0;border:0;box-shadow:none;border-radius:0;background:transparent;font-size:16px}
.a2-search button,.a2-shelf-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:44px;min-height:44px;border:0;border-radius:var(--a2-organic);background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.a2-search button[hidden]{display:none}
.a2-search input[type="search"]::-webkit-search-cancel-button{display:none;-webkit-appearance:none}
.a2-shelf-actions button.is-active{background:var(--a2-sky)}
.a2-filter-count:empty{display:none}
.a2-filter-count{position:absolute;top:0;right:0;min-width:16px;border-radius:50%;background:var(--text);color:var(--bg);font:600 11px/16px var(--font-ui)}
.a2-shelf-actions{display:flex;gap:4px;align-items:center;padding:3px;background:var(--a2-quiet);border-radius:var(--a2-organic)}
.a2-shelf-actions button{position:relative;padding:8px}
.a2-actions-home:empty{display:none}
.shelf-a2 .icon,.a2-sheet .icon,.a2-shelf-actions .icon{width:21px;height:21px;flex-shrink:0}
.shelf-a2 .wh-availability-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.a2-shelf-nudge:empty{display:none}
.a2-shelf-nudge .onb-nudge,.a2-shelf-nudge .score-nudge{margin:0 0 14px}
.a2-masonry{--a2-columns:3;position:relative;column-gap:8px;margin-bottom:24px}
.a2-game{position:absolute;top:0;left:0;min-width:0;padding-bottom:5px}
.a2-cover{position:relative;display:block;width:100%;min-height:44px;overflow:hidden;padding:0;border:0;border-radius:10px 12px 11px 9px;background:var(--a2-quiet);color:var(--text);cursor:pointer;box-shadow:none}
.a2-cover img{display:block;width:100%;height:auto;min-height:0;max-height:none;object-fit:contain;border:0;box-shadow:none;border-radius:inherit}
.a2-cover img[hidden]{display:none}
.a2-cover-fallback{display:none}
.a2-cover.a2-missing-art{aspect-ratio:1}
.a2-missing-art .a2-cover-fallback{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;padding:10px;font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.a2-cover-fallback>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;max-width:100%}
.a2-game-caption{padding:7px 2px 2px;color:var(--text);font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.a2-expansion-toggle{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-height:44px;padding:6px 2px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.a2-expansion-toggle[aria-expanded="true"] .icon{transform:rotate(180deg)}
.a2-dense .a2-masonry{--a2-columns:4}
.a2-availability{display:block;font-size:11px;line-height:1.35;color:var(--muted);padding:5px 2px 0}
.a2-wish-group{margin:0 0 20px}
.a2-wish-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:10px 12px;margin:0 -4px 10px;border-radius:var(--a2-organic);cursor:pointer;list-style:none;font-size:16px;font-weight:600}
.a2-wish-group>summary small{margin-left:7px;color:var(--muted);font-size:13px;font-weight:400}
.a2-wish-group>summary::marker,.a2-disclosure>summary::marker{content:''}
.a2-wish-group>summary::-webkit-details-marker,.a2-disclosure>summary::-webkit-details-marker{display:none}
.a2-disclosure-arrow{transition:transform 160ms ease}
details[open]>summary>.a2-disclosure-arrow{transform:rotate(180deg)}
.a2-selection{position:absolute;inset:6px 6px auto auto;display:grid;place-items:center;width:28px;height:28px;border-radius:9px 11px 8px 10px;background:var(--surface);color:var(--text)}
.is-selected .a2-cover{outline:3px solid var(--primary);outline-offset:2px}
.is-selected .a2-selection{background:var(--a2-sky)}
.a2-manage-bar,.a2-manage-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.a2-manage-bar>span{margin-right:auto;font-weight:600}
.a2-manage-actions{margin-bottom:20px}
.a2-manage-actions .btn{flex:1}
.a2-sheet .modal-body{padding:12px 20px 24px}
.a2-action-row{display:flex;width:100%;gap:14px;align-items:center;padding:15px 12px;min-height:56px;border:0;border-radius:var(--a2-organic);background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.a2-action-row>span{flex:1;min-width:0}
.a2-action-row strong{display:block;font-size:15px;font-weight:600}
.a2-action-row small{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
.a2-action-row .a2-row-arrow{margin-left:auto}
.a2-setting-row{position:relative;margin:0}
.a2-setting-row input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.a2-setting-row>.a2-choice-mark{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px}
.a2-setting-row .a2-choice-mark .icon{width:20px;height:20px}
.a2-setting-row:has(input:focus-visible){outline:2px solid var(--text);outline-offset:2px}
.a2-disclosure{margin-bottom:10px;background:var(--a2-quiet);border-radius:var(--a2-organic)}
.a2-disclosure>summary{display:flex;align-items:center;gap:13px;padding:13px 15px;min-height:64px;cursor:pointer;list-style:none}
.a2-disclosure>summary>span{flex:1;min-width:0}
.a2-disclosure strong{display:block;font-size:15px;font-weight:600}
.a2-disclosure small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.a2-choice-list{padding:2px 10px 10px}
.a2-choice-row{display:flex;align-items:center;gap:14px;justify-content:space-between;min-height:46px;padding:11px 10px;border-radius:12px 15px 13px 11px;font-size:15px;font-weight:400;cursor:pointer}
.a2-choice-row:has(input:disabled){opacity:.55;cursor:default}
.a2-choice-row input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;min-height:0;padding:0;margin:0;border:1.5px solid var(--muted);border-radius:5px 7px 5px 6px;background:transparent;box-shadow:none}
.a2-choice-row input[type="radio"]{border-radius:45% 54% 46% 51%}
.a2-choice-row input:checked{background:var(--text);border-color:var(--text);box-shadow:inset 0 0 0 4px var(--a2-quiet)}
.a2-filter-choice{position:relative}
.a2-filter-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.a2-filter-choice .a2-choice-mark{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px}
.a2-filter-choice .a2-choice-mark .icon{width:20px;height:20px}
.a2-filter-choice:has(input:focus-visible){outline:2px solid var(--text);outline-offset:2px}
.a2-sheet-footer{display:flex;flex-wrap:wrap;gap:10px;padding-top:20px}
.a2-sheet-footer>.btn-primary{flex:1}
.a2-sheet .btn,.shelf-a2 .btn{border:0;border-radius:var(--a2-organic);min-height:44px;font-weight:600}
.a2-sheet .btn-primary,.shelf-a2 .btn-primary{background:var(--a2-amber);color:var(--on-amber)}
.a2-sheet button:disabled,.shelf-a2 button:disabled{opacity:.45;cursor:default}
.a2-sheet :focus-visible,.shelf-a2 :focus-visible{outline:3px solid var(--text);outline-offset:3px}
.a2-search:focus-within{outline:2px solid var(--text);outline-offset:2px}
:is(.shelf-a2,.a2-menu-panel) .a2-search input[type="search"]:focus-visible{outline:none}
/* Filter groups share Add/Options' quiet row rhythm, without changing the
   filled disclosures used by live entry and bulk review. */
.a2-filter-modal .a2-disclosure{margin-bottom:var(--space-1);background:transparent;border-radius:var(--radius-sm)}
.a2-filter-modal .a2-disclosure[open]{background:var(--a2-quiet)}
.a2-filter-modal .a2-disclosure>summary{gap:var(--space-3);min-height:60px;padding:10px;border-radius:var(--radius-sm)}
.a2-filter-modal .a2-disclosure>summary>.icon{width:21px;height:21px;flex:0 0 21px}
.a2-filter-modal .a2-choice-list{padding:0 6px var(--space-2) 33px}
.a2-filter-modal .a2-filter-choice{gap:var(--space-3);box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px;border-radius:var(--radius-sm)}
.a2-filter-modal .a2-filter-choice>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.a2-filter-modal .a2-filter-choice:has(input:disabled){background:transparent}
.a2-filter-feedback{flex:none;margin:0 0 var(--space-3);color:var(--muted);font-size:13px;line-height:1.4}
.a2-filter-hint{margin:0 10px var(--space-2);color:var(--muted);font-size:13px;line-height:1.4}
.a2-filter-hint[hidden]{display:none}
.a2-filter-modal .a2-disclosure>summary:active,.a2-filter-modal .a2-filter-choice:not(:has(input:disabled)):active{background:var(--a2-quiet)}
@media (hover:hover){
.a2-filter-modal .a2-disclosure>summary:hover{background:var(--a2-quiet)}
.a2-search button:hover,.a2-shelf-actions button:hover,.a2-wish-group>summary:hover,.a2-action-row:hover,.a2-choice-row:hover{background:var(--a2-quiet)}
.a2-shelf-actions button:hover,.a2-choice-row:hover{background:var(--surface)}
.a2-cover:hover{filter:brightness(.96)}
}
@media (max-width:400px){
.shelf-a2 .a2-shelf-controls{gap:8px}
}
@media (min-width:600px){.a2-masonry{--a2-columns:4;column-gap:10px} .a2-dense .a2-masonry{--a2-columns:5} }
@media (min-width:1000px){.a2-masonry{--a2-columns:6} .a2-dense .a2-masonry{--a2-columns:7} }
@media (min-width:1300px){.a2-masonry{--a2-columns:6} .a2-dense .a2-masonry{--a2-columns:7} }
@media (min-width:768px),(min-width:440px) and (max-height:720px){
:is([data-adaptive-local-nav-owner="shelf-shell"],[data-adaptive-local-nav-owner="playhub-shell"]){width:fit-content;min-width:290px;max-width:100%}
.a2-sheet.modal{width:min(520px,calc(100vw - 48px));max-height:calc(var(--viewport-height,100dvh) - 48px)}
}
@media (prefers-reduced-motion:reduce){.a2-disclosure-arrow{transition:none} }

.a2-decision-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:var(--space-3);margin-top:var(--space-5)}
.a2-decision-actions>button.btn{min-width:0;min-height:48px;padding:var(--space-3);border:0;border-radius:var(--a2-organic);font:600 14px/1.4 var(--font-ui)}
.a2-decision-actions>.btn:not(.btn-primary){background:var(--surface);color:var(--text)}
.a2-decision-actions>.btn-primary{background:var(--a2-amber);color:var(--on-amber)}

/* Approved Shelf launchers share content-led panels, not full-screen editor chrome. */
.a2-menu-backdrop.modal-backdrop,#modal-root>.a2-menu-backdrop{display:flex;align-items:flex-start;justify-content:center;padding:max(24px,calc(env(safe-area-inset-top,0px) + 12px)) max(20px,var(--safe-inline-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(20px,var(--safe-inline-left,0px));background:color-mix(in srgb,var(--muster-ink) 28%,transparent);backdrop-filter:none;-webkit-backdrop-filter:none}
.a2-menu-backdrop .modal.a2-menu-panel,#modal-root>.a2-menu-backdrop>.modal.a2-menu-panel{box-sizing:border-box;display:flex;flex-direction:column;flex:none;width:min(440px,100%);max-width:440px;height:auto;min-height:0;max-height:100%;padding:20px;margin:0;border:0;border-radius:var(--radius-lg);background:var(--bg);color:var(--text);overflow:hidden;box-shadow:none;transform:none;opacity:1;animation:none;transition:none}
.a2-menu-backdrop .modal.a2-menu-panel::before{display:none}
.a2-menu-panel.modal>.modal-head,#modal-root .modal.a2-menu-panel>.modal-head{flex:none;align-items:center;gap:16px;min-width:0;padding:0;margin:0 0 12px;border:0;background:transparent;border-radius:0;cursor:default;touch-action:auto}
.a2-menu-panel.modal>.modal-head h2{min-width:0;margin:0;font:600 22px/1.2 var(--font-ui);white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.a2-menu-panel.modal>.modal-head .modal-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:var(--surface);color:var(--text);box-shadow:none;transform:none}
.a2-menu-panel.modal>.modal-head .modal-close .icon{width:20px;height:20px}
.a2-menu-panel.modal>.modal-body,#modal-root .modal.a2-menu-panel>.modal-body{flex:0 1 auto;min-width:0;min-height:0;padding:0;overflow:auto;overscroll-behavior:contain;scroll-padding:4px}
.a2-menu-panel.modal>.a2-menu-footer{flex:none;margin:0;padding:12px 0 0;border:0;background:transparent}
.a2-menu-panel .a2-sheet-footer{display:flex;gap:12px;padding:0;flex-wrap:nowrap}
.a2-menu-panel .a2-sheet-footer>.btn{flex:1;min-width:0;min-height:44px;padding:10px 8px;margin:0;font:600 14px/1.35 var(--font-ui)}
.a2-menu-panel .a2-sheet-footer>.btn-ghost{background:var(--surface);color:var(--text)}
.a2-menu-panel .a2-sheet-footer>[hidden]{display:none}
.a2-menu-panel .a2-action-row{min-height:48px;padding:10px;gap:12px;font:500 14px/1.35 var(--font-ui);border-radius:var(--radius-sm)}
.a2-menu-panel .a2-action-row strong{font-size:14px;font-weight:600}
.a2-menu-panel .a2-action-row small{font-size:12px;font-weight:400;margin-top:3px}
.a2-search-status{min-height:20px;margin:12px 0 0;color:var(--muted);font-size:13px}
.a2-menu-panel .a2-search-done{width:100%;border:0;background:var(--surface);border-radius:var(--a2-organic);min-height:44px}
.a2-shelf-actions .a2-action-label,.a2-shelf-actions #a2-search-action{display:none}
.a2-shelf-actions.is-rail .a2-action-label,.a2-shelf-actions.is-rail #a2-search-action{display:flex}
.a2-shelf-actions.is-rail{flex-shrink:0;width:100%}
.a2-shelf-actions.is-rail button{flex-direction:column;width:58px;min-height:44px;gap:2px;padding:4px 2px;font:500 10px/1.2 var(--font-ui);border-radius:var(--radius-sm)}
html.a2-actions-in-rail .shelf-a2 .a2-shelf-controls{display:none}
html.logged-in.a2-shell.a2-actions-in-rail #sidebar{justify-content:flex-start;gap:8px}
html.a2-actions-in-rail #sidebar .ds-nav{gap:2px}
html.a2-actions-in-rail #sidebar .ds-nav-item{min-height:44px;padding:4px 2px;gap:2px}
@media(min-width:768px),(min-width:440px) and (max-height:720px){
html.a2-shell .a2-menu-backdrop,html.a2-shell #modal-root>.a2-menu-backdrop{justify-content:flex-end;padding-right:calc(104px + var(--a2-right));padding-left:max(20px,var(--a2-left))}
html.a2-shell.a2-rail-left .a2-menu-backdrop,html.a2-shell.a2-rail-left #modal-root>.a2-menu-backdrop{justify-content:flex-start;padding-left:calc(104px + var(--a2-left));padding-right:max(20px,var(--a2-right))}
}
@media(hover:hover){.a2-menu-panel .modal-close:hover,.a2-menu-panel .a2-action-row:hover{background:var(--a2-quiet)}}

.a2-priority-choices{padding:0;margin:var(--space-3) 0 0;border:0;min-width:0}

/* Approved connected tasks use the same real navigation as game detail.
   Child choice/confirmation sheets still make both the task and nav inert. */
html.a2-detail-open #modal-root .modal.a2-flow-screen{position:relative;inset:auto;width:100%;max-width:none;height:var(--shell-viewport-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;transform:none;animation:none;box-shadow:none;background:var(--bg)}
html.a2-detail-open #modal-root .a2-flow-screen>.modal-head{padding-top:max(20px,calc(env(safe-area-inset-top,0px) + 12px));padding-inline:max(20px,var(--a2-left)) max(20px,var(--a2-right))}
html.logged-in.a2-detail-open #modal-root .a2-flow-screen>.modal-body{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:108px}
html.a2-detail-open:has(.lv-table-mode) :is(#tabbar,#sidebar){display:none}
html.a2-detail-open:has(.lv-table-mode) #modal-root>.modal-backdrop{left:0;right:0}
@media (min-width:768px),(min-width:440px) and (max-height:720px){
html.logged-in.a2-detail-open #modal-root .a2-flow-screen>.modal-body{padding-bottom:32px;scroll-padding-bottom:32px}
}

#modal-root .modal.a2-flow-screen::before{display:none}
