:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

.header {
  max-width: 1160px;
  margin: 22px auto 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  color: #1f2937;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.header-title p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.header-link:hover {
  background: #f9fafb;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 0 26px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #ececec;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.card-subtitle {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 14px;
}

.full-width {
  grid-column: 1 / -1;
}

.section {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #f8f8f8;
  padding: 16px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97316;
}

.field-stack {
  display: grid;
  gap: 10px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
  color: #1f2937;
}

label .helper {
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7c2d12;
  box-shadow: 0 0 0 3px rgba(124, 45, 18, 0.15);
}

input[type="file"] {
  padding: 7px 10px;
  cursor: pointer;
  background: #fff;
}

.hint {
  font-size: 12px;
  color: #6b7280;
}

.hint strong {
  color: #4b5563;
}

button {
  border: none;
  background: #7c2d12;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #9a3412;
}

.cta-button {
  background: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  background: #ea580c;
}

.actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.actions-row .muted {
  color: #6b7280;
  font-size: 13px;
}

.message {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid transparent;
}

.message.success {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.message.info {
  background: #f8f8f8;
  color: #4b5563;
  border-color: #ececec;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .actions-row button {
    width: 100%;
  }
}
