/* Smart Capture + Neural Nexus */

/* --- Smart Capture --- */

.sc-body { padding: 2px 18px 16px; }

.sc-greet {
  padding: 0 0 12px;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.sc-greet em {
  color: var(--good);
  font-style: italic;
}

.sc-row { display: flex; gap: 9px; }

.sc-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 225, 255, 0.24);
  border-radius: 2px;
  background: rgba(2, 12, 19, 0.9);
  color: var(--text-primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.sc-input::placeholder { color: var(--muted); }

.sc-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(85, 230, 255, 0.25), 0 0 26px rgba(85, 230, 255, 0.1);
}

.sc-btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(115, 235, 255, 0.5);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(45, 166, 194, 0.4), rgba(16, 77, 94, 0.36));
  color: var(--cyan-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.sc-btn:hover { border-color: rgba(160, 245, 255, 0.8); box-shadow: 0 0 26px rgba(74, 214, 242, 0.18); }
.sc-btn:disabled { opacity: 0.5; cursor: progress; }

.sc-hint {
  padding: 9px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.sc-hint::before { content: "└ "; color: rgba(85, 230, 255, 0.5); }

.sc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(85, 239, 174, 0.35);
  border-left-width: 2px;
  border-left-color: var(--good);
  border-radius: 2px;
  background: rgba(85, 239, 174, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.sc-result[hidden] { display: none; }
.sc-result.bad { border-color: rgba(255, 99, 120, 0.4); border-left-color: var(--critical); background: rgba(255, 99, 120, 0.06); }

.sc-kind {
  padding: 2px 7px;
  border: 1px solid rgba(85, 239, 174, 0.45);
  border-radius: 2px;
  color: var(--good);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sc-result.bad .sc-kind { border-color: rgba(255, 99, 120, 0.45); color: var(--critical); }
.sc-result-title { color: var(--text-primary); }
.sc-result-detail { color: var(--muted); }
.sc-why { flex-basis: 100%; color: var(--muted); font-size: 10px; }

.sc-fix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.sc-fix button {
  padding: 3px 8px;
  border: 1px solid var(--gridline);
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.sc-fix button:hover { border-color: var(--cyan); color: var(--cyan-bright); }

/* --- Neural Nexus --- */

.nx-stage {
  position: relative;
  margin: 0 16px 12px;
  border: 1px solid var(--gridline);
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 60, 85, 0.22), transparent 62%),
    #03101a;
  overflow: hidden;
}

.nx-stage canvas {
  display: block;
  width: 100%;
  height: 470px;
  cursor: default;
  touch-action: pan-y;
}

/* Eckwinkel wie im restlichen Dashboard */
.nx-stage::before,
.nx-stage::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(96, 225, 255, 0.55);
  pointer-events: none;
}

.nx-stage::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.nx-stage::after { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

.nx-meta {
  position: absolute;
  z-index: 2;
  color: rgba(94, 135, 148, 0.9);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.nx-meta.tl { top: 16px; left: 34px; }
.nx-meta.tr { top: 16px; right: 34px; }
.nx-meta.br { right: 34px; bottom: 16px; text-align: right; }
.nx-meta.br .nx-core-state { color: var(--good); }

.nx-legend {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 110px auto;
  align-items: center;
  gap: 4px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.nx-legend .nx-legend-label { color: var(--muted); }
.nx-legend .nx-legend-value { color: var(--text-secondary); }

.nx-bar {
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.nx-bar span {
  display: block;
  height: 100%;
  border-radius: 1px;
  background: var(--good);
  transition: width .5s ease;
}

.nx-tip {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 8px 11px;
  border: 1px solid rgba(96, 225, 255, 0.4);
  border-radius: 2px;
  background: rgba(2, 14, 22, 0.97);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}

.nx-tip.visible { opacity: 1; }
.nx-tip b { color: var(--cyan-bright); }
.nx-tip .nx-tip-sub { color: var(--muted); }

.nx-status {
  padding: 0 18px 14px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .sc-body { padding: 2px 12px 14px; }
  .sc-greet { font-size: 21px; }
  .sc-row { flex-wrap: wrap; }
  .sc-btn { width: 100%; }
  .nx-stage { margin: 0 12px 12px; }
  .nx-stage canvas { height: 330px; }
  .nx-legend { display: none; }
  /* Auf dem Handy liegt die Statuszeile sonst über den Knoten. */
  .nx-meta.br { display: none; }
  .nx-meta.tl, .nx-meta.tr { font-size: 8px; }
  .nx-meta.tl { left: 26px; }
  .nx-meta.tr { right: 26px; }
  .nx-status { padding: 0 12px 12px; line-height: 1.5; }
}
