/* BizzChecker Control Centre — minimal, dependency-free stylesheet. */

:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #e2e5ea;
  --accent: #e8452c;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }

/* ------------------------------------------------------------------ chrome */
.topbar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
.brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.topbar nav { display: flex; gap: 16px; }
.topbar nav a { color: var(--ink); font-weight: 500; }
.topbar .account { margin-left: auto; display: flex; gap: 14px; align-items: center; }

main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }

.foot {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 30px;
  color: var(--muted); font-size: 12px;
}

/* ------------------------------------------------------------------ panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.panel h2 { margin: 0 0 14px; font-size: 16px; }
.panel h3 { margin: 0 0 10px; font-size: 14px; }

h1 { font-size: 20px; margin: 0 0 18px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

td.url { max-width: 320px; }
td.url span, td.url a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- traffic light */
.light {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 7px; vertical-align: -1px;
}
.light-green { background: var(--green); }
.light-amber { background: var(--amber); }
.light-red   { background: var(--red); }
.light-grey  { background: #b6bcc5; }

.status { white-space: nowrap; font-weight: 500; }
.status-green { color: var(--green); }
.status-amber { color: var(--amber); }
.status-red   { color: var(--red); }
.status-grey  { color: var(--muted); }

/* Summary counters */
.counts { display: flex; gap: 10px; flex-wrap: wrap; }
.count {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; min-width: 96px;
}
.count b { display: block; font-size: 22px; line-height: 1.1; }
.count span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------- forms */
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=url], input[type=email], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 14px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

button, .btn {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer;
}
button:hover, .btn:hover { background: #f0f1f4; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #cf3a23; }
.btn-danger { color: var(--red); border-color: #f2c9c4; }
.btn-danger:hover { background: #fdecea; }
.btn-sm { padding: 4px 9px; font-size: 12px; }

form.inline { display: inline; }

/* ------------------------------------------------------------------ flashes */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.flash-success { background: #e9f7ef; border-color: #bfe3cd; color: #14532d; }
.flash-error   { background: #fdecea; border-color: #f5c6c0; color: #7f1d1d; }
.flash-info    { background: #eef2ff; border-color: #c9d3f5; color: #1e3a8a; }

/* --------------------------------------------------------------- key reveal */
.keybox {
  background: #1a1d21; color: #e6f4ea; padding: 12px 14px; border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; word-break: break-all; margin: 8px 0;
}

/* ------------------------------------------------------------------- login */
.login-wrap { max-width: 360px; margin: 60px auto; }

/* ------------------------------------------------------------------- badges */
.badge {
  display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px;
  background: #eef2ff; color: #1e3a8a; font-weight: 600;
}
.badge-warn { background: #fef3c7; color: #92400e; }
/* Informational, not actionable: the screen differs from its configured URL
   but nothing is queued. Deliberately quieter than badge-warn. */
.badge-muted { background: #eef0f3; color: var(--muted); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
