/* web/css/layout.css */

.pane {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topleft, .topright {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Console area */
.lines {
  flex: 1 1 auto;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px;
}
.line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 1px 0;
}
.prompt {
  user-select: none;
  flex: 0 0 auto;
  width: 3ch;
  text-align: right;
  color: var(--prompt);
}

/* Editor row: editable + ephemeral suffix */
.editwrap {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 0; /* no space between typed text and suffix */
  min-width: 0;
}
