:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #252525;
  background: #fafafa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 28px 20px;
}

main { width: 100%; max-width: 460px; margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
h1 { font-size: 20px; font-weight: 600; margin: 0; }
h2 { font-size: 14px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
label { display: block; margin-bottom: 6px; }
.line { display: flex; gap: 8px; }

input, button { font: inherit; border: 1px solid #bcbcbc; border-radius: 3px; padding: 8px 10px; }
input { width: 100%; min-width: 0; background: white; }
button { flex-shrink: 0; color: inherit; background: #f0f0f0; cursor: pointer; }
button:hover { background: #e6e6e6; }
button:disabled { cursor: wait; opacity: 0.6; }
:focus-visible { outline: 2px solid #555; outline-offset: 2px; }

.device { border-top: 1px solid #d6d6d6; padding-top: 16px; margin-top: 16px; }
.received, .status, .note { color: #666; font-size: 12px; line-height: 1.5; }
.received { margin: 4px 0 8px; }
.status { margin: 8px 0 0; }
.status:empty { display: none; }
.status.error { color: #a12222; }
.note { margin: 20px 0 0; }

pre {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
  background: white;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  margin: 0 0 14px;
  padding: 10px;
  min-height: 42px;
}
