:root {
  --ink: #18130f;
  --muted: #766b61;
  --line: #e7ded4;
  --paper: #fffdf9;
  --warm: #d69a37;
  --warm-dark: #9c651d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.token-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.token-panel {
  width: min(1040px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(22px, 4vw, 46px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.intro {
  margin: 34px 0 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: .92;
}

.intro p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 14px;
}

.admin-form,
.create-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
select,
button {
  min-height: 52px;
  border: 1px solid #d9c7b2;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

input,
select {
  width: 100%;
  padding: 0 15px;
}

button {
  cursor: pointer;
  border-color: var(--warm);
  background: var(--warm);
  color: #1b1208;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  font-weight: 950;
}

button:hover {
  background: #e5ad4b;
}

.wide {
  grid-column: span 2;
}

.status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: #8b2c1b;
  font-weight: 800;
}

.status.good {
  margin: 18px 0 0;
  color: #356b2f;
}

.manager {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.token-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.token-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.token-title {
  margin: 0 0 6px;
  font-weight: 950;
}

.token-meta {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #3b2b20;
  font-size: .86rem;
}

.token-item button {
  min-width: 128px;
  background: #fff;
}

.empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .admin-form,
  .create-form,
  .token-item {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .token-item button {
    width: 100%;
  }
}
