#keyboad-app-all {
  height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

.editor-area {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 6px;
}

.keyboard-area {
  flex-shrink: 0;
}

.editor {
  background: #eaf5ff;
  border: 2px solid #2196f3;
  position: relative;
  font-family: monospace;
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  background-image: repeating-linear-gradient(to right, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 1ch), repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 24px);
}

.editor-wrap {
  display: none;
}

.editor-wrap.active {
  display: block;
  overflow-y: auto;
}

.editor-btn.active {
  background: #333;
}

.tab {
  display: inline-block;
  width: 4ch;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 24px;
  background: #000;
  vertical-align: bottom;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.keyboard {
  background: #38bdf8;
  border: 2px solid #2196f3;
  margin-bottom: 6px;
}

.keyboard-view {
  padding: 10px;
  height: 240px;
}

.keyboard-panel {
  display: none;
}

.keyboard-panel.active {
  display: block;
}

.row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.row button {
  height: 44px;
  border: 2px solid #999;
  background: #eaf5ff;
  font-size: 14px;
  flex: 1;
}

button.orange {
  background: #ff9800;
  color: #fff;
}

button.red {
  background: #ef4444;
  color: #fff;
}

button.gray {
  background: #333;
  color: #fff;
}

button.gray-light {
  background: #666;
  color: #fff;
}

button.func.active {
  background: #ef4444;
  color: #fff;
}

.keyboard-switch {
  display: flex;
  gap: 6px;
}
.keyboard-switch button {
  flex: 1;
  height: 44px;
  font-size: 16px;
  background: #2196f3;
  color: #fff;
  border: 2px solid #999;
}

