/* cx-simterminal — styles for the interactive simulated terminal.
   Dark "device screen" that matches the SiberangeX console aesthetic. */
.cxst {
  --st-bg: #070b11; --st-bar: #0f141d; --st-line: rgba(255,255,255,.08);
  --st-fg: #d6e0ec; --st-mut: #7f8da0; --st-accent: #2FD4C6;
  --st-ok: #35C08A; --st-warn: #E0A33B; --st-err: #E5544B; --st-hd: #93A0FF;
  background: var(--st-bg);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* nano editor overlay */
.cxst-nano { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  background: var(--st-bg); font-family: inherit; font-size: 13px; }
.cxst-nano-top { flex: none; background: var(--st-accent); color: #04140f; font-weight: 600;
  padding: .35rem .8rem; text-align: center; letter-spacing: .02em; }
.cxst-nano-top i { opacity: .8; font-style: italic; font-weight: 500; }
.cxst-nano-ta { flex: 1; width: 100%; resize: none; border: 0; outline: none;
  background: var(--st-bg); color: var(--st-fg); font-family: inherit; font-size: 13px;
  line-height: 1.6; padding: .7rem 1rem; caret-color: var(--st-accent); }
.cxst-nano-msg { flex: none; min-height: 1.4em; padding: .1rem 1rem; color: var(--st-accent);
  background: rgba(47,212,198,.06); font-size: 12px; }
.cxst-nano-bar { flex: none; background: #cfd8e3; color: #0b0f17; padding: .4rem .8rem;
  font-size: 12px; letter-spacing: .01em; }
.cxst-nano-bar b { background: #0b0f17; color: #cfd8e3; padding: .04rem .3rem; border-radius: 2px; font-weight: 600; }
.cxst-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .26rem .7rem; border-bottom: 1px solid var(--st-line);
  background: var(--st-bar);
}
.cxst-dots { display: flex; gap: .4rem; }
.cxst-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.cxst-dots i:nth-child(1) { background: #ff5f57; }
.cxst-dots i:nth-child(2) { background: #febc2e; }
.cxst-dots i:nth-child(3) { background: #28c840; }
.cxst-title { font-size: .68rem; color: #8a94a8; letter-spacing: .02em; }
.cxst-body {
  height: 440px; max-height: 70vh; overflow-y: auto;
  padding: .85rem 1rem 1.1rem;
  font-size: 13px; line-height: 1.65; color: var(--st-fg);
  outline: none; cursor: text;
  scrollbar-width: thin; scrollbar-color: #2a3446 transparent;
}
.cxst-body::-webkit-scrollbar { width: 9px; }
.cxst-body::-webkit-scrollbar-thumb { background: #2a3446; border-radius: 6px; }
.cxst-row { white-space: pre-wrap; word-break: break-word; }
.cxst-mut, .cxst-row.cxst-mut { color: #7f8da0; }
.cxst-row.cxst-ok { color: var(--st-ok); }
.cxst-row.cxst-warn { color: var(--st-warn); }
.cxst-row.cxst-err { color: var(--st-err); }
.cxst-row.cxst-hd { color: var(--st-fg); font-weight: 600; }
.cxst-row.cxst-accent { color: var(--st-accent); }
.cxst-line { white-space: pre-wrap; word-break: break-word; }
.cxst-ps { color: var(--st-accent); }
.cxst-pre, .cxst-post { color: var(--st-fg); }
.cxst-caret {
  display: inline-block; width: 7px; height: 1.02em; margin: 0 -1px 0 0;
  background: var(--st-accent); vertical-align: -2px; opacity: .9;
  animation: cxst-blink 1.1s steps(1) infinite;
}
.cxst-body:not(:focus) .cxst-caret { animation: none; opacity: .35; }
@keyframes cxst-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cxst-caret { animation: none; } }
