/* Shared media-tool look (webcam test, mic test, QR code scanner); duplicated per module with its own prefix. */
.gtwc [hidden] { display: none !important; }
.gtwc-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; }
.gtwc-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9aa1ad; box-shadow: 0 0 0 3px rgba(154, 161, 173, .2); }
.gtwc-status[data-state="req"] .gtwc-dot { background: #b7791f; box-shadow: 0 0 0 3px rgba(183, 121, 31, .2); }
.gtwc-status[data-state="live"] .gtwc-dot { background: #1e8449; box-shadow: 0 0 0 3px rgba(30, 132, 73, .2); }
.gtwc-status[data-state="warn"] .gtwc-dot { background: #d35400; box-shadow: 0 0 0 3px rgba(211, 84, 0, .2); }
.gtwc-status[data-state="error"] .gtwc-dot { background: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .2); }
.gtwc-stage { position: relative; width: 100%; background: #14171c; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gtwc-ph { margin: 0; padding: 16px 20px; max-width: 46ch; text-align: center; color: #d5d9e0; font-size: 15px; line-height: 1.5; }
.gtwc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gtwc-actions .gt-btn { flex: 1 1 160px; }
.gtwc .gt-btn:disabled { opacity: .55; cursor: not-allowed; }
.gtwc-fix { margin: 14px 0 0; padding: 14px 16px 16px; border: 1px solid #e3b4ae; border-left: 4px solid #c0392b; border-radius: 8px; background: #fdf5f4; }
.gtwc-fix:focus { outline: none; }
.gtwc-fix:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtwc-fix-t { margin: 0 0 6px; font-weight: 700; color: #a93226; }
.gtwc-fix ol { margin: 0 0 12px; padding-left: 1.3em; font-size: 15px; line-height: 1.5; }
.gtwc-fix li { margin: 4px 0; }
.gtwc-fix .gt-btn { min-width: 160px; }
.gtwc-msg { margin: 8px 0 0; font-size: 14px; color: var(--gt-muted); }
.gtwc-msg:empty { display: none; }
.gtwc-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 20px; margin: 14px 0 12px; }
.gtwc-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; }
.gtwc-row dt { flex: none; color: var(--gt-muted); }
.gtwc-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; }
.gtwc-wide { grid-column: 1 / -1; }
.gtwc-sub { font-weight: 400; color: var(--gt-muted); font-size: 13px; }
.gtwc-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 16px; margin: 0 0 12px; }
.gtwc-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.gtwc-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; }
.gtwc-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gtwc-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtwc-hint { flex-basis: 100%; padding-left: 30px; font-size: 13px; color: var(--gt-muted); }
.gtwc-more { margin: 12px 0 0; font-size: 14px; }
.gtwc-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.gtwc-more p { margin: 4px 0 8px; line-height: 1.5; color: var(--gt-muted); }
.gtwc-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; }
.gtwc-tab { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 0; }
.gtwc-tab th, .gtwc-tab td { padding: 7px 8px; border-top: 1px solid var(--gt-line); text-align: left; vertical-align: top; }
.gtwc-tab thead th { border-top: 0; font-size: 13px; color: var(--gt-muted); font-weight: 600; }
.gtwc-tab tbody th { font-weight: 400; }
.gtwc-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--gt-muted); }
.gtwc-note a { color: var(--gt-accent); font-weight: 600; text-underline-offset: 2px; }
.gtwc-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) {
	.gtwc-actions .gt-btn { flex-basis: 120px; }
	.gtwc-row { flex-wrap: wrap; }
	.gtwc-row dd { text-align: left; }
}
/* Webcam test */
.gtwc-stage { aspect-ratio: 16 / 9; max-height: 380px; }
.gtwc-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #14171c; }
.gtwc-video[hidden] { display: none; }
.gtwc-mirror { transform: scaleX(-1); }
.gtwc-lv { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gtwc-lv[data-v="good"] { color: #1e7a45; }
.gtwc-lv[data-v="dark"], .gtwc-lv[data-v="bright"], .gtwc-lv[data-v="backlit"] { color: #a0480b; }
.gtwc-lv[data-v="black"] { color: #a93226; }
.gtwc-row dd .gtwc-sub { display: block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gtwc-read .gtwc-row:last-child { grid-column: 1 / -1; }
.gtwc-lad { width: 100%; }
.gtwc-ladder:empty { display: none; }
.gtwc-ladder { min-height: 0; }
