/* Responsive tool layouts, loaded after shared desktop presentation. */@media(max-width:760px),(pointer:coarse) and (max-width:1100px){#battle .battle-builder{grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:12px}#battle .battle-main-column,#battle .battle-right-column{min-width:0}#battle .formation-panel{padding:12px;min-width:0}#battle .formation-panel .party-layout{grid-template-columns:minmax(0,1fr);padding:8px;gap:12px}#battle .formation-panel .formation-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;justify-content:stretch}#battle .party-slot-shell{width:auto;min-width:0;max-width:none;flex:auto;padding-top:18px}#battle .formation-panel .formation-row+.formation-row-label+.formation-row .party-slot-shell{padding-top:18px}#battle .party-slot-shell.is-attack-slot::before,#battle .formation-panel .formation-row+.formation-row-label+.formation-row .party-slot-shell.is-attack-slot::before{top:0;font-size:10px;line-height:16px}#battle .formation-panel .party-layout>div:first-child>.formation-row-label:first-child{top:0}#battle .formation-row .formation-slot{width:100%!important;max-width:none;height:150px!important;min-height:150px!important}#battle .formation-row .battle-card-portrait{height:104px!important}#battle .support-area{justify-self:start;width:min(100%,132px) !important}#battle .support-area .leader-field{max-width:100%;width:100%}#battle .roster-panel{padding:12px;min-width:0;max-height:none;position:static}#battle .roster-sticky{max-height:none;min-height:0}#battle #hero-roster{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px;justify-content:stretch;height:clamp(280px,65dvh,500px);min-height:0;width:100%;overflow:auto}#battle #hero-roster .roster-card{width:100%!important;max-width:none;height:146px!important;min-height:146px!important}#battle #hero-roster .battle-card-portrait{height:100px!important}#battle .roster-filter-panel{grid-template-columns:minmax(0,1fr);gap:8px}#battle .roster-filter-panel>.roster-attribute-panel{width:100%;height:auto}#battle .roster-affiliation-row{gap:6px;flex-wrap:wrap}#battle .battle-card-footer strong{font-size:12px!important}#battle .party-summary{grid-template-columns:1fr;min-width:0}#battle .simple-buffs-grid{grid-template-columns:1fr}#battle .simple-percent-row select{width:72px}#battle .panel-heading{gap:8px;flex-wrap:wrap}#battle .party-hp{font-size:10px}}@media(max-width:760px){#battle .battle-builder{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:8px}#battle .battle-main-column,#battle .battle-right-column{display:contents}#battle .battle-tools{grid-column:1/-1;grid-row:1}#battle .formation-panel[aria-labelledby]{grid-column:1;grid-row:2;padding:8px}#battle .roster-panel{grid-column:2;grid-row:2;padding:6px;align-self:start}#battle .battle-result,#battle .battle-main-column>section:not(.formation-panel[aria-labelledby]):not(.battle-tools){grid-column:1/-1;min-width:0}#battle .formation-panel .party-layout{padding:5px;gap:8px}#battle .formation-panel .formation-row{gap:4px}#battle .formation-row .formation-slot{height:96px!important;min-height:96px!important;border-radius:6px}#battle .formation-row .battle-card-portrait{height:58px!important}#battle .formation-row .battle-card-footer{min-height:36px;padding:2px}#battle .formation-row .battle-card-footer strong{font-size:10px!important;line-height:1.2}#battle .formation-row .battle-card-role-level{font-size:9px}#battle .formation-row .battle-card-role-level img{width:12px;height:12px}#battle .formation-row .battle-card-rarity{width:28px!important;height:20px!important}#battle .formation-row .battle-card-rarity[src$="rarity-ssr.webp"]{width:32px!important;height:22px!important}#battle .formation-row .battle-card-attributes{top:22px!important;right:0!important;gap:0}#battle .formation-row .battle-card-attributes .attribute-icon{width:16px;height:16px}#battle .formation-row .battle-card-attributes img{width:15px!important;height:15px!important}#battle .formation-panel h2,#battle .roster-panel h2{font-size:15px}#battle .formation-panel .eyebrow{font-size:10px}#battle .party-layout>div{min-width:0}#battle .support-area{width:86px!important}#battle .support-slot{width:100%!important;max-width:none;height:118px!important;min-height:118px!important}#battle .support-slot .battle-card-portrait{height:76px!important}#battle #hero-roster{grid-template-columns:minmax(0,1fr) !important;height:420px}#battle #hero-roster .roster-card{height:128px!important;min-height:128px!important}#battle #hero-roster .battle-card-portrait{height:82px!important}#battle .roster-panel .panel-heading{display:block}#battle .roster-panel #roster-slot-hint{font-size:11px;overflow-wrap:anywhere}#battle .party-summary select{font-size:11px}#battle .current-party-list{flex-wrap:wrap}#battle .party-chip{font-size:10px}#battle .roster-search-details>summary{font-size:11px;overflow-wrap:anywhere}#battle .roster-panel .battle-tool-button{font-size:11px;padding:7px 3px}#battle .battle-card-attributes .attribute-icon{min-width:0}}@media(max-width:760px),(pointer:coarse) and (max-width:1100px){.tool-page .workspace>*,.tool-page .panel,.tool-page .field{min-width:0}.tool-page :is(input,select){min-width:0;max-width:100%}.tool-page .page-heading{gap:12px}.tool-page :is(.result-panel,.cooking-result){position:static;max-height:none}.tool-page :is(.db-table-scroll,.special-material-scroll,.ranking-scroll,.chain-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}#gacha .gacha-probability-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}#gacha .gacha-probability-inputs label{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;white-space:normal;font-size:12px}#gacha .gacha-probability-inputs :is(input,select){width:100%;min-width:0}#gacha .gacha-probability{padding:12px}#gacha .gacha-rates{overflow-x:auto;max-width:100%}.db-detail-tabs{position:static!important;display:flex;flex-wrap:wrap;gap:3px}.db-detail-tabs>button{flex:1 1 auto;font-size:12px;padding:10px 4px}#characters .db-workspace,#items .item-toolbar{gap:12px}#characters .db-character-list{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}#characters .db-character{max-width:none}.special-material-table{min-width:0;font-size:12px}.special-material-table :is(th,td){padding:6px;overflow-wrap:anywhere}.special-material-table td:nth-child(1){min-width:0}.tool-page :is(.hero-strip,.recipe-strip)>div{min-width:0}.tool-page :is(.hero-strip,.recipe-strip) strong{font-size:15px;overflow-wrap:anywhere}.tool-page :is(.panel-heading,.chain-tools,.simple-buffs-heading){flex-wrap:wrap;gap:8px}}@media(max-width:760px){.tool-page:not(.home-page){padding-top:20px}.tool-page :is(.controls-panel,.result-panel,.cooking-ranking-panel,.special-course-panel,.special-material-panel){padding:12px}#characters .db-filter-fields{grid-template-columns:minmax(0,1fr)}#characters .db-inline-detail{padding:12px}#items .item-toolbar{padding:12px;grid-template-columns:repeat(2,minmax(0,1fr))}#items .item-toolbar .field{width:auto;min-width:0}#items .item-toolbar .field.grow{grid-column:1/-1}#items .item-toolbar .field:has(#item-source){grid-column:1}#items .item-toolbar .field:has(#item-sort){grid-column:2}#items .item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#items .item-card{grid-template-columns:36px minmax(0,1fr);gap:6px;padding:8px;font-size:12px;min-width:0}#items .item-card :is(img,.item-icon-placeholder){width:36px;height:36px}#items .item-card small{font-size:10px}#db-stars-panel .db-stars-list{grid-template-columns:1fr;gap:10px}.special-course-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.special-dish-choice{flex-direction:column;padding:8px;gap:6px;font-size:12px;min-height:140px}.special-level-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.special-level-choice span{padding:8px 4px;text-align:center;font-size:12px}.cooking-hero-toolbar{flex-wrap:wrap;gap:8px}.cooking-hero-toolbar>label{min-width:0}#gacha .gacha-probability-inputs{grid-template-columns:minmax(0,1fr)}}@media(orientation:landscape) and (pointer:coarse) and (max-width:1100px){.tool-page:not(.home-page){padding-top:18px}#characters .db-workspace{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}#characters .db-character-list{max-height:420px}#characters .db-workspace .db-filter-fields{grid-template-columns:1fr}#cooking .cooking-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px}#items .item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#db-stars-panel .db-stars-list{grid-template-columns:repeat(2,minmax(0,1fr))}.special-course-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.special-dish-choice{padding:8px;font-size:12px;gap:6px;flex-direction:column}}@media(max-width:760px){#battle .roster-fold-heading.battle-settings-heading{display:block}#battle .roster-panel .eyebrow{display:none}#battle .battle-fold-actions{margin:5px 0;justify-content:flex-start;gap:4px}#battle .battle-fold-actions button{width:28px;height:28px;min-height:28px}#battle .formation-panel .panel-heading>p{font-size:11px;line-height:1.5}#battle .roster-panel .battle-heading-note,#battle .roster-panel .attacker-target-notice{font-size:10px;line-height:1.4}#battle .roster-filter-toolbar{justify-content:stretch}#battle #roster-filter-toggle{width:100%;font-size:11px;justify-content:center;gap:4px;padding:6px 2px;white-space:normal}#gacha #gacha-analysis{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}}/* Only the action applicable to the current panel state is visible. */#battle .battle-fold-actions>button:disabled{display:none!important}@media(max-width:760px){#battle #hero-roster{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:4px}#battle #hero-roster .roster-card{height:110px!important;min-height:110px!important;border-radius:6px}#battle #hero-roster .battle-card-portrait{height:62px!important}#battle #hero-roster .battle-card-footer{min-height:44px;padding:2px 1px}#battle #hero-roster .battle-card-footer strong{font-size:9px!important;line-height:1.2}#battle #hero-roster .battle-card-role-level{font-size:9px;line-height:14px;gap:1px}#battle #hero-roster .battle-card-role-level img{width:12px;height:12px}#battle #hero-roster .battle-card-rarity{width:26px!important;height:20px!important;left:0}#battle #hero-roster .battle-card-rarity[src$="rarity-ssr.webp"]{width:30px!important;height:22px!important}#battle #hero-roster .battle-card-attributes{top:22px!important;right:0!important;gap:0}#battle #hero-roster .battle-card-attributes .attribute-icon{width:15px;height:15px}#battle #hero-roster .battle-card-attributes img{width:14px!important;height:14px!important}#battle #hero-roster .roster-drag-grip{top:48px!important;left:1px;width:16px;height:18px}}#battle #hero-roster .battle-card-footer strong{margin:0;max-width:100%;width:100%}@media(max-width:760px) and (orientation:portrait){#battle .battle-builder{grid-template-columns:minmax(0,1fr);gap:12px}#battle .battle-tools{grid-column:1;grid-row:1}#battle .roster-panel{grid-column:1;grid-row:2;width:100%;padding:12px}#battle .formation-panel[aria-labelledby]{grid-column:1;grid-row:3;width:100%;padding:12px}#battle .battle-result,#battle .battle-main-column>section:not(.formation-panel[aria-labelledby]):not(.battle-tools){grid-column:1}#battle .roster-fold-heading.battle-settings-heading{display:flex}#battle .battle-fold-actions{margin:0}#battle #hero-roster .roster-card{height:146px!important;min-height:146px!important}#battle #hero-roster .battle-card-portrait{height:98px!important}#battle #hero-roster .battle-card-footer strong{font-size:12px!important}#battle #hero-roster .battle-card-role-level{font-size:11px}#battle #hero-roster .roster-drag-grip{top:78px!important}}@media(min-width:761px) and (max-width:1100px) and (orientation:landscape) and (pointer:coarse){#battle .battle-main-column,#battle .battle-right-column{display:contents}#battle .battle-tools{grid-column:1/-1;grid-row:1}#battle .formation-panel[aria-labelledby]{grid-column:1;grid-row:2}#battle .roster-panel{grid-column:2;grid-row:2;align-self:start}#battle .battle-result{grid-column:2;grid-row:3;min-width:0}#battle .battle-main-column>section:not(.formation-panel[aria-labelledby]):not(.battle-tools){grid-column:1;min-width:0}#battle .formation-panel .formation-row{grid-template-columns:repeat(3,minmax(0,100px));justify-content:center}#battle .formation-row .formation-slot{height:128px!important;min-height:128px!important}#battle .formation-row .battle-card-portrait{height:82px!important}#battle .formation-panel .party-layout{padding-top:calc(8px + var(--battle-party-offset,0px))}#battle #hero-roster{margin-top:var(--battle-roster-offset,0px)}}@media(max-width:760px) and (orientation:portrait){#battle{--portrait-card-height:clamp(80px,calc((100dvh - var(--site-header-height,231px) - 180px)/4),108px)}#battle .battle-builder{gap:8px}#battle .roster-panel,#battle .formation-panel[aria-labelledby]{padding:8px}#battle .roster-fold-heading.battle-settings-heading,#battle .formation-panel .panel-heading.battle-settings-heading{display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px}#battle .formation-panel .panel-heading.battle-settings-heading>div:first-child{min-width:0;flex:1}#battle .formation-panel .battle-fold-actions{margin:0;flex:none;align-self:flex-start}#battle .formation-panel .eyebrow,#battle .formation-panel .battle-heading-note,#battle .roster-panel .battle-heading-note,#battle .roster-panel .attacker-target-notice,#battle .roster-panel #roster-slot-hint{display:none}#battle .roster-panel #roster-filter-toggle{min-height:22px;font-size:10px;padding:2px 4px}#battle .roster-filter-toolbar{margin:0 0 2px}#battle #battle-roster-count{margin:2px 0;font-size:10px}#battle #hero-roster{grid-template-columns:repeat(4,minmax(0,1fr)) !important;grid-auto-rows:var(--portrait-card-height);gap:4px;height:calc(var(--portrait-card-height)*2 + 4px);min-height:0;max-height:calc(var(--portrait-card-height)*2 + 4px);padding:0;overflow-y:auto;scroll-snap-type:y proximity}#battle #hero-roster .roster-card{height:var(--portrait-card-height) !important;min-height:var(--portrait-card-height) !important;scroll-snap-align:start}#battle #hero-roster .battle-card-portrait{height:calc(var(--portrait-card-height) - 34px) !important}#battle #hero-roster .battle-card-footer{min-height:32px;padding:2px 1px}#battle #hero-roster .battle-card-footer strong{font-size:9px!important;line-height:1.15}#battle #hero-roster .battle-card-role-level{font-size:9px;line-height:12px}#battle #hero-roster .roster-drag-grip{top:calc(var(--portrait-card-height) - 51px) !important;width:16px;height:18px}#battle .formation-row .formation-slot{height:var(--portrait-card-height) !important;min-height:var(--portrait-card-height) !important}#battle .formation-row .battle-card-portrait{height:calc(var(--portrait-card-height) - 34px) !important}#battle .formation-panel .party-layout{padding:5px;gap:8px}#battle .formation-row-label{font-size:10px;margin-bottom:2px}#battle .party-slot-shell,#battle .formation-panel .formation-row+.formation-row-label+.formation-row .party-slot-shell{padding-top:14px}#battle .formation-row+.formation-row-label{margin-top:6px}}#battle:not([data-layout-ready]) .battle-builder{display:none}#battle:not([hidden]):not([data-layout-ready])::after{content:"戦闘シミュレーターを読み込み中…";display:block;padding:24px 12px;color:#557789;font-size:14px}/* Save controls and saved formation loading */#battle .battle-tools{display:block!important}.battle-save-fold>summary{cursor:pointer;font-weight:700;font-size:16px;color:var(--text,#e8f3f7);padding:0 34px 4px 0;position:relative;list-style:none}.battle-save-fold>summary::-webkit-details-marker{display:none}.battle-save-fold>summary::after{content:'＋';position:absolute;right:0;top:0;color:#56d7cf}.battle-save-fold[open]>summary::after{content:'−'}.battle-save-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px}.battle-save-content>.field{grid-column:1;min-width:0}.battle-save-content>#battle-tools-buttons{grid-column:1;grid-row:2;flex-wrap:wrap}.battle-save-content>#battle-save-status{grid-column:1;grid-row:3;margin:0}.battle-save-content>.battle-settings-file-actions{grid-column:2;grid-row:1/4;align-self:end;min-width:0}#battle .formation-panel[aria-labelledby] .panel-heading{display:flex;align-items:flex-start;gap:8px}#battle .formation-panel[aria-labelledby] .panel-heading>div:first-child{flex:1;min-width:0}#battle .formation-panel .battle-saved-load{flex:0 1 200px;width:200px;min-width:0;margin:0}#battle .battle-saved-load label{font-size:11px;white-space:nowrap;display:block;margin:0 0 4px}#battle .battle-saved-load select{width:100%;min-width:0;font-size:12px;padding:5px 7px;height:32px}#battle .formation-panel .battle-fold-actions{flex-shrink:0}@media(max-width:760px) and (orientation:portrait){.battle-save-content{grid-template-columns:minmax(0,1fr)}.battle-save-content>.battle-settings-file-actions{grid-column:1;grid-row:auto}#battle .formation-panel .battle-saved-load{flex-basis:136px;width:136px}#battle .formation-panel .panel-heading{gap:4px}#battle .formation-panel .panel-heading h2{font-size:14px}#battle .battle-saved-load label{font-size:10px}}/* Whole-panel toggles retain their hit area without a circular border. */.battle-fold-actions button{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}@media(max-width:760px) and (orientation:portrait){#battle .battle-builder{row-gap:2px!important}#battle .roster-panel{margin-bottom:0!important;padding-bottom:6px}#battle .roster-fold-heading{margin-bottom:0;align-items:flex-start}#battle .roster-fold-heading>div:first-child{flex:1;min-width:0}#battle .roster-filter-toolbar{margin:0!important;justify-content:flex-start}#battle .roster-panel #roster-filter-toggle{width:auto;min-height:20px;padding:0 2px;justify-content:flex-start;font-size:10px}#battle .roster-filter-toggle-symbol{width:20px;height:20px}#battle .roster-sticky{padding-bottom:0}#battle .roster-count{margin:0 0 3px}#battle .formation-panel .party-layout{grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:5px;padding:4px;align-items:center}#battle .formation-panel .party-layout>.support-area{width:100%;min-width:0;justify-self:stretch}#battle .formation-panel .formation-row{gap:4px;grid-template-columns:repeat(3,minmax(0,1fr))}#battle .formation-panel .support-slot{height:var(--portrait-card-height) !important;min-height:var(--portrait-card-height) !important}#battle .formation-panel .support-slot .battle-card-portrait{height:calc(var(--portrait-card-height) - 34px) !important}#battle .formation-panel .formation-slot{min-width:0}}@media(pointer:coarse) and (max-width:1100px){#battle #hero-roster .roster-card{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}}@media(max-width:760px) and (orientation:portrait){#battle #hero-roster{grid-template-columns:none!important;grid-template-rows:repeat(2,var(--portrait-card-height));grid-auto-flow:column;grid-auto-columns:calc((100% - 12px)/4);height:calc(var(--portrait-card-height)*2 + 4px);max-height:calc(var(--portrait-card-height)*2 + 4px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none}#battle #hero-roster::-webkit-scrollbar{display:none}#battle #hero-roster .roster-card{touch-action:none;scroll-snap-align:start}#battle #hero-roster .roster-drag-grip{touch-action:none}.roster-horizontal-scroll{display:block;width:100%;height:14px;margin:2px 0 0;padding:0!important;accent-color:#56d7cf;touch-action:pan-x}}@media(min-width:761px),(orientation:landscape){.roster-horizontal-scroll{display:none}}/* Align whole-panel symbols to the save panel's right-hand position. */#battle .battle-fold-actions{transform:translateX(8px)}#battle .battle-fold-panel,#battle .roster-panel{position:relative}#battle .battle-settings-heading{padding-right:32px}#battle .battle-fold-actions{position:absolute;right:calc(var(--panel-symbol-inset,21px) - 15px);top:12px;width:28px;margin:0!important;transform:none!important}#battle .battle-fold-actions button{width:28px!important;min-width:28px}.portrait-page-scrollbar{display:none}@media(max-width:760px) and (orientation:portrait) and (pointer:coarse){.portrait-page-scrollbar{display:block;position:fixed;right:2px;top:calc(var(--site-header-height,0px) + 4px);bottom:4px;width:4px;border-radius:4px;background:#55778920;z-index:1000;pointer-events:none}.portrait-page-scrollbar[hidden]{display:none}.portrait-page-scrollbar>span{display:block;width:4px;min-height:24px;background:#278694aa;border-radius:4px}}#battle .battle-saved-load select{height:26px;min-height:26px;padding:2px 6px;line-height:20px}@media(max-width:760px) and (orientation:portrait){#battle .formation-panel[aria-labelledby] .panel-heading{min-height:26px;align-items:center;margin-bottom:3px}#battle .formation-panel[aria-labelledby] .panel-heading h2{margin:0;line-height:20px}#battle .formation-panel[aria-labelledby] .battle-fold-actions{top:8px}}@media(max-width:760px),(pointer:coarse) and (max-width:1100px){.roster-drag-grip{display:none!important}}@media(max-width:760px) and (orientation:portrait){#battle .roster-title-row{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0}#battle .roster-title-row h2{flex:none;white-space:nowrap}#battle .roster-title-row .roster-info-button{flex:none}#battle .roster-title-row .roster-filter-toolbar{margin-left:8px!important;flex:0 1 auto;min-width:0}#battle .roster-title-row #roster-filter-toggle{white-space:nowrap;font-size:10px;padding:0;gap:2px}}#battle .battle-attack-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-height:26px;margin-bottom:6px}#battle .battle-attack-heading label{margin:0;line-height:18px}#battle #battle-values-reset{height:26px;min-height:26px;padding:2px 8px;line-height:20px;font-size:11px;white-space:nowrap}#battle .battle-level-field>label{display:flex;align-items:flex-end;min-height:26px;line-height:18px;margin-bottom:6px}@media(orientation:portrait) and (max-width:1100px){#battle .formation-panel .party-layout{grid-template-columns:minmax(0,3fr) minmax(0,1fr);align-items:start;gap:5px;padding:4px}#battle .formation-panel .party-layout>div:first-child{display:grid;grid-template-columns:12px minmax(0,1fr);column-gap:3px;row-gap:2px;min-width:0}#battle .formation-panel .party-layout>div:first-child>.formation-row-label{grid-column:1;writing-mode:vertical-rl;align-self:center;justify-self:center;position:static;top:auto;margin:14px 0 0;font-size:10px;line-height:12px;white-space:nowrap}#battle .formation-panel .party-layout>div:first-child>.formation-row{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;min-width:0;margin:0}#battle .formation-panel .party-slot-shell,#battle .formation-panel .formation-row+.formation-row-label+.formation-row .party-slot-shell{width:auto;min-width:0;padding-top:14px}#battle .formation-panel .party-slot-shell.is-attack-slot::before{top:0;line-height:14px;font-size:9px}#battle .formation-panel .formation-row .formation-slot{width:100%!important;max-width:none}#battle .formation-panel .party-layout>.support-area{width:100%!important;min-width:0;align-self:start;justify-self:stretch}#battle .formation-panel .support-area>.formation-row-label{margin:0 0 2px;line-height:12px;font-size:10px}#battle .formation-panel .support-slot{width:100%!important;max-width:none;margin-top:0}}@media(orientation:portrait) and (max-width:1100px){#battle .formation-panel .support-area>.party-slot-shell{padding-top:0}#battle .formation-panel .support-area .leader-field{margin-bottom:4px}}/* Save-section symbols match the geometric symbols on other panels. */.battle-save-fold>summary::after{width:16px;height:12px;top:8px;content:''!important;background:linear-gradient(currentColor,currentColor) center/12px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 12px no-repeat}.battle-save-fold[open]>summary::after{background:linear-gradient(currentColor,currentColor) center/12px 1.5px no-repeat}.db-filter-sidebar{position:relative}.settings-filter-heading{padding-right:28px}.settings-filter-heading .settings-filter-toggle{position:absolute!important;right:6px;top:12px;width:28px;min-width:28px;height:28px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}#db-characters-panel{position:relative}.settings-filter-heading .settings-filter-toggle{min-height:28px}/* Align rarity-filter artwork by its visible lettering. */#battle .roster-icon-grid button[data-roster-filter="rarity"][data-value="10"]{font-family:"Home Noto Sans JP",sans-serif;font-weight:600}#battle .roster-icon-grid [data-roster-filter="rarity"] img:is([src$="rarity-sr.webp"],[src$="rarity-r.webp"]),.db-rarity-buttons img.db-filter-rarity:is([src$="rarity-sr.webp"],[src$="rarity-r.webp"]){transform:translateY(-4px) !important}/* Keep landscape party slots and leader/support side by side at every phone width. */@media (pointer:fine),(orientation:landscape){#battle .formation-panel[aria-labelledby] .formation-slot>small{display:none}#battle .formation-panel[aria-labelledby] .support-area>.party-slot-shell{padding-top:0}#battle .formation-panel[aria-labelledby] .support-area>.formation-row-label{margin-bottom:0}}@media (orientation:landscape) and (pointer:coarse){#battle .formation-panel[aria-labelledby] .party-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);justify-content:start;gap:8px;align-items:start}#battle .formation-panel[aria-labelledby] .party-layout>div{min-width:0}#battle .formation-panel[aria-labelledby] .formation-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;justify-content:stretch}#battle .formation-panel[aria-labelledby] .party-slot-shell{width:auto;min-width:0;max-width:none}#battle .formation-panel[aria-labelledby] .support-area{width:100%!important;justify-self:stretch;align-self:start}#battle .formation-panel[aria-labelledby] .leader-field{width:100%;max-width:none}#battle .formation-panel[aria-labelledby] .formation-slot{width:100%!important;max-width:none;height:auto!important;min-height:0!important;aspect-ratio:132/170}#battle .formation-panel[aria-labelledby] .battle-card-portrait{height:68%!important}#battle .formation-panel[aria-labelledby] .battle-card-footer{min-height:0;flex:1}#battle .formation-panel[aria-labelledby] .support-area>.party-slot-shell{padding-top:0}}
