:root {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --line: #cbd5e1;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --ok-bg: #dcfce7; --ok-ink: #166534;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 13px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 24px; background: #0f172a; color: #f8fafc;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #38bdf8, #0284c7); color: #041b2d; font-weight: 900;
}
.topbar h1 { margin: 0; font-size: 17px; }
.topbar p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; }
.pills { display: flex; gap: 8px; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.14); color: #e2e8f0; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }

.shell {
  width: min(1240px, calc(100% - 32px)); margin: 18px auto 40px;
  display: grid; grid-template-columns: 370px 1fr; gap: 20px; align-items: start;
}
.phone-frame {
  background: #ffffff; border: 8px solid #1e293b; border-radius: 28px;
  padding: 16px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); display: grid; gap: 12px;
}
.phone-notch { width: 110px; height: 6px; border-radius: 99px; background: #cbd5e1; margin: 0 auto 4px; }
.phone-head {
  padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #fff;
  display: grid; gap: 4px;
}
.phone-head strong { font-size: 26px; }
.phone-head .muted { color: #bae6fd; font-size: 11.5px; }
.kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #38bdf8; font-weight: 800; }

.send-form { display: grid; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label { display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
input, select {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: 12.5px;
}
.quote-preview {
  padding: 9px 10px; border-radius: 8px; background: #f0f9ff; border: 1px solid #bae6fd;
  font-size: 12px; color: #0c4a6e; line-height: 1.5;
}
.btn { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; border: 0; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #f8fafc; color: var(--ink); }
.btn.small { padding: 5px 10px; font-size: 11.5px; }

.rail-steps { display: grid; gap: 6px; }
.rs { padding: 7px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.rs.done { background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 600; }

.web-col { display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.kpi-row .card { display: grid; gap: 4px; }
.kpi-row strong { font-size: 20px; }
.card .kicker { color: var(--brand); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
h2 { margin: 0; font-size: 14.5px; }
.muted { color: var(--muted); font-size: 12px; }

.ledger { display: grid; gap: 8px; max-height: 230px; overflow-y: auto; }
.tx-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--line);
}
pre {
  margin: 0; padding: 12px; border-radius: 8px; background: #0f172a; color: #bae6fd;
  font-family: ui-monospace, monospace; font-size: 11.5px; overflow-x: auto; line-height: 1.45;
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
}
