/* ═══════════════════════════════════════════════════════════════════════
   Reverse tooling — follows the same visual language as the status page:
   12px radii, hairline rgba(255,255,255,.07) borders, faint top-lit gradient
   fills, uppercase micro-labels. Nothing new is invented here on purpose.
═══════════════════════════════════════════════════════════════════════ */

.rev-wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.rev-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ── hero ─────────────────────────────────────────────────────────── */

.rev-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .rev-hero { flex-direction: row; align-items: flex-end; }
}

.rev-eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  margin-bottom: .55rem;
}

.rev-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.1;
}

@media (min-width: 1024px) { .rev-hero h1 { font-size: 2.4rem; } }

.rev-hero-desc {
  font-size: .92rem;
  color: rgba(255, 255, 255, .45);
  margin-top: .55rem;
  max-width: 34rem;
  line-height: 1.5;
}

.rev-hero-aside { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }

.rev-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
}

.rev-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .15);
}

.rev-pill.off .dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }

/* ── hub cards ────────────────────────────────────────────────────── */

.rev-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) { .rev-hub { grid-template-columns: 1fr 1fr; } }

.rev-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .008));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .25s, background .25s, transform .25s;
}

.rev-tool::after {
  content: "";
  position: absolute;
  inset: -40% 55% 55% -10%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, .16), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.rev-tool:hover {
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transform: translateY(-2px);
}

.rev-tool:hover::after { opacity: 1; }

.rev-tool-icon {
  width: 3rem; height: 3rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.rev-tool-icon svg { width: 22px; height: 22px; }

.rev-tool h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
  margin: 0;
}

.rev-tool p {
  font-size: .86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .45);
  margin: .35rem 0 0;
}

.rev-tool-meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .35rem;
}

.rev-tag {
  font-size: .68rem;
  padding: .22rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .5);
  letter-spacing: .02em;
}

.rev-tool-go {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
}

.rev-tool:hover .rev-tool-go { color: #fff; }

/* ── panels / workspace ───────────────────────────────────────────── */

.rev-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .rev-grid { grid-template-columns: minmax(300px, 360px) 1fr; }
}

.rev-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .008));
  padding: 1.15rem;
}

.rev-panel + .rev-panel { margin-top: 1rem; }

.rev-panel-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.rev-field { margin-bottom: .85rem; }
.rev-field:last-child { margin-bottom: 0; }

.rev-label {
  display: block;
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .38rem;
  letter-spacing: .02em;
}

.rev-input,
.rev-select,
.rev-textarea {
  width: 100%;
  padding: .6rem .7rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: .85rem;
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rev-textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; }

.rev-input::placeholder,
.rev-textarea::placeholder { color: rgba(255, 255, 255, .25); }

.rev-input:focus,
.rev-select:focus,
.rev-textarea:focus {
  border-color: rgba(59, 130, 246, .5);
  background: rgba(0, 0, 0, .5);
}

.rev-select option { background: #0b0b0b; color: #fff; }

.rev-hint {
  font-size: .7rem;
  color: rgba(255, 255, 255, .3);
  margin-top: .35rem;
  line-height: 1.5;
}

.rev-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

.rev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: .75rem;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
  background: #fff;
  color: #000;
  white-space: nowrap;
}

.rev-btn:hover { background: rgba(255, 255, 255, .82); }
.rev-btn:active { transform: scale(.97); }
.rev-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.rev-btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}

.rev-btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.rev-state {
  font-size: .74rem;
  color: rgba(255, 255, 255, .4);
  margin-top: .7rem;
  min-height: 1.1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.rev-state.err { color: #f87171; }
.rev-state.ok { color: #4ade80; }

.rev-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: rgba(255, 255, 255, .75);
  border-radius: 50%;
  animation: rev-spin .7s linear infinite;
  vertical-align: -1px;
  margin-right: .4rem;
}

@keyframes rev-spin { to { transform: rotate(360deg); } }

/* ── results ──────────────────────────────────────────────────────── */

.rev-empty {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .1);
  padding: 3rem 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, .3);
  font-size: .86rem;
  line-height: 1.6;
}

.rev-site {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
  padding: 1.05rem 1.1rem;
  margin-bottom: 1rem;
}

.rev-site-head {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .55rem;
}

.rev-site-rva {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rev-kind {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .16rem .45rem;
  border-radius: 5px;
  border: 1px solid rgba(96, 165, 250, .3);
  background: rgba(59, 130, 246, .1);
  color: #60a5fa;
}

.rev-raw {
  font-size: .74rem;
  color: rgba(255, 255, 255, .35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rev-kv {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .3rem .8rem;
  font-size: .78rem;
  margin: .7rem 0 .2rem;
}

.rev-kv dt { color: rgba(255, 255, 255, .35); }

.rev-kv dd {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rev-kv dd.accent { color: #60a5fa; }
.rev-kv dd.muted { color: rgba(255, 255, 255, .3); font-family: inherit; }

.rev-pat {
  margin-top: .8rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .38);
  padding: .7rem .8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.65;
  color: #4ade80;
  word-break: break-all;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  position: relative;
}

.rev-pat:hover { border-color: rgba(74, 222, 128, .3); }
.rev-pat.copied { color: #fff; border-color: rgba(255, 255, 255, .3); }

.rev-pat-meta {
  font-size: .7rem;
  color: rgba(255, 255, 255, .32);
  margin-top: .45rem;
  font-family: inherit;
}

.rev-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }

.rev-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
  color: rgba(255, 255, 255, .3);
}

.rev-chip.hit { border-color: rgba(74, 222, 128, .28); color: #4ade80; background: rgba(74, 222, 128, .06); }
.rev-chip.uniq { border-color: rgba(96, 165, 250, .35); color: #60a5fa; background: rgba(96, 165, 250, .07); font-weight: 600; }

.rev-sub {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
  margin: .95rem 0 .1rem;
}

/* ── table (pattern scan) ─────────────────────────────────────────── */

.rev-table { width: 100%; border-collapse: collapse; font-size: .82rem; }

.rev-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
  font-weight: 600;
  padding: 0 .7rem .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.rev-table td {
  padding: .62rem .7rem;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rev-table tr:last-child td { border-bottom: 0; }
.rev-table td.name { color: #fff; font-family: inherit; font-weight: 500; }
.rev-table td.zero { color: rgba(255, 255, 255, .25); }
.rev-table td.one { color: #60a5fa; font-weight: 600; }
.rev-table td.many { color: #4ade80; }

/* ── file drop (fxap) ─────────────────────────────────────────────── */

.rev-drop {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .015);
  padding: 2.4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.rev-drop:hover,
.rev-drop.drag {
  border-color: rgba(59, 130, 246, .5);
  background: rgba(59, 130, 246, .05);
}

.rev-drop .icon { color: rgba(255, 255, 255, .35); margin-bottom: .7rem; }
.rev-drop .icon svg { width: 30px; height: 30px; }
.rev-drop .big { color: #fff; font-size: .92rem; font-weight: 500; }
.rev-drop .small { color: rgba(255, 255, 255, .35); font-size: .76rem; margin-top: .3rem; }

.rev-file {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
  margin-top: .8rem;
}

.rev-file .fname { color: #fff; font-size: .84rem; font-weight: 500; word-break: break-all; }
.rev-file .fmeta { color: rgba(255, 255, 255, .35); font-size: .72rem; margin-top: .15rem; }

/* ── hex viewer ───────────────────────────────────────────────────── */

.rev-hex {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .42);
  padding: .8rem .9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: rgba(255, 255, 255, .7);
}

.rev-hex .off { color: rgba(255, 255, 255, .28); }
.rev-hex .asc { color: rgba(96, 165, 250, .75); }

/* ── entropy strip ────────────────────────────────────────────────── */

.rev-entropy {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .3);
  padding: .4rem;
  overflow: hidden;
}

.rev-entropy span {
  flex: 1 1 0;
  min-width: 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .85), rgba(59, 130, 246, .35));
}

.rev-legend {
  display: flex;
  gap: 1rem;
  font-size: .7rem;
  color: rgba(255, 255, 255, .32);
  margin-top: .45rem;
  flex-wrap: wrap;
}

/* ── native browser ───────────────────────────────────────────────── */

.rev-list {
  margin-top: .7rem;
  max-height: 58vh;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .25);
}

.rev-item {
  padding: .55rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  cursor: pointer;
  transition: background .15s;
}

.rev-item:last-child { border-bottom: 0; }
.rev-item:hover { background: rgba(255, 255, 255, .045); }
.rev-item.sel { background: rgba(59, 130, 246, .12); }

.rev-item .nm {
  font-size: .84rem;
  font-weight: 500;
  color: #fff;
  word-break: break-all;
}

.rev-item .ns {
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rev-accent2, #3b82f6);
  color: #60a5fa;
}

.rev-item .hx {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  color: rgba(255, 255, 255, .32);
  margin-top: .15rem;
  word-break: break-all;
}

.rev-count { font-size: .7rem; color: rgba(255, 255, 255, .3); margin-top: .45rem; }

.rev-listing {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .38);
  padding: .75rem .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .73rem;
  line-height: 1.65;
  color: #4ade80;
  white-space: pre;
  overflow-x: auto;
  margin-top: .5rem;
}

.rev-listing.chain { color: rgba(255, 255, 255, .78); }

.rev-found {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .9rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, .28);
  background: rgba(96, 165, 250, .07);
}

.rev-found .lbl {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.rev-found .val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #60a5fa;
}

.rev-found .va {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
}

.rev-found.bad { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); }
.rev-found.bad .val { color: #f87171; font-size: .85rem; font-weight: 500; }

/* ── wallet strip ─────────────────────────────────────────────────── */

.rev-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
}
.rev-wallet.low  { border-color: rgba(96, 165, 250, .3); }
.rev-wallet.dry  { border-color: rgba(248, 113, 113, .32); }

.rev-wallet-main { min-width: 0; }
.rev-wallet-top {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
}
.rev-wallet-tier {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.rev-wallet-bal {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: #60a5fa;
}
.rev-wallet.dry .rev-wallet-bal { color: #f87171; }
.rev-wallet-unit {
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
}
.rev-wallet-track {
  position: relative;
  height: 4px;
  margin-top: .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.rev-wallet-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  transition: width .35s ease;
}
.rev-wallet.dry .rev-wallet-fill { background: #f87171; }

.rev-wallet-quota {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  justify-self: end;
}
.rev-quota {
  display: inline-flex;
  align-items: baseline;
  gap: .38rem;
  padding: .34rem .65rem;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .55);
}
.rev-quota b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
}
.rev-quota.enc  { border-color: rgba(129, 140, 248, .3); background: rgba(129, 140, 248, .08); }
.rev-quota.enc b  { color: #818cf8; }
.rev-quota.plain { border-color: rgba(74, 222, 128, .26); background: rgba(74, 222, 128, .06); }
.rev-quota.plain b { color: #4ade80; }
.rev-quota.inf b { color: #60a5fa; }

@media (max-width: 720px) {
  .rev-wallet { grid-template-columns: 1fr; }
  .rev-wallet-quota { justify-self: start; }
}

/* ── encrypted / plain verdict badge ──────────────────────────────── */

.rev-mode {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rev-mode .dot { width: 6px; height: 6px; border-radius: 50%; }
.rev-mode.plain {
  border: 1px solid rgba(74, 222, 128, .3);
  background: rgba(74, 222, 128, .08);
  color: #4ade80;
}
.rev-mode.plain .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .15); }
.rev-mode.enc {
  border: 1px solid rgba(129, 140, 248, .32);
  background: rgba(129, 140, 248, .09);
  color: #818cf8;
}
.rev-mode.enc .dot { background: #818cf8; box-shadow: 0 0 0 3px rgba(129, 140, 248, .16); }

.rev-charge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  color: rgba(255, 255, 255, .38);
}

/* ── plans ────────────────────────────────────────────────────────── */

.rev-plans-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.4rem 0 1rem;
}
.rev-plans-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .92);
}
.rev-plans-head p {
  margin: .3rem 0 0;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .45);
  max-width: 46ch;
}

.rev-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .rev-plans { grid-template-columns: repeat(3, 1fr); }
}

.rev-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.25rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
}
.rev-plan.featured {
  border-color: rgba(96, 165, 250, .28);
  background: linear-gradient(180deg, rgba(96, 165, 250, .07), rgba(255, 255, 255, .015));
}
.rev-plan-flag {
  position: absolute;
  top: -9px;
  left: 1.25rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0b0b0b;
  background: #60a5fa;
}
.rev-plan-name {
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}
.rev-plan-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: .55rem 0 .1rem;
}
.rev-plan-price .amt {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.rev-plan-price .per {
  font-size: .72rem;
  color: rgba(255, 255, 255, .38);
}
.rev-plan-tokens {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: #60a5fa;
}
.rev-plan-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1rem 0 .9rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.rev-plan-split div { text-align: center; }
.rev-plan-split .n {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.rev-plan-split .enc .n   { color: #818cf8; }
.rev-plan-split .plain .n { color: #4ade80; }
.rev-plan-split .k {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.rev-plan ul {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: .42rem;
}
.rev-plan li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .79rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .5);
}
.rev-plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .48em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(96, 165, 250, .55);
}
.rev-plan .rev-btn { margin-top: auto; justify-content: center; }

.rev-plan-note {
  margin: 1rem 0 0;
  font-size: .78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .38);
}
.rev-plan-note b { color: rgba(255, 255, 255, .6); font-weight: 600; }

/* ── tool tabs ────────────────────────────────────────────────────── */

.rev-tabs {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* Tabs sit in the same kind of box as the build picker. */
.rev-tabgroup {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .28);
}

.rev-tab {
  padding: .38rem .8rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  font: inherit;
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.rev-tab:hover { color: rgba(255, 255, 255, .75); }
.rev-tab.on {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, .28);
  background: rgba(96, 165, 250, .08);
}

/* Every build on one row — five of them, so there is nothing to hide. */
.rev-builds {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
  padding: .25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .28);
}
.rev-builds-label {
  padding: 0 .5rem 0 .35rem;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
}
.rev-build {
  padding: .34rem .6rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.rev-build:hover { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .05); }
.rev-build.on {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, .28);
  background: rgba(96, 165, 250, .1);
  font-weight: 600;
}

@media (max-width: 860px) {
  .rev-tabs { flex-wrap: wrap; }
  .rev-tabgroup { width: 100%; }
  .rev-tabgroup .rev-tab { flex: 1; text-align: center; }
  .rev-builds { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .rev-build { flex: 1; text-align: center; }
}

/* ── partial-coverage confirmation ────────────────────────────────── */

.rev-confirm {
  margin-top: .8rem;
  padding: .95rem 1rem;
  border-radius: 11px;
  border: 1px solid rgba(96, 165, 250, .28);
  background: rgba(96, 165, 250, .06);
}
.rev-confirm-head {
  font-size: .8rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: .35rem;
}
.rev-confirm p {
  margin: 0 0 .7rem;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.rev-confirm p b { color: rgba(255, 255, 255, .9); font-weight: 600; }
.rev-confirm .rev-chips { margin: 0; }

.rev-votes {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .62rem;
  color: rgba(255, 255, 255, .3);
  margin-top: .1rem;
}

/* ── disassembly listing ──────────────────────────────────────────── */

.rev-disasm-wrap { margin-top: 1rem; }
.rev-dis-state { font-size: .78rem; color: rgba(255, 255, 255, .45); padding: .3rem 0; }

.rev-dis {
  margin-top: .5rem;
  max-height: 30rem;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .32);
  padding: .55rem .4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  line-height: 1.55;
}
.rev-dis-label {
  color: #60a5fa;
  padding: .25rem 0 .1rem .3rem;
  font-weight: 600;
}
.rev-dis-row {
  display: grid;
  grid-template-columns: 5.5rem 11rem minmax(0, 1fr) auto;
  gap: .4rem;
  padding: 0 .3rem;
  white-space: nowrap;
  border-radius: 3px;
}
.rev-dis-row:hover { background: rgba(255, 255, 255, .04); }
.rev-dis-row .a { color: rgba(255, 255, 255, .32); }
.rev-dis-row .b { color: rgba(255, 255, 255, .28); overflow: hidden; text-overflow: ellipsis; }
.rev-dis-row .t { color: rgba(255, 255, 255, .88); }
.rev-dis-row .c { color: #4ade80; opacity: .85; overflow: hidden; text-overflow: ellipsis; }

/* mnemonic families read at a glance */
.rev-dis-row.k-call .t { color: #93c5fd; }
.rev-dis-row.k-jmp  .t,
.rev-dis-row.k-jcc  .t { color: #c4b5fd; }
.rev-dis-row.k-ret  .t { color: #f0abfc; }

@media (max-width: 720px) {
  .rev-dis-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .rev-dis-row .b { display: none; }
}

/* ── disassembly function header ──────────────────────────────────── */

.rev-dis-head {
  margin: .35rem 0 .5rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, .22);
  background: rgba(96, 165, 250, .06);
}
.rev-dis-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 600;
  color: #93c5fd;
  word-break: break-all;
}
.rev-dis-meta {
  margin-top: .2rem;
  font-size: .68rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .4);
}
.rev-dis-end {
  padding: .3rem .3rem 0;
  color: rgba(255, 255, 255, .28);
  font-style: italic;
}
