:root {
  color: #1c2430;
  background: #f4f6f8;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 48px;
}

main {
  max-width: 40rem;
  margin: 0 auto;
}

h1 { font-size: 1.4rem; margin: 0 0 8px; }

h2 { font-size: 1.1rem; margin: 28px 0 8px; }

a { color: #0b57d0; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-size: 0.95rem;
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5ced8;
  border-radius: 8px;
  background: #fff;
}

textarea { resize: vertical; }

.row, .links, .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs { margin: 4px 0 16px; }

.tabs button[aria-selected="false"] { background: #3d4d5f; }

[hidden] { display: none !important; }

button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #0b57d0;
  color: #fff;
  cursor: pointer;
}

button:disabled {
  background: #9aa8b8;
  cursor: not-allowed;
}

button.secondary { background: #3d4d5f; }

.warn {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e5;
  color: #8a3b00;
  font-weight: 600;
}

.note { color: #526173; font-size: 0.9rem; }

.meter {
  height: 10px;
  border-radius: 99px;
  background: #d5dde6;
  overflow: hidden;
}

#volume-bar,
[data-field="volume-bar"] {
  width: 0;
  height: 100%;
  background: #1f7a4d;
}

#status,
[data-field="status"] {
  min-height: 1.5em;
  padding: 8px 0;
  font-weight: 600;
}

#camera-preview,
[data-field="camera-preview"] {
  margin-top: 8px;
  background: #111;
  min-height: 0;
}

#camera-preview video,
[data-field="camera-preview"] video {
  width: 100%;
  max-height: 240px;
  background: #111;
}

.check { flex-direction: row; align-items: center; }

pre {
  padding: 12px;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d5dde6;
}

.banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fde8e8;
  color: #8d1d1d;
}
