/* ============================================================
   Azure Cloud Shell (PowerShell) portal — every selector scoped
   to .px-ps. Near-black terminal, Cloud Shell chrome strip,
   monospace output, red PowerShell errors.
   ============================================================ */

.px-ps {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #090a0c;
  font-family: "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ---------------- Cloud Shell top strip ---------------- */
.px-ps .px-ps-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #1b1d21;
  border-bottom: 1px solid #000;
  color: #cfd3d8;
  font-family: "Segoe UI", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  user-select: none;
}
.px-ps .px-ps-shellsel {
  background: transparent;
  border: none;
  color: #e6e9ed;
  font: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 3px;
  cursor: pointer;
}
.px-ps .px-ps-shellsel:hover { background: #2b2e34; }
.px-ps .px-ps-caret { font-size: 10px; color: #9aa0a8; }
.px-ps .px-ps-sep {
  width: 1px;
  height: 16px;
  background: #3a3d43;
  margin: 0 6px;
}
.px-ps .px-ps-tbtn {
  background: transparent;
  border: none;
  color: #cfd3d8;
  font: inherit;
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
}
.px-ps .px-ps-tbtn:hover { background: #2b2e34; color: #fff; }
.px-ps .px-ps-spacer { flex: 1; }
.px-ps .px-ps-acct { color: #8b949e; font-size: 11.5px; padding-right: 4px; }

/* ---------------- terminal ---------------- */
.px-ps .px-ps-term {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 16px 18px;
  cursor: text;
  font-size: 13px;
  line-height: 1.45;
  color: #d4d7dc;
}
.px-ps .px-ps-term::-webkit-scrollbar { width: 12px; }
.px-ps .px-ps-term::-webkit-scrollbar-track { background: #0d0e11; }
.px-ps .px-ps-term::-webkit-scrollbar-thumb { background: #2e3138; border: 3px solid #0d0e11; border-radius: 7px; }

.px-ps .px-ps-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.45em;
}

/* line kinds */
.px-ps .l-cmd    { color: #f2f2f2; }
.px-ps .l-err    { color: #ff5f57; }
.px-ps .l-ok     { color: #7ee787; }
.px-ps .l-dim    { color: #8b949e; }
.px-ps .l-tbl    { color: #d4d7dc; white-space: pre; overflow-x: auto; word-break: normal; }
.px-ps .l-hd     { color: #58c4dc; font-weight: 700; }
.px-ps .l-banner { color: #ffffff; font-weight: 700; }

/* ---------------- prompt row ---------------- */
.px-ps .px-ps-promptrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.px-ps .px-ps-prompt {
  color: #f2f2f2;
  white-space: pre;
  flex: 0 0 auto;
}
.px-ps .px-ps-input {
  flex: 1;
  min-width: 40px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  color: #f2f2f2;
  caret-color: #f2f2f2;
  font: inherit;
}
.px-ps .px-ps-input::selection { background: #264f78; }
