/* ghacks Tools: black screen. Prefix gtbs-. The colour layer is position:fixed outside the document flow. */
.gtbs-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.gtbs-colors legend { font-weight: 600; font-size: 15px; padding: 0; margin: 0 0 6px; }
.gtbs-sw { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border: 1px solid var(--gt-line); border-radius: 999px; background: var(--gt-field); font-size: 15px; cursor: pointer; }
.gtbs-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gtbs-sw:has(input:checked) { border-color: var(--gt-ink); box-shadow: inset 0 0 0 1px var(--gt-ink); font-weight: 600; }
.gtbs-sw:has(input:focus-visible) { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtbs-sw input:checked ~ .gtbs-name::after { content: " \2713"; }
.gtbs-chip { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); }
.gtbs-num { font: inherit; font-size: 12px; color: var(--gt-muted); }
.gtbs-sw-c { padding-left: 12px; }
.gtbs-pick { width: 52px; height: 44px; padding: 2px; border: 1px solid var(--gt-line); border-radius: 8px; background: var(--gt-field); cursor: pointer; }
.gtbs .gtbs-start { width: 100%; min-height: 56px; font-size: 18px; }
.gtbs-status { margin: 8px 0 14px; min-height: 42px; font-size: 14px; line-height: 1.5; color: var(--gt-muted); }
.gtbs-status a { color: var(--gt-accent); }
.gtbs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 14px; }
.gtbs-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gtbs-f > label { font-weight: 600; font-size: 15px; }
.gtbs-row { display: flex; gap: 8px; }
.gtbs-sel, .gtbs-min { height: 44px; min-width: 0; width: 100%; 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; }
.gtbs-min { flex: none; width: 96px; }
.gtbs-min[hidden] { display: none; }
.gtbs-checks { justify-content: flex-end; gap: 0; }
.gtbs-f > .gtbs-chk, .gtbs-chk { font-weight: 400; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gtbs-chk input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtbs-chk input:disabled + * , .gtbs-chk:has(input:disabled) { color: var(--gt-muted); cursor: not-allowed; }
.gtbs-keys { padding: 10px 14px; border: 1px solid var(--gt-line); border-radius: 8px; font-size: 14px; }
.gtbs-keys-h { margin: 0 0 4px; font-weight: 600; }
.gtbs-keys ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2px 16px; }
.gtbs-keys li { display: flex; gap: 8px; align-items: baseline; min-height: 26px; }
.gtbs-k { flex: none; white-space: nowrap; }
.gtbs kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; font: 600 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; color: var(--gt-ink); background: var(--gt-bg, #fff); border: 1px solid #b9bfc9; border-bottom-width: 2px; border-radius: 4px; }
.gtbs-sw kbd.gtbs-num { border: 0; background: none; padding: 0; min-width: 0; font-weight: 400; color: var(--gt-muted); }
.gtbs-dbl { margin: 6px 0 0; color: var(--gt-muted); line-height: 1.5; }
.gtbs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin: 10px 0 0; font-size: 13px; color: var(--gt-muted); }
.gtbs-reset { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 13px; color: var(--gt-accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gtbs-reset:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }

/* Full-screen layer (appended to body, also the fallback where element full screen is unavailable) */
html.gtbs-open, html.gtbs-open body { overflow: hidden !important; }
.gtbs-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 2147483647; margin: 0; padding: 0; background: #000; outline: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.gtbs-layer:fullscreen { width: 100%; height: 100%; }
.gtbs-hint { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 8px; font: 500 15px/1.4 system-ui, sans-serif; color: #9aa0a6; background: rgba(32, 33, 36, .72); white-space: nowrap; transition: opacity .7s ease; opacity: 1; pointer-events: none; }
.gtbs-hint-out { opacity: 0; }
.gtbs-clock { position: absolute; right: 16px; bottom: 12px; margin: 0; font: 500 14px/1 ui-monospace, Menlo, Consolas, monospace; color: rgba(128, 128, 128, .75); pointer-events: none; }

@media (max-width: 600px) {
	.gtbs-grid { grid-template-columns: 1fr; }
	.gtbs-sw { padding: 0 10px 0 6px; gap: 6px; font-size: 14px; }
	.gtbs .gtbs-num { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gtbs-hint { transition: none; } }
