/* TurtleNet alpha UX polish layer.
   Kept separate from the base shell while interaction density is still being tuned. */

.auth-panel:not(.compact-auth-panel) {
  width: min(610px, calc(100vw - 48px));
  padding: 42px 46px 38px;
  text-align: center;
}
.auth-panel:not(.compact-auth-panel) .brand-lockup {
  width: 100%;
  justify-content: center;
}
.auth-panel:not(.compact-auth-panel) .auth-kicker {
  margin-top: 24px;
  text-align: center;
}
.auth-panel:not(.compact-auth-panel) h1 {
  max-width: 515px;
  margin: 10px auto 16px;
  font-size: clamp(2.05rem, 4.4vw, 2.75rem);
  line-height: 1.05;
  text-wrap: balance;
}
.auth-panel:not(.compact-auth-panel) .auth-copy {
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: center;
}
.auth-panel:not(.compact-auth-panel) .auth-hint {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.auth-panel:not(.compact-auth-panel) .auth-foot {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

@keyframes turtlenetGuidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 168, 255, .10), 0 0 0 1px rgba(90, 168, 255, .18); }
  50% { box-shadow: 0 0 0 5px rgba(90, 168, 255, .045), 0 0 22px 1px rgba(90, 168, 255, .22); }
}

.button.workflow-guide-pulse:not(:disabled),
.subscription-field.workflow-guide-pulse select:not(:disabled) {
  border-color: #4d93d5;
  animation: turtlenetGuidePulse 2.8s ease-in-out infinite;
}
.subscription-field.workflow-guide-pulse > span { color: #8fc8fb; }
.canvas-wrap.workflow-guide-pulse {
  box-shadow: inset 0 0 0 1px rgba(90, 168, 255, .34), inset 0 0 42px rgba(45, 124, 196, .045);
  animation: turtlenetGuidePulse 3.4s ease-in-out infinite;
}
.workflow-complete > .status,
.connection-command.workflow-complete .status {
  border-color: #2d6758;
  color: var(--ok);
}
.subscription-field.workflow-complete > span { color: #79b9a4; }
#discoverButton.workflow-complete { border-color: #326f61; }

.qvert-node-label { font-size: 11.2px; }
.qvert-node-type { font-size: 8.8px; }
.qvert-container-label { font-size: 10.6px; }
.map-actions .button.secondary,
.map-actions .button.ghost { background: #101d30; color: #c4d3e5; }

.topology-workspace.ux-inspector {
  grid-template-columns: minmax(0, 1fr) 6px var(--inspector-width, 372px);
}
.inspector-resizer {
  position: relative;
  min-width: 6px;
  cursor: col-resize;
  background: #08111e;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  z-index: 3;
}
.inspector-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #29405f;
  opacity: .55;
}
.inspector-resizer:hover::after,
.inspector-resizer:focus::after,
.inspector-resizing .inspector-resizer::after {
  background: #62adf2;
  opacity: 1;
}
.inspector-resizing { cursor: col-resize !important; user-select: none; }
.inspector-heading-actions { display: flex; align-items: center; gap: 7px; }
.inspector-toggle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101d30;
  color: #9db4cc;
  font: 700 16px/1 ui-sans-serif, system-ui, sans-serif;
}
.inspector-toggle:hover { color: #e3f1ff; border-color: #315578; }
.topology-workspace.inspector-collapsed {
  grid-template-columns: minmax(0, 1fr) 0 46px;
}
.topology-workspace.inspector-collapsed .inspector-resizer { display: none; }
.topology-workspace.inspector-collapsed .side-pane {
  padding: 9px 7px;
  overflow: hidden;
}
.topology-workspace.inspector-collapsed .side-pane-heading {
  justify-content: center;
  border-bottom: 0;
  padding: 0;
}
.topology-workspace.inspector-collapsed .side-pane-heading > div:first-child,
.topology-workspace.inspector-collapsed .kind-badge,
.topology-workspace.inspector-collapsed .inspector-hint,
.topology-workspace.inspector-collapsed #sidePaneContent {
  display: none !important;
}
.topology-workspace.inspector-collapsed .inspector-heading-actions { display: block; }

.association-empty {
  margin: 3px 0 0;
  padding: 9px 10px;
  border: 1px dashed #243a55;
  border-radius: 7px;
  color: #7f92ab;
  background: #091624;
  font-size: .66rem;
  line-height: 1.45;
}
.raw-evidence {
  margin-top: 13px;
  padding-top: 10px;
}
.raw-evidence > summary {
  cursor: pointer;
  color: #a9bbcf;
  font-size: .72rem;
  font-weight: 600;
  list-style-position: outside;
}
.raw-evidence > summary::marker { color: #6684a5; }
.raw-evidence-intro {
  margin: 8px 0 7px;
  color: #70839a;
  font-size: .64rem;
  line-height: 1.4;
}
.raw-evidence-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.raw-evidence-actions .button { min-height: 28px; font-size: .65rem; }
.side-pane .raw-evidence pre {
  max-height: 210px;
  white-space: pre-wrap;
  overflow-x: hidden;
  word-break: break-word;
  font-size: 9.5px;
}

@media (max-width: 1100px) {
  .topology-workspace.ux-inspector { --inspector-width: 330px; }
}

@media (max-width: 820px) {
  .topology-workspace.ux-inspector,
  .topology-workspace.ux-inspector.inspector-collapsed {
    grid-template-columns: 1fr;
  }
  .inspector-resizer,
  .inspector-toggle { display: none; }
  .topology-workspace.inspector-collapsed .side-pane-heading > div:first-child,
  .topology-workspace.inspector-collapsed .inspector-hint,
  .topology-workspace.inspector-collapsed #sidePaneContent {
    display: block !important;
  }
  .topology-workspace.inspector-collapsed .kind-badge {
    display: inline-flex !important;
  }
}

@media (max-width: 620px) {
  .auth-panel:not(.compact-auth-panel) { padding: 31px 24px 28px; }
  .auth-panel:not(.compact-auth-panel) .auth-foot { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .button.workflow-guide-pulse:not(:disabled),
  .subscription-field.workflow-guide-pulse select:not(:disabled),
  .canvas-wrap.workflow-guide-pulse {
    animation: none;
    box-shadow: 0 0 0 1px rgba(90, 168, 255, .45);
  }
}
