.editorial-guide { max-width: 72rem; }
.editorial-lead { margin: 0 0 1rem; line-height: 1.8; font-size: 1.04rem; }
.editorial-jumps { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.2rem 0 .85rem; }
.editorial-jumps button { min-height: 40px; padding: .38rem .72rem; border: 1px solid rgba(112, 158, 175, .45); border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: .82rem; }
.editorial-jumps button:focus-visible { outline: 3px solid #387ead; outline-offset: 2px; }
.editorial-feature-grid, .editorial-tactics, .editorial-mechanics { scroll-margin-top: 4.5rem; }
.editorial-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0 1.7rem; }
.editorial-feature { min-width: 0; padding: .8rem 1rem .85rem; border-left: 3px solid var(--accent, #67a6bd); background: rgba(112, 158, 175, .08); }
.editorial-feature-cautions { border-left-color: #b99b70; background: rgba(185, 155, 112, .09); }
.editorial-feature h3, .editorial-tactics h3, .editorial-mechanics h3, .editorial-sources h3 { margin: 0 0 .75rem; font-size: 1.12rem; line-height: 1.4; }
.editorial-feature-item + .editorial-feature-item { margin-top: .8rem; }
.editorial-feature-item h4, .editorial-tactic h4 { margin: 0 0 .22rem; font-size: 1rem; line-height: 1.5; }
.editorial-feature-item p, .editorial-tactic p, .editorial-mechanics p { margin: 0; line-height: 1.75; overflow-wrap: anywhere; }
.editorial-tactics, .editorial-mechanics { margin: 1.55rem 0; }
.editorial-tactic { padding: 0 0 0 .85rem; border-left: 2px solid rgba(112, 158, 175, .45); }
.editorial-tactic + .editorial-tactic { margin-top: 1.15rem; }
.editorial-tactic p + p { margin-top: .5rem; }
.editorial-mechanics dl { margin: 0; border-top: 1px solid rgba(150, 170, 180, .28); }
.editorial-mechanics dl > div { display: grid; grid-template-columns: minmax(8rem, 29%) minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(150, 170, 180, .28); }
.editorial-mechanics dt { font-weight: 700; line-height: 1.6; }
.editorial-mechanics dd { min-width: 0; margin: 0; }
.editorial-mechanics small { display: block; margin-top: .16rem; line-height: 1.55; opacity: .8; overflow-wrap: anywhere; }
.editorial-sources { margin: 1.7rem 0 1rem; padding-top: .8rem; border-top: 1px solid rgba(150, 170, 180, .28); }
.editorial-sources summary { cursor: pointer; font-size: .88rem; font-weight: 600; }
.editorial-sources ul { padding-left: 1.2rem; margin: .6rem 0; }
.editorial-sources li { margin: .35rem 0; line-height: 1.55; }
.editorial-sources a { overflow-wrap: anywhere; }
/* ページ最下部の「情報元」: 目立たせない（.mutedで0.75rem・WCAG AA相当のコントラスト）。 */
.unit-info-sources { margin: 1.2rem 0 0; padding-top: .7rem; border-top: 1px solid rgba(150, 170, 180, .22); }
.unit-info-sources summary { cursor: pointer; font-size: .75rem; }
.unit-info-sources ul { padding-left: 1.1rem; margin: .5rem 0 0; }
.unit-info-sources li { margin: .3rem 0; line-height: 1.5; font-size: .75rem; }
.unit-info-sources a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .editorial-feature-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .editorial-mechanics dl > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}
.editorial-comparison { margin: 1.55rem 0; }
.editorial-comparison h3 { margin: 0 0 .75rem; font-size: 1.12rem; line-height: 1.4; }
.editorial-table-wrap { overflow-x: auto; }
.editorial-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.editorial-table th, .editorial-table td { padding: .5rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(150, 170, 180, .28); overflow-wrap: anywhere; }
.editorial-table thead th { font-weight: 700; background: rgba(112, 158, 175, .1); }
.editorial-table tbody th { font-weight: 600; white-space: nowrap; }
.editorial-table tr.is-current th, .editorial-table tr.is-current td { background: rgba(112, 158, 175, .14); font-weight: 700; }
.editorial-table tr.is-current th { box-shadow: inset 3px 0 0 var(--accent, #67a6bd); }
.editorial-current-tag { display: inline-block; margin-left: .35rem; padding: 0 .3rem; font-size: .72rem; font-weight: 600; line-height: 1.5; border: 1px solid currentColor; border-radius: 3px; opacity: .85; white-space: nowrap; }
.editorial-note { margin: .5rem 0 0; font-size: .85rem; line-height: 1.6; opacity: .85; }
.part-guide .editorial-guide { margin-top: .4rem; }
@media (max-width: 700px) {
  .editorial-table { font-size: .86rem; }
  .editorial-table th, .editorial-table td { padding: .45rem .4rem; }
  .editorial-current-tag { display: block; margin: .2rem 0 0; width: max-content; }
}
.editorial-practical { margin: 1.55rem 0; scroll-margin-top: 4.5rem; }
.editorial-practical h3 { margin: 0 0 .75rem; font-size: 1.12rem; line-height: 1.4; }
.practical-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
@media (min-width: 900px) {
  .practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.practical-card { min-width: 0; padding: .8rem 1rem .85rem; border-left: 3px solid var(--accent, #67a6bd); background: rgba(112, 158, 175, .08); }
.practical-card h4 { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.5; }
.practical-card .muted { margin: .35rem 0 0; font-size: .85rem; line-height: 1.6; }
.practical-combo + .practical-combo { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed rgba(150, 170, 180, .35); }
.practical-combo-seq { margin: 0 0 .3rem; line-height: 1.6; overflow-wrap: anywhere; }
.practical-combo-total { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 700; }
.practical-stagger-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .8rem; font-size: .92rem; }
.practical-stagger-list li { display: contents; }
.practical-stagger-list li span:last-child { text-align: right; white-space: nowrap; }
.practical-expansion-list { margin: 0; padding-left: 1.1rem; }
.practical-expansion-list li + li { margin-top: .5rem; }
.practical-expansion-list p { margin: .15rem 0 0; line-height: 1.6; opacity: .85; }
.practical-self-stagger { margin: .7rem 0 0; font-size: .85rem; }
/* 武装の備考（Wiki記載の短い事実）: 縦に長い箇条書きにせず、小さな標識として横に並べる。 */
.weapon-notes { display: flex; flex-wrap: wrap; gap: .3rem .35rem; list-style: none; padding: 0; margin: .55rem 0 .2rem; font-size: .78rem; line-height: 1.5; }
.weapon-notes li { padding: .08rem .45rem; border: 1px solid rgba(150, 170, 180, .45); border-radius: 4px; background: rgba(112, 158, 175, .07); overflow-wrap: anywhere; }
/* 武装カード内の連撃・格闘方向補正: 小さく控えめな表（格闘武器のみ）。 */
.combo-correction-table { margin: .5rem 0 0; font-size: .75rem; line-height: 1.5; border-collapse: collapse; }
.combo-correction-table caption { text-align: left; margin-bottom: .2rem; color: var(--muted); }
.combo-correction-table th, .combo-correction-table td { padding: .15rem .6rem .15rem 0; text-align: left; font-weight: 400; }
.combo-correction-table th { color: var(--muted); white-space: nowrap; }
.comparison td .cmp-items { display: block; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.unit-info-sources .compare-sources-note { margin: .5rem 0 0; font-size: .75rem; line-height: 1.6; }
/* 同コスト帯での位置（UI-SCORE-001）: 控えめな小ブロック。トークンは既存の性能タブ（.stat-row / .stat-track）に合わせる。 */
.score-block { margin: 0 0 1.1rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--line, #dce2e8); }
.score-block h3 { margin: 0 0 .4rem; font-size: .875rem; }
.score-row { display: grid; grid-template-columns: minmax(92px, 1fr) 2.4rem minmax(64px, 1.3fr); align-items: center; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid #e2e8ed; font-size: .8125rem; line-height: 1.5; }
.score-label { overflow-wrap: anywhere; }
.score-num { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--navy, #162232); text-align: right; }
.score-meter { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.score-tick { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.score-detail { grid-column: 1 / -1; color: var(--muted, #626e7b); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.score-detail small { font-size: .6875rem; white-space: normal; }
.score-skills { margin: .55rem 0 0; }
.score-skills p { display: grid; grid-template-columns: minmax(92px, 9rem) minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 4px 0; font-size: .8125rem; line-height: 1.6; }
.score-skills b { font-weight: 600; color: var(--muted, #626e7b); font-size: .75rem; }
.score-skills span { overflow-wrap: anywhere; }
.score-note { margin: .5rem 0 0; font-size: .6875rem; line-height: 1.6; }
.comparison td .score-cell { display: flex; flex-direction: column; gap: 1px; }
.comparison td .score-cell strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.comparison td .score-cell small { font-size: .6875rem; line-height: 1.5; color: var(--muted, #626e7b); overflow-wrap: anywhere; }
p.score-note { font-size: .75rem; }
@media (max-width: 760px) { .score-skills p { grid-template-columns: minmax(0, 1fr); } }

/* ===== UI-UNIT-VISUAL-002: 機体ページをコンパクトに（001の続き。枠・余白・見出しを減らし、横に並べる。トークンは既存: 濃紺 #142433 / 黄 #f1cc49 / 青 #185f95） ===== */
/* --- ヘッダー: 名前・チップ・Tier・ゲージを画像の右に詰める --- */
.detail-header { padding: 14px 18px; gap: 4px 20px; margin-bottom: 10px; align-items: start; }
.detail-header h1 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.3; }
.detail-header .detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin: 0; }
.env-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 9px; border: 1px solid #c5d3de; border-radius: 999px; background: #f5f8fa; color: #2f4356; font-size: .75rem; line-height: 1.6; max-width: 100%; }
.env-chip b { font-weight: 650; color: var(--muted, #566575); }
.unit-header-rating .unit-rating-line { margin: 0; gap: 2px 16px; }
.unit-header-rating .unit-rating-line button { min-height: 32px; padding: 4px 0; }
.unit-header-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 4px; }
.unit-header-foot .unit-header-dates { margin: 0; }
.unit-header-foot .button-row { margin: 0; }
.unit-header-foot .button { min-height: 32px; padding: 4px 12px; font-size: .8125rem; }
.gauge-wrap { margin: 8px 0 2px; padding: 8px 12px 4px; border: 1px solid var(--line, #dce2e8); border-radius: 8px; background: #f7f9fb; min-width: 0; }
.gauge-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 4px; }
.gauge-title { margin: 0; font-size: .75rem; color: var(--muted, #566575); font-weight: 650; }
.gauge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
.gauge { min-width: 0; }
.gauge-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; margin-bottom: 2px; }
.gauge-label { font-size: .75rem; font-weight: 650; color: var(--navy, #142433); }
.gauge-nums { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.gauge-num { font-size: 1.3rem; line-height: 1.15; color: var(--navy, #142433); font-variant-numeric: tabular-nums; }
.gauge-mode-num { font-size: .9375rem; font-weight: 700; color: #6b5300; white-space: nowrap; }
.gauge-mode-num.gauge-down { color: #8a2f3b; }
.gauge-arrow { margin-left: 2px; font-size: .6875rem; }
.gauge-svg { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.gauge-svg.gauge-mini { height: 5px; border-radius: 3px; }
.gauge-bg { fill: #dbe3ea; }
.gauge-base { fill: #185f95; }
.gauge-up { fill: #f1cc49; }
.gauge-down { fill: #dbe7f1; stroke: #185f95; stroke-width: 1.2; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.gauge.is-changed .gauge-label { text-decoration: underline; text-decoration-color: #f1cc49; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.gauge-legend { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; font-size: .6875rem; color: var(--muted, #566575); line-height: 1.5; }
.gauge-key { flex: 0 0 auto; width: 14px; height: 8px; margin-top: 4px; border-radius: 2px; background: #f1cc49; }
.gauge-mode-note { display: block; font-size: .6875rem; }
.gauge-info { margin-top: 2px; font-size: .75rem; }
.gauge-info summary { cursor: pointer; min-height: 28px; display: flex; align-items: center; color: #185f95; font-weight: 600; }
.gauge-info ul { margin: 2px 0 0; padding-left: 1.1rem; }
.gauge-info li { margin: 4px 0; line-height: 1.6; overflow-wrap: anywhere; }
.gauge-info p { margin: 4px 0 6px; font-size: .6875rem; line-height: 1.6; }
.gauge-mode-line { color: #6b5300; }
.mode-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mode-chip { min-height: 30px; padding: 3px 12px; border: 1px solid #b9c7d3; border-radius: 999px; background: #fff; color: var(--ink, #172433); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.mode-chip:hover { border-color: #185f95; }
.mode-chip[aria-pressed="true"] { background: #142433; border-color: #142433; color: #fff; }
.mode-chip:focus-visible, .near-add:focus-visible, .gauge-info summary:focus-visible, .acc summary:focus-visible, .combo-note summary:focus-visible, .cc-btn:focus-visible, .stag-more summary:focus-visible { outline: 3px solid #387ead; outline-offset: 2px; }
.stat-row.is-changed { background: #fff6d3; box-shadow: inset 4px 0 0 #f1cc49; border-radius: 4px; }
.stat-mode-diff { display: block; font-size: .75rem; color: #5b4700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.unit-tabs { margin: 10px 0 10px; }
.unit-tabs [role=tab] { min-height: 42px; padding: 8px; }
.unit-tab-panel { padding: 14px 16px; }
@media (max-width: 760px) {
  .detail-header { padding: 10px 12px; gap: 4px 12px; margin-bottom: 8px; }
  .detail-header h1 { font-size: 1.25rem; margin-bottom: 4px; }
  .unit-header-content { align-self: start; }
  .gauge-wrap { padding: 8px 10px 4px; }
  .gauge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .gauge-num { font-size: 1.15rem; }
  .gauge-mode-num { font-size: .875rem; }
  .unit-tabs { margin: 8px -2px 8px; }
  .unit-tabs [role=tab] { min-height: 42px; padding: 8px 3px; }
  .unit-tab-panel { padding: 10px 12px; }
}

/* --- 概要タブの共通 --- */
.unit-visual { display: grid; gap: 12px; min-width: 0; }
.unit-visual > * { min-width: 0; }
.unit-visual > p { margin: 0; }
.uv-section > h3, .uv-lab > h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; }
.uv-section > h3 small { margin-left: 6px; font-size: .6875rem; font-weight: 500; color: var(--muted, #566575); }
.uv-note { margin: 6px 0 0; font-size: .6875rem; line-height: 1.6; }
.uv-pending { margin: 0; }
.uv-lab { padding: 10px 14px 12px; border-radius: 8px; background: #142433; color: #f3f6f8; }
.uv-lab > h3 { color: #f1cc49; font-size: .6875rem; letter-spacing: .06em; margin-bottom: 4px; }
.uv-summary { margin: 0; font-size: 1rem; line-height: 1.75; font-weight: 500; overflow-wrap: anywhere; }
.uv-lab-auto { background: #f2f6f9; color: var(--ink, #172433); border: 1px solid #d3dee7; }
.uv-lab-auto > h3 { color: var(--muted, #566575); }
/* 属性チップ: 機体共通の属性をデータから自動付与（時限＝点線枠でモード名を添える） */
.uv-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.uv-attr { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(241, 204, 73, .16); border: 1px solid rgba(241, 204, 73, .6); color: #ffe38a; font-size: .75rem; font-weight: 650; line-height: 1.6; }
.uv-attr small { font-size: .6875rem; font-weight: 500; opacity: .9; }
.uv-attr.is-mode { border-style: dashed; background: transparent; }
.uv-lab-auto .uv-attr { color: #5b4700; background: #fff6d3; border-color: #e0c35a; }
.uv-points-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.uv-points { padding: 8px 12px 10px; border-radius: 8px; border: 1px solid #cfe0ea; background: #f2f8fc; }
.uv-points-cautions { border-color: #ecd9a8; background: #fdf8e8; }
.uv-points > h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .9375rem; }
.uv-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #185f95; color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; }
.uv-points-cautions .uv-mark { background: #f1cc49; color: #142433; }
.uv-points ul { list-style: none; margin: 0; padding: 0; }
.uv-points > ul > li { padding: 5px 0; border-top: 1px solid rgba(20, 36, 51, .1); font-size: .8125rem; line-height: 1.65; overflow-wrap: anywhere; }
.uv-points > ul > li:first-child { border-top: 0; padding-top: 0; }
.uv-points > ul > li strong { font-size: .875rem; margin-right: .3em; }
.uv-vs { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(20, 36, 51, .25); }
.uv-vs h4 { margin: 0 0 2px; font-size: .75rem; color: #0f4a78; }
.uv-vs-cautions h4 { color: #6b5300; }
.uv-vs li { padding: 2px 0; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.uv-vs li span { color: var(--muted, #566575); }
@media (max-width: 700px) { .uv-points-grid { grid-template-columns: minmax(0, 1fr); } .uv-lab { padding: 10px 12px; } .uv-summary { font-size: .9375rem; } }

/* --- コンボ: 1コンボ＝1カード（見出し行＝条件＋合計右寄せ、チップ列、細い積み上げバー） --- */
.combo-list { display: grid; gap: 8px; }
.combo-card { padding: 8px 10px 6px; border: 1px solid #d3dee7; border-radius: 8px; background: #fff; min-width: 0; }
.combo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin-bottom: 6px; }
.combo-cond { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #f1cc49; color: #142433; font-size: .75rem; font-weight: 700; line-height: 1.6; }
.combo-total { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 8px; margin-left: auto; }
.combo-total > span:first-child { font-size: .6875rem; color: var(--muted, #566575); font-weight: 650; }
.combo-total strong { font-size: 1.3rem; line-height: 1.2; color: #142433; font-variant-numeric: tabular-nums; }
.combo-extra-total { padding: 0 6px; border-radius: 4px; background: #fff6d3; border: 1px solid #e0c35a; color: #5b4700; font-size: .6875rem; font-weight: 650; }
.combo-chain { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 5px; margin: 0 0 6px; padding: 0; list-style: none; }
.combo-chip { display: flex; flex-direction: column; min-width: 0; padding: 2px 7px 3px; border: 1px solid #c5d3de; border-radius: 6px; background: #f5f8fa; line-height: 1.4; }
.combo-chip + .combo-chip .cc-btn::before { content: "→"; color: #6a7b8a; font-size: .75rem; font-weight: 700; margin-right: 1px; }
.combo-chip-extra .cc-btn::before { content: "＋" !important; }
.cc-btn { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .75rem; text-align: left; cursor: default; }
.combo-chip-label { overflow-wrap: anywhere; }
.cc-btn b { font-variant-numeric: tabular-nums; color: #142433; white-space: nowrap; }
.cc-formula { display: block; margin-top: 1px; font-size: .6875rem; color: #465a6c; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.combo-chip-extra { background: #fff6d3; border-color: #e0c35a; }
.cs-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; }
.cs-0, .cs-dot-0 { fill: #142433; background: #142433; }
.cs-1, .cs-dot-1 { fill: #185f95; background: #185f95; }
.cs-2, .cs-dot-2 { fill: #4b8fc0; background: #4b8fc0; }
.cs-3, .cs-dot-3 { fill: #2b7a78; background: #2b7a78; }
.cs-4, .cs-dot-4 { fill: #7d93a8; background: #7d93a8; }
.cs-extra, .cs-dot-extra { fill: #f1cc49; background: #f1cc49; }
.combo-bar { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.combo-bar .cs { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.combo-note-line { margin: 4px 0 0; font-size: .6875rem; color: var(--muted, #566575); line-height: 1.5; }
.combo-note { margin-top: 4px; font-size: .75rem; }
.combo-note summary { cursor: pointer; min-height: 28px; display: flex; align-items: center; color: #185f95; font-weight: 600; }
.combo-note p { margin: 2px 0 0; line-height: 1.6; color: var(--muted, #566575); overflow-wrap: anywhere; }
.combo-seq { margin: 0 0 4px; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .combo-card { padding: 8px; }
  .combo-total strong { font-size: 1.2rem; }
  /* 狭幅: 計算式はチップをタップした時だけ表示 */
  .cc-btn[aria-expanded] { cursor: pointer; }
  .cc-formula { display: none; }
  .combo-chip.is-open { flex-basis: 100%; }
  .combo-chip.is-open .cc-formula { display: block; }
}

/* --- よろけ表: 同じ武装は1行、行を詰める --- */
.uv-table-wrap { border: 1px solid #d3dee7; border-radius: 8px; overflow: hidden; background: #fff; }
.stag-more { margin-top: 6px; }
.stag-more summary { cursor: pointer; min-height: 30px; display: flex; align-items: center; color: #185f95; font-size: .75rem; font-weight: 600; }
.stag-table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.4; }
.stag-table th, .stag-table td { padding: 4px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e3eaf0; }
.stag-table thead th { background: #eef3f7; font-size: .6875rem; color: var(--muted, #566575); font-weight: 700; padding: 4px 8px; }
.stag-table tbody tr:last-child > * { border-bottom: 0; }
.stag-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.stag-table th:nth-child(2), .stag-table td:nth-child(2) { width: 24%; }
.stag-name { margin-right: 4px; }
.stag-tag { display: inline-block; margin: 0 4px 0 0; padding: 0 5px; border: 1px solid #b9c7d3; border-radius: 4px; font-size: .625rem; font-weight: 600; color: #3b4d5e; line-height: 1.6; white-space: nowrap; }
.stag-tag-mode { background: #eef3f7; }
.stag-badge { display: inline-block; margin-right: 4px; padding: 0 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.stag-instant { background: #142433; color: #fff; }
.stag-big { background: #f1cc49; color: #142433; }
.stag-accum { background: #e1edf6; color: #0f4a78; border: 1px solid #a9c6dc; }
.stag-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.stag-detail { color: var(--muted, #566575); font-size: .6875rem; overflow-wrap: anywhere; }
.stag-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.stag-line + .stag-line { margin-top: 1px; }
.stag-meter { display: inline-block; align-self: center; width: 36px; height: 4px; border-radius: 2px; overflow: hidden; }
.stag-meter-fill { fill: #185f95; }
.stag-hits { font-variant-numeric: tabular-nums; font-size: .8125rem; }
@media (max-width: 700px) {
  .stag-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stag-table, .stag-table tbody { display: block; }
  .stag-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #e3eaf0; }
  .stag-table tbody tr:last-child { border-bottom: 0; }
  .stag-table th, .stag-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .stag-table tbody th { grid-column: 1 / -1; }
  .stag-table td.stag-empty { display: none; }
}

/* --- おすすめ構成（拡張スキル＋相性の良いカスタムパーツ）: 2列、1行の方針、小さな準備中ボタン --- */
.build-card { padding: 8px 12px 8px; border: 1px solid #d3dee7; border-radius: 8px; background: #fff; }
.build-cols { display: grid; gap: 8px 20px; }
.build-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.build-col { min-width: 0; }
.build-col h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 3px; font-size: .8125rem; color: #0f4a78; }
.build-list { list-style: none; margin: 0; padding: 0; }
.build-list li { padding: 4px 0; border-top: 1px solid #e3eaf0; }
.build-list li:first-child { border-top: 0; padding-top: 0; }
.build-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .875rem; line-height: 1.5; }
.build-lv { font-size: .6875rem; color: var(--muted, #566575); font-weight: 650; }
.build-official { margin: 1px 0 0; font-size: .75rem; line-height: 1.6; color: #34475a; overflow-wrap: anywhere; }
.build-note { margin: 1px 0 0; font-size: .6875rem; line-height: 1.5; color: var(--muted, #566575); overflow-wrap: anywhere; }
.build-badge { padding: 0 7px; border-radius: 4px; background: #f1cc49; color: #142433; font-size: .6875rem; font-weight: 700; line-height: 1.6; }
.build-badge-video { background: #dbe7f1; color: #0f4a78; }
.build-badge-pending { background: #e3eaf0; color: #3b4d5e; }
.build-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #c5d3de; }
.build-cols:empty + .build-foot, .build-card > .build-foot:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.build-advice { margin: 0; flex: 1 1 260px; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.build-advice b { color: #0f4a78; margin-right: 4px; }
.build-try { min-height: 26px; padding: 1px 10px; border: 1px solid #c5d3de; border-radius: 999px; background: #f2f5f8; color: #566575; font: inherit; font-size: .6875rem; opacity: .85; cursor: not-allowed; }
@media (max-width: 700px) { .build-cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* --- 立ち回りアコーディオン --- */
.acc-list { display: grid; gap: 4px; }
.acc { border: 1px solid #d3dee7; border-radius: 8px; background: #fff; }
.acc summary { list-style: none; cursor: pointer; min-height: 38px; padding: 7px 36px 7px 12px; position: relative; font-weight: 700; line-height: 1.5; font-size: .875rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "＋"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #185f95; font-weight: 700; }
.acc[open] summary::after { content: "－"; }
.acc[open] summary { border-bottom: 1px solid #e3eaf0; }
.acc-body { padding: 6px 12px 8px; }
.acc-body p { margin: 0; line-height: 1.75; overflow-wrap: anywhere; font-size: .875rem; }
.acc-body p + p { margin-top: 6px; }

/* --- 同Tierのライバル機（横長の小カード。画像枠は一覧と同じ 120×108） --- */
.near-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.near-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 10px; align-items: start; min-width: 0; padding: 6px; border: 1px solid #d3dee7; border-radius: 8px; background: #fff; }
.near-card .near-link { display: block; grid-column: 1; min-width: 0; }
.near-card .tier-unit-picture { height: 108px; }
.near-body { display: flex; flex-direction: column; gap: 3px; grid-column: 2; min-width: 0; }
.near-name { color: inherit; text-decoration: none; }
.near-name:hover h4 { text-decoration: underline; }
.near-card h4 { margin: 0; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.near-card .tier-unit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .6875rem; }
.near-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; margin: 2px 0 0; }
.near-gauge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 4px; font-size: .6875rem; }
.near-gauge span { color: var(--muted, #566575); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-gauge b { text-align: right; font-variant-numeric: tabular-nums; font-size: .75rem; }
.near-gauge svg { grid-column: 1 / -1; }
.near-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; margin-top: 2px; }
.near-diff { font-size: .6875rem; color: var(--muted, #566575); }
.near-add { min-height: 32px; padding: 3px 12px; font-size: .75rem; }
.near-add[aria-pressed="true"] { background: #142433; color: #fff; }
@media (max-width: 700px) { .near-grid { grid-template-columns: minmax(0, 1fr); } .near-card { grid-template-columns: 104px minmax(0, 1fr); } .near-card .tier-unit-picture { height: 100px; } }

/* --- 性能タブ --- */
.perf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 8px; }
.perf-controls .enhancement-view { flex: 1 1 320px; min-width: 0; }
.enh-stage { display: flex; align-items: center; gap: 4px 10px; }
.enh-stage h3 { margin: 0; font-size: .8125rem; white-space: nowrap; }
.enhancement-stage-buttons { display: flex; flex-wrap: nowrap; gap: 4px; flex: 1 1 auto; min-width: 0; }
.enhancement-stage-buttons button, .enhancement-stage-buttons button:first-child { flex: 1 1 0; grid-column: auto; justify-self: auto; min-width: 0; min-height: 36px; padding: 4px 2px; font-size: .8125rem; white-space: nowrap; }
.enhancement-stage-buttons button:first-child { flex: 1.7 1 0; }
.enh-stage-note { margin: 3px 0 0; font-size: .6875rem; line-height: 1.5; }
.perf-mode { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.perf-mode p { margin: 0; font-size: .75rem; }
.performance-layout { margin: 8px 0 10px; gap: 16px; }
.enh-section { margin: 4px 0 12px; }
.enh-section > h3 { margin: 0 0 2px; font-size: .9375rem; }
.enh-note { margin: 0 0 6px; font-size: .75rem; line-height: 1.5; }
.enh-wrap { border: 1px solid #d3dee7; border-radius: 8px; overflow-x: auto; background: #fff; }
.enh-table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.4; }
.enh-table th, .enh-table td { padding: 4px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e3eaf0; }
.enh-table thead th { background: #eef3f7; font-size: .6875rem; color: var(--muted, #566575); font-weight: 700; }
.enh-table tbody tr:last-child > * { border-bottom: 0; }
.enh-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.enh-table .enh-n { width: 2.4rem; text-align: center; }
.enh-table .enh-pt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.enh-table .enh-pt small { color: var(--muted, #566575); }
.enh-table .enh-effect { overflow-wrap: anywhere; }
.enh-table .enh-phase th { background: #f5f8fa; font-size: .6875rem; color: var(--muted, #566575); padding: 2px 8px; }
.enh-table .enhancement-item.is-applied > * { background: #e6f0f6; }
.enh-table .enhancement-step { margin: 0; }
.score-block { margin: 0 0 8px; padding: 0 0 6px; }
.score-block h3 { margin: 0 0 2px; font-size: .8125rem; }
.score-skills { margin: 0; }
.score-skills p { display: grid; grid-template-columns: minmax(92px, 9rem) minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 2px 0; font-size: .8125rem; line-height: 1.6; }
@media (max-width: 760px) {
  .score-skills p { grid-template-columns: minmax(0, 1fr); }
  .enh-stage { flex-wrap: wrap; }
  .enh-table th, .enh-table td { padding: 4px 6px; }
  .enh-table .enh-n { width: 1.8rem; }
}
.near-gauge span { grid-column: 1; grid-row: 1; }
.near-gauge b { grid-column: 2; grid-row: 1; }
.near-gauge svg { grid-row: 2; }
.performance-side { min-width: 0; display: grid; gap: 6px; align-content: start; }
.performance-side .performance-slots { min-width: 0; }
.performance-side .enh-section { margin: 4px 0 0; }
.performance-side .enh-table { font-size: .75rem; }
.performance-side .enh-table th, .performance-side .enh-table td { padding: 3px 6px; }
.performance-side .enh-table .enh-pt { font-size: .75rem; }
.gauge-grid { align-items: start; }
/* おすすめ構成: 拡張スキルは横2列、相性の良いカスタムパーツは role ごとに小見出しで横並び */
.build-cols, .build-cols-2 { grid-template-columns: minmax(0, 1fr); }
.build-list-exp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.build-list-exp li:nth-child(2) { border-top: 0; padding-top: 0; }
.build-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 20px; }
.build-role { min-width: 0; }
.build-role h5 { margin: 0 0 2px; padding: 0 0 2px; border-bottom: 2px solid #f1cc49; font-size: .75rem; color: #142433; }
.build-slots { padding: 0 6px; border: 1px solid #c5d3de; border-radius: 4px; color: #3b4d5e; font-size: .625rem; font-weight: 600; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.build-parts { margin-top: 2px; padding-top: 6px; border-top: 1px dashed #c5d3de; }
.build-cols > .build-col:first-child:last-child { margin: 0; padding: 0; border: 0; }
@media (max-width: 700px) { .build-list-exp { grid-template-columns: minmax(0, 1fr); } .build-list-exp li:nth-child(2) { border-top: 1px solid #e3eaf0; padding-top: 4px; } .build-roles { grid-template-columns: minmax(0, 1fr); } }

/* ===== UI-UNIT-VISUAL-003: 出典バッジ削除・強み書式・パーツアイコン・ホームTier・武装欄・時限強化・Tier/評価を大きく・ライバル3機 ===== */
/* --- 強み・注意点: 見出しを太字で1行目、本文を次の行に（項目の間は少し余白） --- */
.uv-points > ul > li { padding: 8px 0; line-height: 1.7; }
.uv-points > ul > li:first-child { padding-top: 2px; }
.uv-points > ul > li strong { display: block; margin: 0 0 2px; font-size: .9375rem; line-height: 1.5; }
.uv-points > ul > li span { display: block; }
.uv-vs li { padding: 6px 0; }
.uv-vs li b { display: block; margin-bottom: 1px; font-size: .875rem; line-height: 1.5; }
.uv-vs li span { display: block; }

/* --- 相性の良いカスタムパーツ: 名前の左にアイコン（背景透過版）。UI-UNIT-VISUAL-004 --- */
.build-icon { flex: 0 0 auto; width: 44px; height: 40px; object-fit: contain; background: none; }
.build-line-part { flex-wrap: nowrap; align-items: center; gap: 8px; }
.build-partmain { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.build-credit { margin: 4px 0 0; font-size: .625rem; line-height: 1.5; color: var(--muted, #566575); }

/* --- ヘッダー: Tier とユーザー評価を大きく --- */
.unit-header-rating .unit-rating-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 22px; margin: 0 0 2px; }
.unit-rating-line > span { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.unit-rating-line .urate-cap { font-size: .6875rem; line-height: 1.4; font-weight: 650; color: var(--muted, #566575); }
.unit-rating-line .unit-tier-label { align-items: flex-start; }
.unit-user-rate { min-width: 0; }
.urate-val { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.urate-star { color: #d9a900; font-size: 1.75rem; line-height: 1; }
.urate-val strong { font-size: 2.25rem; line-height: 1.1; color: #142433; }
.urate-max { font-size: .9375rem; font-weight: 650; color: #34475a; }
.urate-n { font-size: .8125rem; color: var(--muted, #566575); }
.urate-none { display: inline-flex; align-items: center; gap: 4px; min-height: 54px; }
.urate-none .urate-star { color: #6b7783; font-size: 1.125rem; }
.urate-none small { flex-basis: auto !important; font-size: .75rem; color: var(--muted, #566575); line-height: 1.4; }
.unit-user-rate > small { font-size: .6875rem; color: var(--muted, #566575); }
.unit-rating-line > button { align-self: flex-end; }
@media (max-width: 760px) {
  .urate-val strong { font-size: 1.6rem; }
  .urate-star { font-size: 1.25rem; }
  .urate-none { min-height: 46px; }
  .unit-header-rating .unit-rating-line { gap: 4px 16px; }
}

/* --- ホーム: 650・700 のTier評価を小さなタイルで（S全部＋A上位） --- */
.home-tier-cost + .home-tier-cost { margin-top: 12px; }
.home-tier-scroll { min-width: 0; }
.home-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.home-tier-tile { min-width: 0; border: 1px solid var(--line, #dce2e8); border-radius: 7px; overflow: hidden; background: #fff; }
.home-tier-tile > a { display: block; color: var(--navy, #142433); text-decoration: none; }
.home-tier-tile:hover, .home-tier-tile:focus-within { border-color: #185f95; }
.home-tier-tile > a:focus-visible { outline: 3px solid #387ead; outline-offset: -3px; }
.home-tier-tile .home-unit-picture { height: 56px; }
.home-tier-tile .home-unit-picture > .tier-badge { top: 3px; left: 3px; }
.home-tier-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 4px 5px 0; font-size: .6875rem; font-weight: 650; line-height: 1.35; min-height: 2.9em; overflow-wrap: anywhere; }
.home-tier-tile small { display: block; padding: 0 5px 4px; font-size: .625rem; color: var(--muted, #566575); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1000px) { .home-tier-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* スマホ: 2段の横スクロール（タイルを大きくしすぎない） */
  .home-tier-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; scrollbar-width: thin; }
  .home-tier-grid { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 92px; }
}

/* --- ライバル機: 3機 --- */
.near-filled { margin: 0 0 6px; }
@media (min-width: 1100px) {
  .near-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .near-card { grid-template-columns: 92px minmax(0, 1fr); gap: 0 8px; }
  .near-card .tier-unit-picture { height: 92px; }
}

/* --- 時限強化の防御・機動効果 --- */
.timed-eff { display: inline-block; margin: 0 2px 0 0; }
.score-skills .timed-mode, .timed-mode { color: #142433; font-weight: 700; display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: 4px; background: #f1cc49; color: #142433; font-size: .6875rem; font-weight: 700; line-height: 1.6; }

/* --- 武装欄: 主兵装は左右2列、副兵装は小カード、表で見る --- */
.wv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 10px 0 6px; }
.wv-head > h3 { margin: 0 !important; }
.wv-switch { display: inline-flex; gap: 4px; }
.wv-switch .chip { min-height: 32px; padding: 3px 12px; font-size: .75rem; font-weight: 650; }
.wv-switch .chip[aria-pressed="true"] { background: #142433; border-color: #142433; color: #fff; }
.wv-switch .chip:focus-visible, .wt-wrap:focus-visible { outline: 3px solid #387ead; outline-offset: 2px; }
.wc-main { display: grid; gap: 8px; margin: 0 0 8px; align-items: start; }
.wc-main-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wc-col, .wc-subs { min-width: 0; display: grid; gap: 6px; align-content: start; }
.wc-col-h { margin: 0; padding: 0 0 2px; border-bottom: 2px solid #f1cc49; font-size: .75rem; color: #142433; }
.wc-sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: start; }
.wcard { min-width: 0; padding: 6px 9px 6px; border: 1px solid #d3dee7; border-radius: 8px; background: #fff; }
.wcard-sub { padding: 5px 8px 5px; background: #fbfcfd; }
.wc-head { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
.wc-thumb { flex: 0 0 auto; width: 44px; height: 33px; object-fit: contain; border-radius: 4px; }
.wc-title { min-width: 0; display: flex; flex-direction: column; }
.wc-name { font-size: .875rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.wcard-sub .wc-name { font-size: .8125rem; }
.wc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; font-size: .6875rem; color: var(--muted, #566575); line-height: 1.5; }
.wc-type { padding: 0 5px; border-radius: 3px; background: #eef3f7; font-size: .625rem; font-weight: 650; color: #3b4d5e; }
.wc-note { margin: 2px 0; font-size: .75rem; line-height: 1.5; }
.wc-mode + .wc-mode { margin-top: 3px; padding-top: 3px; border-top: 1px dashed #d3dee7; }
.wc-mode h4 { margin: 0 0 1px; font-size: .75rem; line-height: 1.5; color: #0f4a78; }
.wc-mode h4 small { font-size: .6875rem; color: var(--muted, #566575); font-weight: 500; }
.wc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.wcard-sub .wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.wc-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; min-width: 0; padding: 1px 0; border-bottom: 1px solid #eef2f5; font-size: .75rem; line-height: 1.55; }
.wc-cell.wc-wide { grid-column: span 2; }
.wc-l { color: var(--muted, #566575); font-size: .6875rem; white-space: nowrap; }
.wc-v { font-size: .8125rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wc-v small { font-size: .6875rem; font-weight: 500; color: var(--muted, #566575); }
.wc-v.spec-pending, .wc-v.spec-na { font-weight: 500; font-size: .6875rem; color: var(--muted, #566575); }
.wc-notes { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.wc-notes li { padding: 0 6px; border: 1px solid #d3dee7; border-radius: 4px; background: #f5f8fa; font-size: .6875rem; line-height: 1.6; color: #34475a; overflow-wrap: anywhere; }
.wc-cc { margin-top: 3px; font-size: .75rem; }
.wc-cc summary { cursor: pointer; min-height: 26px; display: flex; align-items: center; color: #185f95; font-weight: 600; }
.wc-cc summary:focus-visible { outline: 3px solid #387ead; outline-offset: 2px; }
.wc-cc .combo-correction-table { margin: 2px 0 0; font-size: .75rem; }
.wc-empty { margin: 2px 0; font-size: .75rem; }
.weapon-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .8125rem; line-height: 1.4; }
.weapon-table th, .weapon-table td { padding: 4px 8px; text-align: right; vertical-align: middle; border-bottom: 1px solid #e3eaf0; font-variant-numeric: tabular-nums; }
.weapon-table thead th { background: #eef3f7; font-size: .6875rem; color: var(--muted, #566575); font-weight: 700; white-space: nowrap; }
.weapon-table tbody th[scope=row] { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; min-width: 150px; overflow-wrap: anywhere; }
.weapon-table thead th:first-child { text-align: left; position: sticky; left: 0; }
.weapon-table .wt-group th { text-align: left; background: #f5f8fa; font-size: .6875rem; color: #142433; padding: 3px 8px; border-left: 3px solid #f1cc49; position: static; }
.weapon-table tbody tr:last-child > * { border-bottom: 0; }
.wt-p { display: inline-block; margin-left: 6px; white-space: nowrap; }
.wt-p:first-child { margin-left: 0; }
.wt-p small { font-size: .625rem; color: var(--muted, #566575); }
.weapon-table td small { font-size: .6875rem; color: var(--muted, #566575); }
.wt-wrap { overflow-x: auto; }
@media (max-width: 1099px) { .wc-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wc-main-2 { grid-template-columns: minmax(0, 1fr); }
  .wc-sub-grid { grid-template-columns: minmax(0, 1fr); }
  .wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* UI-UNIT-VISUAL-004: よろけ表（蓄積判定） */
.stag-arrow { color: #566575; font-size: .75rem; }
.stag-res { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.stag-res-one, .stag-res-ok { color: #0f5a3a; }
.stag-res-no { color: #7a2a1d; }
.stag-res-unk { color: #566575; }
.stag-secs { font-size: .6875rem; font-weight: 500; color: #3b4d5e; }
.stag-why { flex-basis: 100%; font-size: .6875rem; line-height: 1.4; color: #566575; }
.stag-res + .stag-why { flex-basis: auto; }
.wv-mode { flex: 1 1 auto; min-width: 0; }
.wv-mode .mode-chips { margin: 0; }

/* UI-UNIT-VISUAL-004: カスタムパーツ一覧（画像を大きく・余白を詰める。画像は背景透過版） */
.parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.part-card .card-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px 12px; }
.part-card .card-body > * { grid-column: 2; min-width: 0; }
.part-card .card-body > figure { grid-column: 1; grid-row: 1 / span 3; }
.part-card .card-body:not(:has(> figure)) { grid-template-columns: minmax(0, 1fr); }
.part-card .card-body:not(:has(> figure)) > * { grid-column: 1; }
.part-card .optional-asset-part-list { margin: 0; background: none; border: 0; border-radius: 0; }
.part-card .optional-asset-part-list img { width: 124px; height: 108px; }
.part-card .part-effect-preview { margin: 4px 0; font-size: .8125rem; line-height: 1.55; }
.optional-asset-part-list, .optional-asset-part-detail { background: none; border: 0; }
.optional-asset-part-detail img { object-position: left center; }
.parts-credit { margin: 14px 0 0; font-size: .6875rem; line-height: 1.6; color: var(--muted, #566575); }
@media (max-width: 760px) {
  .parts-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .part-card .card-body { grid-template-columns: 92px minmax(0, 1fr); column-gap: 10px; padding: 8px 10px; }
  .part-card .optional-asset-part-list img { width: 92px; height: 82px; }
}

/* UI-UNIT-VISUAL-004: 比較ページ — 列幅と画像の縦横比をそろえる（2機・3機とも） */
.comparison table { table-layout: fixed; }
.comparison th:first-child { width: 128px; min-width: 128px; }
.comparison th, .comparison td { min-width: 0; overflow-wrap: anywhere; }
.comparison[data-unit-count="3"] table { min-width: 690px; }
.comparison[data-unit-count="2"] table { min-width: 520px; }
.cmp-picture { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin: 0 0 10px; border-radius: 6px; background: #edf1f5; }
.comparison th .cmp-picture > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.comparison th .cmp-picture > img[data-unit-role]:not([data-portrait-base]) { object-fit: contain; }
.comparison th .cmp-picture > .unit-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) {
  .comparison th:first-child { width: 105px; min-width: 105px; }
  .comparison[data-unit-count] th, .comparison[data-unit-count] td { padding: 12px 8px; font-size: .75rem; }
  .comparison[data-unit-count="1"] table { min-width: 100%; }
}

/* --- UI-UNIT-VISUAL-005: Tierバッジ（サイト共通）---
 * 色の階段: S 金（ブランド黄 #f1cc49 系・紺文字）→ A 赤橙 → B 緑 → C 青 → D 青灰 → E 淡い灰。
 * 濃い色（A〜D）は白文字、S・E は濃色文字。文字とのコントラストはグラデーションの両端で 4.5:1 以上。
 * 白背景・濃紺背景のどちらでも形が見えるよう、内側に濃い縁（--tb-ring）、外側に白の細い光輪を付ける。
 * 大きさ: --tier-sz-lg（機体ヘッダー・Tier表の見出し）/ --tier-sz-md（カード・比較）/ --tier-sz-sm（ホームのタイル・文中）。 */
:root { --tier-sz-lg: 54px; --tier-sz-md: 34px; --tier-sz-sm: 22px; }
@media (max-width: 760px) { :root { --tier-sz-lg: 46px; --tier-sz-md: 30px; --tier-sz-sm: 20px; } }
.tier-badge {
  --tz: var(--tier-sz-md);
  --tb-from: #e6eaef; --tb-to: #d5dbe2; --tb-fg: #37475a; --tb-ring: #8994a3;
  box-sizing: border-box; display: inline-grid; place-items: center; flex: none;
  min-width: var(--tz); height: var(--tz); padding: 0;
  font-size: calc(var(--tz) * .62); font-weight: 900; line-height: 1; letter-spacing: 0;
  border: 1.5px solid var(--tb-ring); border-radius: calc(var(--tz) * .22);
  background: linear-gradient(170deg, var(--tb-from), var(--tb-to));
  color: var(--tb-fg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .8);
  vertical-align: middle;
}
.tier-badge.tier-sz-lg { --tz: var(--tier-sz-lg); }
.tier-badge.tier-sz-md { --tz: var(--tier-sz-md); }
.tier-badge.tier-sz-sm { --tz: var(--tier-sz-sm); border-width: 1px; }
.tier-badge.tier-S { --tb-from: #ffe066; --tb-to: #e3a712; --tb-fg: #142433; --tb-ring: #8a5f00; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 2px 8px rgba(241, 204, 73, .6); }
.tier-badge.tier-A { --tb-from: #d13a1d; --tb-to: #b52c14; --tb-fg: #fff; --tb-ring: #8f2210; }
.tier-badge.tier-B { --tb-from: #10866a; --tb-to: #0b6f56; --tb-fg: #fff; --tb-ring: #085743; }
.tier-badge.tier-C { --tb-from: #2f6fbd; --tb-to: #245ca0; --tb-fg: #fff; --tb-ring: #1b4a82; }
.tier-badge.tier-D { --tb-from: #62728a; --tb-to: #4d5c70; --tb-fg: #fff; --tb-ring: #3c4a5c; }
.tier-badge.tier-E { --tb-from: #e6eaef; --tb-to: #d5dbe2; --tb-fg: #37475a; --tb-ring: #8994a3; font-weight: 800; }
.tier-badge.tier-unrated { min-width: 0; height: auto; min-height: var(--tz); padding: 2px 8px; font-size: max(.6875rem, calc(var(--tz) * .3)); font-weight: 700; line-height: 1.3; white-space: nowrap; background: #eef1f4; color: #465364; border: 1px dashed #8994a3; box-shadow: none; text-shadow: none; }
.tier-sz-sm.tier-unrated { padding: 1px 6px; }
.card-tier .tier-badge, .home-unit-picture > .tier-badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 4px rgba(20, 36, 51, .45); }
.card-tier .tier-badge.tier-S, .home-unit-picture > .tier-badge.tier-S { box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 6px rgba(20, 36, 51, .5); }
.tier-order-note { font-size: .75rem; font-weight: 500; color: var(--muted, #566575); }
.tier-order-line { margin: 2px 0 8px; }
.home-section-heading .tier-order-note { margin-left: 4px; align-self: center; }
.sort-filters { margin-top: 6px; }
.level-choices .tier-badge { margin-left: 2px; }
@media (max-width: 760px) { .tier-band .tier-badge { width: 100%; min-width: 0; font-size: 1.125rem; } .tier-band-unrated .tier-badge { font-size: .625rem; } }
.sort-filters .chip { white-space: nowrap; }
