/* web/css/components.css */

/* Editable line */
.editable {
  flex: 0 1 auto;
  min-height: 1.2em;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  caret-color: var(--fg);
}
.eph {
  flex: 0 0 auto;
  white-space: pre;
  color: var(--eph);
  pointer-events: none;
  user-select: none;
}

/* Output styles */
.prints { color: var(--prints); }
.error  { color: var(--error); }
.outval { color: var(--outval); }
.outty  { color: var(--outty); }

/* Drag overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(13,17,23,0.85);
  border: 2px dashed var(--chip-border);
  color: var(--muted);
  z-index: 50;
  pointer-events: none;
  font-size: 14px;
}

/* Suggestion bar */
.acbar {
  font-size: 12px;
  color: #8aa1b5;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 40vh;
  -webkit-overflow-scrolling: touch;
  min-height: 38px;
}

.chip {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
.chip:hover { background: #0b1220; }
.chip.active {
  border-color: var(--chip-active-border);
  background: var(--chip-active-bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(100,116,139,0.35) inset;
}
