*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 16px;
  background: #f7f7f7;
  color: #222;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.container.container-sm {
  max-width: 420px;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.inline-row {
  gap: 10px;
  flex-wrap: wrap;
}

.inline-row > select,
.inline-row > input {
  flex: 1 1 140px;
  min-width: 120px;
  margin-bottom: 5px
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

button {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  background: #2563eb;
  color: #fff;
}

button.secondary {
  background: #059669;
}

button.third {
  background: #7c3aed;
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  display: none;
  white-space: pre-wrap;
}

.result.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.result.ng {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.error-box {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

hr.section-line {
  margin: 28px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.pop-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pop-modal h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.pop-hidden {
  display: none;
}

.user-number-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-number-box input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 8px;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .page {
    padding: 12px 0;
  }

  .container {
    padding: 16px;
    border-radius: 10px;
  }

  h1 {
    font-size: 22px;
  }

  .inline-row {
    flex-direction: column;
    gap: 8px;
  }

  .inline-row > select,
  .inline-row > input {
    min-width: 100%;
    margin-bottom: 5px
  }

  .buttons {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}