/* Shared edges behave like desktop window dividers. Content scrolls inside a pane. */
.layout-reset{white-space:nowrap}.builder-heading .layout-reset{font-size:13px;padding:6px 9px;min-height:30px}
@media(min-width:761px){
 .is-grimoire #app{min-height:0;grid-template-columns:minmax(0,1fr)}
 .visual-builder{min-width:0;overflow:hidden}
 [data-pane-group]{position:relative;min-width:0;min-height:0}
 .duel-client{gap:9px}.client-sidebar,.client-tools{gap:9px}.builder-workspace,.builder-panes{gap:10px}
 .client-sidebar>.player-panel,.client-tools>.priority-controls,.client-tools>.shop-ledger{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#819273 #20382d}
 .client-tools>.stack-panel{min-height:0;max-height:none}.client-tools>.history{min-height:0;overflow:hidden}.history>.panel-title{flex-shrink:0}
 .client-tools>.account-match-status{align-self:center}.client-sidebar>.card-preview{min-width:0}
 .client-sidebar .wizard-avatar{flex-shrink:0}.client-sidebar .player-panel-heading{position:sticky;top:0;z-index:4}
 .client-sidebar .match-clock{position:sticky;top:29px;z-index:3}
 .duel-main{grid-template-rows:44px minmax(0,1fr) 64px 30px var(--hand-height)}
 .duel-toolbar{overflow-x:auto;overflow-y:hidden;gap:8px}.duel-toolbar>.phase-bar{flex-shrink:0;min-width:max-content}.duel-toolbar>.layout-reset{font-size:12px;flex-shrink:0}
 .command-bar{overflow:auto}.command-bar .command-buttons{flex-shrink:0}
 .battle-row{overflow-y:auto;align-items:safe center}.field-half{overflow:hidden}
 .player-hand .game-card{height:calc(var(--hand-height) - 22px);overflow:hidden}
 .builder-workspace{overflow:hidden}.builder-preview{min-width:0}.builder-preview .preview-paper{max-width:none}
 .builder-preview .preview-paper>.card-illustration{height:auto;aspect-ratio:2/1}
 .pane-divider{position:absolute;z-index:18;touch-action:none;user-select:none;-webkit-user-select:none;outline:none;background:transparent}
 .pane-divider[data-axis=x]{width:9px;transform:translateX(-50%);cursor:col-resize}
 .pane-divider[data-axis=y]{height:9px;transform:translateY(-50%);cursor:row-resize}
 .pane-divider:after,.pane-divider-existing:after{content:'';position:absolute;pointer-events:none;border-radius:2px;background:#a7b19a;box-shadow:0 0 0 1px #14291d88;opacity:.8}
 .pane-divider[data-axis=x]:after{width:3px;height:32px;top:calc(50% - 16px);left:3px;background:repeating-linear-gradient(0deg,#acb79e 0 2px,#4b604d 2px 4px)}
 .pane-divider[data-axis=y]:after{height:3px;width:42px;left:calc(50% - 21px);top:3px;background:repeating-linear-gradient(90deg,#acb79e 0 2px,#4b604d 2px 4px)}
 .pane-divider:hover,.pane-divider:focus-visible,.pane-divider.is-resizing{background:#d8bc7966;box-shadow:inset 0 0 0 1px #e5c78b99}
 .pane-divider:focus-visible:after,.pane-divider:hover:after,.pane-divider.is-resizing:after{background:#f1d59b;opacity:1}
 .pane-divider-existing{cursor:row-resize;touch-action:none;user-select:none;outline:none}
 .pane-divider-existing:after{height:3px;width:36px;right:12px;top:calc(50% - 1px);background:repeating-linear-gradient(90deg,#63705a 0 2px,#b4bda3 2px 4px)}
 .pane-divider-existing:hover,.pane-divider-existing:focus-visible,.pane-divider-existing.is-resizing{box-shadow:inset 0 0 0 2px #ab7b32;background:#d4c494}
 .resizing-panes,.resizing-panes *{user-select:none!important;-webkit-user-select:none!important}
 .resizing-columns,.resizing-columns *{cursor:col-resize!important}.resizing-rows,.resizing-rows *{cursor:row-resize!important}
}
@media(max-width:760px){.duel-toolbar>.layout-reset{display:none}.builder-heading .layout-reset{display:none}}
