:root {
  color-scheme: light;
  font-family: "Segoe UI", "Yu Gothic UI", sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: #1f2937;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 20px;
}

.panel {
  background: #fff;
  border: 1px solid #d8e1eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.public {
  border-color: #dc2626;
}

.text-sm {
  display: inline-block;
  font-size: 0.8em;
}

.public h1 {
  margin-top: 0;
  font-size: 1.8rem;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #dc2626;
  text-underline-offset: 0.2em;
}

.lock h2 {
  margin-top: 0;
}

.lock form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.lock label {
  display: block;
  font-weight: 600;
}

.lock input {
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.lock button {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.lock button:hover {
  background: #1d4ed8;
}

.status {
  margin-top: 14px;
  color: #475569;
}

.status.error {
  color: #b91c1c;
  font-weight: 600;
}

.lock.hidden {
  display: none;
}

.private.hidden {
  display: none;
}

.private h2 {
  margin-top: 0;
  text-align: center;
}

.private .secret-card {
  padding: 16px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.secret-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: fit-content;
  max-width: 100%;
}

.secret-table th,
.secret-table td {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  text-align: center;
}

@media (max-width: 640px) {
  .lock form {
    flex-direction: column;
    align-items: stretch;
  }

  .lock input {
    min-width: 0;
    width: 100%;
  }
}
