* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6fb; color: #12233f; -webkit-font-smoothing: antialiased; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

header.top { background: #0a1f44; color: #fff; padding: 22px 18px 18px; }
header.top h1 { margin: 0; font-size: 30px; letter-spacing: .2px; }
header.top .benefit { margin: 6px 0 0; color: #ffd968; font-size: 15px; max-width: 720px; }

main { max-width: 880px; margin: 0 auto; padding: 16px 14px 40px; }
.card { background: #fff; border: 1px solid #dde3ef; border-radius: 14px; padding: 18px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.view-title { margin: 0 0 10px; font-size: 20px; color: #0a1f44; }
h3 { margin: 0 0 6px; font-size: 16px; color: #0a1f44; }
p { line-height: 1.45; }
.fine { color: #68779a; font-size: 13px; line-height: 1.45; }
ul { margin: 6px 0 6px 18px; padding: 0; line-height: 1.5; }

label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
input[type="text"], input[type="password"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c4da; border-radius: 10px; font: inherit; background: #fff; color: #12233f; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.5; }

.row { display: flex; align-items: center; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; }
.row.gap { gap: 8px; }

.btn { display: inline-block; border: 1px solid #33456b; background: #eef1f7; color: #0a1f44; padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #e7ecf5; }
.btn.primary { background: #0a1f44; border-color: #0a1f44; color: #fff; }
.btn.primary:hover { background: #12233f; }
.btn.gold { background: #c9a227; border-color: #c9a227; color: #12233f; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.filebtn { margin: 0; font-weight: 600; }

details { border: 1px solid #dde3ef; border-radius: 10px; padding: 10px 12px; margin-top: 16px; background: #fbfcfe; }
details summary { cursor: pointer; font-weight: 700; color: #0a1f44; }

.progress { height: 10px; background: #e7ecf5; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; width: 0%; background: #c9a227; transition: width .2s ease; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; border: 1px solid #dde3ef; background: #eef1f7; color: #33456b; }
.chip.send { background: #e2f3e7; border-color: #9fd3ab; color: #1a7a37; }
.chip.risky { background: #fdf3d8; border-color: #ecd28a; color: #7a5b00; }
.chip.remove { background: #fbe7e5; border-color: #f0aca6; color: #b3261e; }
.chip.provider { background: #e8e6fb; border-color: #c0bcf0; color: #443a9e; }

.tab { border: 1px solid #b9c4da; background: #fff; color: #33456b; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tab.active { background: #0a1f44; border-color: #0a1f44; color: #fff; }

#resultsWrap { max-height: 480px; overflow: auto; border: 1px solid #e7ecf5; border-radius: 10px; margin: 10px 0 14px; }
table.results { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.results th { position: sticky; top: 0; background: #0a1f44; color: #fff; text-align: left; padding: 8px 10px; font-size: 12.5px; letter-spacing: .3px; }
table.results td { padding: 7px 10px; border-top: 1px solid #eef1f7; vertical-align: top; word-break: break-all; }
table.results td.why { color: #68779a; word-break: normal; min-width: 180px; }
.verdict { font-weight: 800; white-space: nowrap; }
.verdict.send { color: #1a7a37; }
.verdict.risky { color: #a87e00; }
.verdict.remove { color: #b3261e; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: #eef1f7; border-radius: 12px; padding: 14px; }
.stepnum { display: inline-block; background: #c9a227; color: #12233f; font-weight: 800; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; text-align: center; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; color: #33456b; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.honest { border-radius: 12px; padding: 14px; font-size: 14px; }
.honest.ok { background: #eef7f0; border: 1px solid #cfe6d5; }
.honest.warn { background: #fdf8e7; border: 1px solid #eee0ac; }

.pair { border-color: #c9a227; border-width: 2px; }
footer { padding: 6px 2px 0; }
footer .version { color: #68779a; font-size: 12.5px; }

@media (max-width: 640px) {
  .steps, .grid2 { grid-template-columns: 1fr; }
  header.top h1 { font-size: 26px; }
  main { padding: 12px 10px 32px; }
  .card { padding: 14px; }
  table.results td.why { min-width: 120px; }
}
