:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #163245;
  background: #f5f7f9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.app { padding: 16px; max-width: 620px; margin: 0 auto; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #667f8e; }
h1 { margin: 4px 0 6px; font-size: 24px; }
h2 { margin: 0 0 12px; font-size: 15px; }
.sub { margin: 0 0 16px; color: #657985; font-size: 13px; line-height: 1.4; }
.card { background: #fff; border: 1px solid #dbe3e8; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.actions { display: flex; gap: 8px; }
button { border: 0; border-radius: 5px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: #0b87c9; color: #fff; }
.secondary { background: #e8eef2; color: #173647; }
.status { margin-top: 10px; font-size: 12px; color: #647986; min-height: 18px; }
.status.error { color: #b3261e; }
.status.success { color: #19763a; }
.detected { margin: 0; }
.detected > div { display: grid; grid-template-columns: 145px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eef2f4; }
.detected > div:last-child { border-bottom: 0; }
dt { color: #718591; font-size: 12px; }
dd { margin: 0; font-size: 12px; font-weight: 700; word-break: break-word; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.metrics div { background: #f6f8fa; border-radius: 6px; padding: 10px 4px; }
.metrics strong { display: block; font-size: 20px; }
.metrics span { display: block; margin-top: 3px; font-size: 10px; color: #738792; }
.progress { height: 7px; background: #e6ecef; border-radius: 999px; overflow: hidden; margin-top: 12px; }
#progressBar { width: 0%; height: 100%; background: #0b87c9; transition: width .2s ease; }
.note { color: #6a7d87; font-size: 11px; line-height: 1.45; padding: 4px 2px 12px; }
