
    :root { color-scheme: dark; font-family: system-ui, sans-serif; background: #0b111a; color: #e8eef5; }
    * { box-sizing: border-box; }
    body { margin: 0; }
    main { max-width: 1120px; margin: auto; padding: 32px 24px 48px; }
    header { border-bottom: 1px solid #2c394b; padding-bottom: 24px; margin-bottom: 24px; }
    .eyebrow { color: #69e6cb; font-size: .875rem; font-weight: 700; letter-spacing: .12em; }
    h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
    h2 { font-size: 1.25rem; margin-top: 0; }
    p { line-height: 1.6; }
    .muted { color: #abbace; }
    .panel { padding: 24px; border: 1px solid #2c394b; background: #131d2b; border-radius: 14px; margin-bottom: 20px; }
    .row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
    button, select { font: inherit; border-radius: 8px; padding: 12px 18px; min-height: 46px; }
    button { border: 0; background: #69e6cb; color: #071b18; font-weight: 700; cursor: pointer; }
    button.secondary { background: #25354a; color: #e8eef5; }
    button:disabled { opacity: .5; cursor: default; }
    button:focus-visible, select:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
    select { background: #0b111a; color: #e8eef5; border: 1px solid #50637d; max-width: 100%; }
    #status { font-weight: 650; }
    .error { color: #ffb6a3; }
    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .identity { overflow-wrap: anywhere; font-size: 1.125rem; font-weight: 650; }
    .sticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .stick { text-align: center; }
    .plot { display: block; margin: 16px auto 12px; width: min(100%, 220px); aspect-ratio: 1; }
    .readout { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
    #buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
    .button-cell { padding: 14px 10px; border: 1px solid #3a4d65; border-radius: 8px; background: #0b111a; text-align: center; }
    .button-cell.active { border-color: #69e6cb; background: #153c35; }
    .button-cell strong, .button-cell span { display: block; }
    .button-cell span { margin-top: 5px; font-size: .875rem; }
    #axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
    .axis { padding: 12px; background: #0b111a; border-radius: 8px; }
    .axis .row { justify-content: space-between; }
    meter { width: 100%; height: 20px; margin-top: 6px; }
    progress { width: 100%; height: 16px; accent-color: #69e6cb; margin-top: 16px; }
    .center-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
    .center-result { background: #0b111a; border: 1px solid #3a4d65; border-radius: 10px; padding: 18px; }
    .center-result h3 { margin: 0 0 16px; font-size: 1.1rem; }
    .center-result dl { margin: 0; }
    .center-result dt { color: #abbace; margin-top: 12px; }
    .center-result dd { margin: 4px 0 0; overflow-wrap: anywhere; }
    .recent-checks { border-top: 1px solid #3a4d65; margin-top: 24px; padding-top: 20px; }
    .recent-checks h3 { margin: 0; font-size: 1.1rem; }
    .history-scroll { max-width: 100%; overflow-x: auto; margin-top: 16px; border: 1px solid #3a4d65; border-radius: 8px; }
    .history-scroll:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
    table { width: 100%; min-width: 700px; border-collapse: collapse; background: #0b111a; }
    caption { text-align: left; padding: 14px; color: #abbace; }
    th, td { padding: 14px; text-align: left; border-top: 1px solid #3a4d65; vertical-align: top; }
    thead th { background: #25354a; }
    tbody th { white-space: nowrap; }
    [hidden] { display: none !important; }
    .screen-stage { position: relative; height: clamp(260px, 38vw, 400px); width: 100%; margin-top: 20px; border: 1px solid #50637d; border-radius: 10px; overflow: hidden; background: #808080; }
    .screen-stage:focus-visible { outline: 3px solid #69e6cb; outline-offset: 4px; }
    .screen-stage[data-pattern='gray'] { background: #808080; }
    .screen-stage[data-pattern='black'] { background: #000; }
    .screen-stage[data-pattern='white'] { background: #fff; }
    .screen-stage[data-pattern='red'] { background: #f00; }
    .screen-stage[data-pattern='green'] { background: #0f0; }
    .screen-stage[data-pattern='blue'] { background: #00f; }
    .screen-stage[data-pattern='gradient'] { background: linear-gradient(to right, #000, #fff); }
    .screen-stage[data-pattern='checkerboard'] { background-color: #fff; background-image: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0); background-size: 32px 32px; }
    .screen-stage:fullscreen { width: 100vw; height: 100vh; margin: 0; border: 0; border-radius: 0; outline: none; }
    .screen-stage::backdrop { background: #000; }
    .screen-clean { cursor: none; }
    .screen-toolbar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 18px; background: #0b111a; color: #e8eef5; border: 1px solid #50637d; border-radius: 12px; box-shadow: 0 6px 30px #0006; }
    .screen-toolbar p { margin: 12px 0 0; font-size: .875rem; }
    .screen-toolbar .row + .row { margin-top: 12px; }
    .screen-toolbar select { flex: 1; }
    .screen-pattern-summary { margin-bottom: 0; }
    .audio-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
    .audio-channel { padding: 22px; border: 1px solid #3a4d65; border-radius: 12px; background: #0b111a; }
    .audio-channel.active { border-color: #69e6cb; background: #153c35; }
    .audio-channel h3 { margin: 0 0 8px; font-size: 1.2rem; }
    .audio-channel p { margin: 8px 0 16px; }
    .audio-channel button { width: 100%; }
    .audio-volume { margin-top: 20px; }
    .audio-volume input { flex: 1 1 180px; min-width: 100px; min-height: 44px; accent-color: #69e6cb; }
    .audio-volume output { width: 4ch; font-variant-numeric: tabular-nums; }
    .audio-volume input:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
    .mic-meter { padding: 24px; border-radius: 12px; background: #0b111a; border: 1px solid #3a4d65; margin-top: 20px; }
    .mic-meter label { display: block; font-weight: 700; }
    .mic-meter meter { height: 32px; margin: 14px 0; }
    .mic-meter .row { justify-content: space-between; }
    .mic-meter output { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
    @media (max-width: 560px) { .audio-channels { grid-template-columns: 1fr; } }
    @media (max-width: 560px) { .screen-toolbar { bottom: 8px; padding: 12px; } .screen-toolbar button, .screen-toolbar select { padding: 10px 12px; } }
    footer { font-size: .875rem; }
    @media (max-width: 700px) { main { padding: 24px 16px; } .grid, .center-results { grid-template-columns: 1fr; } .panel { padding: 18px; } }

    html { scroll-behavior: auto; }
    a { color: #69e6cb; }
    a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; border-radius: 4px; }
    .skip-link { position: absolute; left: 16px; top: -100px; background: #69e6cb; color: #071b18; padding: 12px 18px; z-index: 10; font-weight: 700; }
    .skip-link:focus { top: 12px; }
    .site-bar { border-bottom: 1px solid #2c394b; background: #0e1723; }
    .site-bar-inner { max-width: 1120px; margin: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
    .brand { color: #e8eef5; text-decoration: none; font-size: 1.125rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
    .brand-mark { width: 25px; height: 25px; border: 2px solid #69e6cb; border-radius: 7px; display: inline-grid; place-items: center; }
    .brand-mark::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #69e6cb; }
    .site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
    .site-nav a { padding: 10px 14px; color: #abbace; text-decoration: none; border-radius: 8px; }
    .site-nav a[aria-current='page'] { background: #25354a; color: #fff; }
    .site-nav a:hover { color: #fff; background: #1a293a; }
    .hero { padding: 28px 0 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
    .hero h1 { font-size: clamp(2.35rem, 5.8vw, 3.8rem); max-width: 650px; line-height: 1.08; margin: 16px 0 20px; }
    .hero-intro { font-size: 1.125rem; color: #abbace; max-width: 610px; }
    .hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: #abbace; font-size: .875rem; }
    .hero-notes span::before { content: '✓'; color: #69e6cb; margin-right: 7px; }
    .featured { background: linear-gradient(145deg, #17382f, #131d2b 75%); border-color: #38685b; margin: 0; }
    .featured h2 { font-size: 1.65rem; margin: 18px 0 12px; }
    .badge { display: inline-block; border-radius: 20px; padding: 5px 10px; font-size: .75rem; font-weight: 700; background: #183f35; color: #9af4d9; }
    .badge.planned { background: #25354a; color: #c5d1df; }
    .action-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 18px; min-height: 46px; background: #69e6cb; color: #071b18; border-radius: 8px; font-weight: 750; text-decoration: none; }
    .action-link:hover { background: #94f1dc; }
    .featured .action-link { width: 100%; margin-top: 14px; }
    .section-heading { margin: 24px 0 20px; }
    .section-heading h2 { font-size: 1.65rem; margin-bottom: 8px; }
    .section-heading p { margin: 0; }
    .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .tool-card { padding: 22px; border: 1px solid #2c394b; border-radius: 12px; background: #131d2b; }
    .tool-card h3 { font-size: 1.125rem; margin: 18px 0 8px; }
    .tool-card p { color: #abbace; margin: 0; }
    .how-it-works { margin-top: 36px; }
    .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-left: 24px; color: #abbace; }
    .steps li { padding-left: 4px; line-height: 1.6; }
    .steps strong { display: block; color: #e8eef5; margin-bottom: 6px; }
    .scope-note { border-top: 1px solid #2c394b; padding-top: 20px; margin-top: 28px; }
    .tool-header .back-link { display: inline-block; margin-bottom: 18px; font-size: .875rem; text-decoration: none; }
    .site-footer { max-width: 1120px; margin: auto; padding: 0 24px 28px; color: #abbace; }
    .site-footer-inner { border-top: 1px solid #2c394b; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .site-footer p { margin: 0; }
    @media (max-width: 850px) { .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; } .hero h1 { max-width: 720px; } .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 560px) { .site-bar-inner { padding: 16px; gap: 12px; } .site-nav a { padding: 10px 12px; } .tool-grid, .steps { grid-template-columns: 1fr; } .hero { padding-bottom: 24px; } .site-footer { padding-left: 16px; padding-right: 16px; } }

    h1[tabindex='-1']:focus { outline: none; }
    .available-tools, .planned-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-card .action-link { margin-top: 20px; }
    .input-pad { padding: 28px; border: 2px dashed #50637d; border-radius: 12px; background: #0b111a; text-align: center; }
    .input-pad:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-color: #69e6cb; }
    .input-pad strong { display: block; font-size: 1.15rem; }
    .input-pad p { margin: 10px 0 0; }
    .mouse-pad { position: relative; min-height: 240px; display: grid; place-content: center; overflow: hidden; user-select: none; background-image: radial-gradient(#25354a 1px, transparent 1px); background-size: 20px 20px; }
    .mouse-pad > :not(.mouse-dot) { pointer-events: none; }
    .mouse-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #69e6cb; box-shadow: 0 0 0 5px #69e6cb30; pointer-events: none; transform: translate(-50%, -50%); }
    .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
    .metric { background: #0b111a; border: 1px solid #2c394b; border-radius: 10px; padding: 16px; }
    .metric dt { color: #abbace; margin-bottom: 10px; }
    .metric dd { margin: 0; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .mouse-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
    .input-cell { background: #0b111a; border: 1px solid #3a4d65; border-radius: 8px; padding: 14px 10px; text-align: center; }
    .input-cell strong, .input-cell span { display: block; }
    .input-cell span { margin-top: 8px; font-size: .875rem; color: #abbace; }
    .input-cell.seen { border-color: #467668; }
    .input-cell.active { background: #153c35; border-color: #69e6cb; }
    .input-cell.active span { color: #b6f9e6; }
    .panel-heading { justify-content: space-between; margin-bottom: 16px; }
    .panel-heading h2 { margin: 0; }
    .keyboard-scroll { overflow-x: auto; margin-top: 20px; padding: 4px 2px 10px; }
    .keyboard-scroll:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
    .key-board { min-width: 800px; }
    .key-row { display: flex; gap: 6px; margin-bottom: 6px; }
    .key-cap { flex: 1 0 0; min-width: 40px; padding: 12px 5px; }
    .key-cap strong { font-size: .875rem; }
    .key-cap span { font-size: .7rem; margin-top: 8px; }
    .key-cap.wide { flex-grow: 1.7; }
    .key-cap.space { flex-grow: 6; }
    .key-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
    .key-groups h3 { font-size: 1rem; }
    .key-small-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .key-small-grid .key-cap { min-width: 0; overflow-wrap: anywhere; }
    .legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: .875rem; color: #abbace; }
    .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border: 1px solid #3a4d65; border-radius: 3px; margin-right: 7px; background: #0b111a; }
    .legend .legend-seen::before { border-color: #467668; }
    .legend .legend-held::before { background: #69e6cb; border-color: #69e6cb; }
    .tool-note { color: #abbace; font-size: .875rem; }
    @media (max-width: 700px) { .metric-grid { grid-template-columns: 1fr; } .key-groups { grid-template-columns: 1fr; } }
    @media (max-width: 560px) { .available-tools, .planned-tools { grid-template-columns: 1fr; } .input-pad { padding: 20px; } }
  
    .resources-nav { background: #0e1723; border-bottom: 1px solid #2c394b; }
    .resources-nav > div { max-width: 1120px; margin: auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
    .resources-nav a { font-size: .875rem; padding: 6px 0; color: #abbace; text-decoration: none; }
    .resources-nav a:hover, .resources-nav a[aria-current='page'] { color: #69e6cb; }
    .page-shell { max-width: 1440px; margin: auto; padding: 0 24px; }
    main { width: 100%; padding: 24px 0 36px; min-width: 0; }
    .panel { padding: 20px; margin-bottom: 16px; }
    .hero { padding: 12px 0 24px; gap: 28px; }
    .hero h1 { font-size: clamp(2.25rem, 5.3vw, 3.2rem); }
    .hero-intro { font-size: 1.0625rem; }
    .tool-header { padding-bottom: 18px; margin-bottom: 20px; }
    .tool-header .back-link { margin-bottom: 12px; }
    .small, .article-meta { font-size: .875rem; }
    .article-meta { color: #abbace; margin-top: 0; }
    .prose { max-width: 920px; line-height: 1.7; }
    .prose h2 { margin-top: 30px; font-size: 1.2rem; }
    .prose h2:first-child { margin-top: 0; }
    .prose li { margin: 10px 0; }
    .prose table { min-width: 0; table-layout: fixed; }
    .prose table th, .prose table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
    .prose table caption { text-align: left; margin-bottom: 12px; color: #abbace; }
    .article-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .article-grid .panel { display: flex; flex-direction: column; align-items: flex-start; }
    .article-grid h2 { margin-top: 18px; }
    .article-grid .action-link { margin-top: auto; }
    .faq-list details { border-bottom: 1px solid #2c394b; padding: 16px 0; }
    .faq-list details:first-child { padding-top: 0; }
    .faq-list details:last-child { border-bottom: 0; padding-bottom: 0; }
    .faq-list summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
    .faq-list summary:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
    .faq-list p { color: #abbace; margin-bottom: 0; }
    .legal-draft { border-left: 3px solid #a4b6ce; padding: 12px 16px; background: #1a2738; color: #c7d4e6; }
    .draft-label { background: #25354a; color: #c7d4e6; }
    .site-footer nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; max-width: 600px; }
    .site-footer nav a { color: #abbace; padding: 4px 0; text-decoration: none; }
    .site-footer nav a:hover { color: #69e6cb; }
    .ad-rail { padding-top: 120px; min-width: 0; }
    .ad-space { background: #0e1723; border: 1px solid #304156; border-radius: 10px; padding: 16px; }
    .ad-label { color: #a4b6ce; font-size: .875rem; margin: 0 0 12px; }
    .ad-placeholder { min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; color: #93a5bc; border: 1px dashed #3a4d65; border-radius: 6px; padding: 16px; }
    .ad-placeholder span { font-size: .875rem; }
    .partner-space { margin-top: 32px; padding: 18px; border: 1px solid #304156; border-radius: 10px; }
    .partner-space h2 { font-size: 1.1rem; line-height: 1.4; }
    .partner-space p { color: #abbace; }
    .lower-ad { max-width: 1120px; margin: 48px auto 36px; }
    .lower-ad .ad-placeholder { min-height: 96px; }
    .page-shell:not(.has-rail) { max-width: 1120px; }
    .ad-rail { padding-bottom: 24px; }
    @media (min-width: 1280px) { .page-shell.has-rail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 72px; } }
    @media (max-width: 1279px) { .page-shell { max-width: 1120px; } .ad-rail { padding-top: 48px; } .ad-rail .ad-placeholder { min-height: 120px; } .partner-space { margin-top: 20px; } }
    @media (max-width: 700px) { .page-shell { padding: 0 16px; } .panel { padding: 18px; } .article-grid { grid-template-columns: 1fr; } .resources-nav > div { padding: 6px 16px; } .lower-ad { margin: 48px 16px 28px; } }

    .camera-preview { aspect-ratio: 16 / 9; width: 100%; max-width: 900px; background: #070c13; border: 1px solid #304156; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
    .camera-preview video { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
    .camera-preview p { text-align: center; padding: 24px; color: #abbace; }
    #camera-device { max-width: 100%; min-width: 0; }

    #controller-report-text { display: block; width: 100%; max-width: 100%; margin-top: 8px; padding: 14px; border: 1px solid #50637d; border-radius: 8px; background: #0b111a; color: #e3eaf3; font: .875rem/1.5 ui-monospace, monospace; resize: vertical; }
