:root {
  --ink: #122033;
  --muted: #687487;
  --blue: #123c69;
  --blue-soft: #eaf1f7;
  --gold: #b28a4b;
  --line: #dfe5ec;
  --paper: #ffffff;
  --background: #f4f6f8;
  --success: #287553;
  font-family: Inter, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--background);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: white;
  background: var(--blue);
}
.topbar img {
  width: 190px;
  height: 52px;
  object-fit: contain;
}
.topbar h1,
.topbar p {
  margin: 0;
}
.topbar h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}
.status {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
}
.status.online {
  background: #1d704d;
  border-color: transparent;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 54px) 80px;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
}
.hero h2 {
  max-width: 780px;
  margin: 7px 0 12px;
  font:
    500 clamp(28px, 4vw, 46px)/1.07 Georgia,
    serif;
  color: var(--blue);
}
.hero p {
  color: var(--muted);
  max-width: 740px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.metric-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
}
.metric-grid strong,
.metric-grid span {
  display: block;
}
.metric-grid strong {
  color: var(--blue);
  font:
    500 29px Georgia,
    serif;
}
.metric-grid span {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(24, 43, 67, 0.05);
}
.connection-card {
  margin-bottom: 18px;
}
.agent-monitor-card {
  margin-bottom: 18px;
}
.monitor-note,
.empty-state {
  color: var(--muted);
  font-size: 12px;
}
.agent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.agent-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  background: #fbfcfd;
}
.agent-card.danger {
  border-left-color: #a33b3b;
}
.agent-card.review {
  border-left-color: var(--gold);
}
.agent-card.working {
  border-left-color: #2f6e9f;
}
.agent-card img {
  width: 112px;
  height: 112px;
  border-radius: 4px;
  object-fit: cover;
}
.agent-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.agent-title strong,
.agent-title small {
  display: block;
}
.agent-title strong {
  font:
    500 22px Georgia,
    serif;
  color: var(--blue);
}
.agent-title small,
.agent-time {
  color: var(--muted);
}
.agent-state {
  padding: 6px 9px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.agent-main p {
  margin: 12px 0;
  color: var(--muted);
}
.agent-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 12px;
}
.agent-metrics b {
  color: var(--blue);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wide {
  grid-column: 1 / -1;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.section-heading h3 {
  margin: 0;
  font:
    500 21px Georgia,
    serif;
}
.section-heading div > span {
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}
.draft {
  color: #865f24;
  background: #f5ecdc;
  border-radius: 18px;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
