:root {
  --blue: #1787E0;
  --blue-dark: #0f5fa8;
  --green: #1DA75B;
  --amber: #E3A008;
  --red: #EF5B5B;
  --ink: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #e4e7ec;
  --bg: #f6f7fb;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 44px 20px 90px; }

header { text-align: center; margin-bottom: 26px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; display: block; }
h1 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 22px; margin: 16px 0 6px; }
header p { margin: 0; font-size: 14px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-sizing: border-box; }

/* Status banner */
#banner { display: flex; align-items: center; gap: 14px; padding: 18px 24px; margin-bottom: 28px; }
#banner .dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
#banner .headline { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; }
#banner .sub { font-size: 13px; margin-top: 2px; }
#banner .updated { margin-left: auto; font-size: 12.5px; white-space: nowrap; }

/* Section header + add button */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.section-head h2 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; margin: 0; color: #344054; }

/* Monitors list */
#monitors { overflow: hidden; }
.monitor-row { padding: 20px 24px; }
.monitor-row + .monitor-row { border-top: 1px solid #e7eaf0; }
.monitor-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.monitor-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.monitor-name .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.monitor-name .title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-name .url { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 100px; white-space: nowrap; }

.monitor-right { display: flex; align-items: center; gap: 14px; }
.monitor-uptime { font-size: 13px; color: var(--muted); }
.monitor-uptime b { color: var(--ink); font-weight: 600; }

.icon-btn { border: none; background: transparent; cursor: pointer; color: var(--faint); padding: 4px; border-radius: 6px; display: inline-flex; }
.icon-btn:hover { background: #f2f4f7; color: #475467; }

.day-bars { display: flex; gap: 2px; margin-top: 14px; height: 30px; }
.day-bar { flex: 1; border-radius: 2px; background: #eef1f5; transition: transform .12s ease; }
.day-bar:hover { transform: scaleY(1.15); }
.day-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--faint); }

.meta-row { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--faint); }

.empty-state { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; }
