:root {
  --cream: #f6f1e4;
  --ink: #232019;
  --olive: #3c3d29;
  --olive-dark: #24261a;
  --amber: #d98e1f;
  --amber-dark: #b5730f;
  --line: #d8cfb6;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

.site-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

.site-header h1 {
  margin: 0 0 0.4rem;
  color: var(--olive-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  max-width: 60ch;
  color: var(--olive);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.panel {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.panel h2 {
  margin-top: 0;
  color: var(--olive-dark);
  font-size: 1.1rem;
}

.hint {
  color: var(--olive);
  font-size: 0.92rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

textarea, input[type="file"] {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem;
  background: #fffefb;
  color: var(--ink);
}

textarea:disabled, input:disabled, button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mapping-details {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.mapping-details summary {
  cursor: pointer;
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

button {
  border: 1px solid var(--amber-dark);
  background: var(--amber);
  color: #241a05;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--amber-dark);
  color: #fff8ea;
}

#cancel, #clear {
  background: transparent;
  color: var(--olive-dark);
  border-color: var(--line);
}

#status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--olive-dark);
}

#status[data-tone="error"] {
  color: #9a2c1d;
  font-weight: 600;
}

.placeholder {
  color: #8a8471;
}

.manifest-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.manifest-table th, .manifest-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.4rem;
}

#download {
  display: inline-block;
  margin-top: 1rem;
  background: var(--olive-dark);
  color: #fff8ea;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
  color: var(--olive);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--amber-dark);
}

.profile{max-width:1160px;margin:2rem auto;padding:1.8rem 2rem;border-top:1px solid #cbc8b4;line-height:1.65}.profile p{max-width:80ch}.eyebrow{font-size:.72rem;letter-spacing:.1em}.site-header>a{color:inherit;font-weight:650}

[hidden] { display: none !important; }

.layout > *, .field { min-width: 0; }
.panel, .profile { overflow-wrap: anywhere; }
textarea, input[type="file"] { min-width: 0; max-width: 100%; }
