:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #1d1f1b;
  --panel-soft: #26291f;
  --text: #f5f1e8;
  --muted: #b8b09d;
  --line: #3a3d31;
  --mint: #9bd8b5;
  --amber: #f1bc62;
  --red: #e66f63;
  --ink: #080907;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(155, 216, 181, 0.10), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 28px),
    var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.shell.compact {
  width: min(720px, calc(100% - 32px));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 230px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.brief {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.stamp {
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  border: 4px double var(--red);
  color: var(--red);
  transform: rotate(-8deg);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.stamp span {
  display: block;
  font-size: 2rem;
}

.status-line {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 31, 27, 0.76);
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 31, 27, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.panel-header {
  margin-bottom: 20px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 700;
}

fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

legend {
  padding: 0 8px;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #12140f;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(155, 216, 181, 0.14);
}

textarea {
  resize: vertical;
}

.check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 650;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mint);
}

button {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary {
  width: 100%;
  background: var(--mint);
  color: var(--ink);
}

.button-stack {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.danger {
  background: var(--red);
  color: var(--ink);
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #12140f;
  color: var(--text);
  line-height: 1.55;
}

.result.empty {
  color: var(--muted);
}

.result h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.result dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.result dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result dd {
  margin: 0;
}

.roster-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.copy-row,
.token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.copy-row input {
  font-size: 0.9rem;
}

.token-row {
  align-items: end;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-bottom: 24px;
  }

  .stamp {
    width: 132px;
    justify-self: start;
  }

  .stamp span {
    font-size: 1.55rem;
  }

  .copy-row,
  .token-row {
    grid-template-columns: 1fr;
  }
}
