/* Fixed image geometry and explicit grids keep build editing stable. */
[hidden]{display:none!important}
.action-symbol{display:grid;place-items:center;width:24px;height:24px;font-size:22px}.runBar{align-items:center;gap:16px;min-height:84px}.run-mode{display:flex;align-items:center;gap:12px;min-width:0}.run-mode>span{font-size:12px;color:var(--muted);max-width:270px;line-height:1.4}.runBar #advancedMode{background:var(--review-raised)!important;color:var(--review-text)!important;font-size:13px;padding:11px 14px}.runBar #run{white-space:nowrap;min-height:46px}#budgetNote{min-height:1.5em;margin:10px 0 0;font-size:12px}
.editor-heading{display:flex;align-items:center;gap:14px;flex-shrink:0}.editor-heading .portrait-frame{display:block;width:48px;height:63px;flex-shrink:0}.editor-heading .champion-badges{display:none}.editor-heading h2{margin:0;font-size:22px}.editor-heading p{margin:5px 0;font-size:13px}.editor-tabs{display:flex;gap:8px;flex-shrink:0}.editor-tabs button{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;font-size:13px}.editor-tabs .progression-icon{width:28px;height:28px;object-fit:contain}.build-drawer-body{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0 8px 0 0}

.pool-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:55dvh;scrollbar-gutter:stable}.pool-choices label{position:relative;display:flex;flex-direction:column;gap:4px;align-items:center;margin:0;padding:6px;background:var(--review-raised);border:1px solid var(--line);border-radius:8px;min-width:0}.pool-choices label:has(:checked){border-color:var(--review-accent);background:var(--review-selected)}.pool-choices input{position:absolute;top:8px;left:8px;width:16px;height:16px;margin:0;z-index:1}.pool-choices img{width:64px;height:84px;object-fit:cover;border-radius:4px}.pool-choices span{font-size:11px;text-align:center;min-height:2.6em;line-height:1.3}.pool-choices small{font-size:9px;text-align:center}
@media(max-width:850px){.run-mode{gap:8px}.run-mode>span{max-width:190px;font-size:11px}}
@media(max-width:600px){.signed-in main{padding:16px 10px 120px}.panel{padding:12px}.action-symbol{width:18px;height:18px;font-size:17px}.runBar{padding:10px 12px max(10px,env(safe-area-inset-bottom));min-height:82px;gap:8px}.run-mode{flex-direction:column;align-items:flex-start;gap:4px;flex:1}.run-mode>span{font-size:10px;max-width:190px;min-height:2.8em}.runBar #advancedMode{font-size:12px;padding:8px 10px}.runBar #run{padding:12px;font-size:13px;min-height:44px}.editor-heading h2{font-size:18px}.editor-heading p{font-size:11px}.editor-tabs{gap:5px}.editor-tabs button{padding:6px;font-size:11px;flex:1;justify-content:center}.editor-tabs .progression-icon{width:22px;height:22px}.build-drawer-body{padding-right:0}.pool-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.pool-choices img{width:100%;height:auto;aspect-ratio:98/128}.pool-choices span{font-size:9px}.pool-choices small{font-size:8px}#poolDialog{padding:14px;width:96vw}#poolDialog h2{font-size:20px}#poolDialog p{font-size:12px}}
.build-drawer header.editor-heading{height:auto;min-height:63px;padding:0;justify-content:flex-start;background:transparent!important;border:0;gap:14px}.editor-heading .portrait-frame{margin:0}.editor-heading>div{min-width:0}.editor-heading h2{overflow-wrap:anywhere}

.runBar{display:grid;grid-template-columns:minmax(0,1fr) auto}.runBar #run{width:auto;min-width:0;max-width:none}.runBar #advancedMode{width:auto;max-width:100%}
@media(max-width:600px){.runBar{width:100%;left:0;right:0;bottom:0;grid-template-columns:minmax(0,1fr) auto}.runBar #run{padding:12px;min-width:145px}.runBar .run-mode{min-width:0}.runBar #advancedMode{white-space:normal}.run-mode>span{max-width:100%}}
.runBar #advancedMode{min-width:0}
/* Grid children must shrink below their intrinsic form and team widths. */
.layout>*,.formRow>*,.saved-run-row>*{min-width:0}
@media(max-width:600px){.layout{grid-template-columns:minmax(0,1fr)}.runBar #run{min-width:130px}.run-mode>span{overflow-wrap:anywhere}}
.ranked-build{border:1px solid var(--line);padding:12px;margin:10px 0;border-radius:8px}.ranked-build>summary{display:flex;align-items:center;gap:16px;cursor:pointer;flex-wrap:wrap}.ranked-portraits{display:flex;gap:4px}.ranked-portraits img{width:40px;height:52px;object-fit:cover}.ranked-build>summary strong{font-size:14px;color:#e4bc64}
#gearComparisons{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:8px}.gear-comparison-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.gear-comparison-row button{font-size:12px;padding:6px 12px}
.ranked-build>summary::before{content:'▸';color:#e4bc64}.ranked-build[open]>summary::before{content:'▾'}.ranked-build>summary small{color:var(--muted)}.ranked-build>summary meter{width:180px;max-width:100%}

