:root {
  color: #eef8ff;
  background: #07111f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #07111f;
  --panel: rgba(12, 25, 41, 0.88);
  --panel-2: rgba(255, 255, 255, 0.06);
  --ink: #eef8ff;
  --muted: #8fb2c8;
  --cyan: #4eeeff;
  --mint: #75ffb8;
  --gold: #ffd36a;
  --line: rgba(142, 236, 255, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 8%, rgba(78, 238, 255, 0.16), transparent 32%),
    radial-gradient(circle at 92% 22%, rgba(117, 255, 184, 0.11), transparent 28%),
    linear-gradient(180deg, #07111f, #030710 78%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
}

.shell {
  width: min(820px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.hero,
.composer,
.claim-kit,
.receipt,
.bar article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

.hero {
  min-height: 178px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.mark {
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #07111f;
  background:
    radial-gradient(circle at 35% 25%, #ffffff 0 10%, transparent 22%),
    linear-gradient(135deg, var(--gold), var(--cyan) 52%, var(--mint));
  font-weight: 950;
}

.system-line,
label span,
.label,
.receipt-head span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 8px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin: 0;
  color: #d7f7ff;
  font-size: 15px;
  line-height: 1.45;
}

.bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bar article {
  min-height: 118px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.bar b {
  color: var(--gold);
  font-size: 14px;
}

.bar span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.composer,
.claim-kit,
.receipt {
  display: grid;
  gap: 12px;
  padding: 12px;
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(78, 238, 255, 0.34);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(78, 238, 255, 0.12);
}

.track-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.track-grid button {
  min-height: 92px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel-2);
  text-align: left;
}

.track-grid button.active {
  border-color: var(--gold);
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--mint));
}

.track-grid b {
  font-size: 15px;
}

.track-grid span {
  opacity: 0.78;
  font-size: 12px;
  line-height: 1.3;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.file-box {
  padding: 12px;
  border: 1px dashed rgba(78, 238, 255, 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.file-box input {
  padding: 10px;
  border-style: dashed;
}

.file-box small {
  color: #c6f5ff;
  font-size: 12px;
  line-height: 1.4;
}

.actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.actions button,
.receipt-head button {
  border: 1px solid var(--line);
  color: #d9f7ff;
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 820;
}

.actions .primary {
  border-color: var(--cyan);
  color: #07111f;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mint);
}

.receipt-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  word-break: break-all;
}

.seal {
  min-width: 72px;
  min-height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 255, 184, 0.48);
  border-radius: 8px;
  color: var(--mint);
  background: rgba(117, 255, 184, 0.08);
  font-size: 11px;
  font-weight: 950;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.checklist div {
  min-height: 72px;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
}

.checklist div.done {
  border-color: rgba(117, 255, 184, 0.48);
  color: var(--mint);
  background: rgba(117, 255, 184, 0.08);
}

.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.posts textarea {
  min-height: 142px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d9f7ff;
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.links a:first-child {
  border-color: var(--gold);
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), var(--mint));
}

pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #c6f5ff;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  line-height: 1.45;
}

.status {
  margin: 0;
  padding: 4px 2px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .mark {
    width: 66px;
    border-radius: 18px;
  }

  .bar,
  .track-grid,
  .two,
  .posts {
    grid-template-columns: 1fr;
  }

  .actions,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
