.team-layout{max-width:1160px;padding:0 24px 40px;display:block}.team-layout form{padding:0}.team-layout h2{font-size:22px;margin:0 0 20px}.team-layout label{font-size:12px}.team-layout input[type=number],.team-layout input[type=search]{width:100%;min-height:42px;border:1px solid var(--line);border-radius:6px;padding:10px;font:inherit;background:white;color:var(--ink);margin-top:7px}.team-layout select{min-height:42px;font-size:13px}.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.team-layout summary{font-size:14px;padding:16px 0}.team-extra,.team-method details,#team-owned{border-top:1px solid var(--line);margin-top:18px}.team-owned-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.team-owned-list label{display:flex;align-items:center;gap:8px;background:#f4f7f4;border:1px solid var(--line);border-radius:7px;padding:10px;margin:0;overflow-wrap:anywhere;line-height:1.6}.team-owned-list img{width:32px;height:32px;object-fit:contain}.team-layout input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.team-timing{background:#fff4d2;border:1px solid #ead898;border-radius:8px;padding:15px;line-height:1.8;font-size:12px}.team-timing strong{display:block}.team-results{margin-top:30px;scroll-margin-top:20px}.team-result-card{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:18px}.team-result-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.team-result-head h3{margin:0;font-size:17px;line-height:1.7}.team-result-index{color:var(--green);font-size:30px;font-weight:800;white-space:nowrap}.team-result-index small{display:block;font-size:11px;color:var(--muted);font-weight:400}.team-crew{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.team-member{border:1px solid var(--line);background:#f8faf7;border-radius:8px;padding:12px;display:flex;gap:10px;align-items:center;min-width:0}.team-member:first-child{background:#eaf5ef;border-color:#8dbdae}.team-member img{width:52px;height:52px;object-fit:contain;flex:none}.team-member strong{font-size:12px;line-height:1.7;display:block}.team-member small{font-size:10px;color:var(--muted);display:block}.team-fields{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.team-fields span{border:1px solid #c0d4e8;background:#edf4fc;padding:8px 10px;border-radius:6px;font-size:12px}.team-field-plan{font-size:12px;line-height:1.9;padding:12px 16px;background:#fff9e9;border-radius:7px}.team-source-list p{font-size:12px;line-height:1.8;margin:8px 0 15px}.team-source-list strong{display:block}.team-source-list article{border-bottom:1px solid var(--line);padding:12px 0}.team-issues{color:#856119}.team-source-list details p{white-space:pre-wrap;color:var(--muted)}.team-method{font-size:12px;line-height:1.9;margin-top:28px}.team-link{padding-top:0;padding-bottom:24px}.team-layout :focus-visible{outline:3px solid #9675c7;outline-offset:2px}.team-layout button:disabled{opacity:.5;cursor:default}
@media(max-width:850px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-owned-list{grid-template-columns:repeat(2,minmax(0,1fr))}.team-crew{grid-template-columns:1fr}.team-member img{width:42px;height:42px}.team-result-head{flex-direction:column;gap:8px}.team-result-index{font-size:27px}}
@media(max-width:520px){.team-layout{padding:0 12px 28px}.team-grid{gap:10px}.team-result-card{padding:17px}.team-owned-list{grid-template-columns:1fr}.team-layout .damage-panel{padding:18px}.team-result-head h3{font-size:15px}}
.team-second-attacker{background:#edf0fd;border-color:#a4afd4}.team-hits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.team-hits article{background:#f5f8f4;border:1px solid var(--line);border-radius:8px;padding:12px;line-height:1.8;font-size:12px;min-width:0}.team-hits strong,.team-hits b{display:block}.team-hits b{font-size:22px;color:var(--green)}.team-hits small{display:block;color:var(--muted)}.team-comparison-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.team-comparison-summary div{background:white;border:1px solid var(--line);border-radius:10px;padding:18px}.team-comparison-summary b{display:block;font-size:28px;color:var(--green);margin:9px 0}.team-comparison-summary small{display:block;color:var(--muted);font-size:12px}.team-composition{margin-top:30px}.team-composition>h3{font-size:20px}.team-layout #team-mode{margin-bottom:18px;max-width:460px}
@media(max-width:520px){.team-hits,.team-comparison-summary{grid-template-columns:1fr}.team-comparison-summary b{font-size:25px}}
.team-compositions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.team-compositions .team-crew,.team-compositions .team-hits{grid-template-columns:1fr}.team-compositions .team-result-head{flex-direction:column;gap:7px}.team-composition{min-width:0;scroll-margin-top:20px}.team-comparison-summary a{display:inline-block;font-size:12px;margin-top:12px}
@media(max-width:850px){.team-compositions{grid-template-columns:1fr}}

.team-objectives{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:0 0 20px;min-width:0}.team-objectives legend{font-size:14px;font-weight:700;padding:0 6px}.team-objectives .damage-checks{margin-top:0}.team-objectives p{margin-bottom:0}.team-score-detail{color:var(--muted);font-size:12px;margin:10px 0}.team-objective-results{margin:32px 0;scroll-margin-top:20px}.team-objective-results>h3{font-size:22px;border-bottom:2px solid var(--green);padding-bottom:12px}.team-comparison-summary p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.team-composition>h4{font-size:18px}.team-result-index{white-space:normal;overflow-wrap:anywhere}.team-result-head>h3,.team-result-head>.team-result-index{min-width:0}

.team-voltage {border:0;padding:0;margin:0;min-width:0;}
.team-voltage legend {font-weight:700;margin-bottom:8px;}
.team-voltage .damage-checks {margin:0;gap:20px;min-height:42px;align-items:center;}

.team-stat-conditions{background:#fff6d7;border-left:4px solid #d4ac36;padding:12px 16px;margin:16px 0;color:#59470f}.team-stat-conditions p{margin:6px 0;font-size:.85rem}

.team-bsb-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0;max-height:460px;overflow:auto}.team-bsb-panels label{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px;background:#f8faf7;border:1px solid var(--line);border-radius:8px}.team-bsb-panels label.selected{background:#e6f4ed;border-color:var(--green)}.team-bsb-panels small{display:block;color:var(--muted);line-height:1.6;margin-top:4px}.team-sequence{padding-left:24px;line-height:1.8;font-size:13px}.team-sequence li{padding:8px;border-bottom:1px solid var(--line)}.team-sequence small{color:var(--muted)}#team-bsb{border-top:1px solid var(--line);margin-top:18px}@media(max-width:520px){.team-bsb-panels{grid-template-columns:1fr}}

.team-conditions-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.team-conditions-heading h2{margin:0}.team-conditions-heading button{white-space:nowrap;font-size:.85rem;padding:9px 13px}
.team-share{margin-top:14px}#team-share-dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:560px;width:calc(100% - 32px);color:var(--ink)}#team-share-dialog::backdrop{background:rgba(20,40,45,.45)}#team-share-dialog input{display:block;width:100%;margin:8px 0 18px;padding:12px;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:13px}#team-share-dialog h2{font-size:22px}#team-share-dialog p{line-height:1.8}#team-share-copy-status,#team-share-status{font-size:13px;color:var(--green)}

.team-owned-row{border:1px solid #d6e3da;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.team-owned-row>label{border:0!important;padding:0!important}.team-owned-level{display:flex;align-items:center;gap:8px;font-size:12px}.team-owned-level select{width:auto;min-height:34px;padding:5px}.team-exclude{font-size:11px;padding:5px 8px;margin-top:7px;display:block}.team-exclude:disabled{opacity:.6}#team-roster-status{font-size:13px}

.battle-table-wrap{overflow-x:auto;margin:18px 0}.battle-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.battle-table th,.battle-table td{padding:10px;border-bottom:1px solid #ddd;text-align:right}.battle-table thead{background:#edf2e8}.battle-table td:nth-child(3){white-space:normal;min-width:180px;text-align:left}

.battle-table .action-text{text-align:left;white-space:normal}.battle-table .action-owner{min-width:180px;max-width:280px}.battle-table .action-move{max-width:280px}.action-conditions{min-width:240px;max-width:360px;font-size:12px;line-height:1.6;text-align:left;white-space:normal}.action-conditions span,.action-conditions strong{display:block}.action-conditions strong{font-size:11px;color:#6d667b;margin-top:4px}

.battle-table thead th{text-align:left}

.action-conditions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px 24px;min-width:0;max-width:none;font-size:12px;line-height:1.7;text-align:left;white-space:normal}.action-condition-phase{min-width:0}.action-conditions span,.action-conditions strong{display:block}.action-conditions strong{margin:0 0 3px}.action-condition-label{font-size:11px;font-weight:600;color:#6d667b;margin-bottom:6px}.action-main-row td{vertical-align:top}.action-condition-cell{padding:10px 14px 14px!important;text-align:left!important;white-space:normal!important;background:#f8f7fb}.action-time{vertical-align:top;font-variant-numeric:tabular-nums}.action-condition-row{border-bottom:2px solid #ddd}

@media(max-width:700px){.action-conditions{grid-template-columns:1fr}}

.team-recalculate{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper,#fffaf0)}.team-recalculate button{min-height:44px;max-width:100%;white-space:normal}.team-recalculate p{margin:10px 0 0;line-height:1.8}

.condition-field-badge{display:inline-block;padding:2px 7px;border:1px solid #7c6a97;border-radius:5px;font-size:11px}.condition-field-ex{background:#f1e6fa!important;border-color:#8659af!important}.condition-field-ex .condition-field-badge{background:#63418b;color:#fff}.condition-field-normal .condition-field-badge{background:#fff;color:#49385f}.field-effect-legend{margin:16px 0;border:1px solid var(--line);border-radius:8px;padding:0 14px}.field-effect-legend p{font-size:13px;line-height:1.8}

.team-type-controls{padding:1rem;border:1px solid #c9b4df;border-radius:12px;margin:1rem 0;background:#f8f4fc}.team-type-controls select{width:100%}.team-type-controls button{margin-top:.6rem}

.team-nl{margin-block:1rem;padding:1rem;border:1px solid var(--border,#d9ccd8);border-radius:12px}.team-nl textarea{display:block;width:100%;box-sizing:border-box;margin-block:.5rem;padding:.7rem;font:inherit}.team-nl-match{margin-block:.6rem;padding:.5rem;border-bottom:1px solid #d9ccd8}.team-nl-match select{width:100%;max-width:100%}.team-nl button{margin-block:.5rem}.team-nl-match p{overflow-wrap:anywhere}

/* Search settings: choose the battle first, then expand optional settings. */
.team-layout .team-settings{border:1px solid var(--line);border-radius:12px;margin:14px 0;background:#fff;min-width:0}
.team-layout .team-settings>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:18px 20px;cursor:pointer;list-style:none;color:var(--ink)}
.team-settings>summary::-webkit-details-marker{display:none}
.team-settings>summary>span{font-size:16px;font-weight:700;grid-column:1}
.team-settings>summary>small{font-size:12px;color:var(--muted);line-height:1.7;grid-column:1;overflow-wrap:anywhere}
.team-settings>summary::after{content:'＋';grid-column:2;grid-row:1 / 3;font-size:22px;color:var(--green);font-weight:500}
.team-settings[open]>summary::after{content:'−'}
.team-settings[open]>summary{border-bottom:1px solid var(--line);background:#f8f4fc;border-radius:12px 12px 0 0}
.team-settings-body{padding:18px 20px;min-width:0}
.team-settings-body>label{display:block;margin-bottom:16px}
.team-settings-body select{max-width:100%;width:100%}
.team-settings-body>.team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.team-format-choice{padding:16px;background:#f8f4fc;border:1px solid #c9b4df;border-radius:8px;font-size:14px!important}
.team-format-choice select{margin-top:8px;font-weight:700}
.team-layout .team-settings .team-settings{border-radius:8px;margin:18px 0}
.team-layout .team-settings .team-settings>summary{padding:14px 16px}
.team-settings .team-settings>summary>span{font-size:14px}
.team-search-depth{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.team-search-depth select{max-width:420px}
.team-recommendations{margin:16px 0;border:1px solid var(--line);border-radius:10px;padding:0 14px;background:#f8f7fb}
.team-recommendations summary{cursor:pointer;font-weight:700}
.team-recommendation-group{margin:12px 0;min-width:0}
.team-recommendation-group ul{padding-left:20px;margin:6px 0}
.team-recommendation-group li{margin:8px 0;overflow-wrap:anywhere}
.team-recommendation-group small{display:block;color:var(--muted);font-size:12px;line-height:1.7}
.team-recommendation-context{font-weight:700}
.team-settings-body>.damage-note{line-height:1.8}
.team-settings-body .damage-two>label,.team-settings-body .team-grid>label{min-width:0}
.team-settings-body .team-owned-level select{width:auto}
@media(max-width:650px){.team-settings-body>.team-grid{grid-template-columns:1fr}.team-settings-body{padding:16px}.team-layout .team-settings>summary{padding:16px}.team-layout .team-settings .team-settings>summary{padding:12px}.team-settings .team-settings .team-settings-body{padding:12px}.team-conditions-heading{flex-wrap:wrap}.team-conditions-heading button{white-space:normal}}

.action-enemy-row{background:#e7eef4;color:#33495d;font-size:12px}.action-enemy-row th,.action-enemy-row td{border-top:2px solid #bacbd9}.action-sync-interrupt{display:inline-block;font-size:11px;background:#e7ddf7;color:#53327b;border-radius:4px;padding:2px 6px;margin-right:4px;white-space:nowrap}

.action-final-burst{background:#fff4d5}.action-final-burst td:first-child small{display:block;font-size:10px;color:#855f0b}
