* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #app {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #b8b8c8;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
}

.dot.ok { background: #00e08a; }
.dot.busy { background: #ffc94d; }
.dot.bad { background: #ff5a6e; }

.content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  max-height: 100px;
  overflow: hidden;
}

.step-label {
  font-size: 18px;
  color: #8fb4ff;
  font-weight: 600;
}

.step {
  font-size: 30px;
  line-height: 1.3;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.step.long {
  font-size: 25px;
}

.answer {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #00e08a;
  border-radius: 14px;
  font-size: 32px;
  font-weight: 700;
}

.answer-label {
  font-size: 18px;
  color: #00e08a;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.nav-bar {
  display: flex;
  gap: 12px;
}

.nav-item {
  flex: 1;
  height: 64px;
  border-radius: 32px;
  border: 2px solid #3a3a4a;
  background: #15151f;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  outline: none;
}

.nav-item.primary {
  border-color: #4d7cff;
}

.nav-item:focus {
  background: #fff;
  color: #000;
  border-color: #fff;
}
