/* Shared media-tool look (webcam test, mic test, QR code scanner); duplicated per module with its own prefix. */
.gtqr [hidden] { display: none !important; }
.gtqr-status { display: flex; align-items: center; gap: 10px; min-height: 28px; margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.gtqr-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9aa1ad; box-shadow: 0 0 0 3px rgba(154, 161, 173, .2); }
.gtqr-status[data-state="req"] .gtqr-dot { background: #b7791f; box-shadow: 0 0 0 3px rgba(183, 121, 31, .2); }
.gtqr-status[data-state="live"] .gtqr-dot { background: #1e8449; box-shadow: 0 0 0 3px rgba(30, 132, 73, .2); }
.gtqr-status[data-state="warn"] .gtqr-dot { background: #d35400; box-shadow: 0 0 0 3px rgba(211, 84, 0, .2); }
.gtqr-status[data-state="error"] .gtqr-dot { background: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .2); }
.gtqr-stage { position: relative; width: 100%; background: #14171c; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gtqr-ph { margin: 0; padding: 16px 20px; max-width: 46ch; text-align: center; color: #d5d9e0; font-size: 15px; line-height: 1.5; }
.gtqr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gtqr-actions .gt-btn { flex: 1 1 160px; }
.gtqr .gt-btn:disabled { opacity: .55; cursor: not-allowed; }
.gtqr-fix { margin: 14px 0 0; padding: 14px 16px 16px; border: 1px solid #e3b4ae; border-left: 4px solid #c0392b; border-radius: 8px; background: #fdf5f4; }
.gtqr-fix:focus { outline: none; }
.gtqr-fix:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtqr-fix-t { margin: 0 0 6px; font-weight: 700; color: #a93226; }
.gtqr-fix ol { margin: 0 0 12px; padding-left: 1.3em; font-size: 15px; line-height: 1.5; }
.gtqr-fix li { margin: 4px 0; }
.gtqr-fix .gt-btn { min-width: 160px; }
.gtqr-msg { margin: 8px 0 0; font-size: 14px; color: var(--gt-muted); }
.gtqr-msg:empty { display: none; }
.gtqr-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 20px; margin: 14px 0 12px; }
.gtqr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 40px; padding: 8px 0; border-top: 1px solid var(--gt-line); font-size: 15px; }
.gtqr-row dt { flex: none; color: var(--gt-muted); }
.gtqr-row dd { margin: 0; text-align: right; font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; min-width: 0; }
.gtqr-wide { grid-column: 1 / -1; }
.gtqr-sub { font-weight: 400; color: var(--gt-muted); font-size: 13px; }
.gtqr-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 16px; margin: 0 0 12px; }
.gtqr-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.gtqr-sel { width: 100%; min-height: 44px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtqr-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gtqr-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtqr-hint { flex-basis: 100%; padding-left: 30px; font-size: 13px; color: var(--gt-muted); }
.gtqr-more { margin: 12px 0 0; font-size: 14px; }
.gtqr-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.gtqr-more p { margin: 4px 0 8px; line-height: 1.5; color: var(--gt-muted); }
.gtqr-rawd { margin: 0; max-height: 220px; overflow: auto; padding: 10px; font: 12px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gtqr-tab { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 0; }
.gtqr-tab th, .gtqr-tab td { padding: 7px 8px; border-top: 1px solid var(--gt-line); text-align: left; vertical-align: top; }
.gtqr-tab thead th { border-top: 0; font-size: 13px; color: var(--gt-muted); font-weight: 600; }
.gtqr-tab tbody th { font-weight: 400; }
.gtqr-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--gt-muted); }
.gtqr-note a { color: var(--gt-accent); font-weight: 600; text-underline-offset: 2px; }
.gtqr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 440px) {
	.gtqr-actions .gt-btn { flex-basis: 120px; }
	.gtqr-row { flex-wrap: wrap; }
	.gtqr-row dd { text-align: left; }
}
/* QR code scanner */
.gtqr-tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--gt-line); }
.gtqr-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--gt-muted); cursor: pointer; }
.gtqr-tab[aria-selected="true"] { color: var(--gt-ink); border-bottom-color: var(--gt-accent); }
.gtqr-tab:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtqr-stage { aspect-ratio: 4 / 3; max-height: 300px; }
.gtqr-stage[data-mode="image"] { background: var(--gt-field); border: 2px dashed #b9c0cb; }
.gtqr-stage.gtqr-over { border-color: var(--gt-accent); background: #fbf3e4; }
.gtqr-drop, .gtqr-cam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.gtqr-drop { cursor: pointer; }
.gtqr-drop-t { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--gt-ink); }
.gtqr-drop-s { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--gt-muted); }
.gtqr-cam { padding: 0; }
.gtqr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #14171c; }
.gtqr-mirror { transform: scaleX(-1); }
.gtqr-reticle { position: absolute; left: 50%; top: 50%; width: min(62%, 220px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); border: 3px solid #f3b434; pointer-events: none; }
.gtqr-actions { align-items: flex-end; }
.gtqr-field { flex: 1 1 100%; }
.gtqr-field label { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 4px; }
.gtqr-sel { width: 100%; min-height: 44px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtqr-fix ul { margin: 0; padding-left: 1.3em; font-size: 15px; line-height: 1.5; }
.gtqr-status[data-state="warn"] ~ .gtqr-fix, .gtqr-fix-l { margin-top: 10px; }
.gtqr-fix-l { margin: 0; font-size: 15px; }
.gtqr-fix-l a { color: var(--gt-accent); font-weight: 600; }
.gtqr-rh { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.gtqr-rh:focus { outline: none; }
.gtqr-rh:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtqr-card { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--gt-line); border-radius: 8px; }
.gtqr-type { margin: 0 0 8px; font-size: 15px; color: var(--gt-muted); }
.gtqr-type b { color: var(--gt-ink); }
.gtqr-domain { margin: 0 0 8px; padding: 10px 12px; background: var(--gt-field); border-radius: 8px; overflow-wrap: anywhere; }
.gtqr-dl { display: block; font-size: 13px; font-weight: 600; color: var(--gt-muted); text-transform: uppercase; letter-spacing: .04em; }
.gtqr-dv { font-size: 24px; font-weight: 700; line-height: 1.25; }
.gtqr-fields { margin: 0 0 10px; display: grid; gap: 0; }
.gtqr-fields > div { display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 2px 14px; padding: 7px 0; border-top: 1px solid var(--gt-line); font-size: 15px; }
.gtqr-fields dt { color: var(--gt-muted); }
.gtqr-fields dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.gtqr-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: normal; }
.gtqr-badge[data-ok="1"] { background: #e3f2e8; color: #1e6b3d; }
.gtqr-badge[data-ok="0"] { background: #fbe4e1; color: #a93226; }
.gtqr-mini { appearance: none; min-height: 36px; padding: 4px 10px; margin: 2px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 6px; cursor: pointer; }
.gtqr-warns { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.gtqr-warns li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: #fdf5f4; border: 1px solid #efc9c3; font-size: 15px; line-height: 1.45; }
.gtqr-wi { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #c0392b; color: #fff; font-weight: 700; font-size: 14px; }
.gtqr-clean { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #eef7f1; border: 1px solid #c4e3cf; font-size: 15px; }
.gtqr-rawl { margin: 4px 0 4px; font-size: 13px; font-weight: 600; color: var(--gt-muted); }
.gtqr-raw { margin: 0 0 8px; max-height: 260px; overflow: auto; padding: 10px 12px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gtqr-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gtqr-btns .gt-btn { flex: 1 1 160px; text-decoration: none; }
.gtqr-confirm { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #a93226; }
.gtqr-again { width: 100%; }
@media (max-width: 440px) {
	.gtqr-fields > div { grid-template-columns: 1fr; }
	.gtqr-dv { font-size: 21px; }
	.gtqr-tab { padding: 10px 10px; }
}
