* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 340px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}
.m-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #1e40af;
  color: #fff;
}
.m-logo { font-size: 22px; line-height: 1; }
.m-title { font-weight: 700; font-size: 14px; }
.m-sub { font-size: 11px; opacity: 0.85; }
.m-tier {
  margin-left: auto;
  background: #6d28d9;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}
.m-tier.familie { background: #059669; }
.m-tier.privat  { background: #475569; }

/* Statistikk-bar */
.m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.m-stat {
  background: #fff;
  text-align: center;
  padding: 10px 4px;
}
.m-stat-num { font-size: 18px; font-weight: 700; color: #1e40af; line-height: 1.1; }
.m-stat-num.m-stat-warn { color: #d97706; }
.m-stat-num.m-stat-danger { color: #dc2626; }
.m-stat-lbl { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* Empty state */
.m-empty {
  background: #fff;
  margin: 12px;
  padding: 24px 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.m-empty-icon { font-size: 36px; margin-bottom: 8px; }
.m-empty-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.m-empty-text { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 12px; }

.m-card {
  background: #fff;
  margin: 12px;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.m-status { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.m-host { font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; color: #0f172a; word-break: break-all; margin-bottom: 12px; }

.m-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.m-btn-primary { background: #1e40af; color: #fff; }
.m-btn-primary:hover:not(:disabled) { background: #1e3a8a; }
.m-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.m-btn-trust { background: #fff; color: #059669; border: 1px solid #059669; margin-top: 8px; }
.m-btn-trust:hover:not(:disabled) { background: #d1fae5; }

.m-trusted {
  margin-top: 10px;
  padding: 10px 12px;
  background: #d1fae5;
  border-radius: 8px;
  font-size: 12px;
  color: #065f46;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.m-trusted button {
  background: transparent;
  border: 1px solid #065f46;
  color: #065f46;
  font-family: inherit;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.m-trusted button:hover { background: #065f46; color: #fff; }

.m-result {
  background: #fff;
  margin: 0 12px 12px;
  padding: 14px;
  border-radius: 10px;
  border-left: 4px solid #1e40af;
}
.m-result.verdict-safe       { border-left-color: #059669; }
.m-result.verdict-suspicious { border-left-color: #d97706; }
.m-result.verdict-malicious  { border-left-color: #dc2626; }

.m-verdict { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.m-verdict.safe       { color: #059669; }
.m-verdict.suspicious { color: #d97706; }
.m-verdict.malicious  { color: #dc2626; }
.m-verdict.unknown    { color: #64748b; }

.m-reasons { margin: 0; padding-left: 18px; color: #475569; font-size: 12px; }
.m-reasons li { margin-bottom: 2px; }

.m-toggles { padding: 0 12px 12px; }
.m-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
}
.m-toggle input { width: 16px; height: 16px; accent-color: #1e40af; }

.m-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.m-foot a { color: #1e40af; text-decoration: none; }
.m-foot a:hover { text-decoration: underline; }
.m-ver { font-family: 'DM Mono', monospace; }
