:root {
  --bg: #272727;
  --panel: #2f2f2f;
  --text: #e6e6e6;
  --muted: #bdbdbd;
  --yellow: #ffcc00;
  --green: #44cc44;
  --line-height: 1.2em;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, Arial, sans-serif;
}

.top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 40px;
  padding: 8px;
}

.col-top {
  background: var(--panel);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}

.status {
  font-size: 16px
}

.bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  min-height: calc(100vh - 76px);
}

.col {
  background-color: #2b2b2e;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 200px;
  font-family: Consolas;
  font-size: .9rem;
  line-height: var(--line-height);
}

#col2 {
  background-color: #1c1c1e;
}

.col:focus {
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.06);
  outline: none
}

@media(max-width:900px) {

  .top-row,
  .bottom-row {
    grid-template-columns: 1fr
  }
}

/* Кнопка прокрутки вверх */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#scrollTopBtn:hover {
  opacity: 1;
}

.col2-text {
  background-color: #3a3f4a;
  padding: 2px 4px;
}

.col2-line {
  user-select: text;
}

.sub-text,
.sub-empty {
  min-height: var(--line-height);
}

.sub-text {
  outline: 0;
  background-color: #242424;
}

.col-top button {
  background: transparent;
  border: 1px solid #ffffff0d;
  color: #eaeaea;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.col-top button:hover {
  outline: 2px solid #FF9900;
}

.col-top button:focus {
  outline: 2px solid #007acc;
}