/* 共通のカード評価幅・表・表示切替を使う横断結果の配置。目盛り・分布・対決表はこのページだけの表現。 */
.ceh-page { --muted: var(--ce-muted); --text: var(--ce-text); --ceh-up: #80d18f; --ceh-down: #e06a6a; --ceh-dry: #7fa8e6; --ceh-dot: #5a6078; min-height: 160px; }
.ceh-page h2 { font-size: 18px; margin: 0 0 12px; }
.ceh-page h3 { font-size: 16px; margin: 0; }
/* セクション見出しは他ページ（Tier表・ランキングの見出し17〜18px）に合わせ、ラベル（12px・灰色）と区別する。 */
.ceh-page h4 { font-size: 16px; margin: 0; color: var(--ce-text); font-weight: 700; }
.ceh-page p { line-height: 1.7; }
/* タブ切替中、本文がそろうまで見出しも出さない（場所は保つ）。 */
.ce-section-heading.is-pending { visibility: hidden; }
.ceh-page a:not(.art-name-host):not(.btn-go):not(.ceh-history-row) { color: var(--ce-accent); }
.ceh-page .art-name-host { color: var(--ce-text); text-decoration: none; display: block; min-width: 0; }
.ceh-page .art-name { --art-name-w: 100%; --art-name-h: 48px; }
.ceh-page a.btn.primary { color: #fff; }
.ceh-page .is-up { color: var(--ceh-up); }
.ceh-page .is-down { color: var(--ceh-down); }
.ceh-eyebrow { font-size: 12px; color: var(--ce-accent); }
.ceh-muted, .ceh-caption, .ceh-page small { color: var(--ce-muted); }
.ceh-caption, .ceh-page small { font-size: 12px; }
/* 例外：ログインの文言が基準220pxに収まらないため、並んだ2個とも同じ幅に広げる。 */
.ceh-actions { --btn-go-width: 256px; margin: 18px 0; }
/* 並んだ主役の導線は同じ幅にする（規約「別ページへの導線ボタン」）。 */
.ceh-intro h2 { font-size: 26px; margin: 0 0 12px; color: var(--gold-light); text-wrap: balance; }
.ceh-sample-title { margin: 26px 0 0; padding-left: 12px; border-left: 3px solid var(--gold); font-size: 18px; font-weight: 700; color: var(--ce-text); }
.ceh-sample-title span { margin-left: 6px; color: var(--gold-light); font-size: 14px; }
.ceh-set, .ceh-intro { padding: 22px 0; border-bottom: 1px solid var(--ce-line); }
.ceh-toolbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.ceh-sort { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-left: auto; }
.ceh-sort .select-menu { min-width: 170px; }
.ceh-page .seg-switch { margin: 14px 0; }
.ceh-toolbar .seg-switch { margin: 0; }
.ceh-status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ceh-up); vertical-align: 1px; }
.ceh-status-dot.is-wait { background: var(--gold); }

/* セットの見出し */
.ceh-set-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ceh-destinations { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ceh-set-header .btn-go { flex: none; }
.ceh-set-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ceh-set-identity > div { min-width: 0; }
.ceh-set-identity .ceh-caption { margin: 4px 0 0; }
/* ロゴは縦横比1.6前後。横長の枠だと高さで縮んで左右が空くため、高さ基準で置く。 */
.ceh-set-logo { display: block; width: auto; height: 76px; max-width: 150px; object-fit: contain; }
.ceh-set-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ceh-set-name h3 { min-width: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ceh-wait-badge { flex: none; padding: 1px 8px; border: 1px solid var(--gold); color: var(--gold-light); font-size: 11px; font-weight: 700; white-space: nowrap; }

/* 事前評価・最終評価の目盛り（1〜5点）。金の輪が事前、白い点が最終、間の線が変化の向き。 */
.ceh-gauge { position: relative; height: 66px; margin-inline: 4px; font-variant-numeric: tabular-nums; }
.ceh-gauge-line { position: absolute; left: 0; right: 0; top: 30px; height: 4px; background: var(--ce-line); }
.ceh-gauge-tick { position: absolute; top: 26px; width: 1px; height: 12px; background: #3a4150; }
.ceh-gauge-end { position: absolute; top: 44px; left: 0; font-size: 10px; color: var(--ce-muted); }
.ceh-gauge-end.is-max { left: auto; right: 0; }
.ceh-gauge-range { position: absolute; top: 29px; height: 6px; background: var(--ceh-down); }
.ceh-gauge-range.is-up { background: var(--ceh-up); }
.ceh-gauge-prediction, .ceh-gauge-final { position: absolute; transform: translateX(-50%); }
.ceh-gauge-prediction { top: 25px; width: 14px; height: 14px; border: 3px solid var(--gold); border-radius: 50%; background: var(--ce-bg, var(--bg)); z-index: 1; }
.ceh-gauge-final { top: 25px; width: 14px; height: 14px; border-radius: 50%; background: var(--ce-text); box-shadow: 0 0 0 2px var(--ce-bg, var(--bg)); z-index: 2; }
.ceh-gauge-prediction > span, .ceh-gauge-final > span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ceh-gauge-prediction > span { bottom: 16px; color: var(--gold-light); }
.ceh-gauge-final > span { top: 18px; color: var(--ce-text); }
.ceh-change { display: flex; flex-direction: column; align-items: center; text-align: center; font-variant-numeric: tabular-nums; }
.ceh-change strong { font-size: 30px; font-weight: 750; line-height: 1.1; }
.ceh-change small { font-size: 11px; }
.ceh-change small.is-up, .ceh-change small.is-down { font-weight: 700; }
.ceh-ranks { display: flex; flex-direction: column; gap: 3px; margin: 0; padding-left: 22px; border-left: 1px solid var(--ce-line); font-size: 12px; font-variant-numeric: tabular-nums; }
.ceh-ranks > div { display: flex; justify-content: space-between; gap: 14px; }
.ceh-ranks-title { margin: 0 0 1px; font-size: 11px; color: var(--ce-muted); }
/* 2桁の順位でも位置がずれないよう、数字は右揃えの固定幅にする。 */
.ceh-ranks dd { min-width: 3.2em; text-align: right; }
.ceh-ranks dt { color: var(--ce-muted); }
.ceh-ranks dd { margin: 0; font-weight: 700; }

/* 上段は目盛り｜変化、下段は代表カード｜クラス別。最終評価待ちは変化が無いので、クラス別を右列の上から置いて空白を作らない。 */
.ceh-set-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); grid-template-areas: "overview overview" "reps classes"; column-gap: 48px; row-gap: 18px; margin-top: 18px; align-items: start; }
.ceh-set-body.is-wait { grid-template-areas: "overview classes" "reps classes"; }
.ceh-overview { grid-area: overview; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.ceh-overview > .ceh-gauge { flex: 0 1 460px; min-width: 240px; }
.ceh-class-panel { grid-area: classes; }
.ceh-representatives { grid-area: reps; display: flex; flex-direction: column; }
/* Tier表と同じく、1件ずつ並べる型は箱にせずクラスカラーの下線で区切る。 */
.ceh-rep { display: grid; grid-template-columns: 112px minmax(0, 1fr) 76px; align-items: center; column-gap: 10px; min-height: 60px; padding: 5px 0; border-bottom: 1px solid var(--class-color, var(--ce-line)); }
.ceh-rep .art-name { --art-name-h: 48px; }
.ceh-rep-card { min-width: 0; }
.ceh-rep-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ce-muted); }
.ceh-rep-label p { margin: 0; }
.ceh-tie-pager { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.ceh-tie-pager button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--ce-line); border-radius: 50%; background: transparent; color: var(--ce-text); font-size: 13px; line-height: 1; cursor: pointer; transition: border-color .18s, color .18s; }
.ceh-tie-pager button:hover, .ceh-tie-pager button:focus-visible { border-color: rgba(var(--gold-rgb), .7); color: var(--gold-light); }
.ceh-tie-count { min-width: 50px; text-align: center; }
.ceh-rep-score { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.ceh-rep-score strong { color: var(--gold-light); font-size: 26px; font-weight: 750; line-height: 1.1; }
.ceh-rep-score strong.is-up { color: var(--ceh-up); }
.ceh-rep-score strong.is-down { color: var(--ceh-down); }
.ceh-rep-score small { white-space: nowrap; font-size: 10px; margin-top: 4px; }
.ceh-mini-hist { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.ceh-mini-hist > i { width: 9px; background: var(--gold); opacity: .75; }
.ceh-class-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 6px; }
.ceh-class-head .seg-switch { margin: 0; }
.ceh-class-head .seg-switch > button { font-size: 12px; }
.ceh-class-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 84px; align-items: center; gap: 10px; min-height: 26px; font-variant-numeric: tabular-nums; }
.ceh-class-row > .ceh-class-icon { justify-self: center; }
.ceh-class-row > strong { text-align: right; font-size: 12px; white-space: nowrap; }
.ceh-class-row > strong.is-sweet { color: var(--gold-light); }
.ceh-class-row > strong.is-dry { color: var(--ceh-dry); }
.ceh-class-icon { width: 20px; height: 20px; object-fit: contain; }
.ceh-gauge.is-compact { height: 16px; margin-inline: 6px; }
.ceh-gauge.is-compact .ceh-gauge-line { top: 7px; height: 2px; }
.ceh-gauge.is-compact .ceh-gauge-tick { top: 4px; height: 8px; }
.ceh-gauge.is-compact .ceh-gauge-range { top: 6px; height: 4px; }
.ceh-gauge.is-compact .ceh-gauge-prediction { top: 2px; width: 12px; height: 12px; border-width: 2px; }
.ceh-gauge.is-compact .ceh-gauge-final { top: 3px; width: 10px; height: 10px; box-shadow: 0 0 0 1px var(--ce-bg, var(--bg)); }
.ceh-change-bar { position: relative; height: 12px; background: rgba(255, 255, 255, .035); }
.ceh-change-bar::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: #3a4150; }
.ceh-change-bar > span { position: absolute; top: 0; height: 100%; background: var(--ceh-down); }
.ceh-change-bar > span.is-up { background: var(--ceh-up); }
.ceh-change-bar > span.is-sweet { background: var(--gold); }
.ceh-change-bar > span.is-dry { background: var(--ceh-dry); }
.ceh-class-axis { display: grid; grid-template-columns: 24px minmax(0, 1fr) 84px; gap: 10px; margin-top: 4px; font-size: 10px; color: var(--ce-muted); }
.ceh-class-panel.is-change :is(.ceh-class-row, .ceh-class-axis) { grid-template-columns: 24px minmax(0, 1fr) 50px; }
.ceh-class-axis > span:nth-child(2) { display: flex; justify-content: space-between; }
.ceh-class-panel.is-wait :is(.ceh-class-row, .ceh-class-axis) { grid-template-columns: 22px minmax(0, 1fr) 44px; }
.ceh-class-axis .is-up, .ceh-class-axis .is-down { font-weight: 700; }
.ceh-class-key { display: inline-flex; align-items: center; gap: 4px; }
.ceh-class-key i { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; }
.ceh-key-prediction { border: 1.5px solid var(--gold); }
.ceh-key-final { background: var(--ce-text); }

/* 比べる：セット×指標のヒートマップ。左の列を固定して横にスクロールする。 */
.ceh-compare-scroll { max-width: 100%; overflow-x: auto; margin-top: 8px; }
.ceh-compare { border-collapse: collapse; min-width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.ceh-compare th, .ceh-compare td { padding: 8px 10px; border-bottom: 1px solid var(--ce-line); text-align: center; vertical-align: middle; white-space: nowrap; }
.ceh-compare thead th { vertical-align: bottom; min-width: 300px; color: var(--ce-text); font-size: 14px; font-weight: 700; transition: color .18s; }
.ceh-compare th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 0; background: var(--ce-bg, var(--bg)); color: var(--ce-muted); font-size: 12px; font-weight: 600; text-align: center; transition: color .18s; }
.ceh-compare th[scope="row"] .ceh-class-icon { display: block; margin: 0 auto; }
.ceh-compare thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--ce-bg, var(--bg)); min-width: 0; }
.ceh-compare th.is-hover, .ceh-compare th.is-hover .ceh-compare-name { color: var(--gold-light); }
.ceh-compare-logo { display: block; width: auto; height: 64px; max-width: 150px; margin: 0 auto 6px; object-fit: contain; }
.ceh-compare-name { display: block; }
.ceh-compare td { font-size: 17px; font-weight: 700; }
.ceh-compare tr.is-group-end > * { border-bottom-color: #3a4150; }
.ceh-compare td.is-closest { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .7); }
/* 規約のヒートマップ：面の色だけで上下を示し、数字は白。 */
.ceh-compare td.ceh-heat { padding: 6px 10px; color: #fff; font-size: 14px; }
.ceh-heat > span, .ceh-heat > small { display: block; }
.ceh-heat > small { font-size: 10px; font-weight: 400; color: rgba(255, 255, 255, .7); }
.ceh-compare td.ceh-heat.is-wait, .ceh-heat.is-wait > small { color: var(--ce-muted); font-weight: 600; }
.ceh-compare-card { text-align: left; }
/* カード名・サムネ・点数を1つの塊にしてセルの中央へ置き、点数だけが右端へ離れないようにする。 */
.ceh-compare-card > div { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 15px; }
.ceh-compare-card strong { min-width: 52px; }
.ceh-compare-card .art-name { --art-name-w: 240px; --art-name-h: 40px; font-size: 13px; }
.ceh-compare th[scope="row"] { white-space: normal; }
.ceh-compare-card strong { display: flex; flex-direction: column; align-items: flex-end; }
.ceh-compare-card strong small { font-size: 10px; font-weight: 600; }


/* あなたの評価：要約・評価史 */
.ceh-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 8px; border-block: 1px solid var(--ce-line); }
.ceh-metrics > div { padding: 12px 14px; text-align: center; }
.ceh-metrics > div + div { border-left: 1px solid var(--ce-line); }
.ceh-metrics dt { font-size: 12px; color: var(--ce-muted); }
.ceh-metrics dd { margin: 6px 0 0; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ceh-history-row { display: grid; grid-template-columns: 112px 150px minmax(0, 1fr) 84px; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--ce-line); color: var(--ce-text); text-decoration: none; }
.ceh-history-set { font-size: 13px; font-weight: 700; transition: color .2s; }
.ceh-history-logo { display: block; width: 104px; height: 40px; object-fit: contain; transition: transform var(--duration-slow) ease; }
a.ceh-history-row:hover .ceh-history-logo { transform: scale(1.06); }
.ceh-history-score strong { display: block; margin-top: 4px; font-size: 28px; font-weight: 750; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.ceh-history-score strong .ceh-muted { font-size: 14px; font-weight: 600; }
.ceh-history-dev { display: block; margin-top: 4px; font-size: 11px; color: var(--ce-muted); white-space: nowrap; }
.ceh-history-rank { text-align: right; }
.ceh-history-rank small { display: block; }
.ceh-history-rank strong { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ceh-history-rank strong .is-top { color: var(--gold-light); }
.ceh-history-rank strong .ceh-muted { font-size: 12px; font-weight: 500; }
.ceh-strip { position: relative; height: 40px; }
.ceh-strip-line { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: #3a4150; }
.ceh-strip-tick { position: absolute; top: 28px; font-size: 10px; color: var(--ce-muted); transform: translateX(-50%); }
.ceh-strip-dot { position: absolute; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--ceh-dot); transform: translateX(-50%); }
.ceh-strip-dot.is-me { top: 12px; width: 16px; height: 16px; background: var(--gold); box-shadow: 0 0 0 3px var(--ce-bg, var(--bg)); z-index: 2; }
.ceh-strip-average { position: absolute; top: 8px; width: 2px; height: 24px; background: #8fa0c8; transform: translateX(-50%); z-index: 1; }
.ceh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 10px 0 0; font-size: 11px; color: var(--ce-muted); }
.ceh-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: var(--ceh-dot); vertical-align: -1px; }
.ceh-legend i.is-me { background: var(--gold); }
.ceh-legend i.is-average { width: 2px; height: 12px; border-radius: 0; background: #8fa0c8; }

/* 名予想：1〜5点の数直線に、あなた・みんな・最終を並べる。 */
.ceh-hit-groups { margin-top: 10px; border-top: 1px solid var(--ce-line); }
.ceh-hit-group { border-bottom: 1px solid var(--ce-line); }
.ceh-hit-group > summary { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; list-style: none; transition: color .18s; outline: none; -webkit-tap-highlight-color: transparent; }
.ceh-hit-group > summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.ceh-hit-group > summary::-webkit-details-marker { display: none; }
.ceh-hit-group > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .22s ease; }
.ceh-hit-group[open] > summary::after { transform: rotate(-135deg); }
@media (hover: hover) { .ceh-hit-group > summary:hover { color: var(--gold-light); } }
.ceh-hit-logo { display: block; width: 88px; height: 32px; object-fit: contain; }
.ceh-hit-group-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ceh-hit-group-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ceh-hit-group-count { color: var(--ce-muted); font-size: 11px; font-weight: 400; }
.ceh-hits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 40px; padding: 8px 0 26px; }
.ceh-hit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ceh-hit-kind { padding: 1px 10px; border: 1px solid rgba(var(--gold-rgb), .6); border-radius: 999px; color: var(--gold-light); font-size: 11px; font-weight: 700; }
.ceh-hit-line { position: relative; height: 68px; margin: 6px 32px 0; font-variant-numeric: tabular-nums; }
.ceh-hit-axis { position: absolute; left: 0; right: 0; top: 24px; height: 1px; background: #3a4150; }
.ceh-hit-tick { position: absolute; top: 28px; font-size: 10px; color: var(--ce-muted); opacity: .7; transform: translateX(-50%); }
.ceh-hit-mark { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 10px; white-space: nowrap; }
.ceh-hit-mark.is-me { top: 2px; color: var(--gold-light); font-weight: 700; }
.ceh-hit-mark.is-me span { order: -1; }
.ceh-hit-mark.is-me i { width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ce-bg, var(--bg)); z-index: 2; }
.ceh-hit-mark.is-others { top: 20px; color: #9aa1b8; }
.ceh-hit-mark.is-others i { width: 10px; height: 10px; border-radius: 50%; background: #6a7090; }
.ceh-hit-mark.is-others span { position: absolute; top: 26px; }
.ceh-hit-mark.is-final { top: 14px; }
.ceh-hit-mark.is-final i { width: 2px; height: 22px; background: var(--ce-text); }
.ceh-hit-mark.is-final span { position: absolute; top: 32px; color: var(--ce-text); font-weight: 700; }
.ceh-hit-result { margin: 4px 0 0; font-size: 12px; }
.ceh-hit-result strong { color: var(--ceh-up); }

/* 評価傾向 */
.ceh-style-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; margin-top: 16px; text-align: center; }
.ceh-style-head h2 { font-size: 26px; margin: 2px 0 4px; }
.ceh-style-head p { margin: 0 0 4px; }
.ceh-meter { position: relative; height: 28px; margin-top: 6px; }
.ceh-meter-line { position: absolute; left: 0; right: 0; top: 10px; height: 8px; background: linear-gradient(90deg, rgba(127, 168, 230, .55), rgba(255, 255, 255, .08) 50%, rgba(var(--gold-rgb), .6)); }
.ceh-meter-me { position: absolute; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--ce-bg, var(--bg)); transform: translateX(-50%); }
.ceh-meter-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ce-muted); }
.ceh-style-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 28px 0 0; }
.ceh-class-axis .is-sweet { color: var(--gold-light); }
.ceh-class-axis .is-dry { color: var(--ceh-dry); }
.ceh-style-columns h4, .ceh-standouts h4 { margin-bottom: 10px; }
.ceh-standouts h4 { display: inline-flex; align-items: center; gap: 4px; }
.ceh-standouts { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ce-line); }
.ceh-standout-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.ceh-standouts [data-standout] { margin-top: 10px; }
.ceh-standouts [data-standout] > p { margin: 0 0 2px; }
/* 根拠のカードは画面の幅に合わせて件数を絞る（PC4枚・スマホ3枚）。 */
.ceh-standouts .ceh-evidence-row:nth-of-type(n + 5) { display: none; }
.ceh-trait { margin: 0 0 8px; display: flex; flex-direction: column; }
.ceh-trait strong { font-size: 14px; }
.ceh-style-columns h4 { margin-bottom: 8px; }
.ceh-style-columns :is(.ceh-class-row, .ceh-class-axis) { grid-template-columns: 56px minmax(0, 1fr) 52px; }
.ceh-cost { font-size: 12px; color: var(--ce-muted); }
.ceh-evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 2px 0; font-size: 13px; }
.ceh-evidence-row .art-name { --art-name-h: 38px; }
.ceh-evidence-score { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.ceh-evidence-score strong { font-size: 16px; color: var(--gold-light); line-height: 1.1; }
.ceh-evidence-score small { font-size: 10px; white-space: nowrap; }
.ceh-page summary { cursor: pointer; }
.ceh-page blockquote { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--ce-accent); color: var(--ce-muted); }
.ceh-empty { padding: 24px 0; }

@media (max-width: 768px) {
  .ceh-set-body, .ceh-set-body.is-wait { grid-template-columns: minmax(0, 1fr); grid-template-areas: "overview" "reps" "classes"; row-gap: 22px; }
  .ceh-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .ceh-overview > .ceh-gauge { min-width: 0; }
  .ceh-change { align-items: flex-end; text-align: right; }
  .ceh-ranks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 2px 20px; padding-left: 0; border-left: 0; }
  .ceh-ranks-title { grid-column: 1 / -1; }
  .ceh-ranks > div { gap: 8px; }
  .ceh-ranks dd { min-width: 2.4em; }
  .ceh-sort { margin-left: 0; }
  .ceh-page .seg-switch { display: flex; width: 100%; }
  .ceh-page .seg-switch > button { flex: 1; }
  .ceh-class-head .seg-switch { width: auto; }
  .ceh-class-head .seg-switch > button { flex: none; }
  .ceh-hits { grid-template-columns: 1fr; }
  .ceh-style-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ceh-intro h2 { font-size: 22px; }
  /* スマホは見出し・ボタン・数字を全幅に広げ、左寄りにしない。 */
  .ceh-set-header { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .ceh-set-identity { gap: 12px; }
  .ceh-set-logo { height: 58px; max-width: 110px; }
  .ceh-set-name { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ceh-set-header h3 { font-size: 17px; max-width: 100%; }
  .ceh-hits { gap: 0; }
  .ceh-hit { padding: 18px 0; }
  .ceh-hit + .ceh-hit { border-top: 1px solid var(--ce-line); }
  .ceh-hit-logo { width: 76px; height: 28px; }
  .ceh-destinations { display: grid; grid-template-columns: 1fr 1fr; }
  .ceh-change strong { font-size: 24px; }
  .ceh-rep { grid-template-columns: minmax(0, 1fr) 62px; row-gap: 2px; min-height: 0; padding: 7px 0; }
  .ceh-rep-label { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .ceh-rep .art-name { --art-name-h: 38px; }
  .ceh-rep-score strong { font-size: 21px; }
  /* 350px前後でも1セット分が横に収まるよう、見出し列と各セットの列を詰める。 */
  .ceh-compare th, .ceh-compare td { padding: 6px 6px; }
  .ceh-compare th[scope="row"] { width: 64px; min-width: 64px; max-width: 64px; font-size: 11px; line-height: 1.35; word-break: keep-all; }
  .ceh-compare thead th { min-width: 0; width: calc(100vw - 32px - 64px); max-width: 260px; font-size: 13px; }
  .ceh-compare td { font-size: 15px; }
  .ceh-compare-card > div { gap: 8px; font-size: 13px; }
  .ceh-compare-card .art-name { --art-name-w: 150px; --art-name-h: 34px; font-size: 12px; }
  .ceh-compare-card strong { min-width: 36px; }
  .ceh-style-columns, .ceh-standout-columns { grid-template-columns: 1fr; }
  .ceh-standouts .ceh-evidence-row:nth-of-type(n + 4) { display: none; }
  .ceh-metrics { grid-template-columns: 1fr 1fr; }
  .ceh-metrics > div:nth-child(3) { border-left: 0; }
  .ceh-metrics > div:nth-child(n + 3) { border-top: 1px solid var(--ce-line); }
  .ceh-history-row { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "set score rank" "strip strip strip"; gap: 8px 12px; }
  .ceh-history-set { grid-area: set; }
  .ceh-history-logo { width: 80px; height: 32px; }
  .ceh-history-score { grid-area: score; }
  .ceh-history-rank { grid-area: rank; }
  .ceh-strip { grid-area: strip; }
}
@media (prefers-reduced-motion: reduce) {
  .ceh-history-logo, .ceh-tie-pager button, .ceh-compare th, .ceh-hit-group > summary, .ceh-hit-group > summary::after { transition: none; }
}
