/* Visual-audit repairs. Navigation typography remains authoritative. */
#appShell>.sidebar{container-type:inline-size;container-name:command-sidebar mana-sidebar}
:is(.sidebar,#mtgPageNav)>.mtg-service-distinction{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 4px!important}
.mtg-mobile-menu-button{display:none}
.scanner-mode-topbar{flex-wrap:wrap;gap:12px!important}
.scanner-mode-title{min-width:0;flex:1 1 220px;flex-wrap:wrap;gap:8px}
.scanner-mode-tools{min-width:0;display:flex;flex-wrap:wrap;gap:8px}
#scannerBack{white-space:nowrap;flex:0 0 auto}
#scannerCameraSelect{min-width:0;max-width:100%}
.intake-query-input-wrap{flex:1 1 0;min-width:0}
#intakeQuery{width:100%;box-sizing:border-box}
.collection-heading-line{gap:10px!important}
.collection-heading-stat{white-space:nowrap}
#collectionCommanderBuilder fieldset{border:1px solid var(--border,#6b5534);border-radius:10px;padding:12px;margin:14px 0;color:var(--text,#f3e5c9)}
#collectionCommanderBuilder legend{padding:0 6px}
#guidedColors label{display:inline-flex!important;align-items:center;gap:8px;margin:0}
#guidedColors input{accent-color:#d9ad59;width:20px;height:20px;min-height:20px}
#guidedPartnerSearch{display:block;width:100%;margin-top:8px;box-sizing:border-box}
#guidedPartnerCount{display:block;margin-top:8px}
.inventory-printing-details{cursor:help}
.is-stacked .unified-line-quantity>.inventory-printing-details{font-size:12px}
.is-stacked .unified-line-quantity>.inventory-printing-details:focus{white-space:normal;overflow:visible;outline:2px solid #d9ad59;outline-offset:3px}
.skip-link{clip-path:inset(50%);transition:none}
.skip-link:focus{clip-path:none}
.collection-folder-sidebar h3{font-size:1rem}
#collectionFolderContent:not(.has-card-selection)>.collection-folder-move{display:none}
#collectionFolderContent:not(.has-card-selection) #inventoryClearSelection{display:none}
#collectionFolderContent:has(#collectionFolderChildren:empty)>.collection-explorer-column-head{display:none}
#collectionFolderEmpty:empty{display:none}
.collection-view-tabs[hidden]{display:none!important}
.collection-directory-toggle,.market-panel-toggle{min-height:44px;border:1px solid #8d6f3f;border-radius:8px;background:var(--panel,#101720);color:var(--text,#f3e5c9);padding:8px 12px;cursor:pointer}
.market-panel-toggle{margin:8px 0;display:none}
.market-results-jump{margin-left:10px;color:var(--gold,#e4b65f)}
.collection-directory-toggle{display:none}
.mtg-shared-page:not(.realm-themed)>main{box-sizing:border-box;margin:clamp(12px,3vw,32px);padding:clamp(18px,3vw,36px);border:1px solid #6b5534;border-radius:16px;background:linear-gradient(150deg,#151c24,#0c1218)}
.mtg-shared-page:not(.realm-themed)>main :is(h1,h2,h3){font-family:Georgia,'Times New Roman',serif;color:#f0d49c;line-height:1.25}
#offlineSettings>a{display:block;min-height:44px;margin-top:12px;padding:10px;border:1px solid #6b5534;border-radius:8px;width:fit-content;box-sizing:border-box}
#offlineSettings button{margin:4px 8px 4px 0}
.hero-flavor-text:empty::before,.hero-flavor-text:empty::after{content:none!important}
@media(max-width:767px){
 :is(#appShell>.sidebar,#mtgPageNav){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:8px 12px!important;min-height:76px!important;max-height:none!important;overflow-x:hidden!important;position:relative!important;top:auto!important}
 :is(#appShell>.sidebar,#mtgPageNav)>:is(.command-brand,.mtg-nav-brand){grid-column:1!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;justify-content:flex-start!important;min-height:56px!important}
 :is(#appShell>.sidebar,#mtgPageNav)>:is(.command-brand,.mtg-nav-brand) img{width:48px!important;height:48px!important}
 :is(#appShell>.sidebar,#mtgPageNav)>.mtg-mobile-menu-button{display:block!important;grid-column:2!important;min-height:44px;min-width:70px;max-width:100%;padding:8px 12px;background:#18202b;color:#f3e5c9;border:1px solid #8d6f3f;border-radius:8px;font:inherit}
 :is(#appShell>.sidebar,#mtgPageNav)>:not(.command-brand):not(.mtg-nav-brand):not(.mtg-mobile-menu-button){grid-column:1/-1!important}
 :is(#appShell>.sidebar,#mtgPageNav):not(.website-header):not(.mtg-mobile-menu-expanded)>:not(.command-brand):not(.mtg-nav-brand):not(.mtg-mobile-menu-button){display:none!important}
 body.mtg-shared-page{padding-top:0!important}
 .scanner-mode-topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start!important}
 .scanner-mode-title{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
 .scanner-mode-title .pill{white-space:normal;border-radius:8px;max-width:100%}
 .scanner-mode-tools{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .scanner-mode-tools select{width:100%}
 .intake-query-row{display:flex!important;flex-wrap:wrap!important}
 .intake-query-input-wrap{flex:1 1 100%!important;width:100%}
 .collection-directory-toggle{display:block;width:100%;margin:0 0 10px;text-align:left}
 .collection-folder-layout{display:block!important}
 .collection-folder-sidebar:not(.collection-directory-open){display:none!important}
 .collection-folder-sidebar{max-height:42dvh!important;margin-bottom:12px}
 .collection-folder-content{max-height:75dvh!important;min-height:min(440px,65dvh);overflow:auto!important}
 #collectionFolderContent .collection-folder-move{margin:8px 0}
 #collectionFolderContent .collection-folder-move .mini{flex-basis:100%}
 #collectionFolderContent .unified-collection-panel{padding:8px!important}
 #collectionFolderContent .unified-bulk-toolbar{padding:8px;margin:8px 0}
 #collectionFolderContent .unified-selection{gap:6px;margin:0}
 #collectionFolderContent .unified-selection label{margin:0;min-height:44px}
 #collectionFolderContent .unified-selection strong{font-size:12px}
 #collectionFolderContent .unified-pager{padding:4px 0}
 #collectionFolderContent #inventoryValueNote{margin:6px 0}
 .collection-explorer-addressbar{flex-wrap:nowrap!important}
 .collection-explorer-travel{width:auto!important}
 .collection-explorer-travel button{width:36px;min-height:44px}
 #collectionFolderBreadcrumb{flex:1 1 0!important}
 .collection-tool-tabs{margin-bottom:8px}
 .market-panel-toggle{display:inline-block}
 .market-filter-panel:not(.market-panel-expanded)>:is(#marketFilters,p){display:none!important}
 .market-filter-heading h3{font-size:1rem}
 .mtg-shared-page.realm-themed #seats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .mtg-shared-page.realm-themed .seat{padding:10px!important;border-radius:12px}
 .mtg-shared-page.realm-themed .seat h2{font-size:clamp(15px,4vw,20px);line-height:1.25}
 .mtg-shared-page.realm-themed .face{gap:6px}
 .mtg-shared-page.realm-themed .seat .life{font-size:clamp(40px,12vw,64px);line-height:1.1}
 .mtg-shared-page.realm-themed .lifeControls{gap:6px}
 .mtg-shared-page.realm-themed .lifeControls button{min-height:44px;font-size:24px;padding:4px}
 .mtg-shared-page.realm-themed .seat small{font-size:11px;line-height:1.4}
 .mtg-shared-page.realm-themed .seat .face>button{font-size:12px;min-height:44px;padding:6px}
 .mtg-shared-page.realm-themed .seat .face>span:not(.badge):not(.lifeDelta){font-size:12px;line-height:1.4}
 .mtg-shared-page.realm-themed .lifeDelta:empty{display:none}
 .mtg-shared-page.realm-themed .effect-watch{top:0!important}
 .mtg-shared-page:not(.realm-themed)>main{margin:12px}
}
@media(pointer:coarse){.is-stacked .unified-line-location>summary{min-width:32px;min-height:32px}.unified-line-card input[type=checkbox],.unified-grid-card input[type=checkbox]{min-width:24px;min-height:24px;accent-color:#d9ad59}}
@media(prefers-reduced-motion:reduce){.mtg-mobile-menu-button{transition:none}}
/* Popouts intentionally omit navigation at every responsive breakpoint. */
body.scanner-popout #appShell>.sidebar,body.scanner-popout #mtgPageNav,body.scanner-popout .mtg-page-toolbar{display:none!important}
