﻿/* 頁首的回報入口：跟旁邊的版號同一種安靜的文字連結，不做成一顆按鈕 */
.report-open{position:relative;display:inline-flex;align-items:center;gap:4px;margin-left:auto;min-height:28px;padding:0;border:0;border-radius:4px;background:none;color:var(--ink);font:inherit;font-size:.6875rem;font-weight:400;line-height:1.5;letter-spacing:.04em;opacity:.65;cursor:var(--cur-pointer)}
/* 右邊有版號時，中間畫一條細線隔開 */
.report-open:has(+ .ver-chip:not([hidden])){padding-right:9px}
.report-open:has(+ .ver-chip:not([hidden]))::after{content:'';position:absolute;right:0;top:50%;width:1px;height:10px;background:currentColor;opacity:.45;transform:translateY(-50%)}
.report-open svg{flex:none;width:12px;height:12px}
.report-open:hover,.report-open:focus-visible{opacity:1}
.report-open:hover span,.report-open:focus-visible span{text-decoration:underline;text-underline-offset:3px}
.report-dialog{width:min(700px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:20px;box-sizing:border-box;overflow:auto}
.report-open[hidden]{display:none}
.report-head{position:sticky;top:-10px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-20px -20px 8px;padding:20px 20px 8px;background:var(--panel)}
.report-dialog .report-head h2{margin:0}
/* 右上角關閉：圓形、沒有外框，叉叉用兩條線畫（字型的 ✕ 粗細不一） */
.report-dialog .report-x{position:relative;flex:none;width:30px;height:30px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-soft);font-size:0;line-height:0;cursor:var(--cur-pointer);transition:background-color .15s,color .15s}
.report-dialog .report-x::before,.report-dialog .report-x::after{content:'';position:absolute;left:50%;top:50%;width:14px;height:1.5px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.report-dialog .report-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.report-dialog .report-x:hover,.report-dialog .report-x:focus-visible{background:rgba(127,127,127,.16);color:var(--ink)}
.report-intro{font-size:.82rem;line-height:1.65;margin:0 0 14px;color:var(--ink-soft)}
.report-previews{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.report-preview{margin:0;padding:10px;border:1px solid var(--frame-soft);border-radius:10px;background:var(--panel-strong);min-width:0}
.report-preview label{display:flex;gap:7px;align-items:flex-start;font-size:.82rem;font-weight:700}.report-preview input{margin-top:4px;accent-color:var(--frame)}
.report-preview img{width:100%;height:160px;object-fit:contain;display:block;margin:9px 0 0;background:rgba(127,127,127,.08);border-radius:5px}.report-preview img[hidden]{display:none}
.report-preview figcaption,.report-preview p{font-size:.73rem;line-height:1.6;color:var(--ink-soft);margin:6px 0 0}.report-field{display:flex;flex-direction:column;gap:5px;font-size:.84rem;font-weight:700}
.report-field textarea{font:inherit;font-weight:400;min-height:75px;padding:9px;border:1px solid var(--frame-soft);border-radius:8px;background:var(--panel-strong);color:var(--ink);resize:vertical}
.report-details{margin-top:12px;font-size:.78rem}.report-details summary{cursor:var(--cur-pointer);color:var(--ink-soft)}.report-details pre{max-height:190px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--panel-strong);padding:10px;border-radius:8px;font-size:.7rem}
.report-consent{display:flex;gap:7px;align-items:flex-start;font-size:.78rem;line-height:1.65;margin:14px 0 6px}.report-consent input{margin-top:5px;accent-color:var(--frame)}
.report-msg{min-height:1.7em;font-size:.8rem;line-height:1.65;margin:9px 0;color:var(--ink)}.report-msg[data-kind="error"]{color:var(--danger,#b3261e)}.report-msg[data-kind="success"]{color:var(--frame);font-weight:700}
.report-actions{flex-wrap:wrap}.report-actions .report-close{margin-right:auto}.report-dialog button:disabled{opacity:.5;cursor:default}.report-warnings{font-size:.75rem;line-height:1.6;color:var(--ink-soft);margin:8px 0;white-space:pre-line}
@media(max-width:520px){.report-dialog{padding:16px}.report-head{top:-8px;margin:-16px -16px 8px;padding:16px 16px 8px}.report-previews{grid-template-columns:1fr}.report-preview img{height:140px}.report-actions button{flex:1 1 auto}.report-actions .report-close{margin-right:0}}
/* 沒有圖可附：整格變淡、收起勾選框 */
.report-preview.is-missing{border-style:dashed;background:transparent}.report-preview.is-missing label{color:var(--ink-soft)}.report-preview.is-missing input{display:none}
