:root {
  --bg: #090b0a;
  --panel: #111412;
  --panel-2: #161a17;
  --border: #293029;
  --text: #f4f7f4;
  --muted: #9ca79e;
  --green: #ccff00;
  --green-2: #adff2f;
  --danger: #ff6464;
  --warn: #ffcf66;
  --ok: #9dff8e;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(700px 360px at 15% -10%, rgba(204,255,0,.10), transparent 60%),
    var(--bg);
}
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 54px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { font-size: 11px; letter-spacing: .15em; color: var(--green); font-weight: 800; margin-bottom: 10px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: .95; margin: 0; letter-spacing: -.055em; }
h1 span { color: var(--green); }
.lede { margin: 15px 0 0; max-width: 730px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.notice { border: 1px solid #3a4521; background: #14190d; padding: 14px 16px; border-radius: 14px; color: #dfe9bf; margin-bottom: 12px; line-height: 1.55; }
.notice code { color: var(--green); }
.status { min-height: 42px; padding: 11px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; border: 1px solid var(--border); background: #0e110f; }
.status.muted { color: var(--muted); }
.status.ok { color: var(--ok); border-color: #345534; }
.status.error { color: #ffb1b1; border-color: #663737; background: #1a1010; }
.status.warn { color: var(--warn); border-color: #5c502d; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .8fr); gap: 18px; align-items: start; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 28%), var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.form-panel { padding: 24px; }
.side-panel { padding: 20px; position: sticky; top: 18px; }
.section-title { display: flex; align-items: center; gap: 11px; padding-top: 3px; margin: 2px 0 17px; }
.section-title:not(:first-child) { margin-top: 30px; }
.section-title span { display: inline-flex; min-width: 34px; height: 25px; padding: 0 8px; align-items: center; justify-content: center; border: 1px solid #46511e; background: #171d0d; border-radius: 999px; font-size: 10px; color: var(--green); font-weight: 900; letter-spacing: .08em; }
.section-title h2 { font-size: 18px; margin: 0; letter-spacing: -.02em; }
.section-title.compact { margin-bottom: 10px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; margin-bottom: 14px; }
label > span:first-child { display: block; font-size: 13px; font-weight: 750; margin: 0 0 7px; }
em { font-style: normal; font-weight: 500; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid #333a34;
  background: #0c0f0d;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { border-color: #758d25; box-shadow: 0 0 0 3px rgba(204,255,0,.08); }
input:disabled { opacity: .55; cursor: not-allowed; }
input.invalid { border-color: var(--danger); }
small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 6px; }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mini { border: 1px solid #3d4634; background: var(--panel-2); color: var(--text); padding: 0 14px; border-radius: 11px; cursor: pointer; font-weight: 750; }
.amount-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
.amount-wrap input { border-radius: 12px 0 0 12px; }
.amount-wrap strong { display: flex; align-items: center; align-self: stretch; padding: 0 13px; border: 1px solid #333a34; border-left: 0; border-radius: 0 12px 12px 0; background: #171b18; color: var(--green); font-size: 12px; }
.creator-buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.creator-buy-grid .mini { min-height: 46px; }
.quote-line { min-height: 16px; }
.ok-text { color: var(--ok); }
.error-text { color: #ffaaaa; }
.toggle-row, .ack { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: #0e110f; }
.toggle-row input, .ack input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.toggle-row span, .ack span { margin: 0; font-size: 13px; }
.toggle-row small { margin-top: 3px; }
.ack { margin-top: 20px; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions.wrap { flex-wrap: wrap; }
.button { appearance: none; border-radius: 12px; padding: 12px 16px; border: 1px solid transparent; font-weight: 850; cursor: pointer; text-decoration: none; text-align: center; transition: transform .12s ease, opacity .12s ease; font-size: 14px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .35; cursor: not-allowed; }
.button.primary { background: var(--green); color: #080a08; border-color: var(--green); }
.button.secondary { background: #171b18; border-color: #343a35; color: var(--text); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr minmax(0, 1.15fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid #242a25; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; text-align: right; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.facts a { color: var(--green); }
.x-preview { margin-top: 17px; padding: 12px; background: #0b0e0c; border: 1px solid #303730; border-radius: 12px; }
.x-preview .label { font-size: 9px; letter-spacing: .1em; color: var(--green); font-weight: 900; margin-bottom: 7px; }
.x-preview code { font-size: 11px; color: #dbe4dc; }
.validation { display: grid; gap: 7px; margin-top: 15px; }
.check { padding: 9px 10px; border-radius: 9px; background: #0d100e; border: 1px solid #2a302b; color: var(--muted); font-size: 11px; line-height: 1.4; }
.check.ok { color: var(--ok); border-color: #2e5130; }
.check.error { color: #ffaaaa; border-color: #5b3030; }
.check.warn { color: var(--warn); border-color: #5c502d; }
.risk { margin-top: 16px; padding: 12px; background: #17150e; border: 1px solid #4d4325; border-radius: 12px; }
.risk strong { color: var(--warn); font-size: 12px; }
.risk p { color: #c6c0a6; font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.result { margin-top: 18px; padding: 22px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-grid > div { background: #0d100e; border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.result-grid span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.result-grid code { font-size: 11px; }
.hidden { display: none; }
footer { color: #717b73; font-size: 11px; text-align: center; padding: 26px 0 0; }
@media (max-width: 850px) {
  .shell { width: min(100% - 20px, 720px); padding-top: 24px; }
  .topbar { flex-direction: column; }
  .topbar .button { width: 100%; }
  .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .form-panel, .side-panel { padding: 16px; }
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
  .creator-buy-grid { grid-template-columns: 1fr; }
  .creator-buy-grid .mini { min-height: 42px; }
}
