:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101312;
  color: #f4f1e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  height: 100vh;
  width: 100vw;
}

#cesiumContainer {
  position: relative;
  height: 100vh;
  min-width: 0;
}

.map-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  max-width: min(420px, calc(100% - 28px));
  border: 1px solid rgba(130, 230, 111, 0.55);
  border-radius: 8px;
  background: rgba(13, 18, 16, 0.86);
  color: #d9ffe0;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.panel {
  height: 100vh;
  overflow-y: auto;
  background: #171b1a;
  border-left: 1px solid #2a302f;
  padding: 18px;
}

.panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 22px;
  font-weight: 700;
}

h2 {
  font-size: 13px;
  text-transform: uppercase;
  color: #b7c3be;
}

.status {
  min-width: 96px;
  border-radius: 8px;
  border: 1px solid #3f4b47;
  color: #dbe7e1;
  padding: 6px 9px;
  text-align: center;
  font-size: 12px;
}

.status.live {
  border-color: #4ca46d;
  color: #9ee6b7;
}

.status.offline {
  border-color: #a45353;
  color: #f0a4a4;
}

.panel-section {
  padding: 16px 0;
  border-top: 1px solid #2a302f;
}

.kv,
.list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.item {
  border: 1px solid #2f3835;
  border-radius: 8px;
  padding: 10px;
  background: #1d2321;
}

.item strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.item span {
  display: block;
  margin-top: 4px;
  color: #c6d0cb;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact .item {
  padding: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.form-grid input,
.form-grid select,
.form-grid button {
  min-width: 0;
  height: 36px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.form-grid input,
.form-grid select {
  border: 1px solid #39423f;
  background: #111514;
  color: #f4f1e8;
  padding: 0 10px;
}

.form-grid select {
  grid-column: 1 / -1;
}

.form-grid input[type="password"] {
  grid-column: 1 / -1;
}

.form-grid button {
  grid-column: 1 / -1;
  border: 0;
  background: #d7b56d;
  color: #17130a;
  font-weight: 700;
  cursor: pointer;
}

.form-grid .secondary-button {
  background: #26302d;
  color: #e6efe9;
  border: 1px solid #44524d;
}

.form-grid .secondary-button.active {
  background: #2f6f61;
  border-color: #80d8bd;
  color: #ffffff;
}

.hint {
  margin: 8px 0 0;
  color: #9da9a4;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .shell {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  #cesiumContainer {
    height: 58vh;
  }

  .panel {
    height: auto;
    border-left: 0;
    border-top: 1px solid #2a302f;
  }
}
