/* Lab observatory overlay on SOLΞ Identity market shell */

body.sx-login-ljubljana {
  font-family: Figtree, Sora, sans-serif;
}

.sx-market--identity-auth .sx-market__main--auth {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

/* Same stage + panel placement as Identity login */
body.sx-login-ljubljana .sx-identity-auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0.5rem 0 2rem;
}

body.sx-login-ljubljana .sx-identity-auth-panel {
  margin-left: calc(50vw - 1.25rem);
  width: min(34rem, calc(50vw - 2.5rem));
  box-sizing: border-box;
}

/* Logo + buttons: one centered row above the panel */
.lab-panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.75rem;
  width: 100%;
}

.lab-panel-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.lab-panel-logo img {
  height: 36px;
  width: auto;
  max-width: min(180px, 40vw);
  object-fit: contain;
}

.lab-monitor-card {
  width: 100%;
}

.lab-eyebrow {
  margin: 0 0 0.35rem;
  font-family: Sora, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a1f;
}

/* Summary panel (KPI strip) */
.lab-summary {
  margin: 1.1rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #142028 0%, #0c141a 100%);
  color: #d7e7df;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 28px rgba(12, 20, 28, 0.22);
}

.lab-summary__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.lab-summary__label {
  opacity: 0.75;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-monitor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 1rem 0.9rem 1.1rem;
}

.lab-metric {
  display: grid;
  gap: 0.2rem;
}

.lab-metric__label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}

.lab-metric strong {
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f4f7f5;
}

/* VS Code / terminal console */
.lab-console {
  margin: 0.85rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1e1e1e;
  color: #d4d4d4;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 36px rgba(12, 20, 28, 0.28);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lab-console__titlebar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: #323233;
  border-bottom: 1px solid #1e1e1e;
  font-size: 0.72rem;
}

.lab-console__traffic {
  display: flex;
  gap: 0.35rem;
}

.lab-console__traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a5a5a;
}

.lab-console__traffic span:nth-child(1) { background: #ff5f57; }
.lab-console__traffic span:nth-child(2) { background: #febc2e; }
.lab-console__traffic span:nth-child(3) { background: #28c840; }

.lab-console__tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.lab-console__tab {
  padding: 0.28rem 0.65rem;
  border-radius: 6px 6px 0 0;
  background: #1e1e1e;
  color: #cccccc;
  white-space: nowrap;
}

.lab-console__tab.is-dim {
  background: transparent;
  color: #8b8b8b;
}

.lab-console__status {
  font-family: Sora, sans-serif;
  font-weight: 600;
  color: #89d185;
  text-transform: lowercase;
  flex-shrink: 0;
}

.lab-console__status.is-error { color: #f48771; }
.lab-console__status.is-loading { color: #dcdcaa; }

.lab-console__statusbar {
  display: flex;
  gap: 0.85rem;
  padding: 0.2rem 0.75rem;
  background: #007acc;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.lab-console__body {
  display: grid;
  grid-template-columns: auto 1fr;
  max-height: min(32vh, 280px);
  overflow: auto;
  background: #1e1e1e;
}

.lab-console__gutter {
  padding: 0.75rem 0.55rem 0.75rem 0.7rem;
  text-align: right;
  color: #858585;
  user-select: none;
  background: #1e1e1e;
  border-right: 1px solid #2a2a2a;
  line-height: 1.55;
  font-size: 0.78rem;
  white-space: pre;
}

.lab-console__code {
  margin: 0;
  padding: 0.75rem 0.85rem;
  white-space: pre;
  line-height: 1.55;
  font-size: 0.78rem;
  overflow-x: auto;
  tab-size: 2;
}

.lab-console__code .tok-comment { color: #6a9955; }
.lab-console__code .tok-name { color: #9cdcfe; }
.lab-console__code .tok-labels { color: #ce9178; }
.lab-console__code .tok-value { color: #b5cea8; }

.lab-banner {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid #c9851a;
  background: rgba(255, 248, 230, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a3428;
}

.lab-login-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

body.lab-admin-page .sx-identity-auth-panel.lab-admin-panel {
  width: min(42rem, calc(50vw - 2rem));
}

.lab-section-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6472;
}

.lab-saas-links {
  margin-top: 0.75rem;
}

.lab-saas-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lab-admin-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.lab-providers {
  display: grid;
  gap: 0.75rem;
}

.lab-provider {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.55);
}

.lab-provider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lab-provider__badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.lab-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.lab-check input {
  width: auto !important;
}

.lab-admin-status {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.lab-admin-msg {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.lab-admin-msg.is-ok { color: #157a3c; }
.lab-admin-msg.is-error { color: #b42318; }

.lab-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.lab-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  body.sx-login-ljubljana .sx-identity-auth-panel {
    margin-left: 0;
    width: 100%;
  }

  .lab-panel-logo img {
    height: 32px;
  }

  .lab-console__body {
    max-height: min(36vh, 240px);
  }
}
