* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-family: sans-serif;
  background: #0f1114;
  color: #e8eaed;
}
.top {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 12px;
  background: #171a1f;
  border-bottom: 1px solid #2a3038;
}
.layout {
  display: flex;
  height: calc(100% - 48px);
}
.side {
  width: 280px;
  overflow: auto;
  padding: 12px;
  background: #14171c;
  border-right: 1px solid #2a3038;
}
.side h2 {
  font-size: 13px;
  margin: 16px 0 8px;
}
.side label {
  display: block;
  margin: 8px 0;
  font-size: 13px;
}
.side input,
.side select,
.side button {
  width: 100%;
  margin-top: 4px;
}
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tools button.active {
  background: #0f766e;
  color: #ecfeff;
  border-color: #2dd4bf;
}
.steps {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}
.board-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.board-hint {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(15, 17, 20, 0.72);
  border-radius: 6px;
  pointer-events: none;
}
.hint,
.muted {
  font-size: 12px;
  color: #9aa3ad;
}
#board {
  display: block;
  width: 100%;
  height: 100%;
}
.status {
  font-size: 12px;
  color: #5eead4;
}
.lib button,
.lib span {
  display: block;
  margin: 4px 0;
  font-size: 12px;
  text-align: left;
}
