:root {
  --bg: #0f1420; --panel: #1a2030; --panel2: #222a3d; --text: #e6e9f0;
  --muted: #8b93a7; --line: #2c344a; --accent: #5b9dff;
  --block: #e5484d; --review: #f5a623; --approve: #30a46c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 24px;
  background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  font-weight: 700; font-size: 18px; line-height: 1; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.brand-name { display: inline-block; }
.topbar .tag { color: var(--muted); font-size: 13px; }
.topbar .disclaimer { color: var(--review); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); border: 1px solid transparent; border-radius: 7px;
  padding: 5px 9px; font-size: 13px; line-height: 1.2;
}
.main-nav a:hover {
  color: var(--text); background: var(--panel2); border-color: var(--line); text-decoration: none;
}
.main-nav a.active {
  color: var(--text); background: rgba(91,157,255,.14); border-color: rgba(91,157,255,.45);
}
.lang-switcher { margin-left: auto; display: inline-flex; align-items: center; }
.lang-switcher select { height: 32px; padding: 4px 28px 4px 8px; font-size: 13px; }
.auth-bar { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.auth-link {
  color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 9px; font-size: 12px; line-height: 1.25; white-space: nowrap;
  background: rgba(255,255,255,.04);
}
.auth-link:hover {
  border-color: rgba(91,157,255,.55); background: rgba(91,157,255,.12);
  text-decoration: none; color: var(--text);
}
.user-chip {
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px;
  color: var(--muted); font-size: 12px; line-height: 1.25;
}
.support-line {
  color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 9px; font-size: 12px; line-height: 1.25; white-space: nowrap;
  background: rgba(91,157,255,.08);
}
.support-line:hover {
  border-color: rgba(91,157,255,.55); background: rgba(91,157,255,.14); text-decoration: none;
}
.support-line .mono { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .mono, html[dir="rtl"] input[name=address], html[dir="rtl"] .address-cell {
  direction: ltr; unicode-bidi: plaintext;
}
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .score-col, html[dir="rtl"] .score-cell { text-align: center; }
html[dir="rtl"] .verdict-score {
  text-align: left; padding-left: 0; padding-right: 20px; border-left: 0; border-right: 1px solid var(--line);
}

main { max-width: 1180px; margin: 24px auto; padding: 0 24px; }
.site-footer {
  max-width: 1180px; margin: 0 auto 24px; padding: 0 24px;
  color: var(--muted); font-size: 12px;
  display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap;
}
.footer-version { white-space: nowrap; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 20px;
}
.card:target {
  scroll-margin-top: 16px; border-color: rgba(91,157,255,.70);
  box-shadow: 0 0 0 1px rgba(91,157,255,.24);
}
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.columns .card { margin-bottom: 0; }
.dashboard-grid {
  display: grid; grid-template-columns: minmax(640px, 1.35fr) minmax(330px, .65fr);
  gap: 20px; align-items: start;
}
.dashboard-grid .card { margin-bottom: 0; }
.panel-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}

.check-form { display: flex; gap: 10px; }
.check-form select { flex: 0 0 132px; }
.check-form input { flex: 1; }
.tx-form {
  display: grid; grid-template-columns: 140px minmax(240px, 1fr) minmax(160px, .45fr);
  gap: 12px; align-items: end;
}
.tx-form label {
  display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0;
}
.tx-form input, .tx-form select, .tx-form button { width: 100%; min-width: 0; height: 42px; }
.tx-hash-field { grid-column: span 2; }
.decision-form { display: grid; gap: 12px; max-width: 720px; }
.decision-form select { max-width: 220px; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.decision-actions form { display: inline-flex; }
.ops-form {
  display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px; align-items: end;
}
.ops-form label {
  display: grid; gap: 4px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0;
}
.ops-form input, .ops-form select, .ops-form textarea, .ops-form button {
  width: 100%; min-width: 0;
}
.ops-form .wide { grid-column: span 2; }
.ops-form .full { grid-column: 1 / -1; }
.ops-form button { min-height: 42px; }
.ops-table { min-width: 960px; table-layout: fixed; }
.ops-table th:nth-child(1) { width: 130px; }
.ops-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-table td:nth-child(3),
.ops-table td:nth-child(5),
.ops-table td:last-child { white-space: normal; overflow-wrap: anywhere; }
.ops-table.compact { min-width: 760px; }
.api-token {
  display: grid; gap: 6px; padding: 12px; border: 1px solid rgba(48,163,108,.45);
  border-radius: 7px; background: rgba(48,163,108,.08);
}
.api-token code, .code-sample {
  display: block; padding: 10px; border-radius: 7px; background: #101722;
  color: var(--text); overflow-x: auto; white-space: pre;
}
.embed-body {
  background: transparent; color: var(--text); min-width: 300px;
}
.embed-shell {
  max-width: 460px; margin: 0; padding: 10px;
}
.embed-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; min-height: 100vh;
}
.embed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.embed-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.embed-brand img { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto; }
.embed-head strong { font-size: 16px; }
.embed-head span { color: var(--muted); font-size: 12px; }
.embed-form { display: grid; gap: 10px; }
.embed-form label {
  display: grid; gap: 4px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0;
}
.embed-form input, .embed-form select, .embed-form button { width: 100%; min-width: 0; }
.embed-result {
  margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.embed-result > div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.embed-result.block { border-color: var(--block); background: rgba(229,72,77,.12); }
.embed-result.review { border-color: var(--review); background: rgba(245,166,35,.12); }
.embed-result.approve { border-color: var(--approve); background: rgba(48,163,108,.12); }
.embed-risk-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.embed-risk-list li { font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.embed-foot { color: var(--muted); font-size: 11px; margin: 14px 0 0; }
.report-brand {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.report-brand img {
  width: 54px; height: 54px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,.06);
}
.report-brand strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.report-brand p { margin: 2px 0 0; overflow-wrap: anywhere; }
.otc-action-card {
  display: grid; grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.4fr) minmax(260px, .8fr);
  gap: 18px; align-items: start; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 20px; background: var(--panel);
}
.otc-action-card.approve { border-color: var(--approve); background: rgba(48,163,108,.10); }
.otc-action-card.review { border-color: var(--review); background: rgba(245,166,35,.11); }
.otc-action-card.block { border-color: var(--block); background: rgba(229,72,77,.11); }
.otc-action-label {
  font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 4px;
}
.otc-action-card.approve .otc-action-label { color: var(--approve); }
.otc-action-card.review .otc-action-label { color: var(--review); }
.otc-action-card.block .otc-action-label { color: var(--block); }
.otc-action-main p { margin: 8px 0 0; color: var(--text); }
.otc-action-reasons ol { margin: 0; padding-left: 20px; }
.otc-action-reasons li { padding: 4px 0; overflow-wrap: anywhere; }
.otc-action-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.otc-action-save h2 { width: 100%; margin-bottom: 0; }
.btn-secondary.danger:hover { border-color: var(--block); color: #fff; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.card p, .hint, .actions, .rationale, .subject, .ai-text, .triggers li, table.kv td {
  overflow-wrap: anywhere;
}
.legal-page {
  max-width: 860px;
}
.legal-page h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.legal-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.legal-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.legal-section h2 {
  color: var(--text);
}
.login-shell {
  min-height: calc(100vh - 180px); display: grid; place-items: center;
}
.login-panel {
  width: min(100%, 460px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 24px;
}
.login-brand {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.login-mark { width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto; }
.login-brand h1 { margin: 0 0 6px; font-size: 22px; }
.login-brand p { margin: 0; color: var(--muted); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 46px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: #161a22; font-weight: 700;
}
.google-btn:hover { text-decoration: none; filter: brightness(.96); }
.auth-config-missing {
  margin: 0; color: var(--review); border: 1px solid rgba(245,166,35,.38);
  border-radius: 7px; padding: 12px; background: rgba(245,166,35,.10);
}
input[type=text], input[type=number], input[type=date], select, textarea {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 7px; padding: 9px 11px; font-size: 14px; font-family: inherit;
}
textarea { width: 100%; resize: vertical; min-height: 96px; }
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 16px; font-size: 14px; cursor: pointer; font-family: inherit;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .65; cursor: progress; }
.link-btn { background: none; color: var(--muted); padding: 0; }
.link-btn:hover { color: var(--block); text-decoration: underline; }
.link-btn.danger { color: var(--block); }
.link-btn.auth-link {
  color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 9px; background: rgba(255,255,255,.04); line-height: 1.25;
}
.link-btn.auth-link:hover {
  color: var(--text); border-color: rgba(91,157,255,.55);
  background: rgba(91,157,255,.12); text-decoration: none;
}
/* Subtle outlined button — for secondary actions next to the primary one. */
.btn-secondary {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 14px; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; line-height: 1; font-family: inherit;
}
.btn-secondary:hover { filter: brightness(1.15); border-color: var(--accent); }
.btn-secondary.disabled {
  opacity: .55; cursor: not-allowed; pointer-events: none; border-color: var(--line);
}
.inline { display: inline; }
.internal-form, .check-form { flex-wrap: wrap; }
.internal-form { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.dashboard-internal-form {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px;
  gap: 10px; align-items: stretch; margin-bottom: 18px;
}
.dashboard-internal-form input, .dashboard-internal-form select, .dashboard-internal-form button {
  min-width: 0; width: 100%; height: 42px;
}
.dashboard-internal-form input[name=address],
.dashboard-internal-form input[name=note] { grid-column: 1 / 3; }
.dashboard-internal-form button { grid-column: 2; grid-row: 2; }

/* Dashboard panels the user can drag to resize (height, with internal scroll). */
.columns.resizable > .card, .dashboard-grid.resizable > .card {
  resize: vertical; overflow: auto; min-height: 160px;
}
.error { color: var(--block); margin: 0 0 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
table.kv td:first-child { color: var(--muted); width: 55%; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin-bottom: 0; }
.table-wrap th, .table-wrap td { overflow-wrap: normal; }
.nowrap { white-space: nowrap; }
.recent-table { table-layout: fixed; min-width: 700px; }
.recent-table th, .recent-table td { padding: 9px 8px; }
.recent-table th:nth-child(1) { width: 44px; }
.recent-table th:nth-child(2) { width: 180px; }
.recent-table th:nth-child(3) { width: 110px; }
.recent-table th:nth-child(4) { width: 132px; }
.recent-table th:nth-child(5) { width: 58px; }
.recent-table th:nth-child(6) { width: 144px; }
.recent-table .id-col { width: 44px; text-align: center; }
.address-cell { width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.type-cell { width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verdict-cell { width: 132px; }
.score-col, .score-cell { width: 58px; text-align: center; white-space: nowrap; }
.time-cell { width: 144px; white-space: nowrap; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  font-weight: 600; color: #fff; white-space: nowrap; line-height: 1.35;
}
.badge.small { padding: 1px 7px; font-size: 11px; }
.badge.block { background: var(--block); }
.badge.review { background: var(--review); color: #1a1300; }
.badge.approve { background: var(--approve); }
a.badge:hover, a.badge:focus-visible {
  filter: brightness(1.08); text-decoration: none; outline: 1px solid rgba(255,255,255,.55);
}
.badge.sig-block { background: var(--block); }
.badge.sig-review { background: var(--review); color: #1a1300; }
.badge.sig-info { background: #39425c; }
.badge.sig-na { background: #4a4a4a; }

.verdict {
  display: flex; gap: 22px; align-items: center; border-radius: 12px;
  padding: 22px 26px; margin-bottom: 20px; border: 1px solid var(--line);
}
.verdict-body { flex: 1; min-width: 0; }
.verdict.block { background: rgba(229,72,77,.12); border-color: var(--block); }
.verdict.review { background: rgba(245,166,35,.12); border-color: var(--review); }
.verdict.approve { background: rgba(48,163,108,.12); border-color: var(--approve); }
.verdict-decision { font-size: 34px; font-weight: 800; letter-spacing: 0; }
.verdict.block .verdict-decision { color: var(--block); }
.verdict.review .verdict-decision { color: var(--review); }
.verdict.approve .verdict-decision { color: var(--approve); }
.verdict-score {
  min-width: 170px; text-align: right; padding-left: 20px; border-left: 1px solid var(--line);
}
.score-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.score-number { font-size: 34px; font-weight: 800; line-height: 1.1; }
.score-number span { color: var(--muted); font-size: 15px; font-weight: 600; }
.score-band { font-weight: 700; margin-top: 2px; }
.score-meta { color: var(--muted); font-size: 12px; }
.score-note { color: var(--review); font-size: 12px; margin-top: 6px; }
.tx-status { font-size: 24px; font-weight: 800; line-height: 1.2; }
.rationale { margin: 0 0 6px; font-size: 15px; }
.subject { margin: 4px 0; font-size: 13px; color: var(--muted); }

.triggers { margin: 0; padding-left: 0; list-style: none; }
.triggers li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.triggers li:last-child { border-bottom: 0; }

tr.sig-block td { background: rgba(229,72,77,.07); }
tr.sig-review td { background: rgba(245,166,35,.06); }
tr.sig-na td { color: var(--muted); }
.actions { color: var(--muted); }
.section-heading {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.section-heading h2 { margin-bottom: 0; }
.upgrade-hero {
  border: 1px solid rgba(91,157,255,.34); border-radius: 8px;
  padding: 18px 20px; margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(91,157,255,.10), rgba(255,255,255,.025));
}
.upgrade-hero h1 { margin: 8px 0 8px; font-size: 22px; }
.upgrade-hero h2 { color: var(--text); margin-bottom: 8px; text-transform: none; font-size: 17px; }
.upgrade-lead {
  max-width: 850px; margin: 0; color: var(--text); font-size: 15px;
}
.upgrade-reasons {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 10px;
}
.upgrade-reasons li {
  border-left: 3px solid var(--accent); padding: 8px 10px;
  background: rgba(255,255,255,.025); border-radius: 6px; color: var(--text);
}
.upgrade-plans { margin-top: 20px; }
.upgrade-plan-grid {
  display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 16px;
}
.upgrade-plan {
  display: flex; flex-direction: column; min-height: 390px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; position: relative;
}
.upgrade-plan.featured {
  border-color: rgba(91,157,255,.75);
  box-shadow: 0 0 0 1px rgba(91,157,255,.18), 0 14px 32px rgba(0,0,0,.20);
}
.upgrade-plan-head { display: grid; gap: 8px; align-items: start; margin-bottom: 8px; }
.upgrade-plan h2 {
  margin: 0; color: var(--text); text-transform: none; font-size: 18px;
}
.upgrade-plan p { margin: 0; color: var(--muted); }
.upgrade-list {
  margin: 14px 0 16px; padding-left: 18px; display: grid; gap: 8px;
}
.upgrade-list li { overflow-wrap: anywhere; }
.upgrade-plan-action { margin-top: auto; display: grid; gap: 8px; }
.upgrade-plan-action form { margin: 0; }
.upgrade-plan-action button { width: 100%; min-height: 42px; }
.referral-link-box {
  margin-top: 12px; padding: 12px; border: 1px solid var(--line);
  border-radius: 8px; background: rgba(255,255,255,.035); overflow-x: auto;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-top: 14px;
}
.stat-grid > div {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: rgba(255,255,255,.025);
}
.stat-grid strong { display: block; font-size: 22px; }
.stat-grid span { color: var(--muted); font-size: 12px; }
.referral-history { margin-top: 14px; }
.compact-table { min-width: 720px; }
.setup-card { margin-top: 20px; }
.setup-table td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; }
.inline-form {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0 8px;
}
.inline-form label { color: var(--muted); font-weight: 700; }
.setup-steps {
  margin: 14px 0; padding-left: 22px; display: grid; gap: 8px;
}
.setup-steps li { overflow-wrap: anywhere; }
.score-adjustments { margin-bottom: 10px; }
.score-adjustments { min-width: 620px; table-layout: fixed; }
.score-adjustments th:nth-child(1) { width: 170px; }
.score-adjustments th:nth-child(2) { width: 82px; }
.score-adjustments th:nth-child(2), .score-adjustments td:nth-child(2) { text-align: right; white-space: nowrap; }
.score-adjustments td:nth-child(3) { white-space: normal; overflow-wrap: break-word; }
.score-impact { font-weight: 700; color: var(--review); }
.score-caps { color: var(--muted); font-size: 13px; margin-top: 10px; }
.risk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
}
.risk-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: rgba(255,255,255,.025); min-height: 104px;
}
.risk-item p { margin: 8px 0 0; font-size: 13px; }
.risk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 700; margin-bottom: 4px;
}
.risk-block { border-color: rgba(229,72,77,.55); background: rgba(229,72,77,.08); }
.risk-review { border-color: rgba(245,166,35,.55); background: rgba(245,166,35,.07); }
.risk-unavailable { border-color: rgba(139,147,167,.45); }
.risk-info { border-color: rgba(91,157,255,.30); background: rgba(91,157,255,.05); }
.watch-brief-list {
  list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px;
}
.watch-brief-list li { font-size: 12px; overflow-wrap: anywhere; }
.audit-table { min-width: 720px; table-layout: fixed; }
.audit-table th { width: 240px; white-space: normal; }
.audit-table td { white-space: normal; overflow-wrap: anywhere; }
.proof-card > .muted { margin-top: 0; }
.proof-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  color: var(--muted); font-size: 12px; margin-bottom: 12px;
}
.proof-table { min-width: 980px; table-layout: fixed; }
.proof-table th:nth-child(1) { width: 190px; }
.proof-table th:nth-child(2) { width: 150px; }
.proof-table th:nth-child(3),
.proof-table th:nth-child(4) { width: 132px; }
.proof-table th:nth-child(5) { width: 140px; }
.proof-table th:nth-child(6) { width: 150px; }
.proof-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evidence { min-width: 920px; table-layout: fixed; }
.evidence th:nth-child(1) { width: 190px; }
.evidence th:nth-child(2) { width: 52px; }
.evidence th:nth-child(3) { width: 150px; }
.evidence th:nth-child(5) { width: 82px; }
.evidence th:nth-child(6) { width: 130px; }
.evidence td:nth-child(1),
.evidence td:nth-child(2),
.evidence td:nth-child(3),
.evidence td:nth-child(5),
.evidence td:nth-child(6) {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evidence td:nth-child(4) { white-space: normal; overflow-wrap: break-word; }
.history-table { min-width: 820px; table-layout: fixed; }
.history-table th:nth-child(1) { width: 54px; }
.history-table th:nth-child(2) { width: 185px; }
.history-table th:nth-child(3) { width: 130px; }
.history-table th:nth-child(4) { width: 132px; }
.history-table th:nth-child(5) { width: 72px; }
.history-table th:nth-last-child(1) { width: 150px; }
.history-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-table td:nth-child(2), .history-table td:last-child { white-space: nowrap; }
.tx-table { min-width: 780px; table-layout: fixed; }
.tx-table th:nth-child(1) { width: 170px; }
.tx-table th:nth-child(2) { width: 110px; }
.tx-table th:nth-child(3) { width: 210px; }
.tx-table th:nth-child(4) { width: 100px; }
.tx-table th:nth-child(5) { width: 160px; }
.tx-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-kv { min-width: 760px; }
.match-table { min-width: 780px; table-layout: fixed; }
.match-table th:nth-child(1) { width: 170px; }
.match-table th:nth-child(2),
.match-table th:nth-child(3) { width: 260px; }
.match-table th:nth-child(4) { width: 130px; }
.match-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-match { background: var(--approve); }
.match-mismatch { background: var(--block); }
.match-not_checked { background: #39425c; }
.wallet-table { min-width: 1220px; table-layout: fixed; }
.wallet-table th:nth-child(1) { width: 34px; }
.wallet-table th:nth-child(2) { width: 190px; }
.wallet-table th:nth-child(3) { width: 190px; }
.wallet-table th:nth-child(4) { width: 140px; }
.wallet-table th:nth-child(5) { width: 92px; }
.wallet-table th:nth-child(6) { width: 180px; }
.wallet-table th:nth-child(7) { width: 118px; }
.wallet-table th:nth-child(8) { width: 224px; }
.wallet-table td {
  height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-table td:nth-child(2) a,
.wallet-table td:nth-child(3) .wl-shown {
  display: inline-block; max-width: 100%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}
.wallet-table td:nth-child(4),
.wallet-table td:nth-child(5),
.wallet-table td:nth-child(7) { overflow: visible; }
.wallet-verdict-badge { min-width: 118px; text-align: center; }
.wallet-score-cell {
  text-align: center; line-height: 1.25; vertical-align: middle; min-height: 38px;
}
.wallet-score-current {
  display: block; font-weight: 700;
}
.wallet-score-prev {
  display: block; max-width: 100%; margin-top: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[dir="rtl"] .wallet-score-cell { direction: rtl; unicode-bidi: isolate; }
html[dir="rtl"] .wallet-score-current { direction: ltr; unicode-bidi: isolate; }
.wallet-table tr.wl-row-updated td[data-field] {
  animation: wallet-row-pulse 900ms ease-out;
}
@keyframes wallet-row-pulse {
  0% { background: rgba(91,157,255,.14); }
  100% { background: transparent; }
}
.wallet-table tr.wl-state-queued {
  background: linear-gradient(90deg, rgba(91,157,255,.12), rgba(91,157,255,.03) 44%, transparent);
}
.wallet-table tr.wl-state-running {
  background-image: linear-gradient(90deg, rgba(245,166,35,.18), rgba(91,157,255,.10), rgba(245,166,35,.18));
  background-size: 220% 100%;
  animation: wallet-row-running 1.15s linear infinite;
}
.wallet-table tr.wl-state-updated {
  background: linear-gradient(90deg, rgba(48,163,108,.16), rgba(48,163,108,.04) 44%, transparent);
}
.wallet-table tr.wl-state-failed {
  background: linear-gradient(90deg, rgba(229,72,77,.14), rgba(229,72,77,.03) 44%, transparent);
}
.wallet-table tr.wl-state-queued td:first-child { box-shadow: inset 4px 0 rgba(91,157,255,.95); }
.wallet-table tr.wl-state-running td:first-child { box-shadow: inset 4px 0 rgba(245,166,35,.95); }
.wallet-table tr.wl-state-updated td:first-child { box-shadow: inset 4px 0 rgba(48,163,108,.95); }
.wallet-table tr.wl-state-failed td:first-child { box-shadow: inset 4px 0 rgba(229,72,77,.95); }
.wl-status-badge {
  min-width: 82px; text-align: center; padding-left: 6px; padding-right: 6px;
}
.wl-status-running {
  background: #8f671d; color: #fff;
}
.wl-status-updated {
  background: var(--approve); color: #fff;
}
@keyframes wallet-row-running {
  from { background-position: 0 0; }
  to { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-table tr.wl-state-running,
  .wallet-table tr.wl-row-updated td[data-field] {
    animation: none;
  }
}
.wallet-refresh-all { padding: 6px 11px; font-size: 13px; }
.watch-title { align-items: center; gap: 12px; }
.watch-title h2 { margin-bottom: 0; }
.watch-title form { margin-left: auto; }
.wallet-row-actions { white-space: nowrap; }
.wl-drag.disabled { cursor: default; }
.users-table { min-width: 1560px; table-layout: fixed; }
.users-table th,
.users-table td {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.users-table th:nth-child(1) { width: 300px; }
.users-table th:nth-child(2),
.users-table th:nth-child(3) { width: 140px; }
.users-table th:nth-child(4) { width: 160px; }
.users-table th:nth-child(5) { width: 110px; }
.users-table th:nth-child(6) { width: 78px; }
.users-table th:nth-child(7) { width: 112px; }
.users-table th:nth-child(8) { width: 168px; }
.users-table th:nth-child(9) { width: 150px; }
.users-table th:nth-child(10) { width: 160px; }
.users-table select,
.users-table input[type=text] {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
}
.users-table td:nth-child(5) { overflow: visible; }
.users-table td:nth-child(10) { overflow: visible; }
.users-table td:nth-child(10) > button,
.user-delete-form {
  display: inline-block; vertical-align: middle;
}
.user-delete-form { margin-left: 10px; }
.admin-referrals-table, .admin-trials-table { min-width: 1040px; table-layout: fixed; }
.admin-referrals-table td, .admin-trials-table td { overflow-wrap: anywhere; }
.sources-table { min-width: 940px; table-layout: fixed; }
.sources-table th:nth-child(1) { width: 240px; }
.sources-table th:nth-child(2) { width: 130px; }
.sources-table th:nth-child(4) { width: 120px; }
.sources-table th:nth-child(5) { width: 84px; }
.sources-table th:nth-child(6) { width: 150px; }
.sources-table th:nth-child(7) { width: 190px; }
.sources-table td { overflow-wrap: anywhere; }

.overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center;
  background: rgba(15,20,32,.88); backdrop-filter: blur(2px);
}
.overlay.show { display: flex; }
.overlay-box { text-align: center; max-width: 420px; padding: 0 24px; }
.overlay-box .big { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-text { white-space: pre-wrap; line-height: 1.6; margin: 0 0 10px; }
.card h2 .muted { font-weight: 400; text-transform: none; letter-spacing: 0; }

@media (max-width: 720px) {
  .verdict { align-items: flex-start; flex-direction: column; }
  .verdict-score { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; text-align: left; width: 100%; }
}

@media (max-width: 1100px) {
  main { max-width: 980px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .otc-action-card { grid-template-columns: 1fr; }
  .upgrade-plan-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  main { padding: 0 14px; margin-top: 16px; }
  .topbar { padding: 10px 14px; }
  .main-nav { width: 100%; }
  .topbar .disclaimer { margin-left: 0; width: 100%; }
  .lang-switcher { margin-left: 0; }
  .check-form { display: grid; grid-template-columns: 1fr; }
  .check-form select { flex-basis: auto; width: 100%; }
  .tx-form { grid-template-columns: 1fr; }
  .tx-hash-field { grid-column: auto; }
  .ops-form { grid-template-columns: 1fr; }
  .ops-form .wide, .ops-form .full { grid-column: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .report-brand { align-items: flex-start; }
  .dashboard-internal-form { grid-template-columns: 1fr; }
  .dashboard-internal-form input[name=note] { grid-column: auto; }
  .dashboard-internal-form input[name=address],
  .dashboard-internal-form button { grid-column: auto; grid-row: auto; }
  .upgrade-reasons, .upgrade-plan-grid { grid-template-columns: 1fr; }
  .upgrade-plan { min-height: 0; }
}

/* Export / print dropdown on the report page. */
.export-menu { position: relative; display: inline-block; margin: 10px 0 4px; }
.export-menu > summary { list-style: none; user-select: none; gap: 6px; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu[open] > summary { border-color: var(--accent); }
.export-menu-items {
  position: absolute; z-index: 30; margin-top: 6px; min-width: 200px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); padding: 6px; display: flex; flex-direction: column;
}
.export-menu-items a {
  padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px;
}
.export-menu-items a:hover { background: var(--panel2); color: var(--accent); text-decoration: none; }

/* ---- billing: value tiles + plan prices ---- */
.value-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; margin-top: 14px;
}
.value-tile {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px;
}
.value-tile .vt-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(91, 157, 255, 0.12); border: 1px solid rgba(91, 157, 255, 0.35);
}
.value-tile .vt-txt { min-width: 0; }
.value-tile strong { display: block; font-size: 14px; line-height: 1.35; }
.value-tile .vt-sub { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 4px 0 6px; }
.plan-price .amount { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.plan-price .per { color: var(--muted); font-size: 13px; }
