:root {
  --bg: #121416;
  --bg2: #1a1d1d;
  --panel: rgba(29, 32, 31, .94);
  --panel-hover: rgba(38, 42, 40, .98);
  --border: rgba(226,211,181,.14);
  --border-hover: rgba(226,211,181,.28);
  --text: #f1eee7;
  --muted: #aaa69b;
  --dim: #77766f;
  --blue: #d6b27a;
  --green: #9bb889;
  --red: #d48776;
  --yellow: #d6b27a;
  --shadow: 0 25px 80px rgba(0,0,0,.28);
  --header-bg: rgba(7,9,13,.78);
  --header-border: rgba(226,211,181,.14);
  --nav-bg: rgba(255,255,255,.025);
  --nav-hover: rgba(255,255,255,.07);
  --nav-active: rgba(255,255,255,.1);
  --grid-line: rgba(255,255,255,.018);
  --footer-bg: rgba(18,21,20,.9);
  --footer-border: rgba(226,211,181,.14);
}

html[data-theme="light"] {
  --bg: #f3f0e8;
  --bg2: #e7e2d6;
  --panel: rgba(255,255,255,.9);
  --panel-hover: #fff;
  --border: rgba(75,64,45,.18);
  --border-hover: rgba(75,64,45,.35);
  --text: #25231f;
  --muted: #625d52;
  --dim: #81796b;
  --shadow: 0 25px 80px rgba(65,52,28,.18);
  --header-bg: rgba(255,255,255,.86);
  --header-border: rgba(75,64,45,.16);
  --nav-bg: rgba(75,64,45,.055);
  --nav-hover: rgba(75,64,45,.1);
  --nav-active: rgba(75,64,45,.14);
  --grid-line: rgba(75,64,45,.055);
  --footer-bg: rgba(255,255,255,.72);
  --footer-border: rgba(75,64,45,.16);
}

html[data-contrast="high"] {
  --border: rgba(255,255,255,.72);
  --border-hover: rgba(255,255,255,.95);
  --nav-bg: #111;
  --nav-hover: #2c2c2c;
  --nav-active: #3d3d3d;
  --footer-bg: #0d0d0d;
  --footer-border: #fff;
}

html[data-theme="light"][data-contrast="high"] {
  --bg: #fff;
  --bg2: #f2f2f2;
  --panel: #fff;
  --panel-hover: #f0f0f0;
  --text: #111;
  --muted: #303030;
  --dim: #505050;
  --blue: #0645ad;
  --green: #075d27;
  --red: #9b1c1c;
  --border: #333;
  --border-hover: #000;
  --header-bg: #fff;
  --header-border: #000;
  --nav-bg: #f2f2f2;
  --nav-hover: #ddd;
  --nav-active: #c8dcff;
  --footer-bg: #f2f2f2;
  --footer-border: #000;
  --grid-line: rgba(0,0,0,.14);
}

html[data-theme="light"] .weather-scene {
  background: linear-gradient(180deg, #dcecf8 0%, #eef5f2 52%, #f3f0e8 100%);
}

html[data-theme="light"] .weather-overlay {
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.42), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(243,240,232,.3));
}

html[data-theme="light"] .zentrax-card {
  border-color: rgba(85,116,168,.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(238,244,250,.82)),
    var(--panel);
  box-shadow: 0 10px 30px rgba(72,91,119,.12), inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] .zentrax-title {
  color: #27344a;
}

html[data-theme="light"] .zentrax-description {
  color: #607087;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .weather-scene {
    background: linear-gradient(180deg, #dcecf8 0%, #eef5f2 52%, #f3f0e8 100%);
  }

  html:not([data-theme="dark"]) .weather-overlay {
    background:
      radial-gradient(circle at 50% 15%, rgba(255,255,255,.42), transparent 35%),
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(243,240,232,.3));
  }
}

html[data-theme="light"][data-contrast="high"] .weather-scene {
  background: linear-gradient(180deg, #b9d9ed 0%, #e8f2ee 52%, #fff 100%);
}

html[data-theme="light"][data-contrast="high"] .weather-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.32));
}

html[data-contrast="high"] body::before {
  opacity: .8;
}

html[data-contrast="high"] .site-tools {
  border-color: var(--border);
  background: var(--panel);
}

html[data-contrast="high"] .site-tools button,
html[data-contrast="high"] .site-search,
html[data-contrast="high"] input,
html[data-contrast="high"] select,
html[data-contrast="high"] textarea {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

html[data-contrast="high"] nav a.login-link {
  margin-left: 8px;
  color: #fff;
  background: #243b9b;
  box-shadow: inset 0 0 0 2px #fff;
}

html[data-theme="light"][data-contrast="high"] nav a.login-link {
  color: #fff;
  background: #143d91;
}

html[data-contrast="high"] .zentrax-card {
  border-color: var(--border);
  background: var(--panel);
}

.dashboard-page .panel,
.dashboard-page .sidebar,
.dashboard-page .server-card,
.dashboard-page .ticket {
  background: var(--panel);
  border-color: var(--border);
}

.dashboard-page .server-banner {
  background: linear-gradient(135deg, var(--bg2), var(--panel-hover));
}

.dashboard-page .server-icon {
  border-color: var(--panel);
  background: var(--bg2);
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.dashboard-page .nav button:hover,
.dashboard-page .nav button.active {
  background: var(--nav-active);
  border-color: var(--border-hover);
  color: var(--text);
}

.dashboard-page .setup-notice {
  background: var(--panel-hover);
  color: var(--muted);
}

.dashboard-page main > h1 {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

html[data-theme="light"] .dashboard-page .weather-scene {
  background: linear-gradient(180deg, #dcecf8 0%, #eef5f2 52%, #f3f0e8 100%);
}

html[data-contrast="high"] .dashboard-page .panel,
html[data-contrast="high"] .dashboard-page .sidebar,
html[data-contrast="high"] .dashboard-page .server-card {
  box-shadow: none;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #f3f0e8;
    --bg2: #e7e2d6;
    --panel: rgba(255,255,255,.9);
    --panel-hover: #fff;
    --border: rgba(75,64,45,.18);
    --border-hover: rgba(75,64,45,.35);
    --text: #25231f;
    --muted: #625d52;
    --dim: #81796b;
    --header-bg: rgba(255,255,255,.86);
    --header-border: rgba(75,64,45,.16);
    --nav-bg: rgba(75,64,45,.055);
    --nav-hover: rgba(75,64,45,.1);
    --nav-active: rgba(75,64,45,.14);
    --grid-line: rgba(75,64,45,.055);
    --footer-bg: rgba(255,255,255,.72);
    --footer-border: rgba(75,64,45,.16);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(194,145,82,.12),
      transparent 38%
    ),
    radial-gradient(
      circle at 100% 20%,
      rgba(105,131,111,.06),
      transparent 30%
    ),
    var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-tools{position:fixed;right:14px;bottom:14px;z-index:200;display:flex;gap:6px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}
.site-tools button{padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);font-size:11px;cursor:pointer}
.site-tools button:hover{background:var(--panel-hover)}
.site-search{width:100%;max-width:520px;margin-top:20px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.06);color:var(--text)}
.faq-list{display:grid;gap:10px;margin-top:24px}.faq-list details,.legal-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:16px 18px}.faq-list summary{cursor:pointer;font-weight:700}.faq-list p{color:var(--muted);line-height:1.7;margin:12px 0 0}
.status-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.status-summary .card{min-height:100px}
/* Powered by Zentrax Hosting card */
.zentrax-card{
  margin-top:22px;
  padding:16px 20px;
  border:1px solid rgba(157,187,255,.2);
  border-radius:14px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.015)
    ),
    rgba(10,20,35,.5);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:
    0 8px 30px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.zentrax-card:hover{
  transform:translateY(-2px);
  border-color:rgba(157,187,255,.38);
  box-shadow:
    0 12px 35px rgba(30,70,150,.2),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.zentrax-card a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:inherit;
  text-decoration:none;
}

.zentrax-info{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.zentrax-title{
  color:#fff;
  font-size:14px;
  font-weight:700;
}

.zentrax-description{
  color:rgba(210,220,235,.65);
  font-size:11px;
}

.zentrax-arrow{
  color:rgba(180,205,255,.8);
  font-size:22px;
  line-height:1;
}


body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .45;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1050px, calc(100% - 34px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(20px);
}

header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-login {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 5px 16px rgba(88,101,242,.22);
  font-size: 11px;
  font-weight: 700;
}

.header-login:hover {
  color: #fff;
  background: #6975f5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.25px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 8px 30px rgba(0,0,0,.4);
  transition: transform .2s ease;
}

.brand:hover img {
  transform: scale(1.05) rotate(-3deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--nav-bg);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition:
    color .18s ease,
    background .18s ease;
}

nav a:hover {
  color: var(--text);
  background: var(--nav-hover);
}

nav a.active {
  color: var(--text);
  background: var(--nav-active);
  box-shadow: inset 0 -2px 0 var(--blue);
}

nav a:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

nav a.dashboard-link {
  display: none;
  margin-left: 7px;
  color: var(--text);
  background: rgba(112,151,255,.18);
  box-shadow: inset 0 0 0 1px rgba(112,151,255,.28);
}

nav a[href="/status.html"],
nav a[href="/world-weather.html"] {
  margin-left: 8px;
  border-left: 1px solid var(--border);
  padding-left: 13px;
}

nav a.dashboard-link:hover {
  color: var(--text);
  background: rgba(112,151,255,.28);
}

nav a.login-link {
  margin-left: 2px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 5px 16px rgba(88,101,242,.22);
}

nav a.login-link:hover {
  color: #fff;
  background: #6975f5;
}

main {
  min-height: calc(100vh - 66px - 76px);
  padding: 78px 0 105px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -2px;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(105,140,255,.15),
      transparent 31%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -130px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(100,140,255,.1);
  filter: blur(35px);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(157,187,255,.35),
    transparent
  );
}

.hero p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status,
.overall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  padding: 8px 11px;
  border: 1px solid rgba(126,226,165,.15);
  border-radius: 999px;
  background: rgba(126,226,165,.055);
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}

.dot,
.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.dot::after,
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% {
    transform: scale(.75);
    opacity: .12;
  }

  50% {
    transform: scale(1.35);
    opacity: .35;
  }
}

.stats,
.grid,
.overview {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.grid {
  grid-template-columns: repeat(3, 1fr);
}

.overview {
  grid-template-columns: repeat(3, 1fr);
}

.stat,
.card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.stat::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(157,187,255,.28),
    transparent
  );
}

.stat:hover,
.card:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: var(--border-hover);
}

.label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.7px;
}

.explore {
  margin-top: 56px;
}

.explore-title {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 18px 20px;
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity .2s ease;
}

.link:hover {
  transform: translateX(4px);
  background: var(--panel-hover);
  border-color: var(--border-hover);
}

.link:hover::before {
  opacity: 1;
}

.link strong {
  font-size: 12px;
}

.link span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.arrow {
  color: var(--muted);
  font-size: 22px;
  transition:
    transform .2s ease,
    color .2s ease;
}

.link:hover .arrow {
  color: var(--text);
  transform: translateX(4px);
}

.search {
  margin-top: 29px;
}

.search input {
  width: 100%;
  height: 49px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: rgba(15,20,29,.82);
  color: var(--text);
  font-size: 11px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.search input:focus {
  border-color: rgba(157,187,255,.32);
  box-shadow:
    0 0 0 3px rgba(111,157,255,.07),
    0 12px 40px rgba(0,0,0,.16);
}

.search input::placeholder {
  color: var(--dim);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.category {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.category:hover,
.category.active {
  border-color: rgba(157,187,255,.22);
  background: rgba(157,187,255,.075);
  color: var(--text);
}

.count {
  margin: 23px 0 10px;
  color: var(--dim);
  font-size: 10px;
}

.list,
.shard-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.command {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}

.command:last-child {
  border-bottom: 0;
}

.command:hover {
  background: rgba(255,255,255,.025);
}

.name {
  color: var(--blue);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  font-size: 11px;
  font-weight: 650;
}

.description {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.tag {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: var(--dim);
  font-size: 9px;
}

.shard-list {
  margin-top: 26px;
}

.shard {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 35px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}

.shard:last-child {
  border-bottom: 0;
}

.shard:hover {
  background: rgba(255,255,255,.025);
}

.shard-name {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  font-size: 11px;
  font-weight: 650;
}

.shard-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 90px;
  font-size: 10px;
  font-weight: 600;
}

.metric {
  min-width: 75px;
  text-align: right;
}

.metric-label {
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.metric-value {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

.last-updated {
  margin-top: 12px;
  color: var(--dim);
  font-size: 9px;
}

footer {
  border-top: 1px solid var(--footer-border);
  padding: 0;
  background: var(--footer-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--dim);
  font-size: 10px;
}

.footer-inner,
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.footer-brand span + span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--blue);
}

@media(max-width: 760px) {
  main {
    min-height: calc(100vh - 60px - 76px);
    padding: 55px 0 80px;
  }

  .hero {
    padding: 30px;
  }

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

  .overview {
    grid-template-columns: 1fr;
  }

  .shard {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .shard-status {
    justify-self: end;
  }

  .metric {
    text-align: left;
  }
}

@media(max-width: 600px) {
  .wrap {
    width: calc(100% - 22px);
  }

  html[data-theme="light"] .search input,
  html[data-theme="light"] .site-search {
    background: #fff !important;
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(70,85,105,.12);
  }

  html[data-theme="light"] .categories .category,
  html[data-theme="light"] .topic-button,
  html[data-theme="light"] .sort-select {
    background: rgba(255,255,255,.72) !important;
    color: var(--muted);
  }

  html[data-theme="light"] .gloss-button {
    color: #17315d !important;
    border-color: rgba(63,108,190,.35);
    background: linear-gradient(135deg, #fff, #e5efff);
    box-shadow: 0 8px 24px rgba(63,108,190,.16), inset 0 1px 0 #fff;
  }

  html[data-theme="light"] .world-main .weather-card,
  html[data-theme="light"] .world-main .event-card {
    background: rgba(255,255,255,.82) !important;
    border-color: rgba(75,64,45,.18);
    box-shadow: 0 10px 30px rgba(70,85,105,.1);
  }

  html[data-theme="light"] body:after {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.12)) !important;
  }

  html[data-theme="light"] body {
    background-color: var(--bg) !important;
  }

  html[data-theme="light"] .weather-scene {
    background: linear-gradient(180deg, #dcecf8 0%, #eef5f2 52%, #f3f0e8 100%) !important;
  }

  html[data-theme="light"] .world-main .event-dialog {
    background: #fff;
    color: var(--text);
  }

  html[data-theme="light"] .world-main .map-surface {
    background: radial-gradient(ellipse at center, #c9e1ef, #edf4f2 70%), linear-gradient(145deg, #fff, transparent);
  }

  header {
    height: 60px;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 2px;
    max-width: calc(100vw - 78px);
  }

  nav a {
    padding: 7px 8px;
    font-size: 10px;
  }

  nav a.dashboard-link {
    margin-left: 4px;
  }

  nav a[href="/status.html"],
  nav a[href="/world-weather.html"] {
    margin-left: 4px;
    padding-left: 10px;
  }

  nav a.login-link {
    margin-left: 4px;
  }

  h1 {
    font-size: 31px;
  }

  .hero {
    padding: 26px 21px;
    border-radius: 17px;
  }

  .stats,
  .grid {
    grid-template-columns: 1fr;
  }

  .command {
    padding: 16px;
  }

  .tag {
    display: none;
  }

  .shard {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner,
  footer .wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 18px 0;
  }
  .status-summary{grid-template-columns:1fr}
}

@media(prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}
