:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #163245;
  background: #f5f7f9;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.app { padding: 16px; max-width: 620px; margin: 0 auto; }
.topHeader { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.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; line-height: 1.35; }
.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; }
.accountBar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #667f8e; white-space: nowrap; }
#accountUser { font-weight: 700; color: #173647; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.linkButton { background: transparent; color: #0b87c9; padding: 4px 6px; font-size: 11px; }
.authCard { padding: 16px; }
.authHelp { margin: -4px 0 14px; color: #657985; font-size: 12px; line-height: 1.4; }
.authCard form { display: grid; gap: 7px; }
.authCard label { color: #526c7a; font-size: 11px; font-weight: 700; margin-top: 3px; }
.authCard input { width: 100%; border: 1px solid #cfdbe2; border-radius: 5px; padding: 10px; color: #163245; background: #fff; font: inherit; font-size: 13px; outline: none; }
.authCard input:focus { border-color: #0b87c9; box-shadow: 0 0 0 2px rgba(11, 135, 201, .12); }
.loginButton { margin-top: 7px; width: 100%; }
