* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2329; background: #f4f6f8; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
         padding: 10px 16px; background: #1f2a33; color: #fff; }
header a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
nav a, nav button { color: #dfe7ee; background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 0; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 22px 0 8px; }
.card { background: #fff; border: 1px solid #dde3e8; border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.card.click { cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.muted { color: #66717c; font-size: 14px; }
.big { font-size: 20px; font-weight: 700; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-weight: 600; font-size: 14px; }
.status.protected { background: #dff3e4; color: #17642e; }
.status.paused { background: #fff1cc; color: #7a5600; }
.status.stolen { background: #d72f2f; color: #fff; }
.status.no_contact { background: #e4e7eb; color: #4a545e; }
.alarm { background: #d72f2f; color: #fff; border-color: #b81f1f; }
.alarm .muted { color: #ffe1e1; }
.warn { background: #fff7dd; border-color: #f0d68a; }
button, .button { font: inherit; font-weight: 600; padding: 11px 16px; border-radius: 8px; border: 1px solid #b8c2cc;
                  background: #fff; color: #1d2329; cursor: pointer; min-height: 44px; }
button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
button.danger { background: #fff; border-color: #fff; color: #b81f1f; }
.alarm button { border-color: #fff; }
button.ghost { background: transparent; color: inherit; border-color: currentColor; }
button:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; padding: 9px 10px; border: 1px solid #b8c2cc; border-radius: 8px; min-height: 44px;
                width: 100%; max-width: 360px; background: #fff; }
label { display: block; margin: 10px 0 4px; font-size: 14px; color: #4a545e; }
label.inline { display: flex; gap: 8px; align-items: center; color: inherit; font-size: 16px; }
label.inline input { width: auto; min-height: 0; }
.map { height: 340px; border-radius: 10px; border: 1px solid #dde3e8; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover { background: #f2f7ff; }
.scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: #fff; border: 1px solid #dde3e8; border-radius: 10px; padding: 10px; }
.error { color: #b81f1f; font-weight: 600; }
.ok { color: #17642e; font-weight: 600; }
.copy { word-break: break-all; background: #f4f6f8; border: 1px dashed #b8c2cc; border-radius: 8px; padding: 8px; }
ol li { margin: 6px 0; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .map { height: 280px; } }
