/*! © 2026 Skyfaring（Shot Ledger）. All rights reserved. 未經書面同意不得重製、改作或用於其他產品。https://shot-ledger.skyfaring.net/terms/ */
/* css/report.css — 回報問題面板（js/report.js）。v104 整份重寫：五輪疊加的覆寫合併回一處，畫面不變。
   手機：底部面板（跟 .sheet 同一套圓角、陰影、進場）；電腦：置中卡片。
   顏色、字級、按鈕一律吃 tokens.css。v148 第 1 輪：選中態不用實心橘（橘色只留給「送出回報」）。
   v148 第 2 輪：單選（分段鈕）、複選格、選的球、遇到什麼問題，選中全部同一個語彙（tokens.css --sel-*：
   淺色白塊＋陰影＋橘字橘勾，深色暖灰塊＋米白字＋橘勾），沒選的是淡底。
   間距只有兩級：區塊之間 20（.rp > * + *），同一題裡面 8（.rp-q 的 gap）。不用負邊距補。 */

/* ---- 入口：安靜的文字連結（結果頁、警告下方、分析中） ---- */
.rp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--btn-h);
  padding: 0 var(--space-1);
  background: none;
  border: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.rp-link:hover,
.rp-link:focus-visible { color: var(--color-text); }
.rp-link__icon { width: 15px; height: 15px; flex: none; }
.rp-link-row { display: flex; justify-content: center; margin-top: var(--space-3); }
.rp-link-row[hidden] { display: none; }

/* ---- 面板 ---- */
.rp-dialog {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: rp-up var(--transition-med);
  transition: transform var(--transition-med);
}
.rp-dialog::backdrop { background: rgba(32, 26, 21, 0.42); animation: rp-fade var(--transition-fast); }
:root[data-theme="dark"] .rp-dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
.rp-dialog.is-closing { animation: rp-down 160ms ease-in forwards; }
.rp-dialog.is-closing::backdrop { opacity: 0; transition: opacity 160ms; }
/* 往下拖關閉：從手放開的位置一路滑出去，不先彈回 */
.rp-dialog.is-dragged.is-closing { animation: none; }

@keyframes rp-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-down { to { transform: translateY(20px); opacity: 0; } }
@keyframes rp-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .rp-dialog { inset: 0; margin: auto; height: fit-content; max-height: min(88dvh, 820px); border-radius: var(--radius-lg); }
}

/* 表單：區塊之間 20 */
.rp { display: flex; flex-direction: column; padding: var(--space-3) var(--space-5) var(--space-3); }
.rp > * + * { margin-top: var(--space-5); }
@media (min-width: 768px) {
  .rp { padding: var(--space-6) var(--space-6) var(--space-4); }
}

/* 把手：可以往下拖（只在手機的底部面板） */
.rp__grab {
  align-self: center;
  box-sizing: content-box;
  width: 36px;
  height: 4px;
  padding: 8px 24px;
  margin: -8px auto 0;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  background-clip: content-box;
  cursor: grab;
}
.rp__grab, .rp__head { touch-action: none; }
.rp > .rp__grab + .rp__head { margin-top: var(--space-2); }
@media (min-width: 768px) {
  .rp__grab { display: none; }
  .rp > .rp__grab + .rp__head { margin-top: 0; }
}

.rp__head { position: relative; padding-right: 44px; }
.rp__title { font-size: 22px; font-weight: 800; line-height: var(--leading-tight); letter-spacing: 0.01em; }
@media (min-width: 768px) { .rp__title { font-size: var(--text-xl); } }
.rp__title:focus { outline: none; }
.rp__title:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }
.rp__lead { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); text-wrap: pretty; }
.rp__pending { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); display: flex; gap: 6px; align-items: baseline; }
.rp__pending::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--color-heat-warm); transform: translateY(-1px); }
.rp__close {
  position: absolute;
  top: -6px;
  right: -10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
}
.rp__close svg { width: 18px; height: 18px; }
.rp__close:hover { background: var(--color-surface-sunken); color: var(--color-text); }

/* 標題列：標題＋「換一個」（不是這個問題）。v148 第 2 輪：原本小膠囊＋往下的尖角，改成文字鏈結（同「＋ 留 Email」的橘字），
   不用膠囊、不用箭頭。字看起來一行、按得到 44 */
.rp__titlerow { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--space-3); row-gap: 0; }
.rp-swap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--btn-link-fg);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.rp-swap::after { content: ''; position: absolute; inset: -12px -8px; }
.rp-swap:hover, .rp-swap:focus-visible { color: var(--color-accent-strong); }

/* ---- 題目：同一題裡面 8 ---- */
/* 只清左右與下邊距：上邊距留給「區塊之間 20」（.rp > * + *） */
.rp-q { border: 0; margin-inline: 0; margin-bottom: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rp-q[hidden] { display: none; }
.rp-q__title { padding: 0; font-size: var(--text-md); font-weight: 700; display: flex; align-items: baseline; gap: var(--space-2); }
.rp-q__opt { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); }
fieldset.rp-q > legend.rp-q__title { margin-bottom: var(--space-2); }

/* 遇到什麼問題：2×2 方塊（圖示＋字＋一行提示）。v114：不用框。v148 第 2 輪：選中改全站選中語彙（原本淡橘底）——
   --sel-* 色塊＋陰影、橘圖示，字前面一顆勾 */
.rp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.rp-kind {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-2);
  row-gap: 2px;
  align-items: center;
  min-height: 64px;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--btn-tonal-bg);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.rp-kind:active { transform: scale(0.98); }
.rp-kind input { position: absolute; opacity: 0; pointer-events: none; }
.rp-kind__icon { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--color-text-faint); transition: color var(--transition-fast); }
.rp-kind__label { font-size: var(--text-note); font-weight: 700; line-height: 1.3; }
.rp-kind__hint { grid-column: 2; font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.35; }
.rp-kind__label, .rp-kind__hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-kind:hover { background: var(--btn-tonal-bg-press); }
.rp-kind:has(input:checked) { background: var(--sel-bg); box-shadow: var(--sel-shadow); }
.rp-kind:has(input:checked) .rp-kind__label { color: var(--sel-fg); font-weight: 800; }
.rp-kind:has(input:checked) .rp-kind__label::before { content: '✓'; content: '✓' / ''; margin-right: 4px; font-size: 12px; color: var(--sel-check); }
.rp-kind:has(input:checked) .rp-kind__icon { color: var(--sel-check); }
.rp-kind:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* 複選格（v148 第 1 輪：不用膠囊）：方角淡底格，選了＝全站選中語彙（第 2 輪：--sel-*＋勾，跟分段鈕一樣）；--sm 看起來 40、按得到 44 */
.rp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rp-chip { position: relative; cursor: pointer; }
.rp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rp-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--btn-tonal-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.rp-chip input:checked + span { background: var(--sel-bg); color: var(--sel-fg); font-weight: 800; box-shadow: var(--sel-shadow); }
.rp-chip input:checked + span::before { content: '✓'; content: '✓' / ''; margin-right: 4px; font-size: 12px; color: var(--sel-check); }
.rp-chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.rp-chip--sm { padding: 2px 0; }
.rp-chip--sm span { min-height: 40px; padding: 0 var(--space-3); }

/* 「還有：球數不對・籃框找錯」：逐球題裡的最後一行 */
.rp-also { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.rp-also__label { float: left; padding: 0; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.rp-also .rp-chips { display: contents; }

/* 選跟你記的不一樣的球：一顆淡底鈕（.btn-tonal .btn-sm，js 給 class）。v148 第 2 輪：原本淡橘底膠囊——橘色只留給主要動作 */
.rp-pickdiff { align-self: flex-start; }
.rp-pickdiff[hidden] { display: none; }

/* 逐球：一列 5 顆（跟 App 的記分格同一個節奏）。右上角記號＝影片判的：進實心點、沒進空心圈、沒把握「?」 */
.rp-balls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.rp-ball {
  position: relative;
  height: 48px;
  border-radius: var(--radius-sm);
  /* v114：平常不描邊（淡底，跟 App 的數字鍵同一顆）；透明的 1.5px 留著，「跟你記的不一樣」那幾顆的虛線框（記號）才不會讓格子跳 */
  border: 1.5px solid transparent;
  background: var(--btn-key-bg);
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rp-ball.is-diff { border-style: dashed; border-color: var(--color-accent); }
.rp-ball[aria-pressed="true"] { background: var(--sel-bg); border-color: transparent; border-style: solid; color: var(--sel-fg); font-weight: 800; box-shadow: var(--sel-shadow); }
/* 選了：數字前面一顆勾（同分段鈕；不只靠底色） */
.rp-ball[aria-pressed="true"] .rp-ball__n::before { content: '✓'; content: '✓' / ''; margin-right: 2px; font-size: 12px; color: var(--sel-check); }
@media (hover: hover) {
  .rp-ball:hover:not([aria-pressed="true"]) { background: var(--btn-key-bg-hover); }
  .rp-chip:hover input:not(:checked) + span { background: var(--btn-tonal-bg-press); }
}
.rp-ball__dot { position: absolute; top: 3px; right: 5px; font-size: 12px; font-weight: 800; line-height: 1; }
/* v210（SPEC_M118 #3）：記號跟結果頁格子同一套——進＝綠 ✓、沒進＝灰「–」、沒把握＝「?」（以前綠點／灰點） */
.rp-ball--in .rp-ball__dot { color: var(--color-success); }
.rp-ball--out .rp-ball__dot { color: var(--color-text-faint); }
.rp-ball--unsure .rp-ball__dot { color: var(--color-heat-warm); }

/* v148（SPEC_M69 B）：選球那一步的一句、每一球「其實是：進｜沒進」、拍法與光線 */
.rp-q__note { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.rp-answers { display: flex; flex-direction: column; gap: var(--space-2); }
.rp-answers[hidden] { display: none; }
.rp-ans { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.rp-ans__n { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.rp-ans__seg { flex: 0 1 264px; flex-wrap: nowrap; } /* v160：三格（進｜沒進｜不是出手） */
.rp-ans__seg .segmented__btn { white-space: nowrap; padding-inline: 6px; }
/* v160：標了不是出手的球：叉，淡 */
.rp-ball.is-notshot { opacity: .62; }
/* v171（SPEC_M89 B）：不是出手那一格沒有球號，中間只放 ×（角落不再另放一顆 ×） */
.rp-ball.is-notshot .rp-ball__n { color: var(--color-text-muted); }
.rp-shoot__row { display: flex; align-items: center; gap: var(--space-3); }
.rp-shoot__label { flex: none; width: 2.5em; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
/* 拍法、光線：分段鈕的樣子，但每格是核取方塊（再按一次＝取消，js 讓同一組只留一個）；選中＝ .segmented__btn.is-active 那一套 */
.rp-seg { flex: 1 1 auto; flex-wrap: nowrap; }
.rp-seg__opt { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rp-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.rp-seg__opt:has(input:checked) { background: var(--sel-bg); color: var(--sel-fg); font-weight: 800; box-shadow: var(--sel-shadow); }
.rp-seg__opt:has(input:checked)::before { content: '✓'; content: '✓' / ''; margin-right: 4px; font-size: 12px; color: var(--sel-check); }
.rp-seg__opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (hover: hover) { .rp-seg__opt:not(:has(input:checked)):hover, .rp-ans__seg .segmented__btn:not(.is-active):hover { color: var(--color-text); } }

.rp-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
.rp-legend__i::before { display: inline-block; margin-right: 4px; font-weight: 800; }
.rp-legend__i--in::before { content: '✓'; color: var(--color-success); }
.rp-legend__i--out::before { content: '–'; color: var(--color-text-faint); }
.rp-legend__i--unsure::before { content: '?'; color: var(--color-heat-warm); }
.rp-legend__i--diff::before { content: ''; width: 9px; height: 9px; border-radius: 3px; border: 1.5px dashed var(--color-accent); box-sizing: border-box; }

/* 附截圖：開關 */
.rp-switch { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-sunken); cursor: pointer; }
.rp-switch[hidden] { display: none; }
.rp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rp-switch__track { flex: none; position: relative; width: 40px; height: 24px; border-radius: var(--radius-full); background: var(--color-border-strong); transition: background var(--transition-fast); }
.rp-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition-med); }
.rp-switch input:checked + .rp-switch__track { background: var(--switch-on); } /* v148 第 2 輪：同設定頁開關（墨色，深色暖淺灰） */
.rp-switch input:checked + .rp-switch__track::after { transform: translateX(16px); }
.rp-switch input:focus-visible + .rp-switch__track { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.rp-switch__text { font-size: var(--text-sm); font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.rp-switch__sub { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); }

/* 文字欄＋「留 Email」：同一題 */
.rp-field { display: flex; flex-direction: column; gap: var(--space-2); }
.rp-field[hidden] { display: none; }
.rp-field textarea,
.rp-field input {
  width: 100%;
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-md);
  line-height: 1.5;
  resize: vertical;
}
.rp-field textarea { min-height: 84px; }
.rp-field textarea:focus,
.rp-field input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent; }
.rp-field textarea::placeholder { color: var(--color-text-faint); }
.rp-more { align-self: flex-start; min-height: var(--btn-h); padding: 0; border: 0; background: none; color: var(--btn-link-fg); font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.rp-more:hover { color: var(--color-accent-strong); }
.rp-more::before { content: '＋'; margin-right: 4px; }
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 送出列：捲動時貼在面板底邊（整顆鈕都看得到），底下留安全區 */
.rp__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 calc(var(--space-2) + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--color-surface) 24px);
}
.rp > .rp__foot { margin-top: 0; padding-top: var(--space-3); }
.rp__send { width: 100%; }
.rp__status { font-size: var(--text-sm); color: var(--color-danger-text); text-align: center; }
.rp__status:empty { display: none; }
.is-sending .rp__send { opacity: 0.7; }

/* 會一起送出什麼：在送出列下面、不貼底（展開不會蓋住表單） */
.rp-what { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.rp > .rp-what { margin-top: 0; padding-bottom: var(--safe-bottom); }
.rp-what summary { display: inline-flex; align-items: center; min-height: var(--btn-h); cursor: pointer; font-weight: 600; list-style: none; }
.rp-what summary::-webkit-details-marker { display: none; }
.rp-what summary > .btn-pm { margin-left: 8px; } /* v120：尖角換成 ＋／－（app.css 的 .btn-pm） */
.rp-what p { margin-top: var(--space-1); line-height: 1.65; text-align: left; text-wrap: pretty; }
.rp-what a { color: var(--btn-link-fg); font-weight: 600; }

/* ---- 送出之後 ---- */
.rp--done { align-items: center; text-align: center; padding: var(--space-7) var(--space-5) calc(var(--space-6) + var(--safe-bottom)); }
.rp--done > * + * { margin-top: var(--space-2); }
.rp-done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-success-tint); color: var(--color-success); animation: rp-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.rp-done__mark svg { width: 28px; height: 28px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: rp-draw 360ms 120ms ease-out forwards; }
.rp-done__mark.is-queued { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.rp-done__mark.is-queued svg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.rp--done > .rp-done__title { margin-top: var(--space-4); font-size: var(--text-lg); font-weight: 800; }
.rp-done__title:focus { outline: none; }
.rp-done__sub { font-size: var(--text-sm); color: var(--color-text-muted); }
/* v172（SPEC_M90）：送出成功那句後面「看處理進度」（/known-issues/，另開分頁），同「會一起送出什麼」裡的鏈結樣式 */
.rp-done__sub a { color: var(--btn-link-fg); font-weight: 600; text-decoration: none; }
.rp-done__sub a:hover { color: var(--color-accent-strong); }
.rp-done__id { font-size: var(--text-xs); color: var(--color-text-muted); }
.rp-done__id span { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; user-select: all; }
.rp--done > .rp-done__ok { width: 100%; margin-top: var(--space-5); }
@keyframes rp-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rp-dialog, .rp-dialog.is-closing, .rp-dialog::backdrop, .rp-done__mark, .rp-done__mark svg { animation: none; transition: none; }
  .rp-done__mark svg { stroke-dashoffset: 0; }
}

/* 警告卡裡的入口（v105 手機實測）：跟上面的字對齊左邊，不多佔一行高 */
.vid-block__warn .rp-link,
.vid-unread .rp-link { padding-left: 0; margin-block: -6px -10px; }

/* ---- 幫忙改善判讀（SPEC_M59 B，v122；js/contrib.js contribCardHtml）----
   手機在練球結束的成績頁、電腦在結果頁，放在主要動作上面、不擋流程：卡片底（surface＋細框，同 .secondary-card）。
   「送出這 N 球」與「不用」兩顆都是淡底、同高同字級（第 2 輪：「不用」跟「送出」一樣好按，不誘導；
   頁面上的實心橘／墨色留給原本的「完成／分享成績卡」）。條款是底線文字鏈結；展開用＋／－。 */
.ctb {
  margin: var(--space-4) 0 0;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
}
.ctb__title { font-size: var(--text-md); font-weight: 700; line-height: var(--leading-tight); color: var(--color-text); text-wrap: pretty; }
.ctb__sub { margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); text-wrap: pretty; }
.ctb a { color: var(--btn-link-fg); font-weight: 600; text-decoration: none; }
.ctb a:hover, .rp-what a:hover { color: var(--color-accent-strong); }
.ctb__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.ctb__acts .btn-tonal { min-height: 44px; flex: 1 1 0; min-width: 120px; }
.ctb__err { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-danger, #B3261E); }
.ctb__what { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.ctb__what summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; color: var(--btn-link-fg); }
.ctb__what summary::-webkit-details-marker { display: none; }
.ctb__what summary > .btn-pm { margin-left: 8px; }
.ctb__what p { margin-top: var(--space-1); line-height: 1.65; text-wrap: pretty; }
.ctb--done { padding: var(--space-3) var(--space-4); }
.ctb__done { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.ctb__done:focus { outline: none; }
.ctb__id { margin-top: 2px; font-size: var(--text-xs); color: var(--color-text-muted); overflow-wrap: anywhere; }
.ctb__id span { font-variant-numeric: tabular-nums; user-select: all; }
/* 成績頁：在「分享成績卡／完成」上面，下面留一點距離 */
.summary__contrib .ctb { margin: 0 0 var(--space-4); }
/* 電腦結果頁：跟逐球區同寬，不要撐滿右欄；兩顆鈕不撐滿 */
.desk-card .ctb, .desk-pane .ctb { max-width: 640px; }
body.is-desk .ctb__acts .btn-tonal { flex: 0 0 auto; }

/* ---- 改判那一輪的一行（v162，SPEC_M80；js/contrib.js fixLineHtml）----
   逐球格下面一行灰字「改了 N 球・只存在這台手機」＋橘字文字鈕「送出，讓判讀更準」＋小字「送什麼」（條款）。
   不是卡片、不是色塊：跟格子下面的說明同一個層級（14 px 灰），只有鈕是橘字（文字鈕）。
   文字鈕保留 44 px 觸控高，用負邊距吃掉多的高度，整行看起來還是一行字。 */
.fixsend { margin: var(--space-2) 0 0; }
.fixsend__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}
.fixsend__line:focus { outline: none; }
.fixsend__btn.btn-link {
  min-height: 44px;
  margin-block: -10px;
  margin-inline: -4px;
  padding: 0 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--btn-link-fg);
}
.fixsend__what {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}
.fixsend__what:hover { color: var(--color-text); }
/* 鈕＋送什麼一組，放不下就一起換到第二行 */
.fixsend__act { display: inline-flex; align-items: center; column-gap: var(--space-3); white-space: nowrap; }
.fixsend__id { font-size: var(--text-xs); font-variant-numeric: tabular-nums; user-select: all; }
/* 電腦結果頁：逐球區下面，跟逐球區同寬 */
body.is-desk .fixsend { max-width: 640px; margin-top: var(--space-3); }
