:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #171814;
  --muted: #707268;
  --line: #d9d8d0;
  --panel: #fffef9;
  --acid: #c7f36a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 40px 28px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow, label span, th, .source, .category {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 6px; font-size: 11px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: .95; letter-spacing: -.055em; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.scope span { padding: 5px 8px; border: 1px solid var(--ink); background: var(--panel); font: 10px ui-monospace, monospace; text-transform: uppercase; }
.scope span:last-child { background: var(--acid); }

.progress-wrap { min-width: 210px; text-align: right; font: 12px ui-monospace, monospace; }
.progress { height: 7px; margin-top: 9px; overflow: hidden; border: 1px solid var(--ink); background: var(--panel); }
.progress i { display: block; width: 0; height: 100%; background: var(--ink); transition: width .2s ease; }
.header-side { display: grid; justify-items: end; gap: 14px; }
.parser-panel { display: grid; width: 620px; grid-template-columns: 160px 250px 210px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); background: var(--panel); }
.parser-panel div { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; }
.parser-panel span, .parser-panel strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.parser-panel span { color: var(--muted); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.parser-panel strong { margin-top: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.parser-panel strong.error { color: #c3311b; }
.parser-panel strong.ok { color: #397100; }

main { padding: 22px 40px 56px; }
.controls { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(120px, .55fr)) minmax(175px, .8fr) auto auto auto auto; gap: 10px; align-items: end; }
label span { display: block; margin: 0 0 6px; font-size: 10px; color: var(--muted); }
input, select, button { font: inherit; }
input[type="search"], input[type="text"], input[type="url"], input[type="number"], textarea, select, .button {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); padding: 0 12px;
}
textarea { width: 100%; min-height: 94px; resize: vertical; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); padding: 10px 12px; }
input:focus, select:focus, button:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.button { width: auto; cursor: pointer; border-color: var(--ink); background: var(--ink); color: white; white-space: nowrap; }
.button.ghost { background: transparent; color: var(--ink); }
.button.sound-on { background: var(--acid); color: var(--ink); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.summary span { border: 1px solid var(--line); background: var(--panel); padding: 7px 10px; font: 11px ui-monospace, monospace; }

.table-wrap { overflow: auto; border-top: 1px solid var(--ink); }
table { width: 100%; min-width: 1000px; border-collapse: collapse; table-layout: fixed; }
th { padding: 12px 10px; font-size: 10px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 14px 10px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 13px; }
th:nth-child(1), td:nth-child(1) { width: 58px; }
th:nth-child(2), td:nth-child(2) { width: 29%; }
th:nth-child(3), td:nth-child(3) { width: 15%; }
th:nth-child(4), td:nth-child(4) { width: 90px; }
th:nth-child(5), td:nth-child(5) { width: 220px; }
th:nth-child(6), td:nth-child(6) { width: 145px; }
tr.reviewed { opacity: .48; }
tr.reviewed .name { text-decoration: line-through; }
tr.resume-target { background: var(--acid); }
.done { width: 19px; height: 19px; accent-color: var(--ink); cursor: pointer; }
.name { display: block; font-size: 15px; }
.project-name { display: flex; align-items: center; gap: 7px; }
.scope span.fleet-balance { background: #e3e2dc; color: #45463f; border-color: #b9b8b0 !important; font-variant-numeric: tabular-nums; }
.scope span.fleet-balance.negative { background: #e3e2dc; color: #70463f; border-color: #b9b8b0 !important; }
.fresh-age { padding: 3px 6px; border: 1px solid #b45309; color: #b45309; background: #fff7e6; font: 9px ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; }
.fresh-age[hidden] { display: none; }
.deploy-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font: 9px ui-monospace, monospace; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.deploy-line[hidden] { display: none; }
.deploy-badge { padding: 3px 6px; border: 1px solid #397100; color: #285800; background: #efffd2; white-space: nowrap; }
.deploy-timing { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.deploy-profit { margin-left: auto; padding-left: 7px; color: #285800; font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.deploy-profit.negative { color: #9d2412; }
.deploy-badge[data-status="broadcast"], .deploy-badge[data-status="queued"], .deploy-badge[data-status="preparing"], .deploy-badge[data-status="prepared"] { border-color: #b45309; color: #8a3f05; background: #fff7e6; }
.deploy-badge[data-status="stopped"], .deploy-badge[data-status="reverted"], .deploy-badge[data-status="uncertain"] { border-color: #c3311b; color: #9d2412; background: #fff0ed; }
.verification-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: white;
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
}
.verification-check[data-type="individual"] { background: #1d9bf0; }
.verification-check[data-type="organization"] { background: #d7a900; }
.verification-check[data-type="government"] { background: #7b818a; }
.verification-check[hidden] { display: none; }
.handle { display: block; margin-top: 2px; color: var(--muted); }
.bio { margin: 8px 0 0; color: var(--muted); line-height: 1.35; font-size: 12px; }
.followers { font-variant-numeric: tabular-nums; }
.verification {
  display: block;
  width: max-content;
  margin-top: 7px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 9px ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.verification[data-type="individual"] { color: #126ec5; border-color: #126ec5; background: #e9f4ff; }
.verification[data-type="organization"] { color: #7a5b00; border-color: #b98a00; background: #fff4bd; }
.verification[data-type="government"] { color: #50545b; border-color: #737983; background: #eceef1; }
.gmgn {
  display: block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 6px;
  border: 1px solid #4e7d19;
  color: #365d0c;
  background: #effbd9;
  font: 9px ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.activity {
  display: block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 6px;
  border: 1px solid #126ec5;
  color: #126ec5;
  background: #e9f4ff;
  font: 9px ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.activity[hidden] { display: none; }
.category, .source { display: inline-block; padding: 4px 6px; font-size: 9px; line-height: 1.35; border: 1px solid var(--line); }
.source { background: var(--acid); border-color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  font: 10px ui-monospace, monospace;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.link-button:hover { background: var(--ink); color: white; }
.prelaunch { background: var(--acid); }
.launch-direct { background: var(--ink); color: white; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

.launch-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 rgba(0,0,0,.16); }
.launch-dialog::backdrop { background: rgba(20,21,18,.52); }
.launch-dialog form { padding: 24px; }
.launch-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.launch-head h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--ink); background: transparent; font-size: 26px; cursor: pointer; }
.wallet-strip { margin: 16px 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); font: 11px ui-monospace, monospace; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.launch-grid .wide { grid-column: 1 / -1; }
.launch-image-wrap { display: grid; place-items: center; min-height: 170px; max-height: 260px; overflow: hidden; border: 1px solid var(--line); background: #ebeae4; }
.launch-image-wrap img { display: block; width: 100%; height: 220px; object-fit: contain; }
.launch-image-wrap img:not([src]), .launch-image-wrap img[src=""] { display: none; }
.launch-image-wrap span { color: var(--muted); font: 11px ui-monospace, monospace; text-transform: uppercase; }
.launch-zero-buy { padding: 10px 12px; border: 1px solid #4e7d19; background: #effbd9; color: #365d0c; font: 10px ui-monospace, monospace; text-transform: uppercase; }
.launch-estimate { margin-top: 16px; padding: 14px; border: 1px solid var(--ink); background: var(--panel); font: 12px/1.55 ui-monospace, monospace; white-space: pre-line; }
.launch-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.button.danger { background: #e2472f; }
.button:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 900px) {
  .topbar, main { padding-left: 18px; padding-right: 18px; }
  .topbar { align-items: start; }
  .controls { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .button { width: 100%; }
  .topbar { display: block; }
  .header-side { margin-top: 22px; justify-items: stretch; }
  .parser-panel { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-wrap { text-align: left; }
}
.gmgn.pending {
  color: #b45309;
  font-weight: 700;
}
