/* A private window stays inside its player's battlefield, including its scroll area. */
.dialog-backdrop.private-player-window{position:absolute;inset:0;width:100%;height:100%;padding:0;display:flex;align-items:stretch;justify-content:stretch;overflow:hidden;background:#102319;z-index:800;touch-action:auto}
.private-player-window .dialog,.private-player-window .dialog.wide{width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;border-radius:5px;box-shadow:none;display:flex;flex-direction:column;overflow:hidden}
.private-player-window[data-upright=true] .dialog{transform:rotate(180deg)}
.private-player-window .dialog-header{min-height:30px;flex:none;padding:3px 7px;gap:7px}
.private-player-window .dialog-header h2{font-size:16px;line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.private-player-window .dialog-header .close-button{width:24px;min-width:24px;height:24px;min-height:24px;font-size:20px;padding:0}
.private-player-window .dialog-body{flex:1;min-height:0;max-height:none;overflow:auto;padding:5px 8px;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;font-size:12px;line-height:1.35}
.private-player-window .dialog-footer{flex:none;min-height:34px;padding:4px 6px;gap:5px}
.private-player-window button{min-height:24px;padding:4px 8px;font-size:11px;line-height:1.2}
.private-player-window .dialog-footer button{min-width:60px}
.private-player-window input,.private-player-window select{min-height:28px;padding:4px 7px;font-size:12px}
.private-player-window textarea{min-height:62px;padding:5px 7px;font-size:12px}
.private-player-window .field{gap:4px;margin-bottom:7px}
.private-player-window .button-row{gap:5px}
.private-player-window .dialog-body p{margin-bottom:6px}
.private-player-window .dialog-body .notice{padding:5px 7px;margin-bottom:6px;font-size:11px}
.private-player-window .library-browser p{margin:0 0 4px}
.private-player-window .library-private-note{padding:2px 6px;border-left-width:2px;font-size:10px;line-height:1.3}
.private-player-window .library-status{font-size:11px;min-height:14px;line-height:1.3}
.private-player-window .library-search-label{flex-direction:row;align-items:center;gap:8px;font-size:11px;white-space:nowrap}
.private-player-window .library-search-input{flex:1;width:auto;min-width:0;height:28px;min-height:28px;margin:0 0 4px}
.private-player-window .library-selected-count{float:right;font-size:10px;margin:3px 0}
.private-player-window .library-settings-disclosure{margin:2px 0 5px;font-size:11px}
.private-player-window .library-settings-disclosure summary{cursor:pointer;min-height:22px;padding:3px 2px;color:#ebdfb2;line-height:1.25;max-width:calc(100% - 100px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.private-player-window .library-settings-disclosure[open] summary{max-width:100%}
.private-player-window .library-search-settings{gap:9px;margin:5px 0;align-items:center}
.private-player-window .library-destination-label{font-size:10px;gap:3px}
.private-player-window .library-checkbox{font-size:10px;gap:5px;max-width:220px}
.private-player-window .library-checkbox input{min-height:18px;width:18px;height:18px;padding:0}
.private-player-window .library-help,.private-player-window .library-order-help{font-size:10px;line-height:1.3;min-height:0}
.private-player-window .library-search-results{clear:both}
.private-player-window .library-result-count{font-size:10px;line-height:1.2}
.private-player-window .library-search-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.private-player-window .library-search-card{padding:2px;border-radius:4px}
.private-player-window .library-select{gap:3px;min-height:0;padding:0}
.private-player-window .library-search-card .library-art{width:52px;height:73px;aspect-ratio:auto;margin:auto}
.private-player-window .library-art-fallback{padding:3px;font-size:9px;line-height:1.2}
.private-player-window .library-card-name{font-size:10px;line-height:1.2}
.private-player-window .library-search-card .library-card-name{min-height:24px;max-height:24px;overflow:hidden}
.private-player-window .library-details-button{min-height:22px;padding:3px 5px;margin-top:3px;font-size:10px}
.private-player-window .library-paging{margin:6px 0;gap:9px;font-size:10px}
.private-player-window .library-paging button{min-height:24px;padding:4px 8px;font-size:10px}
.private-player-window .library-footer-controls{gap:5px;flex-wrap:nowrap}
.private-player-window .library-footer-controls button{min-height:24px;font-size:11px;padding:4px 8px}
.private-player-window .library-detail{padding:6px;margin:6px 0;border-radius:5px}
.private-player-window .library-detail-heading{gap:6px;margin-bottom:5px}
.private-player-window .library-detail-heading h3{font-size:15px}
.private-player-window .library-detail-heading button{min-height:24px;padding:3px 6px;font-size:10px}
.private-player-window .library-detail-body{display:flex;flex-direction:row;align-items:flex-start;gap:10px}
.private-player-window .library-detail-art{width:92px;max-width:30%;aspect-ratio:5/7}
.private-player-window .library-rules{font-size:12px;line-height:1.3}
.private-player-window .library-card-type{font-size:10px;line-height:1.2}
.private-player-window .library-card-mana,.private-player-window .library-card-stats{font-size:12px}
.private-player-window .library-scry-columns{grid-template-columns:1fr 1fr;gap:8px}
.private-player-window .library-scry-group{padding:6px;border-radius:5px}
.private-player-window .library-scry-group h3{font-size:12px;line-height:1.2;margin:0 0 4px}
.private-player-window .library-scry-card{gap:7px;margin:5px 0;padding:5px 0;min-height:0}
.private-player-window .library-scry-preview{width:48px;min-height:0;padding:0}
.private-player-window .library-scry-actions{gap:4px;margin-top:4px}
.private-player-window .library-scry-actions button{min-height:24px;padding:4px 6px;font-size:10px;line-height:1.1}
.private-player-window .library-empty{font-size:10px}
.private-player-window .card-inspect{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:12px}
.private-player-window .card-inspect>img{width:110px;max-width:28%;max-height:170px;border-radius:5px;align-self:flex-start}
.private-player-window .inspect-tools{min-width:0;flex:1;width:auto}
.private-player-window .inspect-card-name{font-size:16px;line-height:1.2;margin:0 0 5px}
.private-player-window .inspect-type{font-size:11px;line-height:1.25}
.private-player-window .inspect-stats{font-size:13px}
.private-player-window .oracle-text{font-size:12px;line-height:1.3}
.private-player-window .card-inspect .button-row{margin-bottom:6px}
.private-player-window .card-inspect .button-row button{font-size:11px;min-height:24px;padding:4px 7px}
.private-player-window .inspect-tools .field{margin-top:7px}
.private-player-window .counter-summary{font-size:11px}
.private-player-window .card-browser{gap:7px;max-height:none;overflow:visible;padding:0}
.private-player-window .card-browser .playing-card{width:74px!important;height:104px!important}
