:root {
  color-scheme: dark;
  --text: #fff;
  --subtle: #dce8ff;
  --link: #a7d8ff;
  --online: #8affaa;
  --pending: #ffdd66;
  --offline: #ffabab;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #101d32;
  color: var(--text);
  font: 13px/1.5 Arial, Verdana, sans-serif;
  isolation: isolate;
  min-height: 100vh;
}
.grid-scenery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
a {
  color: var(--link);
  font-weight: bold;
  text-underline-offset: .18em;
  text-shadow: 0 0 6px rgb(0 115 255 / .75);
}
a:hover { color: #ffdd66; }
:focus-visible { outline: 2px solid #c4e6ff; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 2; background: #0e2c60; padding: .5rem; }
.skip:focus { top: .25rem; }
h1, h2, h3, dl { margin-block: 0; }
h2 { font-size: 16px; line-height: 1.25; }
.panel {
  border: 3px solid rgb(255 255 255 / .4);
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(rgb(60 120 255 / .45), rgb(0 40 120 / .45)), rgb(5 18 44 / .47);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.panel > :last-child { margin-bottom: 0; }

/* Preserve the original dashboard positions while keeping columns in flow on short screens. */
.grid-landing {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 258px;
  grid-template-rows: minmax(140px, auto) 1fr auto;
  gap: 10px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 10px;
}
.grid-heading {
  grid-area: 1 / 1 / 2 / 3;
  padding: 8px 10px;
  text-shadow: 0 2px 4px #071224, 0 0 14px #122b5d;
}
.grid-heading h1 {
  width: min(100%, 400px);
}
.grid-heading img { display: block; max-width: 100%; height: auto; }
.right-column {
  grid-area: 1 / 3 / 4 / 4;
  align-self: start;
  display: grid;
  gap: 10px;
  margin-top: 5px;
}
.right-column summary {
  border: 2px solid rgb(255 255 255 / .5);
  border-radius: 10px;
  background: rgb(0 29 87 / .84);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 6px #0066d5;
}
.right-column details > .panel { margin-top: 6px; }
.left-column {
  grid-area: 2 / 1 / 4 / 2;
  align-self: end;
  display: grid;
  gap: 5px;
}
.left-column p { margin-block: .45rem 0; font-size: 14px; }
.grid-links { margin-block: .35rem 0; padding-inline-start: 1.15rem; }
.dock-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .65rem; }
.dock-nav a[aria-current] { color: #fff; }
.grid-clock {
  grid-area: 3 / 2 / 4 / 3;
  width: min(100%, 420px);
  justify-self: center;
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 12px;
}
.grid-indicator, .clock-display { display: grid; justify-items: center; gap: 5px; text-align: center; }
.grid-indicator { font-family: "Courier New", monospace; }
.status-dot, .latency-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(80 80 80 / .8);
  box-shadow: 0 0 6px rgb(0 0 0 / .6);
}
#gridStatusDots { display: flex; gap: 6px; }
.latency-icon { width: 18px; height: 18px; margin-inline-start: 12px; }
.status-dot.active {
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}
#versionBox { text-align: center; }
#versionBox .webui-version { font-size: 13px; font-weight: bold; margin-block-start: .7em; }
#versionBox time { color: var(--subtle); font-size: 12px; }
.clock-display time {
  color: #92ffe4;
  font: bold 16px/1.4 "Courier New", monospace;
  text-shadow: 0 0 6px #006d64;
}

/* Settings and support pages use the same scenery, colors and glass panels. */
.interior .grid-scenery { filter: brightness(.64); }
.wrap { width: min(60rem, calc(100% - 24px)); margin-inline: auto; }
.site-header { padding-block: 12px; }
.bar, .footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.brand { font: italic 700 1.65rem Georgia, serif; color: #fff; text-decoration: none; }
.site-header nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
nav a[aria-current] { color: #fff; }
main.wrap { padding-bottom: 1rem; }
.page { max-width: 49rem; }
.page > .panel { margin-top: 10px; }
.page h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); text-shadow: 0 2px 6px #000; }
.page > p { text-shadow: 0 1px 5px #000; }
.page li + li { margin-top: .35rem; }
.button {
  display: inline-flex;
  width: fit-content;
  padding: .55rem .8rem;
  border: 2px solid #a7c6ed;
  border-radius: 8px;
  color: #fff;
  background: #194785;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.badge { display: inline-block; border: 1px solid currentColor; padding: .2rem .62rem; border-radius: 2rem; font-weight: bold; }
.online { color: var(--online); }
.unknown { color: var(--pending); }
.offline, .notice { color: var(--offline); }
.small { font-size: 12px; color: var(--subtle); }
.uri { overflow-wrap: anywhere; display: block; }
li .uri { display: inline; }
.rows { margin: 0; }
.rows > div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .38rem; border-bottom: 1px solid rgb(220 232 255 / .24); }
dd { margin: 0; text-align: right; font-weight: bold; }
.region-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.world-map { margin-bottom: .75rem; gap: 2px; width: min(100%, 514px); }
.world-map a { display: grid; align-content: center; text-align: center; gap: .25rem; padding: .45rem; border: 1px solid #7797c6; }
.map-coordinates { color: var(--subtle); font: 12px/1.4 "Courier New", monospace; }
.world-map img { display: block; width: 100%; height: auto; }
.region { padding: .7rem; border: 1px solid rgb(220 232 255 / .36); border-radius: 9px; overflow-wrap: anywhere; }
.support-form { display: grid; gap: .45rem; }
.support-form label { font-weight: bold; }
.support-form p { margin: 0; }
.support-form input, .support-form select, .support-form textarea {
  width: 100%;
  padding: .55rem;
  border-radius: 5px;
  border: 1px solid #8eabd2;
  background: #122b52;
  color: inherit;
  font: inherit;
}
.footer { margin-bottom: 1rem; }

@media (max-width: 56rem) {
  .grid-landing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .grid-heading { grid-area: 1 / 1 / 2 / 3; }
  .right-column { grid-area: 2 / 2; margin-top: 0; }
  .left-column { grid-area: 2 / 1; align-self: start; }
  .grid-clock { grid-area: 3 / 1 / 4 / 3; }
}
@media (max-width: 35rem) {
  .grid-landing, .region-map { grid-template-columns: minmax(0, 1fr); }
  .grid-heading, .right-column, .left-column, .grid-clock { grid-area: auto; }
  .grid-clock { width: 100%; }
}
