﻿.feat-card { max-width: 560px; }
.feat-card.wide { max-width: 700px; }
.feat-body { display: flex; flex-direction: column; gap: 10px; }
.feat-area { display: flex; flex-direction: column; gap: 10px; }
.tabs-row { display: flex; gap: 6px; margin-bottom: 6px; }
.tab {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.tab.on { color: var(--text); background: var(--panel); border-color: #3a3a46; }

.item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.item .info { flex: 1; min-width: 0; }
.item-t { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acts { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.acts-row { display: flex; justify-content: flex-end; gap: 8px; }
.feat-item { display: flex; flex-direction: column; gap: 8px; }
.feat-run { margin: 0 2px 4px; display: flex; flex-direction: column; gap: 8px; }
.feat-run.hidden { display: none; }

.btn-s {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.btn-s:hover { background: var(--hover); }
.btn-s.solid { background: #ececf1; border-color: #ececf1; color: #0e0e10; font-weight: 600; }
.btn-s.danger { color: var(--danger); }

.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); border: 1px solid #24443a; border-radius: 6px; padding: 2px 6px;
}
.badge.muted { color: var(--muted); border-color: var(--line); }

.field {
  width: 100%; background: #1c1c20; border: 1px solid #2c2c33; border-radius: 10px;
  color: var(--text); padding: 10px 12px; font: inherit; font-size: 14px;
}
textarea.field { min-height: 90px; resize: vertical; }
.field:focus { outline: none; border-color: #4a4a57; }
.out {
  white-space: pre-wrap; background: #0b0b0d; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 14px; line-height: 1.6; max-height: 260px; overflow-y: auto;
}
.out.hidden { display: none; }
.empty-msg { color: var(--muted); font-size: 14px; padding: 14px 4px; }
.muted-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Thinking animation */
.m.bot.thinking { border: 0; background: transparent; padding: 6px 0; }
.think { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.think.code { flex-direction: column; align-items: flex-start; gap: 6px; }
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: trex-bounce 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes trex-bounce {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.skel { display: flex; flex-direction: column; gap: 8px; width: 340px; max-width: 100%; margin-top: 6px; }
.skel i {
  display: block; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #22222a 25%, #36363f 50%, #22222a 75%);
  background-size: 200% 100%;
  animation: trex-shimmer 1.4s infinite linear;
}
.skel i:nth-child(2) { width: 85%; }
.skel i:nth-child(3) { width: 70%; }
.skel i:nth-child(4) { width: 55%; }
@keyframes trex-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Mode toggle in the composer */
.mode-btn {
  flex-shrink: 0; align-self: center; background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer;
}
.mode-btn.on { background: #ececf1; color: #0e0e10; border-color: #ececf1; }

/* Artifact side panel */
#art[style*="flex"] { display: flex !important; flex-direction: column; }
#art iframe { flex: 1; height: auto; }
.art-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  height: 48px; flex-shrink: 0; background: var(--side); border-bottom: 1px solid var(--line);
}
.art-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* Sidebar nav link resets */
a.nav-item { text-decoration: none; }

.files-box { margin: 0 4px 4px; padding: 12px; border: 1px dashed #34343d; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
