@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ebf2f5;
  --paper: #fff;
  --ink: #101e2d;
  --muted: #465663;
  --teal: #075962;
  --teal-dark: #04515a;
  --rule: #cfdee6;
  --sheet-border: #b9cdd8;
  --focus: #09768a;
  --amber-bg: #ffebc6;
  --amber: #85410e;
  --ok: #0a8b39;
  --down: #bd292e;
  font-family: Manrope, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.icon { flex: none; display: block; }
.mark { display: block; flex: none; }
h1, h2, p, dd { margin: 0; }

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(26px, 2.9vw);
  background: var(--paper);
}
.brand, .account { display: flex; align-items: center; }
.brand {
  gap: 21px;
  font-size: clamp(20px, 2.05vw, 30px);
  font-weight: 800;
  letter-spacing: -.026em;
}
.account { gap: 26px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d5e2e8;
  font-weight: 800;
  font-size: 19px;
}
.sign-out {
  min-width: 89px;
  min-height: 43px;
  border: 1px solid var(--teal);
  border-radius: 9px;
  color: var(--teal);
  background: var(--paper);
  font-weight: 750;
  font-size: 18px;
}
.sign-out:hover { background: #eaf5f6; }

.workspace {
  width: min(1332px, calc(100% - 8vw));
  margin: 46px auto 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 22px 14px;
  margin-bottom: 28px;
}
.intro h1 {
  font-size: clamp(36px, 3.73vw, 57px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.023em;
}
.intro h1 + p {
  margin-top: 5px;
  color: #364450;
  font-size: clamp(16px, 1.53vw, 23px);
  letter-spacing: -.015em;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 19px;
  flex-wrap: wrap;
  color: var(--muted);
}
#last-check { font-size: clamp(14px, 1.22vw, 18px); font-variant-numeric: tabular-nums; }
.refresh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 3px 0 21px;
  border: 0;
  border-left: 1px solid #9db4c0;
  color: var(--teal);
  background: transparent;
  font-size: clamp(15px, 1.32vw, 20px);
  font-weight: 800;
}
.refresh .icon { width: 21px; height: 21px; }
.refresh:hover:not(:disabled) { color: #033a40; }
.refresh:disabled { opacity: .65; }
.refresh:disabled .icon { animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.connection {
  display: flex;
  align-items: center;
  gap: 27px;
  min-height: 115px;
  margin: 0 9px 28px;
  padding: 19px 29px 19px 33px;
  border-radius: 22px;
  color: #fff;
  background: var(--teal-dark);
}
.connection-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #ffffff26;
}
.connection-icon .icon { width: 44px; height: 44px; }
.connection-copy {
  flex: 1;
  min-width: 0;
  padding-left: 27px;
  border-left: 1px solid #f2fcffbd;
}
.connection h2 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -.025em;
}
.connection p {
  margin-top: 5px;
  font-size: clamp(15px, 1.31vw, 20px);
  color: #f1fafc;
}
.connection-badge {
  flex: none;
  border-radius: 12px;
  padding: 8px 15px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: clamp(13px, 1.19vw, 18px);
  font-weight: 800;
  white-space: nowrap;
}
.connection-badge[data-state="up"] { color: #0d5838; background: #d8f7e5; }
.connection-badge[data-state="unknown"] { color: #2d4b56; background: #e1eef2; }

.details {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  gap: 17px;
}
.sheet {
  min-width: 0;
  border: 1px solid var(--sheet-border);
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 23px 15px;
}
.sheet h2 {
  font-size: clamp(24px, 2.14vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.032em;
}
.sheet-caption { margin-top: 2px; color: var(--muted); font-size: clamp(15px, 1.27vw, 19px); }
.service-list, .settings { margin: 20px 0 0; padding: 0; }
.service-list { list-style: none; }
.service-row, .setting { border-bottom: 1px solid var(--rule); }
.service-row:last-child, .setting:last-child { border-bottom: 0; }
.service-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 25px;
  min-height: 67px;
  padding: 8px 14px 8px 8px;
}
.service-row > .icon { width: 36px; height: 36px; }
.service-name { display: grid; }
.service-name strong { font-size: clamp(16px, 1.44vw, 22px); line-height: 1.25; font-weight: 800; }
.service-name span { font-size: clamp(13px, 1.13vw, 17px); color: #364450; }
.state {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 150px;
  font-size: clamp(13px, 1.25vw, 19px);
  white-space: nowrap;
}
.state::before {
  display: block;
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #768791;
}
.state[data-state="up"]::before { background: var(--ok); }
.state[data-state="degraded"]::before, .state[data-state="unconfirmed"]::before { background: #d68505; }
.state[data-state="down"]::before { background: var(--down); }
.setting {
  display: grid;
  align-items: baseline;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 9px;
  padding: 10px 2px;
  min-height: 46px;
  line-height: 1.24;
  font-size: clamp(15px, 1.27vw, 19px);
}
.setting dd { font-weight: 800; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .97em; }
.footer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1376px, calc(100% - 7vw));
  margin: 42px auto 0;
  padding: 14px 7px 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 17px;
}
.footer .icon { width: 23px; height: 23px; }

.login {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
}
.login-card {
  width: min(712px, 100%);
  padding: clamp(37px, 4.55vw, 70px) clamp(24px, 2.8vw, 44px) clamp(36px, 3.7vw, 57px);
  text-align: center;
  border-radius: 33px;
  background: var(--paper);
  box-shadow: 0 12px 38px #243c4f22;
}
.login-card .mark { width: clamp(68px, 7.3vw, 112px); height: auto; margin: 0 auto 23px; }
.login h1 { font-size: clamp(28px, 3.58vw, 55px); line-height: 1.1; letter-spacing: -.023em; font-weight: 800; }
.login-subtitle {
  color: #536a79;
  font-size: clamp(16px, 1.85vw, 28px);
  margin-top: 8px;
  font-weight: 650;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  min-height: clamp(50px, 4.7vw, 72px);
  margin-top: clamp(26px, 2.8vw, 44px);
  padding: 9px 12px;
  border: 1px solid #747775;
  border-radius: 14px;
  color: #1f1f1f;
  background: #fff;
  text-decoration: none;
  font: 700 clamp(17px, 1.83vw, 28px)/1.25 Manrope, 'Segoe UI', sans-serif;
}
.google-button img { flex: none; width: clamp(21px, 2.25vw, 34px); height: auto; }
.google-button:hover:not(:disabled) { background: #f7f9fb; }
.google-button:disabled { opacity: .65; }
.login-restriction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(20px, 2.35vw, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.53vw, 23px);
}
.login-restriction .icon { width: 24px; height: 24px; }
.login-note { margin-top: 18px; color: var(--amber); font-size: 15px; }
.privacy { text-align: left; }
.privacy h1 { font-size: clamp(27px, 3vw, 42px); }
.privacy p { margin: 14px 0; color: var(--muted); }
.privacy a { color: var(--teal); }

@media (max-width: 1100px) {
  .workspace { width: calc(100% - 48px); margin-top: 34px; }
  .intro { padding-inline: 3px; }
  .connection { margin-inline: 0; gap: 18px; padding-inline: 23px; }
  .connection-copy { padding-left: 18px; }
  .sheet { padding: 15px 17px 13px; }
  .service-row { column-gap: 13px; padding-inline: 4px; }
  .state { min-width: 107px; gap: 8px; }
  .state::before { width: 10px; height: 10px; }
}

@media (max-width: 760px) {
  .topbar { min-height: 64px; padding: 10px 16px; }
  .brand { gap: 10px; }
  .brand .mark { width: 36px; height: 36px; }
  .account { gap: 8px; }
  .avatar { width: 31px; height: 31px; font-size: 14px; }
  .sign-out { min-width: 51px; min-height: 36px; font-size: 14px; }
  .workspace { width: calc(100% - 32px); margin-top: 26px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .toolbar { width: 100%; justify-content: space-between; gap: 8px; }
  .refresh { border: 0; padding: 0 3px 0 8px; }
  .connection {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px 14px;
    padding: 15px;
    margin-bottom: 17px;
    border-radius: 16px;
  }
  .connection-icon { width: 48px; height: 48px; }
  .connection-icon .icon { width: 29px; height: 29px; }
  .connection-copy { padding-left: 0; border-left: 0; }
  .connection-badge { grid-column: 2; justify-self: start; padding: 4px 9px; border-radius: 8px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .service-list, .settings { margin-top: 13px; }
  .service-row { min-height: 57px; column-gap: 9px; grid-template-columns: 27px minmax(0, 1fr) auto; }
  .service-row > .icon { width: 25px; height: 25px; }
  .state { min-width: 0; }
  .footer { width: calc(100% - 32px); margin-top: 25px; font-size: 14px; }
  .login { padding: 18px; }
  .login-card { border-radius: 23px; }
}

@media (max-width: 360px) {
  .avatar { display: none; }
  .service-row { column-gap: 8px; }
  .service-name span { font-size: 12px; }
  .state { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .refresh:disabled .icon { animation: none; }
}
