/*
 * SovrenAI Development Operating System — DOC-1282CABE8598
 * 8-tab unified development environment.
 * Extends sovren-standard.css. Light theme only.
 */

.os-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg);
}

/* ── TOP BAR ── */
.os-topbar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  gap: var(--sp-2);
  flex-shrink: 0;
}

.os-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.os-brand span {
  font-weight: 400;
  color: var(--muted);
}

.os-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
}

.os-tab {
  padding: var(--sp-1) var(--sp-3);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-ui);
  transition: color 0.15s;
}

.os-tab:hover { color: var(--text); }
.os-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.os-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.os-health {
  font-size: 14px;
  color: var(--disabled);
}

/* ── CONTENT ── */
.os-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.os-pane {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.os-pane.active { display: flex; flex-direction: column; }

.os-iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}

/* ── PLACEHOLDER (Git, Deploy — coming soon) ── */
.os-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--muted);
  padding: var(--sp-8);
}

.os-placeholder-icon { font-size: 48px; }
.os-placeholder-title { font-size: 18px; font-weight: 600; color: var(--text); }
.os-placeholder-text { font-size: 13px; text-align: center; max-width: 400px; }

/* ── CLI TERMINAL ── */
.cli-terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}

.cli-output {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.cli-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.cli-line.user { color: var(--text); }
.cli-line.system { color: var(--muted); }
.cli-line.error { color: var(--red); }
.cli-line.barcode { color: var(--accent); }
.cli-line.response { color: var(--text); }

.cli-input-row {
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--border);
  background: var(--surface);
  gap: var(--sp-2);
}

.cli-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cli-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}

/* ── NARRATION BAR ── */
.os-narration {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
  height: 28px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.os-narration.active {
  background: var(--accent-light);
  color: var(--accent);
}

.os-narration-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--disabled);
  flex-shrink: 0;
}

.os-narration.active .os-narration-dot {
  background: var(--accent);
  animation: osPulse 1.5s ease infinite;
}

@keyframes osPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
