:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #344b43;
  background: #f7f8f3;
  font-synthesis: none;
  --ink: #344b43;
  --muted: #87958b;
  --line: #e4e9de;
  --paper: #fffef9;
  --window: #efd5a0;
  --lamp: #ecd8a5;
  --sky: #e8f2ed;
  --sky-bottom: #f4f3e8;
  --shadow: 0 12px 44px #52716109;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  transition:
    background 0.5s,
    color 0.5s;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6b9e8d;
  outline-offset: 4px;
}
button {
  border: 0;
  background: transparent;
}
button:hover {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 5%;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 850;
  font-size: 29px;
  letter-spacing: -1.6px;
}
.brand-mark {
  font-size: 36px;
  color: #537e69;
  line-height: 1;
}
.brand-small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
  display: block;
  text-align: center;
  line-height: 1;
}
.top-divider {
  height: 20px;
  border-left: 1px solid var(--line);
}
.product-name {
  font-size: 12px;
  color: var(--muted);
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 19px;
}
.dev-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.mode-chip {
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.8px;
  background: #e9efdf;
  color: #657853;
  border: 1px solid #dce6cf;
}
.mode-chip.live {
  background: #dbece5;
  color: #3c705e;
}
.person {
  background: #e8ebe0;
  border: 3px solid var(--paper);
  outline: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
}
main {
  max-width: 1510px;
  padding: 42px 5% 0;
  margin: auto;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.1px;
  font-weight: 750;
  color: #819884;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 35px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 10px 0 8px;
}
h1 > span {
  color: #94ac83;
}
.intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.intro-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.view-switch {
  padding: 4px;
  background: #ecefe6;
  border: 1px solid #e2e7dc;
  border-radius: 10px;
  display: flex;
  gap: 2px;
}
.view-switch button {
  padding: 10px 19px;
  font-size: 11px;
  color: #869386;
  border-radius: 7px;
  min-width: 90px;
}
.view-switch .selected {
  background: var(--paper);
  color: #4d6959;
  box-shadow: 0 2px 6px #365c4b09;
}
.theme-button {
  font-size: 24px;
  color: #b69359;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.world-shell {
  background: var(--paper);
  border: 1px solid #dde5d9;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scene-top {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e0e8dc;
  font-size: 10px;
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.scene-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c8f7b;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #91a880;
  border-radius: 50%;
  flex-shrink: 0;
}
.quiet-caption {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: #95a58f;
}
.text-button {
  font-size: 16px;
  color: #7c8f7b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.text-button span {
  font-size: 10px;
}
.viewport {
  height: 800px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 8%, #fffdf1aa, transparent 63%),
    linear-gradient(180deg, var(--sky), var(--sky-bottom));
  touch-action: none;
  cursor: grab;
  transition: background 0.6s;
}
.viewport:active {
  cursor: grabbing;
}
.world-title {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  width: 510px;
}
.world-title #lettering {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  gap: 1px;
}
.world-title #lettering span {
  display: inline-block;
  font-family: "Arial Rounded MT Bold", ui-rounded, "Trebuchet MS", sans-serif;
  font-weight: 1000;
  font-size: 51px;
  color: #e1ead2;
  -webkit-text-stroke: 1.5px #f9f7df;
  text-shadow:
    0 2px #afc5ac,
    0 4px #9ab7a2,
    0 6px #88aa99,
    0 8px #7d9e90,
    0 10px 8px #48695822;
  letter-spacing: -2px;
}
.world-title small {
  font-size: 8px;
  font-weight: 600;
  color: #8ea18f;
  letter-spacing: 3px;
  display: block;
  margin-top: 7px;
}
.title-cloud {
  position: absolute;
  z-index: -1;
  top: 48px;
  width: 90px;
  height: 30px;
  background: #fff9e9;
  border-radius: 45px;
  filter: drop-shadow(0 8px 8px #8caa9414);
}
.title-cloud:before,
.title-cloud:after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.title-cloud:before {
  width: 39px;
  height: 39px;
  top: -18px;
  left: 14px;
}
.title-cloud:after {
  width: 50px;
  height: 50px;
  top: -26px;
  right: 10px;
}
.title-cloud.left {
  left: -7px;
}
.title-cloud.right {
  right: -7px;
}
.ambient-cloud {
  position: absolute;
  background: #fffefa;
  border-radius: 70%;
  opacity: 0.65;
  filter: blur(3px);
  width: 150px;
  height: 40px;
  pointer-events: none;
}
.ambient-cloud:before {
  content: "";
  position: absolute;
  left: 27px;
  top: -22px;
  width: 83px;
  height: 65px;
  background: inherit;
  border-radius: 60%;
}
.cloud-one {
  top: 170px;
  left: -60px;
}
.cloud-two {
  top: 420px;
  right: -30px;
  transform: scale(0.8);
}
.cloud-three {
  bottom: 90px;
  left: 43%;
  transform: scale(0.7);
  opacity: 0.35;
}
#scene {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100% - 92px);
  overflow: visible;
  --window: #f3d798;
}
#camera {
  transform-origin: center;
  transition: transform 0.16s ease-out;
}
.world-node {
  cursor: pointer;
  outline: none;
}
.building {
  transition: transform 0.2s;
}
.world-node:hover .building,
.world-node:focus .building {
  transform: translateY(-5px);
}
.selection-ring {
  fill: none;
  stroke: #6f9d83;
  stroke-width: 3;
  opacity: 0;
  stroke-dasharray: 5 5;
}
.is-selected .selection-ring,
.world-node:focus-visible .selection-ring {
  opacity: 1;
}
.label-bg {
  fill: #fffdf4;
  stroke: #d9dfcd;
  stroke-width: 1;
  filter: drop-shadow(0 3px 3px #65877510);
}
.place-name {
  font-size: 14px;
  font-family: inherit;
  font-weight: 650;
  fill: #49634f;
}
.status-dot {
  fill: #b6beb1;
}
[data-health="connected"] .status-dot {
  fill: #91ab7a;
}
[data-state="active"][data-health="connected"] .status-dot {
  fill: #629b87;
}
[data-state="waiting"][data-health="connected"] .status-dot {
  fill: #c3a569;
}
[data-state="blocked"][data-health="connected"] .status-dot {
  fill: #bd8e7a;
}
.is-selected .label-bg {
  stroke: #739c81;
  stroke-width: 2;
  fill: #f4f7e8;
}
.bridges path {
  fill: none;
  stroke: #e7d9ba;
  stroke-width: 24;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 0 #bdbea4);
}
.lamp-glow {
  fill: #ffdc8c;
  opacity: 0;
}
.map-bottom {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  background: var(--sky-bottom);
  color: #90a08e;
}
.map-hint {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-hint span {
  opacity: 0.5;
}
.zoom-tools {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 3px 10px #466c4e05;
  height: 31px;
}
.zoom-tools button {
  font-size: 18px;
  width: 33px;
  height: 29px;
}
.zoom-tools output {
  font-size: 9px;
  min-width: 38px;
  text-align: center;
}
.zoom-tools button:last-child {
  border-left: 1px solid var(--line);
  font-size: 19px;
}
.metrics {
  min-height: 89px;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 0 23px;
  background: var(--paper);
}
.metrics > button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  flex: 1;
  max-width: 195px;
  border-right: 1px solid var(--line);
  padding: 0 23px;
}
.metrics > button:first-child {
  padding-left: 0;
}
.metric-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 21px;
}
.metric-icon.active {
  color: #69947c;
  background: #ecf2e8;
}
.metric-icon.waiting {
  color: #b29968;
  background: #f5f0e1;
}
.metric-icon.blocked {
  color: #be9681;
  background: #f5ece5;
}
.metric-icon.alert {
  color: #9893a4;
  background: #efedf3;
}
.metrics strong {
  font-weight: 600;
  font-size: 19px;
  display: block;
  line-height: 1.25;
}
.metrics small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  margin-top: 3px;
}
.sync-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8b9e89;
  text-align: right;
  max-width: 220px;
  padding-left: 20px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 2px 32px;
  font-size: 9px;
  color: #99a492;
}
.page-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.footer-bolt {
  font-size: 13px;
  color: #809777;
  margin-left: 7px;
}
.control-panel {
  min-height: 690px;
  padding: 35px;
}
.control-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.control-heading h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  margin: 10px 0 24px;
}
.control-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 2;
  min-width: 180px;
  color: var(--muted);
}
input,
select {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 7px;
  font-size: 11px;
}
input {
  width: 100%;
  min-width: 0;
}
.search input {
  border: 0;
  padding: 0;
  outline: none;
}
.filters select {
  flex: 1;
  min-width: 140px;
}
.task-row {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 120px 80px;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.task-row button {
  font-weight: 600;
  text-align: left;
  padding: 0;
  font-size: 12px;
}
.task-row small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted);
}
.task-meta {
  font-size: 10px;
  color: var(--muted);
}
.status-badge {
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 20px;
  background: #eaf0e5;
  color: #6d866e;
  display: inline-block;
  justify-self: start;
}
.status-badge.waiting {
  background: #f4eddb;
  color: #ac915f;
}
.status-badge.blocked,
.status-badge.alert {
  background: #f2e8df;
  color: #b58973;
}
.status-badge.offline,
.status-badge.stale,
.status-badge.unknown {
  background: #efeee8;
  color: #9b9d8e;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty-icon {
  font-size: 33px;
  display: block;
  margin-bottom: 8px;
  color: #a9baa3;
}
h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 31px 0 16px;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.source-card strong {
  font-size: 11px;
}
.source-card small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}
.event-list {
  font-size: 11px;
}
.event-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  color: var(--muted);
  align-items: baseline;
}
.event-row time {
  font-size: 9px;
  white-space: nowrap;
  min-width: 68px;
}
.event-row button {
  text-align: left;
  padding: 0;
  color: var(--ink);
  font-size: 11px;
}
.event-row small {
  font-size: 9px;
  margin-left: auto;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 100px #183b3f30;
}
dialog::backdrop {
  background: #283b3820;
  backdrop-filter: blur(3px);
}
#detail {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(440px, 100%);
  height: 100%;
  max-height: 100%;
  border-radius: 20px 0 0 20px;
  max-width: 100%;
  padding: 30px;
  overflow-y: auto;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-top button {
  font-size: 25px;
}
.detail-icon {
  font-size: 33px;
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: #eaf0e3;
  display: grid;
  place-items: center;
  margin: 32px 0 18px;
  color: #7b9b80;
}
#detail h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  margin: 0 0 8px;
}
#detail p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.detail-tags {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.detail-fact {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  font-size: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.detail-fact strong {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.detail-task {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.detail-task > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.detail-task .status-badge {
  margin-top: 8px;
}
.detail-note {
  padding: 15px;
  background: #f0f2e8;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #82937f;
}
.primary {
  padding: 11px 18px;
  background: #658c75;
  color: #fffdf2;
  border-radius: 7px;
  font-size: 11px;
}
#login {
  border-radius: 15px;
  width: min(440px, 90%);
  padding: 30px;
}
#login h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}
#login p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#login label {
  display: grid;
  gap: 10px;
  font-size: 11px;
  margin-top: 22px;
}
.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
}
#login-error {
  color: #b4806b !important;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 11px;
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
  box-shadow: 0 10px 35px #243b3625;
}
body.night {
  background: #1c2d38;
  --ink: #dfdfd0;
  --muted: #8faaa7;
  --line: #42575b;
  --paper: #293e47;
  --sky: #243746;
  --sky-bottom: #3c505a;
  --window: #ffdc94;
  --lamp: #ffe3a3;
  color: var(--ink);
}
.night .world-shell {
  border-color: #456066;
}
.night .scene-top {
  border-color: #42565e;
}
.night .viewport {
  background:
    radial-gradient(circle at 24% 18%, #f4ecd32b 0 1px, transparent 2px),
    radial-gradient(circle at 75% 12%, #f4ecd356 0 1.5px, transparent 2px),
    radial-gradient(circle at 42% 36%, #f4ecd333 0 1px, transparent 2px),
    linear-gradient(var(--sky), var(--sky-bottom));
  background-size:
    170px 180px,
    240px 230px,
    290px 260px,
    100% 100%;
}
.night .world-title #lettering span {
  color: #d2e0cc;
  -webkit-text-stroke-color: #dfe6ca;
  text-shadow:
    0 2px #97b8a5,
    0 4px #6a9387,
    0 7px #4b6d69,
    0 10px 8px #0c263650;
}
.night .title-cloud,
.night .ambient-cloud {
  background: #afbec3;
  opacity: 0.2;
}
.night .label-bg {
  fill: #3a5158;
  stroke: #56706a;
}
.night .place-name {
  fill: #e8e8d2;
}
.night .is-selected .label-bg {
  fill: #4a665e;
  stroke: #adc5a3;
}
.night .building,
.night .terrain,
.night .landscape,
.night .bridges {
  filter: brightness(0.79) saturate(0.75);
}
.night .window {
  filter: drop-shadow(0 0 4px #ffda8b);
}
.night .lamp-glow {
  opacity: 0.25;
}
.night .view-switch {
  background: #263943;
  border-color: var(--line);
}
.night .person,
.night .detail-icon,
.night .detail-note {
  background: #3c5558;
}
.night .theme-button {
  color: #dddfc5;
}
.night .metric-icon {
  background: #3c5054;
}
.night .mode-chip {
  background: #48564a;
  color: #d9dfbe;
  border-color: #6c7960;
}
.night .status-badge {
  background: #3c5650;
  color: #c4d6bd;
}
.night .status-badge.offline,
.night .status-badge.unknown {
  background: #495758;
  color: #b8c5bc;
}
.night .status-badge.waiting {
  background: #635d46;
  color: #ded1a7;
}
.night .status-badge.blocked {
  background: #60524a;
  color: #e0bda4;
}
@media (min-width: 1500px) {
  .viewport {
    height: 870px;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 30px 3% 0;
  }
  .topbar {
    padding: 0 3%;
  }
  .viewport {
    height: 730px;
  }
  .metrics > button {
    padding: 0 14px;
  }
  .sync-status {
    max-width: 150px;
    font-size: 8px;
  }
  .world-title {
    transform: translateX(-50%) scale(0.88);
    transform-origin: top center;
  }
  .source-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .top-divider,
  .product-name,
  .dev-label {
    display: none;
  }
  .top-right {
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  main {
    padding: 26px 14px 0;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 29px;
    max-width: 340px;
  }
  .intro p {
    font-size: 11px;
  }
  .intro-actions {
    width: 100%;
    justify-content: space-between;
  }
  .view-switch {
    flex: 1;
    margin-right: 13px;
  }
  .view-switch button {
    flex: 1;
  }
  .world-shell {
    border-radius: 13px;
  }
  .scene-top {
    padding: 0 15px;
  }
  .quiet-caption {
    display: none;
  }
  .world-title {
    transform: translateX(-50%) scale(0.65);
    top: 22px;
  }
  .viewport {
    height: 640px;
  }
  #scene {
    width: 780px;
    max-width: none;
    height: 700px;
    left: 50%;
    top: 77px;
    transform: translateX(-50%);
  }
  .map-bottom {
    padding: 0 13px;
  }
  .map-hint {
    font-size: 8px;
    max-width: 165px;
    line-height: 1.7;
    display: block;
  }
  .map-hint span {
    display: none;
  }
  .metrics {
    flex-wrap: wrap;
    padding: 19px 15px 12px;
    gap: 20px 0;
  }
  .metrics > button {
    max-width: none;
    width: 50%;
    flex: none;
    padding: 0 10px;
    gap: 9px;
  }
  .metrics > button:nth-child(2) {
    border: 0;
  }
  .metrics > button:nth-child(3) {
    padding-left: 0;
  }
  .metrics > button:nth-child(4) {
    border: 0;
  }
  .metrics strong {
    font-size: 19px;
  }
  .sync-status {
    max-width: none;
    width: 100%;
    justify-content: center;
    padding: 13px 0 0;
    border-top: 1px solid var(--line);
    font-size: 9px;
  }
  .page-footer {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 8px;
    gap: 10px;
    padding: 20px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .control-panel {
    padding: 25px 16px;
  }
  .control-heading {
    display: block;
  }
  .control-heading > span {
    display: block;
    margin-bottom: 15px;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    min-width: 130px;
  }
  .search {
    flex-basis: 100%;
  }
  .task-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .task-meta {
    font-size: 9px;
  }
  .task-row > time {
    display: none;
  }
  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .source-card {
    padding: 11px;
    display: block;
  }
  .source-card .status-badge {
    margin-top: 7px;
    font-size: 8px;
  }
  .event-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .event-row small {
    display: none;
  }
  #detail {
    padding: 25px;
  }
  .toast {
    width: 90%;
    text-align: center;
  }
  .world-title small {
    letter-spacing: 2px;
  }
  .control-heading h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.night .view-switch .selected {
  color: #dce6d3;
}
.night #scene {
  --window: #ffe0a2;
}
.night .window {
  filter: brightness(1.45) drop-shadow(0 0 5px #ffdb8b);
}
