* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: #e0e5ec;
  color: #334155;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1, h2 {
  text-align: center;
  font-size: 1.4rem;
  color: #475569;
}

.card {
  background: #e0e5ec;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

input {
  background: #e0e5ec;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  color: #334155;
  box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}

.btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

button {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  border-radius: 12px;
  background: #e0e5ec;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  transition: all 0.15s ease;
}

button:active, button.active {
  box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}

.cam-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-box.hidden {
  display: none;
}

.stat {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  background: #e0e5ec;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item video {
  border-radius: 8px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.actions button {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn-del {
  color: #e11d48;
}