@font-face {
  font-family: 'Cy Grotesk Grand';
  src: url('/static/fonts/cy-grotesk-grand-dark.otf') format('opentype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #141414;
  --card: #1F1F1F;
  --card2: #1A1A1A;
  --line: #333;
  --line2: #2A2A2A;
  --text: #F5F5F5;
  --text2: #D8D8D8;
  --muted: #9B9B9B;
  --dim: #777;
  --lime: #CAF813;
  --lime-line: #4a5a10;
  --amber: #E8B341;
  --head: 'Cy Grotesk Grand', sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
#app { max-width: 480px; margin: 0 auto; padding: 24px 20px 40px; box-sizing: border-box; }

h1 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.3; }
h1 .lime { color: var(--lime); }
.sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.centered { text-align: center; padding: 48px 20px; line-height: 1.6; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.amber { color: var(--amber); }

.brand { font-family: var(--head); font-weight: 600; font-size: 11px; letter-spacing: 3px; color: var(--lime); }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; cursor: pointer;
  background: none; border: none; padding: 0; font-family: inherit;
  margin-bottom: 18px;
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.bigbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; cursor: pointer; color: var(--text);
  font-family: inherit; text-align: left; width: 100%; box-sizing: border-box;
}
.bigbtn .t { font-family: var(--head); font-weight: 500; font-size: 16px; }
.bigbtn .d { font-size: 12px; color: var(--muted); margin-top: 5px; }
.bigbtn .n { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--lime); flex-shrink: 0; }
.bigbtn.lime { background: var(--lime); border-color: var(--lime); color: #141414; }
.bigbtn.lime .d { color: #141414; opacity: .72; font-weight: 600; }
.bigbtn.lime .t { font-weight: 600; }

.ghostlink {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 13px; padding: 12px; cursor: pointer;
  background: none; border: none; width: 100%; font-family: inherit;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  background: none; font-family: inherit; font-weight: 600;
}
.chip.on { color: var(--lime); border-color: var(--lime-line); }
.chip.solid { color: #141414; background: var(--lime); border-color: var(--lime); font-weight: 700; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; cursor: pointer;
}
.card .toprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.score {
  font-family: var(--head); font-weight: 600; font-size: 13px;
  background: var(--lime); color: #141414; border-radius: 12px; padding: 6px 11px;
}
.score.dim2 { background: var(--line2); color: var(--lime); }
.tag { font-size: 11px; font-weight: 600; color: var(--lime); border: 1px solid var(--lime-line); border-radius: 999px; padding: 4px 10px; }
.tag.gray { color: var(--muted); border-color: var(--line); font-weight: 400; }
.jtitle { font-weight: 600; font-size: 15px; line-height: 1.4; }
.jsub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.jmeta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; }
.jmeta span { color: var(--muted); }
.why { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.why div { display: flex; gap: 8px; }
.why b { color: var(--lime); font-weight: 400; flex-shrink: 0; }
.cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line2); padding-top: 11px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.cardfoot .open { font-size: 12px; font-weight: 600; color: var(--lime); }

.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; cursor: pointer;
}
.row .rt { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rs { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.row .mid { min-width: 0; flex: 1; }
.arow { background: var(--card2); border-color: var(--line2); }
.arow .rt { color: #B9B9B9; }
.areason { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat .k { font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.stat .v { font-weight: 600; font-size: 14px; margin-top: 7px; }
.stat .v.big { font-family: var(--head); font-size: 20px; color: var(--lime); margin-top: 4px; }

.sect { font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px; }
.descr { font-size: 13px; line-height: 1.65; color: var(--text2); white-space: pre-line; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px; padding: 15px; cursor: pointer; width: 100%;
  font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  box-sizing: border-box;
}
.btn.lime { background: var(--lime); border-color: var(--lime); color: #141414; font-family: var(--head); font-weight: 600; }
.btn.quiet { color: var(--muted); }
.btn.dashed { background: transparent; border-style: dashed; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: default; }

textarea, input[type=text] {
  background: var(--card); color: #E9E9E9; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; box-sizing: border-box; width: 100%;
  font-family: Montserrat, sans-serif; font-size: 13px; line-height: 1.6; resize: none;
}
textarea:focus, input:focus { outline: 1px solid var(--lime-line); }
label.small { font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

.warn {
  display: flex; gap: 8px; align-items: flex-start;
  background: #1d1f14; border: 1px solid #3a4214; border-radius: 14px;
  padding: 12px 14px; font-size: 12px; line-height: 1.5; color: #c9d19a;
}

.option {
  display: flex; align-items: center; gap: 16px;
  border-radius: 22px; padding: 20px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  width: 100%; font-family: inherit; text-align: left; box-sizing: border-box;
}
.option.lime { background: var(--lime); border-color: var(--lime); color: #141414; }
.option .t { font-family: var(--head); font-weight: 600; font-size: 15px; }
.option .d { font-size: 12px; margin-top: 4px; }
.option:not(.lime) .d { color: var(--muted); }
.option.lime .d { opacity: .75; font-weight: 600; }

.spin { text-align: center; padding: 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.spin::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--lime); animation: s 0.9s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--lime); color: #141414; font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 11px 20px; z-index: 50; max-width: 85vw;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
.verchip { font-size: 11px; font-weight: 700; color: var(--lime); border: 1px solid var(--lime-line); border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }
.statuschip { font-size: 11px; font-weight: 700; color: #141414; background: var(--lime); border-radius: 999px; padding: 4px 10px; }
.statuschip.amber { background: var(--amber); }
.out { white-space: pre-wrap; font-size: 13px; line-height: 1.65; color: var(--text2); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.copy { font-size: 12px; font-weight: 700; color: var(--lime); cursor: pointer; background: none; border: none; font-family: inherit; padding: 6px 0; }
a.ext { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 12px; }
