:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #141b18;
  color: #f6faf1;
  --lime: #bfff00;
  --line: #465447;
  --muted: #c2cec2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1160px; padding: 28px 32px 56px; margin: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; }
.brand strong { color: var(--lime); }
.microbe { display: grid; place-items: center; width: 40px; height: 40px; background: #263724; border: 1px solid #567644; border-radius: 10px; }
.layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 68px); align-items: start; margin-top: 40px; }
.controls { min-width: 0; }
.eyebrow, figcaption { font: 700 .76rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { color: var(--lime); margin: 0 0 12px; }
h1 { font-size: clamp(3.4rem, 7vw, 6rem); line-height: .91; letter-spacing: -.055em; margin: 0; }
.intro { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 37ch; margin: 18px 0 26px; }
label { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; margin-bottom: 8px; }
label span { color: var(--muted); font-size: .85rem; }
.wallet-row, .actions { display: flex; gap: 10px; }
input:not([type="range"]) { width: 100%; min-width: 0; border: 1px solid #637366; padding: 12px; border-radius: 8px; background: #101612; color: inherit; font: inherit; }
input::placeholder { color: #abb7ac; }
input[type="range"] { width: 100%; accent-color: var(--lime); }
button, .button { border: 1px solid var(--lime); background: var(--lime); color: #142000; border-radius: 8px; font: 800 .95rem Arial, sans-serif; padding: 12px 15px; min-height: 44px; white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { filter: brightness(1.13); }
button:disabled { opacity: .55; cursor: default; filter: none; }
.secondary { color: var(--lime); background: transparent; }
:focus-visible { outline: 2px solid #5cf6ff; outline-offset: 3px; }
.message { line-height: 1.4; font-size: .94rem; margin: 10px 0 0; color: var(--lime); }
.message.error { color: #ffb8a4; }
.message:empty { display: none; }
.editor { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.editor h2 { font-size: 1.25rem; margin: 0 0 16px; }
.editor input + label, #crop-controls, .actions { margin-top: 14px; }
.hint { color: var(--muted); font-size: .84rem; margin: 10px 0 0; }
.preview { min-width: 0; margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #202b23; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--muted); }
canvas { display: block; width: 100%; height: auto; border-radius: 5px; background: #101612; }
@media (max-width: 760px) {
  main { padding: 18px 18px 34px; }
  .brand { padding-bottom: 16px; }
  .layout { grid-template-columns: 1fr; margin-top: 24px; }
}
@media (max-width: 370px) {
  .wallet-row, .actions { flex-wrap: wrap; }
}
