:root {
  --navy-950: #091727;
  --navy-900: #10243c;
  --ink: #182234;
  --muted: #5b6678;
  --line: #dfe7f3;
  --soft: #f4f7fb;
  --blue: #245fc5;
  --blue-700: #17499f;
  --blue-soft: #e8f0ff;
  --green: #0f8a59;
  --green-soft: #dff7ec;
  --amber: #b76e00;
  --amber-soft: #fff2d7;
  --red: #c93232;
  --red-soft: #ffe5e5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(9, 23, 39, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  background:
    radial-gradient(circle at 18% 14%, rgba(36, 95, 197, 0.18), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(15, 138, 89, 0.16), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 52%, #eef7f1 100%);
}

.login-card {
  width: min(620px, 92vw);
  padding: clamp(28px, 5vw, 54px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 231, 243, 0.95);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(9, 23, 39, 0.14);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.login-brand img {
  width: 190px;
  height: auto;
}

.login-brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h1 {
  max-width: 12ch;
  margin: 10px 0 16px;
  color: var(--navy-950);
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.login-copy {
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #364254;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #cbd7e7;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 95, 197, 0.14);
}

.login-form button,
.logout-button {
  border: 0;
  font-weight: 900;
}

.login-form button {
  min-height: 58px;
  color: var(--white);
  background: linear-gradient(135deg, #3379d6, #2c776f);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(36, 95, 197, 0.18);
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f0b8b8;
  border-radius: 12px;
  font-weight: 800;
}

.logout-button {
  margin-left: auto;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.logout-button:hover,
.logout-button:focus-visible {
  color: var(--blue);
  outline: 3px solid rgba(36, 95, 197, 0.12);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-top,
.header-main,
main {
  width: min(1690px, 90vw);
  margin: 0 auto;
}

.header-top {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #000;
  font-size: 13px;
}

.header-main {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 154px;
  max-width: 38vw;
  height: auto;
}

.brand-product {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav .is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

main {
  padding: 28px 0 56px;
}

.outage-strip {
  margin-top: 18px;
  background: #fff2f2;
  border: 1px solid #f0b8b8;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(201, 50, 50, 0.08);
}

.outage-strip__inner {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.outage-strip__label {
  min-width: 140px;
  color: var(--red);
}

.outage-strip__label span,
.outage-strip__label strong {
  display: block;
}

.outage-strip__label span {
  font-size: 12px;
  font-weight: 800;
}

.outage-strip__label strong {
  margin-top: 3px;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 20px;
}

.outage-items {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
}

.outage-card {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  text-decoration: none;
  animation: outageBlink 1s infinite;
}

.outage-card:hover,
.outage-card:focus-visible {
  color: var(--white);
  background: #9f2020;
  outline: 3px solid rgba(201, 50, 50, 0.25);
}

.outage-card--isp-notified {
  background: #c47a12;
  animation: none;
  box-shadow: 0 0 0 1px rgba(196, 122, 18, 0.22);
}

.outage-card--isp-notified:hover,
.outage-card--isp-notified:focus-visible {
  background: #a9650e;
  outline: 3px solid rgba(196, 122, 18, 0.25);
}

.outage-card__jump {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.outage-card__dot {
  grid-row: span 3;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--white);
}

.outage-card strong,
.outage-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outage-card span {
  color: #ffe3e3;
  font-size: 12px;
}

.outage-card .outage-card__duration {
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.outage-card__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.outage-card__archive,
.outage-card__notify {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.outage-card__archive:hover,
.outage-card__archive:focus-visible,
.outage-card__notify:hover,
.outage-card__notify:focus-visible {
  color: var(--red);
  background: var(--white);
  outline: none;
}

.outage-card__notify.is-notified,
.outage-card__notify:disabled {
  border-color: #0f8b5f;
  color: var(--white);
  background: #0f8b5f;
  cursor: default;
  opacity: 1;
}

@keyframes outageBlink {
  0%,
  100% {
    background: #d41414;
    box-shadow: 0 0 0 0 rgba(212, 20, 20, 0.32);
  }

  50% {
    background: #8f1515;
    box-shadow: 0 0 0 5px rgba(212, 20, 20, 0.12);
  }
}

.dashboard-head {
  position: relative;
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(112, 177, 229, 0.18);
  background:
    linear-gradient(90deg, rgba(3, 8, 15, 0.97) 0%, rgba(5, 14, 24, 0.93) 43%, rgba(5, 16, 27, 0.62) 72%, rgba(5, 16, 27, 0.32) 100%),
    url("/hero-cyber-bg.png?v=20260618-map") right center / cover no-repeat,
    var(--navy-950);
  color: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-head::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(133, 217, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(61, 158, 220, 0.12) 0%, rgba(61, 158, 220, 0) 48%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
}

.dashboard-head > * {
  position: relative;
  z-index: 1;
}

.dashboard-head h1 {
  max-width: 790px;
  margin: 8px 0 10px;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 36px;
  line-height: 1.16;
}

.eyebrow {
  margin: 0;
  color: #8edfff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  max-width: 790px;
  margin: 0;
  color: #dcecff;
  font-size: 14px;
  line-height: 1.65;
}

.runtime-panel {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(142, 223, 255, 0.28);
  background: rgba(11, 25, 42, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.runtime-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(183, 110, 0, 0.18);
}

.runtime-ok .runtime-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(15, 138, 89, 0.18);
}

.runtime-warn .runtime-dot {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(183, 110, 0, 0.18);
}

.runtime-down .runtime-dot,
.runtime-locked .runtime-dot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(201, 50, 50, 0.18);
}

.runtime-panel strong,
.runtime-panel span {
  display: block;
}

.runtime-panel span {
  color: #d6e2f3;
  margin-top: 4px;
}

.auth-panel,
.control-band,
.monitor-shell,
.archive-panel,
.settings-panel {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.auth-panel strong,
.auth-panel span {
  display: block;
}

.auth-panel span {
  color: var(--muted);
  margin-top: 4px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.summary-grid article {
  min-height: 96px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
}

.control-band {
  padding: 18px;
}

.target-form {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr 94px 104px 42px;
  gap: 12px;
  align-items: end;
}

label span,
.search-field span,
.select-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd8e8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 116px;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 197, 0.14);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

button:hover {
  background: var(--blue-700);
}

.target-form button,
#refreshButton {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.import-box {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.import-box summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.import-box form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.monitor-shell {
  overflow: hidden;
}

.archive-panel {
  padding: 18px;
}

.archive-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.archive-search-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  width: min(412px, 44vw);
  flex: 0 1 412px;
}

.archive-search {
  width: auto;
  flex: 1 1 auto;
}

.archive-panel__head h2 {
  margin: 0;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 22px;
}

.archive-panel__head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.archive-item strong,
.archive-item span,
.archive-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-item strong {
  font-weight: 800;
}

.archive-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.archive-item small {
  margin-top: 6px;
  color: #7b8798;
}

.archive-item button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
}

.archive-item button:hover,
.archive-item button:focus-visible {
  color: var(--white);
  background: var(--blue);
  outline: none;
}

.monitor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.monitor-toolbar h2,
.settings-panel h2 {
  margin: 0;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 24px;
}

.monitor-toolbar span {
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.search-field {
  width: 320px;
}

.clear-search {
  width: 42px;
  min-height: 42px;
  align-self: end;
  color: var(--ink);
  background: #edf1f6;
}

.clear-search:hover,
.clear-search:focus-visible {
  color: var(--white);
  background: var(--blue);
  outline: none;
}

.clear-search:disabled,
.clear-search:disabled:hover {
  color: #95a0b1;
  cursor: default;
  background: #f2f5f9;
}

.select-field {
  width: 92px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th:nth-child(1),
td:nth-child(1) {
  width: 158px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 188px;
}

th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  width: 86px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 70px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 96px;
}

th {
  color: var(--muted);
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 800;
}

tbody tr:hover {
  background: #fbfdff;
}

.target-row {
  scroll-margin-top: 104px;
}

.target-row--linked {
  outline: 3px solid rgba(201, 50, 50, 0.28);
  outline-offset: -3px;
  background: #fff7f7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 98px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.status-healthy .status-pill {
  color: var(--green);
  background: var(--green-soft);
}

.status-healthy .status-dot {
  background: var(--green);
}

.status-warning .status-pill,
.status-loss .status-pill,
.status-unknown .status-pill {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-warning .status-dot,
.status-loss .status-dot,
.status-unknown .status-dot {
  background: var(--amber);
}

.status-critical .status-pill,
.status-down .status-pill {
  color: var(--red);
  background: var(--red-soft);
}

.status-critical .status-dot,
.status-down .status-dot {
  background: var(--red);
}

.status-paused .status-pill {
  color: var(--muted);
  background: #edf1f6;
}

.status-paused .status-dot {
  background: var(--muted);
}

.target-name {
  font-weight: 800;
}

.target-host {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.latest-value,
.avg-value,
.loss-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sparkline {
  width: 100%;
  max-width: 100%;
  height: 76px;
  display: block;
}

.graph-button {
  width: 100%;
  max-width: 100%;
  min-height: 76px;
  display: block;
  padding: 0;
  border: 1px solid #cbd8e7;
  border-radius: 0;
  background: #f4f7fb;
  color: inherit;
}

.graph-button:hover,
.graph-button:focus-visible {
  background: #f4f7fb;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 197, 0.14);
  outline: none;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-actions button {
  width: 34px;
  min-height: 34px;
  color: var(--ink);
  background: #edf1f6;
}

.row-actions button:hover {
  color: var(--white);
  background: var(--blue);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 44px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  gap: 24px;
  padding: 22px;
}

.settings-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.settings-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.settings-panel dl div {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.settings-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-panel dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 23, 39, 0.72);
}

.graph-modal {
  width: min(1560px, 96vw);
  height: min(920px, 94vh);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.graph-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.graph-modal__head h2 {
  margin: 6px 0 4px;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 26px;
}

.graph-modal__head p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  width: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  color: var(--ink);
  background: #edf1f6;
}

.modal-close:hover {
  color: var(--white);
  background: var(--blue);
}

.modal-graph-scroll {
  width: calc(100% - 48px);
  height: min(520px, calc(94vh - 260px));
  min-height: 380px;
  flex: 1 1 auto;
  margin: 22px 24px 0;
  border: 1px solid #cbd8e7;
  background: #f4f7fb;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.modal-graph-scroll:focus-visible {
  outline: 3px solid rgba(10, 104, 191, 0.22);
  outline-offset: 2px;
}

.modal-graph {
  height: 100%;
  display: block;
  background: #f4f7fb;
}

.modal-graph-tooltip {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(520px, calc(100vw - 24px));
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.modal-graph-tooltip__card {
  display: block;
  min-width: 174px;
  padding: 9px 11px;
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.modal-graph-tooltip__card--down,
.modal-graph-tooltip__card--ongoing {
  background: #8f1515;
  border: 1px solid rgba(255, 209, 209, 0.38);
}

.modal-graph-tooltip__card--up {
  background: #0f8a59;
  border: 1px solid rgba(209, 255, 235, 0.36);
}

.modal-graph-tooltip__label,
.modal-graph-tooltip__time {
  display: block;
}

.modal-graph-tooltip__label {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-graph-tooltip__time {
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.modal-stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 22px 24px 24px;
}

.modal-stats div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.modal-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-stats dd {
  margin: 8px 0 0;
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .dashboard-head,
  .settings-panel {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 980px;
  }

  .target-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-form button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .archive-search-actions {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .header-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }

  .header-main {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .outage-strip__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .dashboard-head {
    padding: 24px 20px;
  }

  .dashboard-head h1 {
    font-size: 28px;
  }

  .summary-grid,
  .target-form,
  .import-box form,
  .settings-panel dl,
  .modal-stats {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .graph-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .modal-graph-scroll {
    width: calc(100% - 28px);
    height: 360px;
    min-height: 300px;
    margin: 14px 14px 0;
  }

  .auth-panel,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field,
  .select-field {
    width: 100%;
  }
}
