* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #050608;
  color: #f7f7f2;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

#camerafeed {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  touch-action: none;
}

.panel {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(92vw, 520px);
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.panel.is-compact {
  top: 14px;
  bottom: auto;
  width: min(92vw, 430px);
  padding: 12px 14px;
  pointer-events: none;
}

.panel.is-compact h1,
.panel.is-compact .launcher,
.panel.is-compact .hint {
  display: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  margin: 0;
  line-height: 1.5;
}

.launcher {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #c9d3dd;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #27d6a4;
  color: #06100d;
  font: 700 15px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.hint {
  margin-top: 12px;
  color: #aab4bf;
  font-size: 12px;
  line-height: 1.5;
}

code {
  color: #ffffff;
}
