/* SavirOS MindOS V1 layout */

.savir-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

.savir-left,
.savir-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#thought-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
}

#context {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 6px;
}

.savir-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #6b7280;
}

.savir-status {
  margin-top: 8px;
  font-size: 12px;
}

.savir-history {
  max-height: 260px;
  overflow-y: auto;
}

.history-list {
  margin-top: 8px;
}

.history-list-item {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.history-list-item:hover {
  background: rgba(15, 23, 42, 0.02);
}

.history-snippet {
  font-size: 13px;
  color: #111827;
}

.history-meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* Tabs */

.savir-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.savir-tab {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  cursor: pointer;
}

.savir-tab.active {
  background: #0f172a;
  color: #f9fafb;
  border-color: #0f172a;
}

.savir-panel.hidden {
  display: none;
}

.savir-output {
  font-size: 14px;
}

.savir-output h4 {
  margin: 10px 0 4px;
  font-size: 14px;
}

.savir-output p {
  margin: 0 0 6px;
}

.savir-output ul {
  margin: 4px 0 10px;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
}

/* Small text helper */

.small {
  font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
  .savir-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
