/* sonnet-5 — interactive terminal. Anthropic palette, oldschool CRT vibe. */
:root {
  --orange: #d97757;
  --orange-soft: #e89478;
  --cream: #191919;
  --brown: #666666;
  --green: #1b5e20;
  --cyan: #006064;
  --red: #b71c1c;
  --yellow: #e65100;
  --bg: #f9f9f9;
  --bg-2: #ffffff;
  --line: #e3e3e2;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(217, 119, 87, 0.06), transparent 70%),
    var(--bg);
  color: var(--cream);
  height: 100dvh;
  overflow: hidden;
  /* page never scrolls */
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.55;
}

/* CRT overlays */
.scanlines {
  display: none;
}

.flicker {
  display: none;
}

@keyframes flick {

  0%,
  97% {
    opacity: .6
  }

  98% {
    opacity: .2
  }

  99% {
    opacity: .8
  }

  100% {
    opacity: .5
  }
}

/* ── TOPBAR (always visible) ─────────────────────────────────────── */
.topbar {
  flex: none;
  z-index: 5;
  background: linear-gradient(180deg, var(--bg-2), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "left right" "bar2 bar2";
  gap: 8px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.tb-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tb-bot {
  font-size: 20px;
}

.tb-logo {
  height: 35px;
  width: auto;
  max-width: 45px;
  object-fit: contain;
  display: block;
  margin: -10px 0;
}

.tb-brand {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.tb-brand .dim {
  color: var(--brown);
}

.tb-tag {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-right {
  grid-area: right;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color .2s, color .2s, background .2s, transform .1s;
}

.tb-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.tb-buy {
  background: var(--orange);
  color: #141312;
  border-color: var(--orange);
  font-weight: 700;
}

.tb-buy:hover {
  background: var(--orange-soft);
  color: #141312;
}

.tb-sound {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.tb-sound:hover {
  color: var(--cream);
  background: rgba(24, 23, 22, 0.06);
}

.tb-sound.on {
  color: var(--orange);
}

.tb-sound svg {
  display: block;
}

.tb-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(217, 119, 87, 0.10);
  text-shadow: 0 0 10px rgba(217, 119, 87, 0.4);
}

.levelup {
  color: var(--orange);
  font-weight: 700;
  text-shadow: 0 0 16px rgba(217, 119, 87, 0.6);
}

.tb-bar2 {
  grid-area: bar2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
  margin-top: 2px;
}

.tb-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.tb-ca code {
  color: var(--orange);
  word-break: break-all;
}

.tb-copy {
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  transition: all .15s;
}

.tb-copy:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.tb-copy.copied {
  color: var(--green);
  border-color: var(--green);
}

.tb-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brown);
  flex-wrap: wrap;
}

.tb-stats b {
  color: var(--cream);
}

.tb-stats .sep {
  color: var(--line);
}

.tb-stats .st.live {
  color: var(--green);
}

.tb-stats .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s steps(1) infinite;
}

.tb-stats .st.live.off {
  color: var(--brown);
}

.tb-stats .st.live.off .dot {
  background: var(--brown);
  box-shadow: none;
  animation: none;
}

/* ── SCREEN (the only scroller) ──────────────────────────────────── */
.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px 28px;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.screen::-webkit-scrollbar {
  width: 9px;
}

.screen::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}

.screen::selection,
.screen *::selection {
  background: rgba(217, 119, 87, 0.35);
}

/* Lines */
.ln {
  white-space: pre-wrap;
}

.ln.gap {
  height: .7em;
}

.orange {
  color: var(--orange);
}

.orange-b {
  color: var(--orange);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(217, 119, 87, 0.35);
}

.cream {
  color: var(--cream);
}

.brown {
  color: var(--brown);
}

.green {
  color: var(--green);
}

.cyan {
  color: var(--cyan);
}

.red {
  color: var(--red);
}

.yellow {
  color: var(--yellow);
}

.dim {
  color: #7f766d;
}

.italic {
  font-style: italic;
}

.h {
  color: var(--orange);
  font-weight: 700;
}

.banner {
  color: var(--orange);
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(217, 119, 87, 0.35);
  font-size: clamp(6.5px, 1.85vw, 15px);
}

.prompt .user {
  color: var(--green);
}

.prompt .path {
  color: var(--cyan);
}

.prompt .sym {
  color: var(--cream);
}

.row:hover {
  background: rgba(217, 119, 87, 0.06);
}

a.tlink {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px dotted rgba(217, 119, 87, 0.5);
}

a.tlink:hover {
  color: var(--orange-soft);
  background: rgba(217, 119, 87, 0.12);
}

/* interactive prompt + ghost suggestion */
.inputline {
  white-space: pre-wrap;
}

.cmdtext {
  color: var(--cream);
  white-space: pre-wrap;
}

.ghost {
  color: #a39c94;
  white-space: pre-wrap;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--orange);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 10px rgba(217, 119, 87, 0.6);
}

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

/* hidden input that captures keystrokes (incl. mobile) */
.stdin-hidden {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  background: transparent;
  color: transparent;
  font-size: 16px;
  z-index: -1;
}

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

  .tb-tag {
    display: none;
  }

  .topbar {
    padding: 10px 12px 8px;
  }

  .tb-right .tb-link:not(.tb-buy) {
    padding: 5px 9px;
  }

  .screen {
    padding: 14px 12px 22px;
  }
}

/* ── ADMIN PANEL ─────────────────────────────────────────────────── */
body.admin {
  overflow: auto;
  display: block;
  padding: 0;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.admin-head h1 {
  font-size: 20px;
  color: var(--orange);
  letter-spacing: 1px;
}

.admin-head .bot {
  font-size: 22px;
}

.admin-sub {
  color: var(--brown);
  font-size: 13px;
  margin-bottom: 22px;
}

.admin-sub a {
  color: var(--orange);
  text-decoration: none;
}

.admin-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.admin-card h2 {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(50, 47, 43, 0.5);
}

.field:last-child {
  border-bottom: 0;
}

.field .f-label {
  color: var(--cream);
  font-size: 14px;
}

.field .f-help {
  color: var(--brown);
  font-size: 12px;
  grid-column: 1;
}

.field .f-control {
  grid-row: 1 / span 2;
  grid-column: 2;
  justify-self: end;
}

.field input[type="number"],
.field input[type="text"],
.field select {
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 160px;
  text-align: right;
}

.field input[type="text"] {
  text-align: left;
  min-width: 280px;
  max-width: 100%;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
}

.field select {
  text-align: left;
}

/* toggle */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .2s;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--brown);
  border-radius: 50%;
  transition: .2s;
}

.toggle input:checked+.slider {
  background: var(--orange);
  border-color: var(--orange);
}

.toggle input:checked+.slider::before {
  transform: translateX(24px);
  background: #141312;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 6px;
  background: linear-gradient(0deg, var(--bg) 60%, transparent);
}

.btn-save {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--orange);
  color: #141312;
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  transition: .15s;
}

.btn-save:hover {
  background: var(--orange-soft);
}

.btn-save:disabled {
  opacity: .5;
  cursor: default;
}

.btn-ghost2 {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 18px;
}

.btn-ghost2:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.save-msg {
  font-size: 13px;
}

.save-msg.ok {
  color: var(--green);
}

.save-msg.err {
  color: var(--red);
}

/* operations card */
.ops-wallet {
  font-size: 14px;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(50, 47, 43, 0.5);
  word-break: break-all;
}

.ops-sub {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.ops-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-row .btn-ghost2 {
  margin-left: auto;
  padding: 6px 14px;
}

.ops-launch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-launch input {
  font: inherit;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.ops-launch #ml-name {
  flex: 2;
  min-width: 160px;
}

.ops-launch #ml-ticker {
  width: 120px;
}

.ops-launch #ml-img,
.ops-launch #ml-desc {
  flex: 1;
  min-width: 200px;
}

.ops-launch .btn-save {
  padding: 9px 18px;
}

/* login overlay */
.login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 249, 249, 0.96);
}

.login-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  width: min(380px, 92vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.login-box .bot {
  font-size: 34px;
}

.login-box h2 {
  color: var(--orange);
  margin: 10px 0 4px;
  letter-spacing: 1px;
}

.login-box p {
  color: var(--brown);
  font-size: 13px;
  margin-bottom: 18px;
}

.login-box input {
  font: inherit;
  width: 100%;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.login-box input:focus {
  outline: none;
  border-color: var(--orange);
}

.login-box .err {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* ==========================================================================
   sonnet-5 Dashboard Redesign: Premium Claude-Style App Layout
   ========================================================================== */

/* App Container and Main Grid Replacement */
.app-layout {
  display: flex;
  height: 100dvh;
  width: 100vw;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-2); /* Clean white background for main workspace */
  color: var(--cream);
  overflow: hidden;
}

/* Sidebar styling (Warm Cream) */
.app-sidebar {
  width: 320px;
  background: var(--warm-cream);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anthropic-logo-icon {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--cream);
}

.brand-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 1px;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Sidebar sections */
.sidebar-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.sidebar-section.scrollable {
  flex: 1;
  overflow-y: auto;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

/* CA Box inside Sidebar */
.ca-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.ca-container code {
  color: var(--orange);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ca-container .tb-copy {
  flex-shrink: 0;
  padding: 3px 8px;
}

/* Stats list */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.stat-item.highlight {
  font-weight: 700;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.stat-label {
  color: var(--brown);
  font-weight: 500;
}

.stat-value {
  color: var(--cream);
  font-weight: 700;
}

.level-badge {
  color: var(--orange);
  background: rgba(217, 119, 87, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}

.live-indicator::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s steps(1) infinite;
}

/* If live status is off/paused */
.stat-item.off .live-indicator {
  color: var(--brown);
}

.stat-item.off .live-indicator::before {
  background: var(--brown);
  box-shadow: none;
  animation: none;
}

/* Lore/About text */
.about-text {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.6;
}

/* Sidebar Footer (Links) */
.sidebar-footer {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--bg-2);
}

.sidebar-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.sidebar-link.buy-link {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.sidebar-link.buy-link:hover {
  background: var(--orange-soft);
  color: #ffffff;
  border-color: var(--orange-soft);
}

/* Workspace styling */
.app-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--bg-2);
}

.workspace-header {
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  flex-shrink: 0;
}

.mobile-logo-container {
  display: none; /* Only visible on mobile */
  align-items: center;
  gap: 8px;
}

/* Sound button style update */
.workspace-header .tb-sound {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--brown);
  transition: all 0.2s ease;
}

.workspace-header .tb-sound:hover {
  color: var(--cream);
  border-color: var(--brown);
  background: rgba(0, 0, 0, 0.02);
}

.workspace-header .tb-sound.on {
  color: var(--orange);
  border-color: var(--orange);
}

/* Chat container (Center Focused Canvas) */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  align-items: center;
  position: relative;
}

/* Screen terminal log area */
.chat-screen {
  width: 100%;
  max-width: 800px;
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.chat-screen::-webkit-scrollbar {
  width: 8px;
}

.chat-screen::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.chat-screen::selection,
.chat-screen *::selection {
  background: rgba(217, 119, 87, 0.15);
}

/* Style prompt box as Claude-style floating text-box */
.chat-screen .ln.inputline {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 20px;
  margin: 20px 0 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  flex-shrink: 0;
}

.chat-screen .ln.inputline:hover,
.chat-screen .ln.inputline:focus-within {
  border-color: var(--orange-soft);
  box-shadow: 0 8px 24px rgba(217, 119, 87, 0.06);
}

/* Terracotta flower prefix in active input box */
.chat-screen .ln.inputline::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97757' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Hide standard shell prompt `guest@Sonnet5:~$` in active input box */
.chat-screen .ln.inputline .prompt {
  display: none;
}

.chat-screen .ln.inputline .cmdtext {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  color: var(--cream);
  flex: 1;
  min-height: 22px;
  display: inline-block;
}

/* Interactive placeholder */
.chat-screen .ln.inputline .cmdtext:empty::before {
  content: "Ask sonnet-5 or enter a command...";
  color: #b0aaa2;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  pointer-events: none;
}

.chat-screen .ln.inputline .ghost {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  color: #a39c94;
}

.chat-screen .ln.inputline .cursor {
  width: 2px;
  height: 1.25em;
  background: var(--orange);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
  box-shadow: none;
  vertical-align: -2px;
}

/* Quick command chips (Pills below input) */
.chips-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 24px 24px 24px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.command-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--brown);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(217, 119, 87, 0.03);
}

/* Clean design variables and resets */
:root {
  --warm-cream: #f9f9f8;
  --bg: #f9f9f8;
}

/* Responsive Styling & Natural Mobile Scrolling */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow-y: visible;
  }

  body {
    height: auto;
    overflow-y: auto !important; /* Force allow scrolling the entire page on mobile */
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    position: static;
    order: 2; /* Sidebar stacked below terminal */
  }

  .sidebar-section.scrollable {
    overflow-y: visible;
    flex: none;
  }

  .app-workspace {
    height: auto;
    position: static;
    order: 1; /* Chat workspace at the top */
  }

  .mobile-logo-container {
    display: flex;
  }

  .workspace-header {
    padding: 0 20px;
  }

  .chat-container {
    padding: 0;
    height: auto;
  }

  .chat-screen {
    padding: 24px 16px;
    height: auto; /* Allow dynamic expansion of logs */
    max-height: none;
    overflow: visible; /* Let the window scrollbar handle it */
    flex: none;
  }

  .chips-wrapper {
    padding: 16px;
  }
}