.preset-source{font-size:.78rem;line-height:1.7;padding:12px 0}.preset-source a{color:#126a9a}.preset-entry{padding:12px;border-bottom:1px solid #dce4ed}.automatic-footer{text-align:center;font-size:.7rem;margin:30px 0 190px}.table .sprite-fallback{font-size:2rem;width:64px;height:55px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#d7edf3;color:#13536d;margin:4px auto}.bench .sprite-fallback{width:35px;height:30px;font-size:1.1rem}.hand-card .sprite-fallback{font-size:2rem;height:50px}.energy-strip{flex-wrap:wrap}.hand-section{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1020px,100%);z-index:50;background:#f4f8fc;border:1px solid #b9cbd8;border-radius:16px 16px 0 0;padding:10px;box-sizing:border-box}.hand-section .hand-scroll{display:flex;gap:10px;overflow-x:auto}.table .empty-slot{cursor:pointer}.automatic-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;max-height:48dvh;overflow:auto;padding:5px}.automatic-option{display:flex;align-items:center;gap:6px;background:#eff6fc;padding:10px;border:1px solid #bfcedc;border-radius:10px;font-size:.83rem}.automatic-option:has(input:checked){background:#d6f4e9;border-color:#1a9f7e}.automatic-option:has(input:disabled){opacity:.45}.automatic-option input[type=number]{width:58px;min-width:58px}.automatic-assign{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #dce4ed}.auto-selected{outline:3px solid #00a992}.automatic-progress{background:#e7f3f7;padding:10px;border-radius:8px}.automatic-controls{display:flex;gap:10px;justify-content:center;margin-top:15px;flex-wrap:wrap}.automatic-controls button{min-width:100px}.rule-description{white-space:pre-wrap;line-height:1.8}.rule-description .energy-icon{vertical-align:middle}.own-area .poke-card{cursor:pointer}.ability-detail{display:block;width:100%;margin:8px 0}.recipe-list{columns:2;list-style:none;padding:0}.recipe-list li{break-inside:avoid;padding:5px;border-bottom:1px solid #dde5ed}.automatic-fx{position:fixed;z-index:1500;padding:16px 22px;border-radius:12px;background:#fff4db;border:2px solid #d7af56;font-size:1.1rem;font-weight:bold;pointer-events:none;max-width:80vw}.automatic-check{background:#fff4db;color:#654923}.field-pile .pile-number{display:block}.field-pile .pile-label{display:block}.table .player-area{min-height:250px}.table .poke-card .inspect{width:100%}.match-setup select{width:100%}.choice-panel[hidden]{display:none!important}.notice-block{padding:14px;background:#fff4db;line-height:1.8;border-radius:12px}@media(max-width:600px){.automatic-options{grid-template-columns:repeat(2,minmax(0,1fr))}.automatic-option{font-size:.72rem;padding:7px}.recipe-list{columns:1}.hand-section{padding:7px}.automatic-assign{font-size:.75rem}.hand-section .hand-label span{max-width:190px}.table .player-area{min-height:205px}}

/* Compact card faces share the established table typography. */
.auto-card-face{padding:7px;text-align:left;min-width:0}.auto-card-face .name{font-size:.82rem;line-height:1.35;overflow-wrap:anywhere;display:block}.auto-card-face .card-category{display:block;margin-top:10px;font-size:.65rem;color:#617c92}.poke-card .auto-card-face{padding:0}.hand-card .inspect{min-height:28px!important;flex:0;padding:4px 8px!important;font-size:.66rem;background:#ecf3f8;border-top:1px solid #d4e2eb;margin-top:auto}.hand-card .auto-card-face{min-height:108px}.poke-card>.inspect{min-height:24px;font-size:.62rem;text-align:right!important;color:#407c97}.hand-section{z-index:25}.choice-panel.is-effect-popup{z-index:80}.automatic-footer{margin-bottom:200px}.table .player-area{min-height:0}.card-category{color:#547384}.automatic-fx{font-size:.9rem}.preset-source{overflow-wrap:anywhere}.automatic-controls{position:sticky;bottom:0;background:#f9fcff;padding:10px 0}.own-area .empty-slot:hover{background:#39637766}.auto-card-face .hp-line{margin:3px 0;font-size:.65rem}.bench .auto-card-face .name{font-size:.67rem}.bench .auto-card-face .hp-line{font-size:.58rem}.bench .sprite{height:44px}.hand-scroll{scroll-snap-type:none}
@media(max-width:600px){.hand-card .auto-card-face{min-height:88px}.hand-section .hand-scroll{min-height:115px;padding:5px 0}.hand-card{width:102px;flex-basis:102px}.hand-card .auto-card-face .name{font-size:.66rem}.hand-card .sprite{width:42px;height:36px}.bench .auto-card-face .name{font-size:.53rem;min-height:24px}.bench .auto-card-face .hp-line{font-size:.49rem}.bench .sprite{height:27px;width:34px}.active-row .auto-card-face .name{font-size:.73rem}.automatic-footer{margin-bottom:160px}.table .player-area{min-height:0}.bench .poke-card>.inspect{font-size:.5rem;min-height:18px}.automatic-option{min-height:44px}.automatic-option input{flex-shrink:0}.automatic-assign select{min-width:0;font-size:.7rem}.automatic-assign{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.recipe-list button{font-size:.8rem}.automatic-progress{font-size:.7rem}.choice-panel h2{font-size:1rem}.auto-card-face .hp-line{font-size:.6rem}.hand-label{padding:0 4px}}
.automatic-moving-card{position:fixed;z-index:1200;pointer-events:none;background:white;border:2px solid #47ccae;box-shadow:0 12px 30px #001c4566;border-radius:10px;padding:8px;will-change:transform}
.additional-recipe-result{display:block;width:100%;text-align:left;font-size:.76rem;margin:6px 0}.additional-recipe-result:focus-visible{outline:3px solid #009fe3}#additional-recipe-query{width:100%;padding:12px;border:1px solid #c5d6e5;border-radius:10px;margin:12px 0}
.setup-position{display:block;font-size:.65rem;color:#08795e;white-space:nowrap}.automatic-option:has(.setup-position){flex-wrap:wrap}

.promotion-attachments{display:grid;gap:8px;width:100%;font-size:14px;line-height:1.5}.automatic-option:has(.promotion-attachments){flex-wrap:wrap;border:2px solid #bccce1}.automatic-option:has(input:checked){border-color:#1268cb;background:#e9f3ff}.promotion-energy{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}

.automatic-option:has(.promotion-attachments){display:grid;grid-template-columns:24px minmax(0,1fr);align-content:start;align-items:start}.promotion-attachments{grid-column:1/-1}.automatic-option:has(.promotion-attachments)>span{overflow-wrap:anywhere}
