:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #f0f6fc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: #0d1117; }

body { padding-bottom: env(safe-area-inset-bottom); }

header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

header div { display: grid; gap: 2px; }
header strong { font-size: 17px; }
#status { color: #8b949e; font-size: 12px; }

button {
  border: 1px solid #30363d;
  border-radius: 9px;
  background: #21262d;
  color: #f0f6fc;
  padding: 8px 12px;
}

main { padding: 12px; }

#viewer {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: 12px;
  background: #010409;
  min-height: 240px;
}

#screen {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8b949e;
  text-align: center;
}

#hint {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 2px 0;
}

.error { color: #ff7b72 !important; }
.ok { color: #3fb950 !important; }

