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

html, body {
  background: #0c0c0c;
  color: #d4d4d4;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 600px) {
  body { font-size: 13px; }
}

/* --- Terminal --- */

#terminal {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  width: 100%;
}

#conversation {
  max-width: 720px;
}

@media (max-width: 600px) {
  #terminal { padding: 12px 10px; }
}

.line {
  white-space: pre-wrap;
  min-height: 1.45em;
  word-break: break-word;
}

/* --- Prompt --- */

.prompt-line {
  display: flex;
}

.prompt {
  color: #4ec954;
  white-space: pre;
  user-select: none;
  flex-shrink: 0;
}

.prompt-path {
  color: #5c9fd6;
}

.typed-text {
  color: #d4d4d4;
  word-break: break-all;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #d4d4d4;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.cursor.hidden { display: none; }

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Colors --- */

.green  { color: #4ec954; }
.blue   { color: #5c9fd6; }
.yellow { color: #e5c07b; }
.red    { color: #e06c75; }
.cyan   { color: #56b6c2; }
.bold   { color: #e8e8e8; }
.dim    { color: #6a6a6a; }
.magenta { color: #c678dd; }

a { color: #5c9fd6; text-decoration: none; }
a:hover, a:active { text-decoration: underline; }

/* --- Thoughts feed --- */

.thoughts-feed {
  max-width: 620px;
  padding: 8px 0;
}

.thought {
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
}

.thought:last-child {
  border-bottom: none;
}

.thought-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.thought-date {
  font-size: 12px;
  color: #6a6a6a;
}

.writespeak-badge {
  font-size: 11px;
  color: #4ec954;
  background: rgba(78, 201, 84, 0.1);
  padding: 1px 7px;
  border-radius: 3px;
  letter-spacing: 0.2px;
}

.thread-badge {
  font-size: 11px;
  color: #5c9fd6;
  background: rgba(92, 159, 214, 0.1);
  padding: 1px 7px;
  border-radius: 3px;
}

.thought-text {
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
}

.thought-expand {
  color: #5c9fd6;
  cursor: pointer;
  font-size: 13px;
}

.thought-expand:hover {
  text-decoration: underline;
}

/* --- Scroll / Input --- */

#scroll-anchor { height: 50vh; }

#global-input {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
  z-index: -1;
  font-size: 16px;
  padding: 0; border: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  -webkit-tap-highlight-color: transparent;
}
