:root {
  --bg: #0b0e14;
  --panel: #121722;
  --panel2: #0f1420;
  --line: #1f2735;
  --text: #e7ecf3;
  --dim: #8b96a8;
  --accent: #4da3ff;
  --green: #3fd68f;
  --amber: #f5b04c;
  --red: #ff6b6b;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0 0 60px;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--accent); }

header {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1220, var(--bg));
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.brand span { color: var(--accent); }
.subtitle { color: var(--dim); font-size: 13px; flex: 1; min-width: 220px; }
.net { display: flex; gap: 8px; align-items: center; }
.badge {
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-family: var(--mono);
}
.badge.dim { color: var(--dim); }
button {
  background: var(--accent); color: #06121f; border: 0; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 14px;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .45; cursor: wait; }
button.max { padding: 8px 8px; background: var(--panel); color: var(--dim); border: 1px solid var(--line); }
input, select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: var(--mono);
  min-width: 90px;
}
main, .locked { max-width: 1060px; margin: 0 auto; padding: 8px 24px; }
section { margin-top: 34px; }
h2 { font-size: 17px; margin: 0 0 6px; }
.hint { color: var(--dim); font-size: 13px; margin: 0 0 14px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px;
}
.card-title { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.stat .label, .action .label, .card > .label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.big { font-size: 20px; font-family: var(--mono); font-weight: 600; }
.card button.claim { width: 100%; margin-top: 10px; }

.actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 20px; }
.action { min-width: 200px; flex: 1; }
.action.wide { flex: 3; }
.row { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.row input { flex: 1; }
.row.quick { margin-top: 8px; }
.quickBtn { background: var(--panel2); color: var(--accent); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 6px 10px; }

/* liquidity gauge */
.gauge-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--panel2); border: 1px solid var(--line);
}
.chip.thin  { color: var(--red);   border-color: var(--red); }
.chip.normal{ color: var(--accent); border-color: var(--accent); }
.chip.deep  { color: var(--green); border-color: var(--green); }
.gauge {
  position: relative; height: 26px; margin: 14px 0 4px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.gauge .fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, #2c6fb3, var(--accent)); opacity: .85;
  transition: width .5s ease;
}
.gauge .marker {
  position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--amber);
}
.gauge .marker.deep { background: var(--green); }
.gauge-scale { display: flex; justify-content: space-between; margin-top: 2px; }

/* feed table */
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--mono); font-size: 13px; }
th { text-align: left; color: var(--dim); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); }
td { padding: 5px 8px; border-bottom: 1px solid #161c29; }
tr.applied td:nth-child(2) { color: var(--green); }
tr.failed td:nth-child(2) { color: var(--red); }

.status {
  position: sticky; top: 0; z-index: 10; margin: 10px auto 0; max-width: 1010px;
  padding: 10px 16px; border-radius: 10px; font-size: 14px;
  background: #17202f; border: 1px solid var(--line);
}
.status.ok { border-color: var(--green); color: var(--green); }
.status.err { border-color: var(--red); color: var(--red); }
.status.busy { border-color: var(--amber); color: var(--amber); }
.hidden { display: none; }

footer { margin-top: 40px; text-align: center; font-size: 13px; }
.locked h2 { margin-top: 40px; }
