:root { font-family: system-ui, sans-serif; }
body { margin: 0; background: #0b0f16; color: #e7eefc; }
.top { display:flex; gap:12px; justify-content:space-between; align-items:center;
  padding:12px 14px; border-bottom: 1px solid #1a2440; position: sticky; top: 0; background:#0b0f16; z-index:10; }
.brand { font-weight: 800; letter-spacing: .5px; }
.brand span { opacity: .7; font-weight: 600; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 14px; display: grid; gap: 14px; }
.panel { border: 1px solid #1a2440; border-radius: 14px; padding: 14px; background: #0e1422; }
.row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; margin-bottom: 10px; }
.row:last-child { margin-bottom: 0; }
.val { text-align: right; font-variant-numeric: tabular-nums; opacity: .9; }
.val.big { font-size: 22px; font-weight: 800; }
.hint { opacity: .75; font-size: 13px; line-height: 1.35; }
.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pad { user-select: none; cursor: pointer; border-radius: 16px; padding: 16px; border: 1px solid #1a2440;
  background: #0e1422; display:flex; flex-direction:column; gap:6px; min-height: 92px; transition: transform .05s ease; }
.pad:active { transform: scale(0.99); }
.pad .k { font-weight: 900; opacity: .85; letter-spacing:.5px; }
.pad .n { font-size: 18px; font-weight: 900; }
.pad .s { opacity: .72; font-size: 12px; }
.pad.off { opacity: .9; }
.pad.queued { outline: 2px dashed #6aa6ff; }
.pad.on { background: #14223d; border-color: #2d5cff; outline: 2px solid #2d5cff; }
.pad.offing { outline: 2px dashed #ff8aa1; }
.btn { border: 1px solid #1a2440; background:#0e1422; color:#e7eefc; padding: 10px 12px;
  border-radius: 12px; cursor:pointer; font-weight: 800; }
.btn:hover { filter: brightness(1.08); }
.btn.primary { border-color:#2d5cff; }
.btn.danger { border-color:#ff4d6d; }
.transport { display:flex; gap:10px; }
.wide { width: 100%; }
@media (max-width: 720px){
  .row { grid-template-columns: 120px 1fr 70px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
