/* Activate page — BRKRs site tokens; chrome comes from ../../assets/css/brkrs.css */

.activate-page {
  --accent: var(--green);
  --ok: var(--green);
  --err: var(--red);
  --border: var(--line);
  --ink: #090c0e;
  --panel: rgba(16, 20, 24, 0.82);
}

.activate-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 48px;
}

.page-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.page-label span,
.eyebrow,
.intro figcaption,
.intro-tags,
.track-step,
.activate-footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.page-label span,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-label a:hover {
  color: var(--green);
}

.intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 8px 0 26px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  margin: 0 0 16px;
}

.activate-page h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: none;
}

.intro-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 20px;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro-tags span {
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 3px;
}

.intro figure {
  margin: 0;
  text-align: center;
  justify-self: center;
}

.intro figure img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  image-rendering: pixelated;
}

.intro figcaption {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.07em;
}

#cfgGate {
  margin: 0 0 22px;
  font-size: 0.85rem;
}

.warn,
.err,
.okbox {
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  background: rgba(197, 137, 81, 0.1);
  font-size: 0.95rem;
}

.err {
  border-left-color: var(--red);
  background: rgba(216, 64, 50, 0.1);
  color: #ff9b92;
}

.okbox {
  border-left-color: var(--green);
  background: rgba(67, 255, 176, 0.08);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
}

.activate-page .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  margin-bottom: 0;
  min-width: 0;
}

.activate-page .card h2 {
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 24px;
}

.activation-card {
  border-top: 2px solid var(--green);
}

.activate-page .card .eyebrow {
  margin-bottom: 10px;
}

.activate-page label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.activate-page input,
.activate-page textarea,
.activate-page button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.activate-page input {
  min-height: 45px;
}

.activate-page textarea {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  min-height: 140px;
  resize: vertical;
  margin-top: 0.35rem;
}

.activate-page button {
  margin-top: 0.75rem;
  background: var(--green);
  color: #02100a;
  font-weight: 750;
  min-height: 44px;
  cursor: pointer;
  border: none;
}

.activate-page button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.activate-page button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.activate-page button:not(:disabled):hover {
  filter: brightness(1.13);
}

.activate-page :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.wallet-card .row {
  grid-template-columns: 1fr;
}

.wallet-card .connect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .wallet-card .connect-row {
    grid-template-columns: 1fr;
  }
}

.owned {
  margin: 24px 0 18px;
  min-height: 70px;
}

.choose-heading {
  font-size: 1rem;
  margin: 0 0 12px;
}

.field-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.55;
}

.preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 86px;
  margin-bottom: 20px;
}

.preview img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #050607;
}

#statusLine {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0.85rem 0 0.25rem;
}

.track-step {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 9px 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-step.active {
  background: transparent;
  color: var(--green);
  border-color: rgba(67, 255, 176, 0.55);
}

.track-step.done {
  background: rgba(67, 255, 176, 0.1);
  color: var(--green);
  border-color: rgba(67, 255, 176, 0.4);
}

.progress-message {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(67, 255, 176, 0.05);
  border-left: 2px solid var(--green);
  font-size: 0.85rem;
  line-height: 1.65;
}

.permanent {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 20px 0 12px;
}

.permanent strong {
  color: var(--text);
}

.brief {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 35px;
  padding: 42px 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.brief h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0;
}

.brief h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.brief p:not(.eyebrow) {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.support {
  padding-top: 25px;
}

.support .card {
  margin: 0 0 10px;
  padding: 18px 22px;
  background: rgba(16, 20, 24, 0.4);
}

.support details {
  margin: 0;
}

.support summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.support details[open] > summary {
  margin-bottom: 16px;
}

.support details p {
  font-size: 0.85rem;
}

.support .nested {
  margin-top: 18px;
}

.support #agentIdInput {
  margin-bottom: 16px;
}

.support label {
  margin-top: 16px;
}

.support label:first-of-type {
  margin-top: 0;
}

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

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-height: 390px;
  overflow: auto;
  padding: 5px;
}

.artwork-grid .chip {
  padding: 7px;
  border-radius: 4px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin-top: 0;
  text-align: left;
  white-space: normal;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.artwork-grid .chip.activated {
  border-color: color-mix(in srgb, var(--green) 70%, var(--line));
}

.artwork-grid .chip.pending-index {
  border-color: color-mix(in srgb, #c9a227 75%, var(--line));
}

.artwork-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #050607;
  border-radius: 2px;
}

.artwork-grid .chip-id {
  display: block;
  padding: 8px 2px 0;
  font-size: 0.76rem;
}

.artwork-grid .chip-status {
  display: block;
  padding: 2px 2px 2px;
  font-size: 0.62rem;
  line-height: 1.3;
  color: var(--muted);
}

.artwork-grid .chip.activated .chip-status {
  color: var(--green);
}

.artwork-grid .chip.pending-index .chip-status {
  color: #c9a227;
}

.artwork-grid span {
  display: block;
  padding: 8px 2px 2px;
  font-size: 0.76rem;
}

.artwork-grid .chip-id {
  padding-bottom: 0;
}

.artwork-grid .active {
  border: 2px solid var(--green);
  background: rgba(67, 255, 176, 0.1);
}

.steps {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink);
}

.step button {
  margin-top: 0;
  width: auto;
  min-width: 140px;
}

.step-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cfg {
  display: grid;
  gap: 0.45rem;
}

.cfg-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.pill.ready {
  color: var(--green);
  border-color: rgba(67, 255, 176, 0.45);
}

.pill.wait {
  color: var(--amber);
  border-color: rgba(197, 137, 81, 0.45);
}

code {
  background: var(--ink);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
  word-break: break-all;
}

#log,
.technical-status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  max-height: 280px;
  overflow: auto;
  background: var(--ink);
  padding: 1rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  margin: 0.75rem 0 0;
}

.technical-status {
  max-height: none;
  margin-top: 18px;
}

.activate-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 12px;
  font-size: 0.68rem;
  color: var(--muted);
}

.activate-footer a:hover {
  color: var(--green);
}

#gateMsg {
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.opensea-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--fg, inherit);
  font-size: 0.88rem;
  line-height: 1.45;
}

.opensea-tip[hidden] {
  display: none;
}

.opensea-tip strong {
  display: block;
  margin-bottom: 0.35em;
  font-weight: 600;
}

@media (max-width: 760px) {
  .activate-wrap {
    padding: 0 18px 40px;
  }

  .page-label span {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding-top: 8px;
  }

  .intro figure img {
    width: 130px;
    height: 130px;
  }

  .intro figcaption {
    max-width: 130px;
    font-size: 0.5rem;
  }

  .intro-copy {
    font-size: 0.92rem;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .brief {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .activate-page .card {
    padding: 22px;
  }

  .activate-footer {
    flex-direction: column;
    gap: 8px;
  }

  .cfg-row {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro figure {
    display: none;
  }

  .activate-page h1 {
    font-size: 3rem;
  }

  .preview {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .preview img {
    width: 60px;
    height: 60px;
  }

  .track {
    grid-template-columns: 1fr 1fr;
  }
}
