:root { --beam-orange: #e25303; --beam-charcoal: #383e42; }
.device-remembered-offline .device-picture { opacity: .45; }
.device-offline { filter: grayscale(1); }
#loading_overlay_spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #d4d6d7; border-top-color: #383e42; border-radius: 50%; vertical-align: middle; animation: discovery-spin 900ms linear infinite; }
.device-enter { animation: discovery-enter 280ms ease-out; }
@keyframes discovery-spin { to { transform: rotate(360deg); } }
@keyframes discovery-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { #loading_overlay_spinner, .device-enter { animation: none; } }
.device-network { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #656b70; font-size: 12px; margin: 0 0 12px; }
.device-network-interface { display: inline-flex; gap: 5px; align-items: center; }
.device-network-icon { font-family: 'Device Font Awesome'; font-weight: 900; }
/* Font Awesome Free brands font: SIL OFL 1.1, Copyright Fonticons, Inc. */
@font-face { font-family: 'Device Font Awesome Brands'; src: url('../fonts/fa-brands-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
.device-usb-icon { font-family: 'Device Font Awesome Brands'; font-weight: 400; }
.device-network-signal { flex-basis: 100%; }
.device-network-warning { font-size: 12px; padding: 8px; color: #824209; background: #fff3df; border-radius: 5px; }
.device-update-available { display: inline-block; vertical-align: baseline; padding: 1px 5px; border-radius: 4px; background: #e5f0fb; color: #1769aa; font-size: 10px; line-height: 1.4; font-weight: bold; margin-left: 7px; white-space: nowrap; }
.device-history-status { font-size: 12px; color: #656b70; }
.device-forget, .device-retry-address { position: relative; z-index: 3; align-self: flex-start; margin-top: 12px; }
.device-history-controls { grid-column: 1 / -1; text-align: center; }
/* Keep history removal visible and quiet, with normal keyboard button behavior. */
.device-history-action { appearance: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; color: #70767a; font: inherit; font-size: 12px; line-height: 1.5; text-decoration: underline; text-decoration-color: #c4c7c9; text-underline-offset: 3px; cursor: pointer; }
.device-forget { display: block; margin-top: 16px; }
.device-forget-all { font-size: 13px; }
.device-history-action:hover { color: var(--beam-charcoal); text-decoration-color: currentColor; }
.device-history-action:focus-visible { outline: 2px solid var(--beam-charcoal); outline-offset: 4px; border-radius: 2px; }
html, body { min-height: 100%; margin: 0; background: #f7f7f6; }
#loading_overlay { position: relative; min-height: 100vh; height: auto; background: #f7f7f6; }
.loading_overlay_background { display: none; }
.loading_overlay_wrapper { position: relative; inset: auto; padding: 65px 24px 80px; }
.loading_overlay_wrapper .loading_overlay_outer { display: block; height: auto; }
.loading_overlay_wrapper .loading_overlay_outer .loading_overlay_inner { display: block; padding-top: 0; }
.loading_overlay_content > svg { width: min(460px, 85%); height: auto; margin-bottom: 28px; }
.loading_overlay_text { color: var(--beam-charcoal); }
#discovered { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 340px)); justify-content: center; gap: 24px; max-width: 1120px; margin: 28px auto; padding: 0; }
.device-card { position: relative; background: white; border: 1px solid #dddeda; border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 6px 20px #383e4208; display: flex; flex-direction: column; transition: transform 180ms ease, box-shadow 180ms ease; }
.device-picture { background: #fff; padding: 12px 20px 0; display: flex; align-items: center; }
.device-image { width: 100%; height: 215px; object-fit: contain; }
.device-picture-bundle .device-image { width: 72%; }
.device-filter-image { width: 28%; height: 155px; object-fit: contain; align-self: flex-end; margin-bottom: 12px; }
.device-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.device-model { display: flex; align-items: center; gap: 8px; min-height: 25px; font-size: 13px; font-weight: bold; color: #a63e03; margin: 0 0 8px; }
.device-head-logo { height: 22px; width: auto; max-width: 42px; margin-left: 8px; vertical-align: -2px; }
.device-name { font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: var(--beam-charcoal); overflow-wrap: anywhere; }
/* Font Awesome Free 6.3.0, Copyright 2023 Fonticons, Inc.
   Font license: SIL OFL 1.1 — https://fontawesome.com/license/free */
@font-face { font-family: 'Device Font Awesome'; src: url('../fonts/fa-solid-900.woff2') format('woff2'); font-weight: 900; font-display: block; }
.device-version { color: #656b70; font-size: 13px; margin: 0 0 18px; }
.device-job-status { font-family: 'Device Font Awesome'; font-weight: 900; margin-left: 9px; position: relative; z-index: 2; }
.device-job-idle { color: #287a46; }
.device-job-running { color: #1769aa; }
.device-job-offline { color: #777; }
.device-job-offline::after { content: ''; position: absolute; width: 17px; height: 2px; background: currentColor; left: -2px; top: 7px; transform: rotate(-45deg); }
.device-note { font-size: 12px; line-height: 1.5; color: #656b70; margin: 8px 0; }
.device-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.device-card-link:focus-visible { outline: 3px solid #a63e03; outline-offset: -4px; }
@media (hover: hover) { .device-card:has(.device-card-link):hover { transform: scale(1.035); box-shadow: 0 12px 32px #383e4226; z-index: 2; } }
@media (prefers-reduced-motion: reduce) { .device-card { transition: none; } .device-card:has(.device-card-link):hover { transform: none; } }
.device-address { font-size: 12px; color: #656b70; text-align: center; margin: 8px 0 0; overflow-wrap: anywhere; }
.device-calibration { position: relative; z-index: 3; margin-top: 12px; }
.discovery-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10001; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; background: #f7f7f6; border-top: 1px solid #dddeda; }
.discovery-footer .loading_overlay_setting_link { position: static; }
.discovery-footer { justify-content: flex-end; }
.discovery-footer .loading_overlay_setting_link:first-child { margin-right: 0; }
.device-status-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  padding: .2em 2em;
  background: #1769aa;
  color: white;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .06em;
  transform: rotate(16deg) translate(1em, -20px);
  text-align: right;
}
.loading_overlay_text_small { color: #656b70; }
.preview-banner { background: #383e42; color: white; text-align: center; padding: 8px; font: 13px Arial, sans-serif; }
.preview-banner a { color: #ffd1b7; }
@media (max-width: 600px) { .loading_overlay_wrapper { padding: 32px 16px 85px; } #discovered { grid-template-columns: minmax(0, 380px); } }
