* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
}
header { padding: 16px 24px; border-bottom: 1px solid #262a33; }
h1 { margin: 0; font-size: 20px; }
.hint { margin: 4px 0 0; color: #9aa3b2; font-size: 14px; }
main { display: flex; gap: 24px; padding: 24px; flex-wrap: wrap; align-items: flex-start; }
.panel {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #171a21;
  padding: 16px;
  border-radius: 10px;
}
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
input, select, button {
  font: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #333a46;
  background: #0f1115;
  color: inherit;
}
button { cursor: pointer; background: #2563eb; border: none; }
button:disabled { background: #333a46; cursor: default; }
.row { display: flex; gap: 8px; }
.status { min-height: 1.4em; color: #b8c1d1; font-size: 14px; }
pre { font-size: 12px; max-height: 300px; overflow: auto; }
.device { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.screen-wrap { position: relative; height: min(80vh, 900px); aspect-ratio: 9 / 16; }
#screen {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  border-radius: 12px;
}
.surface {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  cursor: default;
  border-radius: 12px;
}
.surface:focus-visible { box-shadow: 0 0 0 2px #2563eb; }
.navbar { display: flex; gap: 12px; }
.navbar button { width: 56px; background: #262a33; }
