/* qrread 固有スタイル */
.tool-main { max-width: 760px; }
[hidden] { display: none !important; }
.pt-tabs { overflow: visible; }

.qr-prevwrap { margin-top: 0.9rem; text-align: center; }
.qr-prevwrap canvas { max-width: 100%; max-height: 320px; height: auto; border: 1px solid var(--border); border-radius: var(--pt-r); background: var(--pt-canvas-bg); }

.qr-video-wrap { position: relative; margin-top: 0.9rem; border: 1px solid var(--border); border-radius: var(--pt-r); background: #111; aspect-ratio: 4 / 3; max-height: 420px; overflow: hidden; display: grid; place-items: center; }
.qr-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: none; }
.qr-video-wrap.is-on video { display: block; }
.qr-ph { color: #9ca3af; font-size: 0.9rem; padding: 1rem; text-align: center; }
.qr-video-wrap.is-on .qr-ph { display: none; }
.qr-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; display: none; }
.qr-video-wrap.is-on .qr-frame { display: block; }

.qr-opts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }

.qr-resh { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.qr-resh h2 { margin: 0; font-size: 1.05rem; }
.qr-res { border: 1px solid var(--border); border-radius: var(--pt-r); padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; background: var(--surface); }
.qr-res.is-new { animation: qrnew 1.2s ease-out; }
@keyframes qrnew { from { border-color: var(--pt-ok-line); background: var(--pt-ok-soft); } to { border-color: var(--border); background: var(--surface); } }
.qr-rh { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.qr-badge { font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--pt-accent-soft); color: var(--pt-accent); }
.qr-src { font-size: 0.75rem; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.qr-text { white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; max-height: 9em; overflow: auto; padding: 0.4rem 0.5rem; background: var(--bg); border-radius: 4px; }
.qr-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; margin: 0.5rem 0 0; font-size: 0.9rem; }
.qr-dl dt { color: var(--text-sub); }
.qr-dl dd { margin: 0; word-break: break-all; }
.qr-act { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.qr-act .btn { width: auto; margin: 0; text-decoration: none; display: inline-flex; align-items: center; }
.qr-warn { margin-top: 0.45rem; font-size: 0.8rem; color: var(--pt-warn); }
