:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #090d14;
  color: #e8edf5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(64, 129, 255, .18), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(25, 211, 171, .1), transparent 28rem),
    #090d14;
}

button, input { font: inherit; }

.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 32px; }
header { margin-bottom: 24px; }
h1 { margin: 5px 0 10px; font-size: clamp(30px, 6vw, 56px); letter-spacing: -.04em; }
h2 { margin: 4px 0 8px; font-size: 22px; }
p { color: #98a6b9; line-height: 1.7; margin: 0; }
.eyebrow { color: #56e1c2; font-size: 12px; font-weight: 800; letter-spacing: .2em; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.status-grid article, .panel {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(15, 22, 33, .86);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  border-radius: 16px;
}
.status-grid article { padding: 16px; }
.status-grid span { display: block; color: #7f8ba0; font-size: 12px; margin-bottom: 8px; }
.status-grid strong { font-size: 19px; }
.ok { color: #56e1c2; }
.bad { color: #ff6f7d; }
.waiting { color: #f0c66b; }

.panel { margin-top: 10px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
button {
  border: 1px solid rgba(86,225,194,.5);
  border-radius: 10px;
  padding: 11px 18px;
  color: #06120f;
  background: #56e1c2;
  cursor: pointer;
  font-weight: 800;
}
button:disabled { opacity: .35; cursor: not-allowed; }
button:not(:disabled):hover { filter: brightness(1.1); }

.board-panel { align-items: stretch; }
.board-panel > div:first-child { width: 36%; }
.board {
  position: relative;
  width: 60%;
  min-height: 220px;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid rgba(112,145,192,.3);
  border-radius: 12px;
  background-color: #0b1320;
  background-image:
    linear-gradient(rgba(112,145,192,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112,145,192,.12) 1px, transparent 1px);
  background-size: 10% 10%;
}
.marker {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffca64;
  box-shadow: 0 0 0 6px rgba(255,202,100,.16), 0 0 24px rgba(255,202,100,.6);
  transform: translate(-50%, -50%);
  transition: left .12s linear, top .12s linear;
}

.chat-panel { display: block; }
.chat-panel form { display: flex; gap: 8px; margin: 18px 0 12px; }
input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 11px 13px;
  color: #e8edf5;
  background: #0a111c;
  outline: none;
}
input:focus { border-color: #56e1c2; }
.events { min-height: 76px; max-height: 180px; overflow: auto; color: #9eabba; font: 12px/1.8 Consolas, monospace; }
.events div { border-top: 1px solid rgba(255,255,255,.06); padding: 4px 0; }

footer { display: flex; align-items: center; gap: 14px; color: #718096; font-size: 12px; padding: 20px 4px 0; }
footer button { padding: 7px 11px; color: #bcefe3; background: transparent; }

@media (max-width: 720px) {
  .shell { padding-top: 28px; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .panel, .board-panel { display: block; }
  .panel > button { margin-top: 16px; }
  .board-panel > div:first-child, .board { width: 100%; }
  .board { margin-top: 18px; min-height: 200px; }
}
