:root{
  --bg:#0E0F11;          /* page — neutral, not brown */
  --panel:#191B1E;       /* card surface, clearly lifted off the page */
  --panel-2:#212429;     /* nested surface */
  --edge:#2B2F35;
  --edge-hi:#3A4048;
  --fg:#E9EBEE;
  --mute:#A2A8B0;
  --faint:#767D86;
  --dim:#565D66;
  --gold:#F0A73C;
  --gold-2:#B87A1E;
  --mint:#5DCAA5;
  --pink:#E0899C;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --sans:"Nunito Sans",system-ui,sans-serif;
  --ease:cubic-bezier(.22,.8,.28,1);
}

*{ box-sizing:border-box; }

body{
  margin:0; padding:0 22px 90px;
  background:var(--bg); color:var(--fg);
  font-family:var(--sans); font-weight:400;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}

.wrap{ max-width:700px; margin:0 auto; }

/* ---------- header ---------- */
.bar{ display:flex; justify-content:space-between; align-items:center; padding:28px 2px 20px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--gold); }
.src{ font-family:var(--mono); font-size:11px; color:var(--faint); text-decoration:none; }
a.src:hover{ color:var(--mute); }

/* ---------- panels ---------- */
.card{
  background:var(--panel);
  border:1px solid var(--edge);
  border-radius:10px;
  margin-bottom:10px;
}

/* ---------- input ---------- */
.query{ display:flex; gap:9px; align-items:center; padding:9px 9px 9px 18px; }
input[type=text]{
  flex:1; min-width:0; background:none; border:none; padding:10px 0;
  color:var(--fg); font-family:var(--mono); font-weight:400; font-size:13px;
}
input[type=text]::placeholder{ color:var(--dim); }
input[type=text]:focus{ outline:none; }

button{
  flex:none; cursor:pointer; border:none; border-radius:7px;
  font-family:var(--sans); font-weight:600; font-size:13px;
  padding:10px 20px; color:#1A1206; background:var(--gold);
  transition:background .18s var(--ease), color .18s var(--ease);
}
button:hover{ background:#FFB84E; }
button:disabled{ opacity:.4; cursor:not-allowed; }
button.soft{
  background:transparent; color:var(--mute);
  border:1px solid var(--edge-hi); font-weight:400;
}
button.soft:hover{ background:var(--panel-2); color:var(--fg); }

/* ---------- drop zone ---------- */
.drop{
  padding:26px 20px; text-align:center; cursor:pointer; border-radius:10px;
  background:transparent; border:1px dashed var(--edge-hi);
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.drop:hover,.drop.over{ border-color:var(--gold-2); background:var(--panel); }
.drop .ico{
  width:32px; height:32px; margin:0 auto 12px; border-radius:8px; display:grid; place-items:center;
  background:var(--panel-2); border:1px solid var(--edge);
}
.drop .ico svg{ width:15px; height:15px; stroke:var(--mute); fill:none; stroke-width:1.6; }
.drop p{ margin:0; font-size:13.5px; color:var(--mute); }
.drop p b{ color:var(--fg); font-weight:600; }
.drop small{ display:block; margin-top:6px; font-size:11.5px; color:var(--dim); }

/* ---------- progress ---------- */
.prog{ padding:14px 18px; }
.prog.hide{ display:none; }
.track{ height:3px; border-radius:99px; background:var(--edge); overflow:hidden; }
.track i{ display:block; height:100%; width:0; background:var(--gold); transition:width .3s var(--ease); }
.plabel{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:11px; font-size:12.5px; color:var(--mute); }
.plabel button{ padding:6px 13px; font-size:12px; border-radius:6px; }

/* ---------- summary ---------- */
.summary{ padding:20px 22px; border-left:2px solid var(--gold-2); border-radius:0 10px 10px 0; }
.summary.hide{ display:none; }
.slabel{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  font-size:12px; color:var(--mute); margin-bottom:10px;
}
.slabel em{ font-style:normal; font-size:11px; color:var(--dim); }

.figure{
  font-family:var(--sans); font-weight:700;
  font-size:clamp(28px,6.4vw,44px); letter-spacing:-.02em; line-height:1.05;
  color:var(--gold); word-break:break-all;
}
.figure .dim{ color:var(--dim); }
.figure .gap{ display:inline-block; width:.16em; }
.figure .unit{ font-size:.32em; font-weight:600; color:var(--mute); margin-left:.5em; letter-spacing:.06em; }
.sats{ margin-top:8px; font-family:var(--mono); font-size:11.5px; color:var(--dim); }

/* inline stat row (populated state) */
.tally{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:16px; padding-top:14px; border-top:1px solid var(--edge); font-size:12.5px; color:var(--faint); }
.tally b{ font-family:var(--mono); font-weight:400; color:var(--fg); margin-left:5px; }
.tally .good b{ color:var(--gold); }
.tally .bad  b{ color:var(--pink); }

.actions{ margin-top:16px; }

/* ---------- collapsible sections ---------- */
details.sec{ margin-bottom:6px; }
details.sec > summary{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:10px; padding:14px 18px;
  border-radius:10px; background:var(--panel); border:1px solid var(--edge);
  transition:border-color .18s var(--ease);
}
details.sec > summary::-webkit-details-marker{ display:none; }
details.sec > summary:hover{ border-color:var(--edge-hi); }
details.sec[open] > summary{ border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom-color:transparent; }
.chev{ width:13px; height:13px; stroke:var(--faint); fill:none; stroke-width:2; transition:transform .22s var(--ease); }
details.sec[open] .chev{ transform:rotate(90deg); }
details.sec > summary h2{ margin:0; font-weight:600; font-size:13.5px; flex:1; color:var(--mute); }
details.sec.good > summary h2{ color:var(--fg); }
.n{ font-family:var(--mono); font-size:12px; color:var(--faint); }
.n.good{ color:var(--gold); }
.secbody{
  border:1px solid var(--edge); border-top:none;
  border-radius:0 0 10px 10px; padding:6px;
}

/* ---------- funded entry ---------- */
.entry{ padding:16px 16px; border-radius:8px; background:var(--panel-2); margin-bottom:6px; }
.entry:last-child{ margin-bottom:0; }
.entry .addr{ font-family:var(--mono); font-size:11px; color:var(--faint); word-break:break-all; margin-bottom:10px; }
.entry .figure{ font-size:24px; }
.stats{ display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:12px; font-size:11.5px; color:var(--dim); }
.stats b{ font-family:var(--mono); font-weight:400; color:var(--faint); }

/* ---------- plain address list ---------- */
.list{
  padding:12px 14px; font-family:var(--mono); font-size:11px; line-height:2;
  color:var(--dim); word-break:break-all; column-width:230px; column-gap:22px;
}
.list span{ display:block; }

/* ---------- messages ---------- */
.msg{ padding:20px 22px; border-radius:10px; font-size:13.5px; line-height:1.7; color:var(--mute); background:var(--panel); border:1px solid var(--edge); }
.msg.err{ color:var(--pink); background:#241A1D; border-color:#3A2A2F; }
.msg.err b{ display:block; font-weight:600; font-size:13px; margin-bottom:5px; }

.log{ padding:0 4px; margin-top:16px; font-size:11.5px; line-height:1.9; color:var(--dim); }
footer{ padding:22px 4px; font-family:var(--mono); font-size:10.5px; color:var(--dim); }

/* ---------- login gate ---------- */
.gate{ max-width:380px; margin:17vh auto 0; }
.gate .lockico{
  width:40px; height:40px; margin:0 auto 20px; border-radius:10px; display:grid; place-items:center;
  background:var(--panel-2); border:1px solid var(--edge);
}
.gate .lockico svg{ width:18px; height:18px; stroke:var(--gold); fill:none; stroke-width:1.7; }
.gate h1{ margin:0 0 6px; text-align:center; font-weight:700; font-size:19px; }
.gate p{ margin:0 0 22px; text-align:center; font-size:13px; color:var(--faint); }
.gate .row{ display:flex; gap:9px; padding:9px 9px 9px 18px; }
.gate input{
  flex:1; min-width:0; background:none; border:none; padding:10px 0; color:var(--fg);
  font-family:var(--mono); font-size:14px; letter-spacing:.14em;
}
.gate input:focus{ outline:none; }
.gerr{ margin-top:12px; text-align:center; font-size:12.5px; color:var(--pink); }
.shake{ animation:shake .35s var(--ease); }
@keyframes shake{ 25%{transform:translateX(-6px)} 50%{transform:translateX(5px)} 75%{transform:translateX(-2px)} }
