* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: #1c1c1e;
  background: #ffffff;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.25rem; margin: 0 0 6px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
p { margin: 6px 0; }

button {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid #c8c8cd;
  border-radius: 6px;
  background: #f2f2f5;
  cursor: pointer;
}
button:hover { background: #e6e6ea; }

#checkForm { margin-top: 8px; }

#msgText {
  width: 100%;
  min-height: 140px;
  padding: 10px;
  font: inherit;
  border: 1px solid #c8c8cd;
  border-radius: 6px;
  background: #fbfbfc;
  color: inherit;
}

#analyzeBtn { margin-top: 8px; font-weight: 600; }

#examplesLabel { margin-top: 14px; font-weight: 600; }

#errBox { color: #b3261e; margin-top: 10px; }

#verdictCard { border-left: 4px solid transparent; background: #f7f7f9; padding: 16px; display: block; }
#verdictCard[hidden] { display: none; }

.v-scam { border-left-color: #c0392b; }
.v-gray { border-left-color: #d4a017; }
.v-legit { border-left-color: #2e7d32; }

mark { background: #ffe066; color: #000; padding: 0 2px; }

ul { margin: 4px 0; padding-left: 20px; }
li { margin: 3px 0; }

#statsBox, #historyWrap, #disclaimer {
  margin-top: 18px;
  border-top: 1px solid #e2e2e7;
  padding-top: 12px;
}

#disclaimer { font-size: 0.88rem; color: #55555c; }

#historyList { list-style: none; padding-left: 0; }

footer { color: #55555c; font-size: 0.88rem; }

@media (prefers-color-scheme: dark) {
  body { color: #ececf1; background: #17171a; }
  #verdictCard, #msgText { background: #202024; border-color: #3a3a41; color: inherit; }
  button { background: #26262b; border-color: #3a3a41; color: inherit; }
  button:hover { background: #303036; }
}
