.combo-app {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.combo-panel-intro {
  padding: 0.75rem 1.25rem;
}

.combo-panel {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
}

.combo-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #111827;
}

.combo-gattai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .combo-gattai-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.combo-gattai-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  background: #e5e7eb;
  color: #374151;
  min-height: 3.25rem;
  text-align: left;
}

.combo-gattai-btn-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.combo-gattai-btn-label {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.combo-gattai-owned-badge {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  white-space: nowrap;
}

.combo-gattai-btn-hint {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.combo-gattai-btn-count {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  background: #fff;
  border: 2px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.combo-gattai-btn-count--changed {
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
  min-width: 3.25rem;
  padding: 0.28rem 0.4rem;
}

.combo-gattai-btn-count-prev {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 0.22rem;
  padding: 0.1rem 0.3rem;
  font-variant-numeric: tabular-nums;
}

.combo-gattai-btn-count-prev-unit {
  font-size: 0.52rem;
  font-weight: 700;
}

.combo-gattai-btn-count-sep {
  display: block;
  text-align: center;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  color: #059669;
}

.combo-gattai-btn-count-curr {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06rem;
  background: #ecfdf5;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 0.22rem;
  padding: 0.12rem 0.28rem;
}

.combo-gattai-btn-count--changed .combo-gattai-btn-count-num {
  font-size: 1.28rem;
  line-height: 1;
}

.combo-gattai-count-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}

.combo-gattai-count-delta-before {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.combo-gattai-count-delta-arrow {
  font-size: 0.9rem;
  font-weight: 900;
  color: #059669;
}

.combo-gattai-count-delta-after {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background: #ecfdf5;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.combo-gattai-btn-count-num {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.combo-gattai-btn-count-unit {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
  color: #6b7280;
}

.combo-gattai-btn.active {
  background: var(--primary);
  color: #fff;
}

.combo-gattai-btn.active .combo-gattai-btn-count {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.combo-gattai-btn.active .combo-gattai-btn-count-num {
  color: #fff;
}

.combo-gattai-btn.active .combo-gattai-btn-count-prev {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}

.combo-gattai-btn.active .combo-gattai-btn-count-sep {
  color: rgba(255, 255, 255, 0.9);
}

.combo-gattai-btn.active .combo-gattai-btn-count-curr {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.combo-gattai-btn.active .combo-gattai-btn-count-unit {
  color: rgba(255, 255, 255, 0.88);
}

.combo-gattai-detail-collapse {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.combo-gattai-detail-summary {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  background: #f9fafb;
  border-bottom: 1px solid transparent;
}

.combo-gattai-detail-summary::-webkit-details-marker {
  display: none;
}

.combo-gattai-detail-summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.62rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.combo-gattai-detail-collapse[open] .combo-gattai-detail-summary {
  border-bottom-color: #e5e7eb;
}

.combo-gattai-detail-collapse[open] .combo-gattai-detail-summary::before {
  transform: rotate(90deg);
}

.combo-gattai-detail-collapse .combo-gattai-detail {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.combo-gattai-detail {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
}

.combo-gattai-detail h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.combo-gattai-rules {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.combo-gattai-count {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.combo-gattai-anchor {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.combo-gattai-anchor-label {
  font-weight: 700;
  color: #374151;
}

.combo-gattai-anchor-apt {
  font-weight: 700;
  color: var(--primary);
}

.combo-gattai-anchor-gi {
  color: #6b7280;
  font-size: 0.8rem;
}

.combo-gattai-anchor-or {
  color: #6b7280;
  font-size: 0.85rem;
}

.combo-anchor-or-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.25rem;
}

.combo-aptitude-legend {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.combo-aptitude-legend summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
}

.combo-aptitude-legend-item {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  align-items: flex-start;
}

.combo-aptitude-mark {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--primary);
  min-width: 3.5rem;
}

.combo-member-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.combo-member-wrap--ranking {
  position: relative;
}

.cc-compact .combo-ranking-exclude-btn,
.combo-ranking-exclude-btn {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  z-index: 10;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.combo-ranking-member-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  z-index: 10;
  padding: 0.1rem 0.42rem;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.combo-ranking-member-badge--required {
  background: #ea580c;
  color: #fff;
}

.combo-ranking-member-badge--fixed {
  background: #2563eb;
  color: #fff;
}

.cc-compact .combo-ranking-exclude-btn:hover,
.combo-ranking-exclude-btn:hover {
  background: #b91c1c;
  color: #fff;
}

.combo-member-wrap--skill-match .cc-compact {
  box-shadow:
    0 0 0 2px var(--primary),
    0 0 0 4px rgba(16, 185, 129, 0.22);
}

.combo-member-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: center;
  padding: 0 0.1rem;
}

.combo-member-skill-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.08rem 0.28rem;
  border-radius: 0.2rem;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
}

.combo-member-skill-tag--status {
  background: #fef3c7;
  color: #92400e;
}

.combo-member-skill-tag--trigger {
  background: #dbeafe;
  color: #1e40af;
}

.combo-member-skill-tag--gi {
  background: #ede9fe;
  color: #5b21b6;
}

.combo-member-skill-tag--damageTier {
  background: #fee2e2;
  color: #991b1b;
}

.combo-member-skill-tag--target {
  background: #ecfdf5;
  color: #065f46;
}

.combo-member-skill-tag--condition {
  background: #f3f4f6;
  color: #4b5563;
}

.combo-member-skill-tag.is-filter-match {
  box-shadow: 0 0 0 1.5px var(--primary);
  font-weight: 800;
}

.combo-gattai-apt {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  background: #ecfdf5;
  border-radius: 0.2rem;
  padding: 0.1rem 0.25rem;
}

.combo-lock-note {
  margin: 0.5rem 0 0;
}

.combo-panel--pool {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 48%, #ffffff 100%);
  border: 2px solid #6ee7b7;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

.combo-panel--pool h3 {
  color: #047857;
}

.combo-pool-mode {
  margin-bottom: 0.5rem;
}

.combo-pool-scope-lead {
  margin: 0.35rem 0 0;
}

.combo-pool-scope {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0.75rem 0 0.35rem;
}

.combo-pool-scope-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, var(--pool-scope-width, 100%));
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 2px solid #bbf7d0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.combo-pool-scope-btn:hover:not(:disabled) {
  border-color: #86efac;
}

.combo-pool-scope-btn.is-active {
  border-color: var(--primary);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.12);
}

.combo-pool-scope-btn.is-disabled,
.combo-pool-scope-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.combo-pool-scope-btn-main {
  min-width: 0;
  flex: 1 1 auto;
}

.combo-pool-scope-btn-title {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.3;
}

.combo-pool-scope-btn.is-active .combo-pool-scope-btn-title {
  color: #047857;
}

.combo-pool-scope-btn-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}

.combo-pool-scope-btn-count {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.combo-pool-scope-btn-unit {
  margin-left: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.combo-pool-scope-narrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.12rem 0;
  color: #9ca3af;
  line-height: 1;
}

.combo-pool-scope-narrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 800;
}

.combo-pool-mode-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
}

.combo-pool-mode-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.combo-pool-btn {
  flex: 1;
  min-width: 8rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
}

.combo-pool-btn:hover:not(:disabled) {
  border-color: var(--primary);
}

.combo-pool-btn.active {
  border-color: var(--primary);
  background: #ecfdf5;
  color: var(--primary);
}

.combo-pool-btn.disabled,
.combo-pool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.combo-pool-note {
  margin: 0.5rem 0 0;
}

.combo-panel--search-exclude {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.combo-search-exclude-collapse {
  margin-top: 0.75rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.combo-search-exclude-collapse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #f9fafb;
  border-bottom: 1px solid transparent;
}

.combo-search-exclude-collapse-summary::-webkit-details-marker {
  display: none;
}

.combo-search-exclude-collapse-summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.62rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.combo-search-exclude-collapse[open] .combo-search-exclude-collapse-summary {
  border-bottom-color: #e5e7eb;
}

.combo-search-exclude-collapse[open] .combo-search-exclude-collapse-summary::before {
  transform: rotate(90deg);
}

.combo-search-exclude-collapse-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}

.combo-search-exclude-collapse-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.combo-search-exclude-collapse[open] .combo-search-exclude-collapse-hint {
  display: none;
}

.combo-search-exclude-collapse-body {
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.combo-search-exclude-lead {
  margin: 0;
}

.combo-search-exclude-block {
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.combo-search-exclude-block--add {
  background: #fff;
}

.combo-search-exclude-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.45rem;
}

.combo-search-exclude-block-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #374151;
  letter-spacing: 0.03em;
}

.combo-search-exclude-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.75rem;
  align-items: center;
}

.combo-criteria-collapse-body .combo-search-exclude-collapse + .combo-skill-filter-collapse,
.combo-criteria-collapse-body .combo-skill-filter-collapse + .combo-gattai-detail-collapse {
  margin-top: 0.75rem;
}

.combo-skill-filter-collapse {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.combo-skill-filter-collapse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #f9fafb;
  border-bottom: 1px solid transparent;
}

.combo-skill-filter-collapse-summary::-webkit-details-marker {
  display: none;
}

.combo-skill-filter-collapse-summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.62rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.combo-skill-filter-collapse[open] .combo-skill-filter-collapse-summary {
  border-bottom-color: #e5e7eb;
}

.combo-skill-filter-collapse[open] .combo-skill-filter-collapse-summary::before {
  transform: rotate(90deg);
}

.combo-skill-filter-collapse-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}

.combo-skill-filter-collapse-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.combo-skill-filter-collapse[open] .combo-skill-filter-collapse-hint {
  display: none;
}

.combo-skill-filter-collapse-body {
  padding: 0.85rem 1.25rem 1rem;
}

.combo-skill-filter-collapse-body.combo-ranking-skill-filter {
  margin-top: 0;
  box-shadow: none;
}

.combo-search-exclude-active {
  display: none;
}

.combo-search-exclude-label {
  display: none;
}

.combo-search-exclude-chip {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.combo-search-exclude-search-label {
  display: block;
  margin: 0;
}

.combo-search-exclude-search-label .combo-search-exclude-block-label {
  display: block;
  margin-bottom: 0.35rem;
}

.combo-search-exclude-search {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.combo-search-exclude-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.35rem;
  max-height: 10rem;
  overflow: auto;
  margin-top: 0.55rem;
  padding: 0.15rem 0.05rem;
}

.combo-search-exclude-add-btn {
  padding: 0.35rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.combo-search-exclude-add-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.combo-criteria-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .combo-criteria-row {
    grid-template-columns: 1fr;
  }
}

.combo-criteria-col {
  min-width: 0;
}

.combo-criteria-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #111827;
}

.combo-criteria-hint {
  margin: 0 0 0.5rem;
}

.combo-criteria-collapse + .combo-criteria-summary-wrap {
  margin-top: 0.4rem;
}

.combo-criteria-summary-wrap {
  position: sticky;
  top: calc(0.65rem + 2.5rem + 0.65rem + 1px);
  z-index: 45;
  margin-bottom: 0.5rem;
}

@media (min-width: 960px) {
  .combo-criteria-summary-wrap {
    top: 0.35rem;
  }
}

.combo-criteria-collapse-body .combo-gattai-detail-collapse {
  margin-top: 0.25rem;
}

.combo-criteria-collapse {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow: hidden;
}

.combo-criteria-collapse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #f8fafc;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}

.combo-criteria-collapse-summary::-webkit-details-marker {
  display: none;
}

.combo-criteria-collapse-summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.62rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.combo-criteria-collapse[open] .combo-criteria-collapse-summary {
  border-bottom-color: #e5e7eb;
}

.combo-criteria-collapse[open] .combo-criteria-collapse-summary::before {
  transform: rotate(90deg);
}

.combo-criteria-collapse-summary:hover {
  background: #f1f5f9;
}

.combo-criteria-collapse-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.combo-criteria-collapse-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.combo-criteria-collapse[open] .combo-criteria-collapse-hint {
  display: none;
}

.combo-criteria-collapse-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 1.25rem 1.25rem;
}

.combo-criteria-collapse-body .combo-panel--pool,
.combo-criteria-collapse-body .combo-panel-criteria {
  box-shadow: none;
  padding: 0;
}

.combo-criteria-summary {
  margin-top: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 0.625rem;
  background: #fff;
  border: 1px solid #d1fae5;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}

.combo-criteria-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.combo-criteria-summary-head + .combo-criteria-summary-block {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e5e7eb;
}

.combo-criteria-summary-heading {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 0.02em;
  line-height: 1.35;
  flex: 0 0 auto;
}

.combo-criteria-summary-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.combo-criteria-summary-block + .combo-criteria-summary-block {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e5e7eb;
}

.combo-criteria-summary-block--filters {
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.combo-criteria-summary-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.combo-criteria-summary-filter--wide {
  flex: 1 1 100%;
}

.combo-criteria-summary-filter--pool {
  align-items: center;
}

.combo-criteria-summary-rare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 0.74rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.combo-criteria-summary-rare-toggle:has(.combo-criteria-summary-rare-checkbox:checked) {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}

.combo-criteria-summary-rare-checkbox {
  margin: 0;
  accent-color: #059669;
  cursor: pointer;
}

.combo-criteria-summary-pool-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.15rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.combo-criteria-summary-pool-btn {
  border: none;
  background: transparent;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}

.combo-criteria-summary-pool-btn:hover:not(:disabled):not(.is-disabled) {
  color: #111827;
  background: rgba(255, 255, 255, 0.65);
}

.combo-criteria-summary-pool-btn.is-active {
  background: #fff;
  color: #065f46;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.combo-criteria-summary-pool-btn.is-disabled,
.combo-criteria-summary-pool-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.combo-criteria-summary-filter-key,
.combo-criteria-summary-character-key {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.combo-criteria-summary-block--characters {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.85rem;
}

.combo-criteria-summary-character-set {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.combo-criteria-summary-character-set--exclude {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.combo-criteria-summary-character-set--exclude .combo-criteria-summary-character-key {
  color: #b91c1c;
}

.combo-criteria-summary-value {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  line-height: 1.45;
}

.combo-criteria-summary-value--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.combo-criteria-summary-value--portraits {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
}

.combo-criteria-summary-portrait-wrap {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  max-width: 5.5rem;
}

.combo-criteria-summary-portrait-wrap .cc-portrait {
  width: 100%;
}

.combo-criteria-summary-portrait-wrap--exclude .cc-portrait {
  background: #fef2f2;
  border-color: #f87171;
}

.combo-criteria-summary-or {
  align-self: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  padding: 0 0.1rem;
}

.combo-criteria-summary-chip {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  border: 1px solid transparent;
}

.combo-criteria-summary-chip--pool {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
}

.combo-criteria-summary-chip--anchor {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.combo-criteria-summary-chip--gattai {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.combo-criteria-summary-chip--skill {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

.combo-criteria-summary-shozoku {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.82;
}

@media (max-width: 720px) {
  .combo-criteria-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  .combo-criteria-summary-block--filters {
    justify-content: flex-start;
    gap: 0.45rem 0.65rem;
  }

  .combo-criteria-summary-pool-switch {
    width: 100%;
  }

  .combo-criteria-summary-pool-btn {
    white-space: normal;
    text-align: left;
  }

  .combo-criteria-summary-filter--wide {
    flex: 1 1 100%;
  }
}

.combo-criteria-divider {
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.combo-anchor-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.85rem;
}

.combo-anchor-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.combo-anchor-chip .combo-anchor-chip-shozoku,
.combo-anchor-active-chip .combo-anchor-chip-shozoku {
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.78;
}

.combo-skill-groups--anchor {
  max-height: 12rem;
}

.combo-member-wrap--anchor-match .cc-compact {
  box-shadow:
    0 0 0 2px #f59e0b,
    0 0 0 4px rgba(245, 158, 11, 0.24);
}

.combo-member-wrap--anchor-match.combo-member-wrap--skill-match .cc-compact {
  box-shadow:
    0 0 0 2px #f59e0b,
    0 0 0 4px rgba(245, 158, 11, 0.18),
    0 0 0 6px rgba(16, 185, 129, 0.18);
}

.combo-skill-groups--column {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.combo-gattai-grid--column {
  grid-template-columns: repeat(2, 1fr);
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

@media (min-width: 1100px) {
  .combo-criteria-col--gattai .combo-gattai-grid--column {
    grid-template-columns: 1fr;
  }
}

.combo-skill-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.combo-skill-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.combo-skill-block-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #374151;
}

.combo-skill-block-title[data-shozoku='蜀'] {
  color: #16a34a;
}

.combo-skill-block-title[data-shozoku='魏'] {
  color: #2563eb;
}

.combo-skill-block-title[data-shozoku='呉'] {
  color: #dc2626;
}

.combo-skill-block-title[data-shozoku='群'] {
  color: #9333ea;
}

.combo-skill-block-title[data-shozoku='野'] {
  color: #d97706;
}

.combo-skill-block-hint {
  font-size: 0.72rem;
  color: #6b7280;
}

.combo-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.combo-skill-chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1.35;
}

.combo-anchor-active-chip {
  cursor: pointer;
}

.combo-anchor-active-chip:hover {
  filter: brightness(0.96);
}

.combo-skill-chips--anchor {
  gap: 0.45rem;
}

.combo-anchor-variant {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 100%;
}

.combo-anchor-variant-btns {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.combo-anchor-variant-btns .combo-anchor-btn {
  border: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  line-height: 1.3;
  white-space: nowrap;
}

.combo-anchor-variant-btns .combo-anchor-btn:last-child {
  border-right: none;
}

.combo-anchor-variant-btns .combo-anchor-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.combo-anchor-variant-btns .combo-anchor-btn.is-active.combo-anchor-chip--skill-match {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 0 2px var(--primary);
}

.combo-anchor-variant-btns .combo-anchor-btn.is-active.combo-anchor-chip--skill-miss {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 0 2px #9ca3af;
}

.combo-anchor-btn {
  border-width: 1.5px;
  border-style: solid;
  font-weight: 700;
}

.combo-anchor-btn[data-shozoku='蜀'] {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.combo-anchor-btn[data-shozoku='蜀']:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.combo-anchor-btn[data-shozoku='蜀'].is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.combo-anchor-btn[data-shozoku='魏'] {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.combo-anchor-btn[data-shozoku='魏']:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.combo-anchor-btn[data-shozoku='魏'].is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.combo-anchor-btn[data-shozoku='呉'] {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.combo-anchor-btn[data-shozoku='呉']:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.combo-anchor-btn[data-shozoku='呉'].is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.combo-anchor-btn[data-shozoku='群'] {
  background: #faf5ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}

.combo-anchor-btn[data-shozoku='群']:hover {
  background: #f3e8ff;
  border-color: #c084fc;
}

.combo-anchor-btn[data-shozoku='群'].is-active {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff;
}

.combo-anchor-btn[data-shozoku='野'] {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.combo-anchor-btn[data-shozoku='野']:hover {
  background: #fef3c7;
  border-color: #fbbf24;
}

.combo-anchor-btn[data-shozoku='野'].is-active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.combo-anchor-btn.combo-anchor-chip--skill-match:not(.is-active) {
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.combo-anchor-btn.combo-anchor-chip--skill-miss:not(.is-active) {
  opacity: 0.72;
  border-style: dashed;
}

.combo-anchor-btn.is-active.combo-anchor-chip--skill-match {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--primary);
}

.combo-anchor-btn.is-active.combo-anchor-chip--skill-miss {
  opacity: 1;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #9ca3af;
}

.combo-anchor-legend-match {
  color: var(--primary);
}

.combo-anchor-legend-miss {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.combo-skill-chip:hover {
  border-color: var(--primary);
}

.combo-skill-chip.combo-anchor-btn {
  border-width: 1.5px;
  border-style: solid;
}

.combo-skill-chip.combo-anchor-btn:hover {
  border-color: inherit;
}

.combo-skill-chip.is-active:not(.combo-anchor-btn) {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.combo-skill-chip-count {
  opacity: 0.75;
  font-weight: 500;
}

.combo-skill-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0;
  font-size: 0.8rem;
}

.combo-skill-active-label {
  font-weight: 700;
  color: #374151;
}

.combo-skill-active-chip {
  background: #ecfdf5;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.combo-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
}

.combo-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.combo-ranking-item {
  border: 2px solid #475569;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.combo-ranking-item.locked {
  border: 2px solid #dc2626;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.16);
  background: #fef2f2;
}

.combo-ranking-item.highlight {
  border: 2px solid #ca8a04;
  box-shadow: 0 2px 10px rgba(202, 138, 4, 0.16);
  background: #fefce8;
}

.combo-ranking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.combo-ranking-rank {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.combo-ranking-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
}

.combo-ranking-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.combo-member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .combo-member-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .combo-member-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.combo-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--primary);
}

.combo-spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: combo-spin 0.8s linear infinite;
}

@keyframes combo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* おまかせ編成の進捗バー（1部隊確定ごとに伸びる） */
.combo-plan-progressbar {
  width: min(18rem, 80%);
  height: 0.5rem;
  margin: 0.75rem auto 0;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.combo-plan-progressfill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.combo-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.combo-saved-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.combo-saved-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.combo-btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.combo-btn-sm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.combo-btn-primary {
  background: var(--primary);
  color: #fff;
}

.combo-btn-primary:hover {
  background: var(--primary-dark);
}

.combo-btn-secondary {
  background: #6b7280;
  color: #fff;
}

.combo-btn-danger {
  background: #ef4444;
  color: #fff;
}

.combo-btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}

a.combo-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

a.combo-btn-sm:hover {
  text-decoration: none;
}

a.combo-btn-outline:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #111827;
}

.combo-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.combo-dialog {
  background: #fff;
  border-radius: 0.5rem;
  max-width: 28rem;
  width: 100%;
  padding: 1.25rem;
  max-height: 90vh;
  overflow: auto;
}

.combo-dialog h4 {
  margin: 0 0 0.75rem;
}

.combo-dialog input[type='text'] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.combo-support-pick {
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.combo-support-pick button {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.combo-support-pick button:hover {
  background: #f3f4f6;
}

.combo-free-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .combo-free-slots {
    grid-template-columns: repeat(4, 1fr);
  }
}

.combo-free-slot {
  min-height: 6rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: 0.25rem;
}

.combo-free-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
}

.combo-picker-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.combo-picker-filters input[type='search'] {
  flex: 1;
  min-width: 10rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

.combo-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 24rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .combo-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.combo-picker-tile {
  cursor: pointer;
  border-radius: 0.375rem;
  outline: 2px solid transparent;
  transition: outline-color 0.1s;
}

.combo-picker-tile.selected {
  outline-color: var(--primary);
}

.combo-picker-tile.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.combo-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.combo-compare-table th,
.combo-compare-table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
}

.combo-compare-table th {
  background: #f9fafb;
}

.combo-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 20rem;
}

.combo-toast.success {
  background: #16a34a;
}

.combo-toast.error {
  background: #dc2626;
}

.combo-toast.info {
  background: #2563eb;
}

.combo-toast.warning {
  background: #d97706;
}

/* compact card extras */
.cc-compact {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid #6b7280;
  background: #fff;
}

.cc-compact-locked {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.cc-compact-saved {
  border-color: #facc15;
}

.cc-compact-header {
  padding: 0.25rem 0.35rem;
}

.cc-compact-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-compact-body {
  padding: 0.35rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.cc-compact-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.cc-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 0.65rem;
}

.cc-compact-rare {
  color: #ca8a04;
  font-weight: 700;
}

.cc-compact-shozoku,
.cc-compact-heishu {
  background: #374151;
  color: #fff;
  padding: 0 0.2rem;
  border-radius: 0.15rem;
}

.cc-compact-heishu {
  background: #7c3aed;
}

.cc-compact-chain {
  font-size: 0.6rem;
  margin-top: 0.15rem;
}

.cc-compact-arrow {
  color: #9ca3af;
  margin: 0 0.1rem;
}

.cc-compact-lock-badge,
.cc-compact-saved-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 2;
  font-size: 0.75rem;
}

.combo-support-wrap {
  position: relative;
}

.combo-support-label {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #7c3aed;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  z-index: 2;
}

/* ===== 編成検索 改修: 分析表示（二重発動・起点別連鎖・おすすめ援護・入れ替え候補） ===== */

.combo-ranking-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.combo-ranking-sort {
  font-size: 0.8rem;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.combo-ranking-sort select {
  font-size: 0.8rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #fff;
  color: #374151;
}

.combo-ranking-practical {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.combo-ranking-gattai-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.combo-analysis-badge {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.combo-analysis-badge--gattai {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.combo-analysis-badge--multi {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: 1px solid #f59e0b;
}

.combo-ranking-analysis-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  font-size: 0.78rem;
  color: #4b5563;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
}

.combo-analysis-label {
  font-weight: 700;
  color: #334155;
  background: #e2e8f0;
  border-radius: 0.3rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  cursor: help;
}

.combo-chain-part strong {
  color: #1d4ed8;
}

.combo-chain-sep {
  color: #cbd5e1;
}

.combo-chain-none {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.72rem;
}

.combo-chain-min {
  margin-left: auto;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
  font-size: 0.72rem;
}

.combo-support-rec {
  font-weight: 600;
  color: #374151;
}

.combo-support-rec-inc {
  color: #059669;
  font-weight: 800;
  margin-left: 0.15rem;
}

.combo-analysis-link {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--primary);
}

.combo-swap-panel {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 0.45rem;
  font-size: 0.82rem;
}

.combo-swap-target {
  margin: 0 0 0.35rem;
}

.combo-swap-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}

.combo-swap-list li {
  margin-bottom: 0.2rem;
}

.combo-member-wrap--low-contrib {
  position: relative;
}

.combo-member-low-contrib {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
  cursor: help;
}

.combo-member-sp-badge {
  display: block;
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #6d28d9;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
  text-decoration: none;
}

.combo-member-sp-badge:hover {
  background: #ddd6fe;
}

/* ② おまかせ部隊編成（β） */
.combo-squad-planner-body { padding: 0.6rem 0.2rem; }
.combo-squad-planner-controls { margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.combo-planner-help { font-size: 0.8rem; color: #2c5e3f; text-decoration: none; white-space: nowrap; }
.combo-planner-help:hover { text-decoration: underline; }
.combo-planner-weight { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }
.combo-planner-weight input[type='range'] { max-width: 9rem; }
.combo-planner-weight-hint { flex-basis: 100%; margin: 0.1rem 0 0; font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 560px) {
  .combo-squad-planner-controls > label, .combo-planner-weight { width: 100%; }
  .combo-planner-weight input[type='range'] { flex: 1; max-width: none; }
}

/* === おまかせ操作パネル（大きく・見やすく・押しやすく） === */
.combo-omakase-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.omakase-field { display: flex; flex-direction: column; gap: 0.5rem; }
.omakase-field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--combo-text, #1f2937);
}
.combo-omakase-controls .combo-planner-help { font-size: 0.82rem; font-weight: 600; }
.omakase-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.omakase-segmented--count { grid-template-columns: repeat(3, 1fr); max-width: 24rem; }
.omakase-segmented--pool { grid-template-columns: repeat(3, 1fr); }
.omakase-seg-btn--pool { min-height: 3.2rem; padding: 0.5rem 0.3rem; }
.omakase-seg-btn--pool .omakase-seg-title { font-size: 0.82rem; letter-spacing: -0.02em; white-space: nowrap; }
.omakase-seg-btn--pool .omakase-seg-sub { font-size: 0.66rem; }

/* 全武将時の入手範囲プルダウン */
.omakase-season-select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--combo-text, #374151);
  cursor: pointer;
}
.omakase-season-select:focus { outline: none; border-color: var(--primary, #2c5e3f); }
.omakase-seg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--combo-text, #374151);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.omakase-seg-btn:hover { border-color: var(--primary, #2c5e3f); }
.omakase-seg-btn.is-active {
  border-color: var(--primary, #2c5e3f);
  background: color-mix(in srgb, var(--primary, #2c5e3f) 12%, #fff);
  box-shadow: inset 0 0 0 1px var(--primary, #2c5e3f);
}
.omakase-seg-title { font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.omakase-seg-btn.is-active .omakase-seg-title { color: var(--primary, #2c5e3f); }
.omakase-seg-sub { font-size: 0.74rem; color: #6b7280; line-height: 1.25; }
.omakase-seg-btn--count {
  flex-direction: row;
  gap: 0.2rem;
  min-height: 3.1rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.omakase-seg-btn--count small { font-size: 0.78rem; font-weight: 600; color: #6b7280; }
.omakase-seg-btn--count.is-active { color: var(--primary, #2c5e3f); }
.omakase-seg-btn--count.is-active small { color: var(--primary, #2c5e3f); }

.omakase-field--weight { gap: 0.35rem; }
.omakase-weight-val {
  font-variant-numeric: tabular-nums;
  background: var(--primary, #2c5e3f);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  font-size: 0.88rem;
}
.omakase-range { width: 100%; height: 1.9rem; accent-color: var(--primary, #2c5e3f); cursor: pointer; }
.omakase-range-ends { display: flex; justify-content: space-between; font-size: 0.74rem; color: #6b7280; }
.omakase-field--weight .combo-planner-weight-hint { margin: 0.2rem 0 0; }

.omakase-run-btn {
  width: 100%;
  min-height: 3.3rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary, #2c5e3f);
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.omakase-run-btn:hover { filter: brightness(1.07); }
.omakase-run-btn:disabled { opacity: 0.6; cursor: default; }

.combo-squad-card { border: 1px solid var(--combo-border, #c8d4c8); border-radius: 8px; padding: 0.55rem 0.8rem; margin: 0.45rem 0; background: var(--combo-card-bg, #fff); }
.combo-squad-card-head { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.25rem; }
.combo-squad-card-row { font-size: 0.92em; line-height: 1.7; }
.combo-squad-card-row small { color: #677; }

/* S2: 役割警告バッジ / S3: 未解放合体技 */
.combo-analysis-badge--warn { background: #fff3e0; color: #a85b00; border: 1px solid #e8c08a; }
.combo-analysis-badge--gattai-locked { opacity: 0.65; }
.combo-analysis-badge--gattai-locked small { margin-left: 0.2em; color: #b04a4a; font-weight: 700; }

/* A3: そだてる（投資ランキング＋覚醒ロードマップ） */
.combo-sodateru-body { padding: 0.6rem 0.2rem; }
.combo-sodateru-h { margin: 0.7rem 0 0.4rem; font-size: 0.98em; }
.combo-sodateru-h:first-child { margin-top: 0; }
.combo-sodateru-list { margin: 0.4rem 0; padding-left: 1.4rem; }
.combo-sodateru-item { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; padding: 0.18rem 0; }
.combo-sodateru-name { font-weight: 600; }
.combo-sodateru-stars { color: #566; font-size: 0.88em; }
.combo-sodateru-squad { color: #566; font-size: 0.85em; background: #eef4ee; border-radius: 9px; padding: 0 0.5em; }
.combo-sodateru-delta { color: #1a7a3a; margin-left: auto; }
.combo-sodateru-awaken { border-collapse: collapse; width: 100%; font-size: 0.9em; margin: 0.4rem 0; }
.combo-sodateru-awaken th, .combo-sodateru-awaken td { border: 1px solid #dbe5db; padding: 0.3em 0.55em; text-align: left; }
.combo-sodateru-awaken th { background: #eef4ee; white-space: nowrap; }
.combo-sodateru-badge { display: inline-block; padding: 0 0.45em; border-radius: 9px; background: #f4f0e8; color: #8a6d3b; font-size: 0.82em; font-weight: 600; }
.combo-sodateru-badge--owned { background: #eef6ee; color: #2c5e3f; }

/* ===== A2: タブバー（さがす/おまかせ/そだてる） ===== */

.combo-tabbar {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
  padding: 0.3rem;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.combo-tabbar-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.4rem;
  min-height: 48px;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
}

.combo-tabbar-hint {
  font-size: 0.66rem;
  font-weight: 500;
  color: #6b7280;
}

.combo-tabbar-tab.is-active {
  background: var(--primary, #15803d);
  color: #fff;
}

.combo-tabbar-tab.is-active .combo-tabbar-hint {
  color: rgba(255, 255, 255, 0.85);
}

.combo-tab-empty {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

/* ===== A2: 条件ドロワー（モバイル=ボトムシート / デスクトップ=右ドロワー） ===== */

body.combo-modal-open {
  overflow: hidden;
}

.combo-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 320;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.combo-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.combo-drawer {
  position: fixed;
  z-index: 330;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  visibility: hidden;
}

.combo-drawer.is-open {
  visibility: visible;
}

@media (max-width: 959px) {
  .combo-drawer {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    transition: transform 0.22s ease, visibility 0.22s;
  }

  .combo-drawer.is-open {
    transform: translateY(0);
  }
}

@media (min-width: 960px) {
  .combo-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(760px, 94vw);
    transform: translateX(105%);
    transition: transform 0.22s ease, visibility 0.22s;
  }

  .combo-drawer.is-open {
    transform: translateX(0);
  }
}

.combo-drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex: none;
}

.combo-drawer-grip {
  display: none;
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
}

@media (max-width: 959px) {
  .combo-drawer-grip {
    display: block;
  }

  .combo-drawer-head {
    padding-top: 0.9rem;
  }
}

.combo-drawer-title {
  margin: 0;
  font-size: 1.05rem;
}

.combo-drawer-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.2rem;
  cursor: pointer;
}

.combo-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.8rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.combo-drawer-foot {
  position: sticky;
  bottom: 0;
  padding: 0.8rem 0 0.2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 35%);
  text-align: center;
}

.combo-drawer-apply {
  min-width: 220px;
  min-height: 44px;
}

.combo-criteria-open-btn {
  flex: none;
  min-height: 40px;
}

/* ===== A4: 統一結果カード（バッジ列・援護5枠目・操作列） ===== */

.combo-ranking-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0.4rem 0 0.55rem;
}

.combo-ranking-head--unified {
  margin-bottom: 0;
}

.combo-ranking-actions--unified {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.combo-member-grid.cols-5 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .combo-member-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .combo-member-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.combo-support-inc {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  z-index: 2;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
}

.combo-support-wrap--empty {
  border: 1px dashed #c7d2c7;
  border-radius: 0.5rem;
  min-height: 120px;
  display: flex;
}

.combo-support-empty {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  color: #6b7280;
}

.combo-support-empty p {
  margin: 0;
}

.combo-support-empty a {
  font-size: 0.74rem;
}

.combo-support-label--inline {
  position: static;
  align-self: flex-start;
}

.combo-support-picker {
  margin-top: 0.45rem;
}

.combo-support-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  color: #374151;
  cursor: pointer;
  min-height: 32px;
}

.combo-support-pick.is-active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #5b21b6;
  font-weight: 700;
}

.combo-squad-star {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 0.3rem;
  border-radius: 999px;
}

/* ===== F11/R7: おまかせ・そだてるの条件連動チップと注記 ===== */

.combo-planner-cond {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.3rem 0 0.6rem;
}

.combo-planner-cond-chip {
  background: #eef4ee;
  color: #2c5e3f;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.combo-planner-stale {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  margin: 0.3rem 0 0.6rem;
}

/* ===== M3その2: 結果カードの3段化（モバイル要約＋ボトムシート） ===== */

.combo-m3-summary {
  display: none;
}

.combo-m3-sheetbar {
  display: none;
}

.combo-m3-mode-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #556;
}

.combo-m3-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 335;
  background: rgba(15, 23, 42, 0.45);
}

@media (min-width: 960px) {
  .combo-m3-sheet-backdrop {
    display: none;
  }
}

@media (max-width: 959px) {
  .combo-m3-mode-toggle {
    display: inline-flex;
  }

  .combo-ranking-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
  }

  body.combo-m3-list-summary .combo-m3-card {
    padding: 0;
    overflow: visible;
  }

  body.combo-m3-list-summary .combo-m3-summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 56px;
    padding: 0.5rem 0.55rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  body.combo-m3-list-summary .combo-m3-card:not(.combo-m3-card--sheet) .combo-m3-full {
    display: none;
  }

  body.combo-m3-list-summary .combo-m3-card--sheet .combo-m3-full {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 340;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 86vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.8rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  }

  body.combo-m3-list-summary .combo-m3-card--sheet .combo-m3-sheetbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    padding: 0.55rem 0 0.45rem;
    border-bottom: 1px solid #eee;
    margin: 0 0 0.55rem;
  }
}

.combo-m3-sheetbar-title {
  font-weight: 800;
  color: #374151;
}

.combo-m3-sheetbar-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.15rem;
  cursor: pointer;
}

.combo-m3-rank {
  /* B5: 自動命名で長くなるため、要約段では省略表示（全文はシート/全文段に出る） */
  flex: 0 1 auto;
  min-width: 2.1em;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.82rem;
  color: #374151;
}

.combo-m3-faces {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.combo-m3-face {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef4ee;
  flex: none;
}

.combo-m3-face-wrap {
  position: relative;
  flex: none;
}

.combo-m3-face-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0 0.25em;
  border-radius: 6px;
}

.combo-m3-face-wrap--empty {
  width: 38px;
  height: 38px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combo-m3-score {
  flex: none;
  font-weight: 800;
  font-size: 0.8rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.combo-m3-score--raw {
  color: #1f2937;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.combo-m3-chev {
  flex: none;
  color: #9ca3af;
  font-size: 1.25rem;
  line-height: 1;
}

/* B4: おまかせ全部隊まとめて採用 */
.combo-squad-adopt-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}
