* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1c2530;
}
.page {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
h1 {
  margin-top: 0;
}
.lead {
  color: #546274;
  margin-bottom: 20px;
  line-height: 1.45;
}
.form label {
  display: block;
  margin-bottom: 16px;
}
.form span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
input,
textarea,
select,
button {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}
textarea {
  resize: vertical;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.section-title {
  margin: 28px 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.section-note {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}
.checkbox {
  display: flex !important;
  gap: 10px;
  align-items: center;
}
.checkbox input {
  width: auto;
  margin-top: 0;
}
.checkbox span {
  margin-bottom: 0;
  font-weight: 400;
}
.actions {
  margin-top: 12px;
}
.upload-progress {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #f8fbff;
}
.upload-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dbe7fb;
  overflow: hidden;
}
.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  transition: width 0.2s ease;
}
.upload-progress-hint {
  margin-top: 10px;
  margin-bottom: 0;
}
button {
  background: #1d4ed8;
  border: none;
  color: #fff;
  cursor: pointer;
}
button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.hint {
  margin-top: -8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}
.message,
.status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
}
.message.ok {
  background: #eaf8ea;
  color: #145c14;
}
.message.err {
  background: #fdeaea;
  color: #7d1717;
}
.status {
  background: #eef4ff;
  color: #15396b;
}
.status-error {
  margin-top: 8px;
  color: #8f1d1d;
}
.hidden {
  display: none;
}
@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr;
  }
}
