:root {
  --ink: #0c2b2a;
  --paper: #f7f5ef;
  --canvas: #e7e5dd;
  --line: #e3e0d4;
  --muted: #7d7c72;
  --teal: #006664;
  --mint: #6abd9f;
  --lime: #97bf0d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--teal);
}
.brand span {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
}

.panel h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checkboxes {
  display: flex;
  gap: 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
}
.btn-primary:hover { background: #004b4a; }

.btn-secondary {
  background: var(--lime);
  color: var(--teal);
}
.btn-secondary:hover { background: #85a80c; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(0,0,0,0.05); }

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  min-height: 18px;
}
.status.error { color: #a6402f; }
.status.ok { color: var(--teal); }

.preview-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

#previewFrame {
  width: 100%;
  max-width: 794px;
  height: 1123px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
