:root {
  --ink: #202124;
  --muted: #687078;
  --line: #e5e7e9;
  --surface: #f7f8f8;
  --green: #26c39a;
  --green-soft: #eaf6f0;
  --amber: #f5b51b;
  --red: #ef715d;
  --navy: #202124;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
.site-header { height: 76px; max-width: 1008px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 172px; height: auto; display: block; }
.brand-divider { height: 30px; width: 1px; background: #d5d7d9; margin-left: 4px; }
.brand-status { font-size: 14px; font-weight: 500; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 14px; }.updated { color: var(--muted); font-size: 12px; }
.icon-button { width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--navy); border-color: #b9c4cc; }.icon-button svg { width: 100%; fill: currentColor; }
main { max-width: 1008px; margin: 42px auto 88px; padding: 0 24px; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.page-intro h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 600; }
.page-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.website-link { flex: none; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid #aeb3b6; }
.overall { min-height: 100px; padding: 24px 27px; display: flex; align-items: center; gap: 18px; border: 1px solid; border-radius: 6px; }
.overall.operational { background: var(--green-soft); border-color: #addbc7; color: #126b4a; }
.overall.partial_outage { background: #fff8e8; border-color: #f0be46; color: #9b6100; }
.overall.major_outage { background: #fff0f1; border-color: #e4abb0; color: var(--red); }
.status-icon { width: 20px; height: 20px; flex: 0 0 20px; border: 3px solid currentColor; border-radius: 50%; position: relative; }
.operational .status-icon::after { content: ""; position: absolute; width: 8px; height: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); left: 4px; top: 4px; }
.overall h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }.overall p { margin: 0; color: currentColor; opacity: .78; font-size: 13px; }
.status-section, .incidents-section { margin-top: 52px; }.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 17px; }
h2 { margin: 0; font-size: 19px; font-weight: 600; }.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.section-side { color: var(--muted); font-size: 12px; text-align: right; }
.status-legend { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; color: #7d858c; }
.status-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }.legend-dot.good { background: var(--green); }.legend-dot.bad { background: var(--red); }.legend-dot.none { background: #dfe3e6; }
.groups { border: 0; }
.system-card { border: 1px solid #dfe4e8; border-radius: 8px; overflow: visible; background: #fff; box-shadow: 0 2px 5px #17212b10; }
.system-card-header { min-height: 80px; padding: 0 32px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #edf0f2; }
.system-card-header h2 { font-size: 20px; font-weight: 600; }
.date-range { display: flex; align-items: center; gap: 10px; color: #8a929d; font-size: 16px; line-height: 1; }
.date-range span { color: #b6bdc5; font-size: 28px; font-weight: 300; }
.service { padding: 26px 32px 23px; position: relative; }.service + .service { border-top: 1px solid #edf0f2; }
.service-top { min-height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.service-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.service-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 17px; color: #050505; }
.component-count { color: #7b8390; font-size: 15px; white-space: nowrap; }
.info-dot { width: 20px; height: 20px; display: inline-grid; place-items: center; border: 2px solid #b5bbc4; border-radius: 50%; color: #9ca3ad; font-size: 13px; font-weight: 700; cursor: help; flex: 0 0 auto; }
.row-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: white; flex: 0 0 24px; }
.row-icon svg { width: 18px; height: 18px; fill: currentColor; }
.row-icon.good { background: var(--green); }
.row-icon.warning { color: var(--amber); background: transparent; }
.row-icon.warning svg { width: 26px; height: 26px; }
.row-icon.down { background: var(--red); }
.down-reason { width: 20px; height: 20px; position: relative; display: inline-grid; place-items: center; color: #8c96a3; flex: 0 0 20px; cursor: help; }
.down-reason svg { width: 18px; height: 18px; fill: currentColor; }
.down-reason span {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 15;
  width: max-content;
  max-width: 260px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid #dde2e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px #10203020;
  color: #1d242b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}
.down-reason:hover span, .down-reason:focus-visible span { display: block; }
.service-state-row { margin: 2px 0 10px 38px; min-height: 18px; display: flex; gap: 12px; color: #8a929d; font-size: 12px; }
.service-state { color: var(--green); font-weight: 600; }.service-state.warning { color: #b57900; }.service-state.down { color: var(--red); }
.uptime-bars { margin-top: 8px; height: 22px; display: grid; grid-template-columns: repeat(90, minmax(3px, 1fr)); gap: 5px; align-items: stretch; }
.bar { position: relative; background: #d9eee5; min-width: 2px; border-radius: 2px; outline: none; cursor: default; }
.bar.good { background: var(--green); }.bar.warning { background: var(--amber); }.bar.bad { background: var(--red); }.bar.none { background: #e6eaed; }
.bar-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 10;
  width: max-content;
  min-width: 230px;
  max-width: 350px;
  transform: translateX(-50%);
  padding: 13px 14px 15px;
  border: 1px solid #dde2e6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 25px #1020301f;
  color: #15171a;
  font-size: 18px;
  line-height: 1.35;
  white-space: normal;
  pointer-events: none;
}
.bar:hover .bar-tooltip, .bar:focus-visible .bar-tooltip { display: block; }
.bar:hover::before, .bar:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 11;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1px solid #dde2e6;
  border-bottom: 1px solid #dde2e6;
  pointer-events: none;
}
.tooltip-date { display: block; margin-bottom: 12px; color: #929aa6; font-size: 18px; font-weight: 400; line-height: 1.2; }
.tooltip-body { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 13px; align-items: center; color: #050505; font-size: 18px; font-weight: 500; line-height: 1.34; }
.tooltip-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; }
.tooltip-icon svg { width: 24px; height: 24px; fill: currentColor; }
.tooltip-icon.good { border-radius: 50%; background: var(--green); color: #fff; }
.tooltip-icon.good svg { width: 18px; height: 18px; }
.tooltip-icon.warning { color: var(--amber); }
.tooltip-icon.down { color: var(--red); }
.bar-tooltip.only-date { min-width: 190px; padding: 13px 14px; }
.bar-tooltip.only-date .tooltip-date { margin: 0; font-size: 18px; }
.uptime-value { width: 58px; text-align: right; color: var(--muted); font-size: 12px; }
.uptime-value { width: auto; min-width: 112px; color: #8b94a3; font-size: 15px; text-align: right; white-space: nowrap; }
.timeline-labels { display: none; }
.incident { padding: 19px 0; border-top: 1px solid var(--line); }
.incident h3 { margin: 0 0 7px; font-size: 15px; }.incident p, .incident time, .empty, .loading { color: var(--muted); font-size: 13px; }
.incident p { margin: 0 0 6px; }.resolved { color: var(--green); font-weight: 600; }
.history-cta { margin-top: 42px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.history-cta h2 { font-size: 18px; }.history-cta p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.secondary-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #ccd3da; border-radius: 5px; color: var(--ink); background: #fff; text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.secondary-link:hover { border-color: #9da8b2; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }.breadcrumb strong { color: var(--ink); }
.history-page { max-width: 1008px; }
.history-hero { margin-bottom: 42px; }
.history-hero h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; }
.history-hero p { margin: 0; color: #8a929d; font-size: 15px; }
.history-list { border-top: 1px solid var(--line); }
.history-month { margin: 30px 0 18px; font-size: 20px; }
.history-day { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 28px; padding: 0 0 28px; }
.history-date { padding-top: 5px; color: #7c858f; text-align: center; }
.history-date strong { display: block; color: var(--ink); font-size: 20px; line-height: 1; }
.history-date span { display: block; margin-top: 5px; font-size: 13px; }
.history-events { display: grid; gap: 14px; }
.history-event { padding: 20px 22px; border: 1px solid #dfe4e8; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px #1020300d; }
.history-event h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.history-event time { display: block; margin-bottom: 10px; color: #8a929d; font-size: 13px; }
.history-event p { margin: 0 0 14px; color: #4d5864; font-size: 14px; line-height: 1.55; }
.history-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #7a838d; font-size: 12px; }
.history-meta span { padding: 5px 8px; border-radius: 999px; background: #f3f5f6; }
.history-event.open { border-color: #f0be46; }.history-event.open .history-meta span:first-child { background: #fff3d1; color: #9b6100; }
.history-event.resolved .history-meta span:first-child { background: #eaf8f2; color: #0f7a52; }
.history-empty { padding: 42px 0; color: var(--muted); }
.history-empty h2 { color: var(--ink); font-size: 22px; }
footer { min-height: 90px; border-top: 1px solid var(--line); max-width: 1040px; margin: auto; padding: 28px 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer a { color: var(--navy); }
dialog { width: min(580px, calc(100% - 32px)); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 18px 60px #10203033; }
dialog::backdrop { background: #0c182455; }.dialog-header { padding: 22px 24px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin-bottom: 4px; }.dialog-header p { margin: 0; color: var(--muted); font-size: 13px; }.close-button { font-size: 24px; line-height: 16px; padding: 5px; }
form { padding: 24px; }label { display: block; font-size: 13px; font-weight: 600; color: #344050; }
input { width: 100%; height: 42px; margin-top: 7px; padding: 0 12px; border: 1px solid #cbd3da; border-radius: 4px; outline: none; }
input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px #17324d18; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 15px; }
.primary { min-height: 42px; margin-top: 15px; padding: 0 18px; border: 0; border-radius: 4px; color: white; background: var(--navy); cursor: pointer; font-weight: 600; }
.google-login { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.form-error, .form-success { min-height: 17px; margin: 8px 0 0; font-size: 12px; }
.form-error { color: var(--red); }.form-success { color: #0f7a52; font-weight: 600; }
.admin-list { border-top: 1px solid var(--line); padding: 8px 24px 24px; max-height: 260px; overflow: auto; }
.admin-item { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.admin-item strong, .admin-item small { display: block; max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-item small { color: var(--muted); margin-top: 2px; }
.delete { border: 0; background: transparent; color: var(--red); cursor: pointer; font-weight: 600; }
.admin-page { background: #fbfbfc; }
.admin-header { height: 78px; max-width: 1180px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-shell { max-width: 1180px; margin: 54px auto 90px; padding: 0 24px; }
.toast { position: fixed; top: 22px; left: 50%; z-index: 30; transform: translateX(-50%); min-width: 260px; max-width: min(520px, calc(100% - 32px)); padding: 13px 16px; border: 1px solid #b7dfcd; border-radius: 8px; background: #f0fbf6; color: #0f6f4a; box-shadow: 0 12px 35px #1020301f; font-size: 14px; font-weight: 700; text-align: center; }
.toast.error { border-color: #f0beb6; background: #fff3f1; color: #c44b3c; }
.toast.working { border-color: #d6dde5; background: #fff; color: #1f2933; }
.admin-login-card { width: min(520px, 100%); margin: 64px auto 0; padding: 34px; border: 1px solid #dfe4e8; border-radius: 10px; background: #fff; box-shadow: 0 14px 38px #10203012; }
.admin-login-card h1, .admin-dashboard-head h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.18; }
.admin-muted { margin: 0; color: #747d89; font-size: 14px; line-height: 1.55; }
.admin-form { padding: 0; margin-top: 26px; }
.primary.full { width: 100%; }
.admin-dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.secondary { min-height: 40px; padding: 0 16px; border: 1px solid #ccd3da; border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; }
.secondary:hover { border-color: #9da8b2; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-card { padding: 24px; border: 1px solid #dfe4e8; border-radius: 10px; background: #fff; box-shadow: 0 8px 25px #1020300c; }
.admin-card h2 { font-size: 18px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.professional-list { padding: 0; max-height: 560px; border-top: 1px solid var(--line); }
.endpoint-item { min-height: 76px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); transition: opacity .15s ease, background .15s ease, box-shadow .15s ease; }
.endpoint-item.dragging { opacity: .56; background: #fff; box-shadow: 0 10px 28px #10203024; }
.endpoint-main { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.endpoint-main strong, .endpoint-main small { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-main strong { font-size: 15px; }
.endpoint-main small { margin-top: 4px; color: #7b8490; font-size: 12px; }
.endpoint-status { width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; flex: 0 0 11px; }
.endpoint-status.good { background: var(--green); }.endpoint-status.warning { background: var(--amber); }.endpoint-status.down { background: var(--red); }
.endpoint-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.endpoint-label { font-size: 12px; font-weight: 700; }.endpoint-label.good { color: var(--green); }.endpoint-label.warning { color: #b57900; }.endpoint-label.down { color: var(--red); }
.edit { border: 0; background: transparent; color: #1f2933; cursor: pointer; font-weight: 700; }
.edit:hover { text-decoration: underline; }
.secondary.subtle { margin-left: 10px; min-height: 42px; }
.drag-handle { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: #6f7780; cursor: grab; font-size: 23px; line-height: 1; }
.drag-handle:hover { background: #f0f2f4; color: #1f2933; }
.drag-handle:active { cursor: grabbing; }
.not-found-page { min-height: 100vh; display: grid; place-items: center; background: #050505; color: #fff; }
.not-found { width: min(520px, calc(100% - 32px)); margin: auto; text-align: center; }
.not-found img { width: 70px; height: 70px; object-fit: contain; margin-bottom: 28px; filter: grayscale(1) contrast(1.15); }
.not-found p { margin: 0 0 12px; color: #8f8f8f; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.not-found h1 { margin: 0; font-size: 52px; line-height: 1; letter-spacing: 0; }
.not-found span { display: block; margin: 18px 0 30px; color: #b8b8b8; font-size: 16px; }
.not-found a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid #fff; border-radius: 999px; color: #050505; background: #fff; text-decoration: none; font-weight: 700; }
@media (max-width: 600px) {
  .site-header { height: 68px; padding: 0 16px; }.brand img { width: 148px; }.brand-divider, .brand-status, .updated { display: none; }main { margin-top: 30px; padding: 0 16px; }.page-intro { display: block; margin-bottom: 28px; }.page-intro h1 { font-size: 27px; }.website-link { display: inline-block; margin-top: 18px; }.overall { padding: 20px; }
  .section-heading { display: block; }.section-side { display: none; }
  .system-card-header { min-height: 68px; padding: 0 18px; gap: 12px; }.system-card-header h2 { font-size: 21px; }.date-range { font-size: 14px; gap: 4px; }.date-range span { font-size: 22px; }
  .service { padding: 18px; }.service-top { grid-template-columns: 1fr; gap: 8px; }.service-title { gap: 9px; }.service-name { font-size: 18px; }.component-count, .info-dot { display: none; }.uptime-value { font-size: 14px; text-align: left; margin-left: 33px; }
  .service-state-row { margin-left: 33px; }.uptime-bars { grid-template-columns: repeat(90, minmax(1px, 1fr)); gap: 1px; height: 20px; }.bar-tooltip { left: 0; transform: translateX(0); min-width: 220px; max-width: 290px; }.tooltip-date { font-size: 15px; }.tooltip-body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }footer { display: block; }footer span { display: block; margin-bottom: 6px; }
  .history-cta { display: block; }.secondary-link { margin-top: 14px; }.history-day { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }.history-hero h1 { font-size: 30px; }.history-event { padding: 16px; }
  .admin-header { height: 68px; padding: 0 16px; }.admin-shell { margin-top: 28px; padding: 0 16px; }.admin-login-card { margin-top: 22px; padding: 22px; }.admin-dashboard-head { display: block; }.admin-dashboard-head .secondary { margin-top: 16px; }.admin-grid { grid-template-columns: 1fr; }.endpoint-item, .endpoint-actions { display: block; }.endpoint-actions { margin: 10px 0 0 23px; }.delete { margin-left: 12px; }.not-found h1 { font-size: 40px; }
}
