@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #23342e;
  background: #f6f5ee;
  --green: #244d3e;
  --muted: #69756c;
  --border: #d5dbd1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1160px;
  margin: auto;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
a {
  color: var(--green);
}
.brand {
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  display: inline-grid;
  place-items: center;
  background: #dceb91;
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
main {
  max-width: 1060px;
  margin: auto;
  padding: 58px 36px 30px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 20px 0;
}
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 30px;
}
.open {
  position: absolute;
  top: 193px;
  margin-left: 590px;
  width: 300px;
}
.open label {
  font-size: 13px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.open input {
  width: 100px;
  letter-spacing: 0.1em;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
input,
textarea {
  font: inherit;
  border: 1px solid var(--border);
  background: #fffefa;
  color: inherit;
  border-radius: 7px;
  padding: 12px;
  width: 100%;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #244d3e15;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 13px 18px;
  background: var(--green);
  color: white;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
#drop:focus-visible {
  outline: 3px solid #85a78e;
  outline-offset: 3px;
}
.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--green);
}
.danger {
  background: #923f37;
  color: white;
}
.publish-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 36px;
}
#drop {
  border: 1.5px dashed #a4b49d;
  border-radius: 12px;
  background: #eef0e4;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  padding: 20px;
  text-align: center;
}
#drop.drag {
  background: #dfe9c9;
  border-color: var(--green);
}
#drop span:not(.upload-icon) {
  color: var(--muted);
  font-size: 13px;
}
.upload-icon {
  font-size: 32px;
  color: var(--green);
}
#file-label {
  max-width: 350px;
  overflow-wrap: anywhere;
}
.publish-fields label:not(:first-child) {
  margin-top: 20px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
#publish-button {
  width: 100%;
  margin-top: 8px;
}
#status {
  min-height: 24px;
  font-size: 14px;
  color: #923f37;
}
#result {
  margin-top: 30px;
  padding: 24px;
  background: #dfebce;
  border-radius: 9px;
}
#result span {
  font-size: 11px;
  letter-spacing: 0.1em;
}
#result-link {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
footer {
  max-width: 1060px;
  margin: 20px auto;
  padding: 24px 36px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
#manage .row {
  max-width: 600px;
}
#managed-site {
  margin-top: 32px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}
.toolbar input {
  max-width: 360px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--muted);
  font-size: 11px;
}
td input[type="checkbox"] {
  width: auto;
}
td button {
  padding: 8px 12px;
}
.codes-section {
  margin-top: 48px;
}
.batch-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.batch-fields label {
  margin: 0;
}
.batch-fields label:nth-child(4) {
  grid-column: span 2;
}
#code-output {
  min-height: 160px;
  font-family: monospace;
}
.batch {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.batch strong {
  flex: 1;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 440px;
  padding: 28px;
  background: #f6f5ee;
  color: inherit;
}
dialog::backdrop {
  background: #20372c70;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .open {
    position: static;
    margin: 26px 0;
    width: auto;
  }
  .publish-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  main {
    padding-top: 35px;
  }
  .batch-fields {
    grid-template-columns: 1fr 1fr;
  }
  .batch-fields label:nth-child(4) {
    grid-column: span 1;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  header {
    padding: 22px;
  }
  nav {
    gap: 14px;
    font-size: 12px;
  }
}
@media (max-width: 500px) {
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .batch-fields {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 19px;
  }
  h1 {
    font-size: 45px;
  }
}
