/* Hoodsend — dark, quiet, and deliberately small. */

:root {
  --bg: #07090c;
  --bg-2: #0c1014;
  --surface: #111720;
  --surface-2: #161d28;
  --line: #1e2734;
  --line-2: #2a3543;
  --text: #e8edf4;
  --text-2: #97a5b8;
  --text-3: #6a7a8d;
  --accent: #00c805;
  --accent-soft: rgba(0, 200, 5, 0.12);
  --accent-line: rgba(0, 200, 5, 0.35);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.1);
  --warn-line: rgba(255, 176, 32, 0.3);
  --danger: #ff5c5c;
  --danger-soft: rgba(255, 92, 92, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* `hidden` is a presentation-free attribute whose only defence is a UA rule of
   `display: none`, and every `display: flex` below outranks it. Without this,
   the wrong-network banner and the network pill render while disconnected. */
[hidden] { display: none !important; }

html { height: 100%; }
body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -18%, rgba(0, 200, 5, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-xs { width: 14px; height: 14px; }
.ico-accent { color: var(--accent); }

/* ---------- top bar ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand-mark svg { width: 28px; height: 28px; display: block; }
.brand-mark rect { fill: var(--accent); }
.mark-tick { stroke: #071008; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { font-weight: 650; letter-spacing: -0.02em; font-size: 17px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  cursor: default;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pill.is-wrong { border-color: var(--warn-line); color: var(--warn); cursor: pointer; }
.pill.is-wrong .dot { background: var(--warn); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 560;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}
.btn:disabled { opacity: .42; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #05140a; }
.btn-primary:not(:disabled):hover { background: #22de2a; }

.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); border-color: #3a4757; }

.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-lg { padding: 14px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; }

.micro-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0;
  color: var(--text-3); font: inherit; font-size: 12.5px;
  cursor: pointer; text-decoration: none;
}
.micro-link:hover { color: var(--accent); }

/* ---------- layout ---------- */

.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 24px 64px; }

.hero { max-width: 620px; margin-bottom: 28px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 660;
}
.hero p { margin: 0; color: var(--text-2); font-size: 15px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-soft { background: var(--bg-2); }
.side { display: grid; gap: 20px; }

.card-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: 15px; font-weight: 620; letter-spacing: -0.01em;
}

/* ---------- fields ---------- */

.field { margin-bottom: 18px; }
.field-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 7px;
}
.field label {
  display: block;
  font-size: 12.5px; font-weight: 560; color: var(--text-2);
  letter-spacing: .01em;
  margin-bottom: 7px;
}
.field-head label { margin-bottom: 0; }

.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .14s ease, background .14s ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent-line); background: #0a1420; }
.input.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: -0.01em; }
.input.is-bad { border-color: var(--danger); }
.input.is-good { border-color: var(--accent-line); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a5b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.token-row { display: flex; gap: 8px; }
.token-row .select { flex: 1; }

.amount-row { position: relative; display: flex; align-items: center; gap: 8px; }
.amount-row .amount { flex: 1; padding-right: 118px; font-size: 20px; font-weight: 560; letter-spacing: -0.01em; }
.amount-sym {
  position: absolute; right: 66px;
  color: var(--text-2); font-size: 14px; font-weight: 560;
  pointer-events: none;
}
.amount-row .btn-sm { position: absolute; right: 8px; }

.balance { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.balance b { color: var(--text-2); font-weight: 560; }

.hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  min-height: 1px;
}
.hint.is-good { color: var(--accent); }
.hint.is-warn { color: var(--warn); }
.hint.is-bad { color: var(--danger); }

.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 92, 92, .28);
  border-radius: var(--radius-sm);
  color: #ffb3b3;
  font-size: 13px;
}

/* ---------- summary rows ---------- */

.summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid; gap: 9px;
}
.summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.summary dt { color: var(--text-3); font-size: 12.5px; margin: 0; }
.summary dd { margin: 0; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.summary dd.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* ---------- banners ---------- */

.banner {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.5;
}
.banner .ico { margin-top: 1px; }
.banner-warn { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #ffd48a; }
.banner-warn strong { color: var(--warn); }
.banner > div { flex: 1; }
.banner .btn { flex: none; align-self: center; }

/* ---------- side panel ---------- */

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.checks li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2);
}
.checks strong { color: var(--text); font-weight: 580; }

/* ---------- address book ---------- */

.book { margin-top: 10px; display: grid; gap: 6px; }
.book-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  width: 100%;
}
.book-row:hover { border-color: var(--line-2); }
.book-row .b-label { font-size: 13px; font-weight: 560; }
.book-row .b-addr { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-left: auto; }
.book-empty { font-size: 12.5px; color: var(--text-3); padding: 4px 2px; }

/* ---------- history ---------- */

.history { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.history li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.history .h-amt { font-weight: 580; font-variant-numeric: tabular-nums; }
.history .h-to { font-family: var(--mono); color: var(--text-3); }
.history .h-link { margin-left: auto; color: var(--text-3); display: inline-flex; }
.history .h-link:hover { color: var(--accent); }
.history .h-state { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--warn); }
.history .h-state.ok { background: var(--accent); }
.history .h-state.fail { background: var(--danger); }

/* ---------- footer ---------- */

.foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.foot p { margin: 0 0 6px; max-width: 620px; }
.foot a { color: var(--text-2); }
.foot-meta { font-variant-numeric: tabular-nums; }

/* ---------- modals ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 8, .72); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 620; }

.wallet-list { display: grid; gap: 8px; }
.wallet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer; font: inherit; color: var(--text);
  text-align: left; width: 100%;
}
.wallet-row:hover { border-color: var(--accent-line); }
.wallet-row img { width: 26px; height: 26px; border-radius: 7px; }
.wallet-row .w-fallback {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--surface-2); display: grid; place-items: center; color: var(--text-3);
}
.wallet-row .w-name { font-weight: 560; font-size: 14px; }

.review-amount {
  text-align: center;
  padding: 6px 0 18px;
  font-size: 34px; font-weight: 640; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.review-sym { font-size: 17px; color: var(--text-2); margin-left: 8px; font-weight: 560; }
.summary-review dd.mono { font-size: 12px; }

.ack { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.ack input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }

.result-icon { display: grid; place-items: center; margin: 6px 0 14px; }
.result-icon .ico { width: 42px; height: 42px; stroke-width: 1.6; }
.result-icon.pending .ico { color: var(--warn); animation: spin 1s linear infinite; }
.result-icon.ok .ico { color: var(--accent); }
.result-icon.fail .ico { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .result-icon.pending .ico { animation: none; } }

#resultModal h2 { text-align: center; margin: 0 0 8px; font-size: 17px; }
.result-text { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 0 0 18px; }
#resultLink { margin-bottom: 8px; }

.mono { font-family: var(--mono); }

/* ================================================================
   Statistics dashboard
   ================================================================ */

.wrap-wide { max-width: 1120px; }
.hero-tight { margin-bottom: 20px; }
.hero-tight h1 { font-size: clamp(23px, 3vw, 28px); }

.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 22px; }
.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 540;
}
.nav a:hover { color: var(--text); }
.nav a.is-current { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
@media (max-width: 640px) {
  .nav { margin-left: 8px; }
  .nav a { padding: 6px 9px; font-size: 12.5px; }
  .topbar { padding: 14px 16px; gap: 10px; }
  .topbar-right .btn { padding: 8px 12px; font-size: 13px; }
  .brand-text { font-size: 15px; }
  .wrap { padding: 28px 16px 48px; }
  .card { padding: 18px 16px; }
}

/* ---------- KPI tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tile-accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 62%), var(--surface); }
.tile-label { font-size: 12px; color: var(--text-3); letter-spacing: .01em; }
.tile-value { font-size: 27px; font-weight: 640; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.tile-note { font-size: 12px; color: var(--text-3); line-height: 1.45; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 580; margin-right: 5px; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--danger); }

/* ---------- chart shells ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.chart-card { margin-bottom: 20px; }
.grid-2 .chart-card, .grid-3 .chart-card { margin-bottom: 0; }

.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.chart-head .card-title { margin-bottom: 4px; }
.chart-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; max-width: 62ch; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.swatch-accent { background: var(--accent); }
.swatch-band { background: rgba(0, 200, 5, .14); border: 1px solid var(--accent-line); }

.chart-scroll { overflow-x: auto; }
.chart { display: block; max-width: 100%; overflow: visible; }

.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .band { fill: rgba(0, 200, 5, .07); stroke: var(--accent-line); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity .12s ease; }
.chart .bar:hover { opacity: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { fill: url(#areaFill); fill: rgba(0, 200, 5, .12); stroke: none; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: rgba(0, 200, 5, .3); }

/* Charts are drawn at the container's real pixel width, so the viewBox scale is
   always 1 and these sizes are the sizes that reach the screen. */
.chart text { font-family: var(--sans); fill: var(--text-3); font-size: 11px; }
.chart .axis-y { text-anchor: end; }
/* Overridden per element with an inline style, not an attribute: presentation
   attributes lose to any class rule, so `text-anchor="end"` would do nothing. */
.chart .axis-x { text-anchor: middle; }
.chart .bar-value { text-anchor: middle; fill: var(--text-2); font-size: 11px; font-weight: 560; }

/* ---------- fee panel ---------- */

.fee-example {
  display: grid; gap: 2px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.fee-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 13px; }
.fee-row span { color: var(--text-3); }
.fee-row b { font-variant-numeric: tabular-nums; font-weight: 580; }
.accent { color: var(--accent); }

/* ---------- split + bands ---------- */

.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 16px; background: var(--bg-2); }
.split-bar span { display: block; height: 100%; }

.sub-title {
  margin: 20px 0 10px;
  font-size: 12px; font-weight: 560; color: var(--text-3);
  letter-spacing: .04em; text-transform: uppercase;
}
.split-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.split-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.split-name { font-weight: 560; }
.split-val { margin-left: auto; font-variant-numeric: tabular-nums; }
.split-pct { color: var(--text-3); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

.band-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 13px; }
.band-list li {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  grid-template-areas: "label track value" "pct pct pct";
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
}
.band-label { grid-area: label; }
.band-track { grid-area: track; height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.band-track i { display: block; height: 100%; background: var(--accent); opacity: .8; border-radius: 999px; }
.band-val { grid-area: value; font-variant-numeric: tabular-nums; }
.band-pct { grid-area: pct; font-size: 11.5px; color: var(--text-3); }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 13px; }
.table th {
  text-align: left;
  padding: 0 14px 10px;
  font-size: 11.5px; font-weight: 560; color: var(--text-3);
  letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-2); }
.table .num { text-align: right; }
.table .muted { color: var(--text-3); }
.table .row-total td { font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; }
.table .row-total:hover td { background: transparent; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 560; color: var(--text-2);
}

/* ================================================================
   Shared shell: scrolling nav, toasts, drop zones, editable tables
   ================================================================ */

.banner-slot { padding-top: 24px; padding-bottom: 0; }
.banner-slot:has(.banner[hidden]) { padding-top: 0; }

/* Eight destinations do not fit on a phone. The bar scrolls rather than
   wrapping, so the header keeps a single predictable height. */
.nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { white-space: nowrap; }

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 90;
  width: min(440px, calc(100vw - 32px));
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  animation: toast-in .18s ease;
}
.toast-good { border-color: var(--accent-line); }
.toast-bad { border-color: rgba(255, 92, 92, .4); color: #ffc4c4; }
.toast.is-out { opacity: 0; transition: opacity .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- drop zone ---------- */

.drop {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.drop:hover, .drop.is-over { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text-2); }
.drop strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14px; }
.drop .ico { width: 22px; height: 22px; margin-bottom: 8px; }

/* ---------- editable rows ---------- */

.rows { display: grid; gap: 8px; margin-bottom: 14px; }
.row-edit {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.row-edit .input { padding: 9px 11px; font-size: 13px; }
.row-edit .btn-icon { padding: 9px; }
.row-err { grid-column: 1 / -1; font-size: 12px; color: var(--danger); margin: -2px 0 2px; }
@media (max-width: 560px) { .row-edit { grid-template-columns: 1fr auto; } }

.totals {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}
.totals div { display: flex; gap: 8px; }
.totals dt { color: var(--text-3); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 560; }

/* ---------- verdict panels ---------- */

.verdict {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.verdict .ico { width: 22px; height: 22px; margin-top: 1px; }
.verdict h3 { margin: 0 0 4px; font-size: 15px; font-weight: 620; }
.verdict p { margin: 0; font-size: 13px; }
.verdict-safe { background: var(--accent-soft); border: 1px solid var(--accent-line); color: #b9f7bd; }
.verdict-safe h3 { color: var(--accent); }
.verdict-caution { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #ffd48a; }
.verdict-caution h3 { color: var(--warn); }
.verdict-danger { background: var(--danger-soft); border: 1px solid rgba(255, 92, 92, .35); color: #ffb3b3; }
.verdict-danger h3 { color: var(--danger); }

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.findings li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.findings .dotmark { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.findings .dotmark.safe { background: var(--accent); }
.findings .dotmark.caution { background: var(--warn); }
.findings .dotmark.danger { background: var(--danger); }

/* ---------- QR ---------- */

.qr-wrap { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: var(--radius); margin-bottom: 14px; }
.qr-wrap svg { width: min(240px, 100%); height: auto; display: block; }

.copyfield { display: flex; gap: 8px; align-items: stretch; }
.copyfield .input { flex: 1; font-size: 12.5px; }

/* ---------- misc ---------- */

.stack { display: grid; gap: 20px; }
.muted { color: var(--text-3); }
.tag-status {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 560; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text-2);
}
.tag-status.open { border-color: var(--warn-line); color: var(--warn); }
.tag-status.released { border-color: var(--accent-line); color: var(--accent); }
.tag-status.refunded, .tag-status.cancelled { border-color: var(--line-2); color: var(--text-3); }

.empty {
  padding: 28px 18px; text-align: center; color: var(--text-3); font-size: 13px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.switch { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.switch input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.switch strong { color: var(--text); font-weight: 560; display: block; }

code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px;
}
