/* ───────────────────── BLANET · instruments (tools.html) ─────────────────────
   Loaded after style.css: tokens, nav, menu, chips, buttons, footer come from there.
   No WebGL here on purpose: the page should open fast on a phone in a bad spot. */

body.tools { min-height: 100dvh; }
.tools-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(167, 139, 250, 0.20), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(125, 211, 252, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(255, 122, 61, 0.16), transparent 70%),
    var(--bg);
}
.tools-main { position: relative; z-index: 10; max-width: 1080px; margin: 0 auto; padding: 132px var(--gutter) 72px; }

.tools-eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.tools-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.tools-lede { margin: 18px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.tools-jump { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.tools-jump a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); transition: border-color .3s, transform .4s var(--ease-out); }
.tools-jump a:hover { border-color: rgba(255, 177, 92, 0.5); transform: translateY(-2px); }
.tools-jump b { font-family: var(--display); font-weight: 500; font-size: 15px; }
.tools-jump span { font-size: 12.5px; color: var(--muted); }

.tool {
  margin-top: 28px; padding: clamp(22px, 3.4vw, 38px); scroll-margin-top: 92px;
  border: 1px solid var(--line); border-radius: 24px; background: rgba(10, 6, 18, 0.62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tool-head { position: relative; }
.tool-head .section-num { margin-bottom: 14px; }
.tool-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.tool-head p:not(.section-num) { margin: 10px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tool-head .chip { position: absolute; top: 0; right: 0; }
.tool-foot { margin: 20px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); max-width: 760px; }

/* ───────── token check ───────── */
.check-form { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.check-form input {
  flex: 1 1 320px; min-width: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.35);
  color: var(--ink); font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em;
}
.check-form input::placeholder { color: var(--dim); }
.check-form input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.check-form .btn { cursor: pointer; }
.check-error { margin: 12px 4px 0; font-size: 13.5px; color: var(--bad); }
.check-head { margin-top: 26px; display: flex; align-items: baseline; gap: 12px 16px; flex-wrap: wrap; }
.check-head h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 20px; overflow-wrap: anywhere; }
.check-head span { font-size: 12.5px; color: var(--muted); }
.check-summary { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); border-left-width: 3px; font-size: 14px; line-height: 1.55; }
.check-summary.is-ok { border-color: rgba(126, 240, 177, 0.35); border-left-color: var(--ok); background: rgba(126, 240, 177, 0.05); }
.check-summary.is-warn { border-color: rgba(255, 177, 92, 0.35); border-left-color: var(--amber); background: rgba(255, 177, 92, 0.05); }
.check-summary.is-bad { border-color: rgba(255, 107, 107, 0.4); border-left-color: var(--bad); background: rgba(255, 107, 107, 0.06); }

.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; padding: 14px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.09); }
.row.is-bad { border-left: 3px solid var(--bad); padding-left: 12px; margin-left: -15px; }
.row-label { padding-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.row-body { display: grid; gap: 3px; min-width: 0; }
.row-value { font-weight: 500; font-size: 15.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.row.is-bad .row-value { color: var(--bad); }
.row-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.row .chip { margin-top: 1px; }
.row .meter { grid-column: 2 / -1; }
.meter { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-2), var(--amber)); transition: width .8s var(--ease-out); }

/* ───────── network pulse ───────── */
.tiles { margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tiles > div { padding: 16px 18px; background: rgba(10, 6, 18, 0.85); min-width: 0; display: grid; gap: 8px; align-content: start; }
.tiles dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tiles dd { margin: 0; display: grid; gap: 4px; }
.tiles dd b { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); line-height: 1; font-variant-numeric: tabular-nums; }
.tiles dd small { font-size: 12px; line-height: 1.4; color: var(--muted); }

.tools-footer { margin-top: 24px; }

@media (max-width: 860px) {
  .tools-main { padding-top: 104px; }
  .tools-jump { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-label { grid-column: 1 / -1; padding-top: 0; }
  .row .meter { grid-column: 1 / -1; }
  .tool-head .chip { position: static; margin-top: 12px; }
}
@media (max-width: 480px) {
  .check-form .btn { flex: 1; }
}
