* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #F7F7F5;
  color: #232A2F;
  line-height: 1.5;
}
a { color: #1B4F91; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #14171A;
  color: #fff;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .brand { font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }
.topbar a { color: #C7CCD1; font-size: 13px; margin-left: 18px; }
.topbar a:hover { color: #fff; }

.wrap { max-width: 980px; margin: 0 auto; padding: 28px; }

h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
h2 { font-size: 16px; font-weight: 700; margin: 22px 0 10px 0; }
.subtitle { color: #6B7280; font-size: 13px; margin-bottom: 22px; }

.btn {
  display: inline-block;
  background: #1B4F91;
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #123563; text-decoration: none; }
.btn.secondary { background: #fff; color: #232A2F; border: 1px solid #DADDE0; }
.btn.secondary:hover { background: #F0EFEA; }

.client-block {
  background: #fff;
  border: 1px solid #E9E7E1;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.client-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-head img { height: 28px; max-width: 120px; object-fit: contain; }
.client-head .swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); }
.client-head .name { font-weight: 700; font-size: 15px; }
.client-head .edit-link { margin-left: auto; font-size: 12px; }

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #F0EEE8;
}
.site-row:first-of-type { border-top: none; }
.site-row .label { font-weight: 600; font-size: 13px; }
.site-row .url { color: #8A8F94; font-size: 11.5px; }
.site-row .status { display: flex; align-items: center; gap: 14px; font-size: 11.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; font-weight: 600; }
.pill.up { background: #EAF6EC; color: #2B7A3F; }
.pill.down { background: #FBEAEA; color: #B4562F; }
.pill.unknown { background: #F0EEE8; color: #8A8F94; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.no-data { color: #B3B8BC; font-style: italic; }

.empty-state { text-align: center; padding: 60px 20px; color: #8A8F94; }
.empty-state .btn { margin-top: 14px; }

form.card {
  background: #fff;
  border: 1px solid #E9E7E1;
  border-radius: 10px;
  padding: 24px;
  max-width: 520px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #565C62; }
.field input[type=text], .field input[type=email], .field input[type=url] {
  width: 100%; padding: 9px 11px; border: 1px solid #DADDE0; border-radius: 6px; font-size: 13px;
}
.field input[type=color] { width: 60px; height: 36px; border: 1px solid #DADDE0; border-radius: 6px; padding: 2px; }
.field .hint { font-size: 11.5px; color: #8A8F94; margin-top: 5px; }
.field .key-row { display: flex; gap: 8px; }
.field .key-row input { flex: 1; font-family: monospace; font-size: 11.5px; }
.current-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.current-logo img { height: 32px; }

table.snapshots { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; border: 1px solid #E9E7E1; border-radius: 10px; overflow: hidden; }
table.snapshots th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #8A8F94; padding: 10px 12px; border-bottom: 1px solid #E9E7E1; background: #FAFAF8; }
table.snapshots td { padding: 10px 12px; font-size: 12.5px; border-bottom: 1px solid #F0EEE8; }
table.snapshots tr:last-child td { border-bottom: none; }

.back-link { display: inline-block; margin-bottom: 14px; font-size: 12.5px; }
