/*
 * Neural Glass MindMap OG theme
 *
 * Source of truth: https://mindmap.neuralglass.design/docs/
 * This file carries the compact nglass documentation skin forward into the
 * WordPress-integrated /app and /manage shells. Keep future plugin UI work
 * aligned to these tokens before introducing route-specific styling.
 */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: #03050f;
  color: rgba(245, 248, 255, 0.92);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ngmm-page {
  --deco: "Cinzel Decorative", ui-serif, serif;
  --serif: "Cinzel", ui-serif, Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --ng-stroke: rgba(255, 255, 255, 0.14);
  --ng-stroke-2: rgba(255, 255, 255, 0.22);
  --ng-ink: rgba(245, 248, 255, 0.92);
  --ng-muted: rgba(245, 248, 255, 0.68);
  --ng-soft: rgba(245, 248, 255, 0.42);
  --ng-a: rgba(124, 131, 255, 0.95);
  --ng-b: rgba(45, 224, 197, 0.92);
  --ng-c: rgba(176, 114, 255, 0.92);
  --ng-card: rgba(255, 255, 255, 0.06);
  --ng-card-2: rgba(255, 255, 255, 0.085);
  min-height: 100vh;
  color: var(--ng-ink);
}

.ngmm-page a {
  color: inherit;
  text-decoration: none;
}

.ngmm-wrap {
  width: min(900px, 100% - 28px);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .ngmm-wrap {
    width: min(900px, 100% - 64px);
  }
}

.ngmm-top {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ng-stroke);
  background: rgba(8, 10, 22, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ngmm-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 57px;
  padding: 10px 0;
}

.ngmm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.ngmm-logoimg {
  height: 36px;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(124, 131, 255, 0.40));
}

.ngmm-brandlabel {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ngmm-brand strong {
  font-family: var(--deco);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, #c8cfff, #7ee8d8, #d0a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.ngmm-brand span span {
  color: var(--ng-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.ngmm-top nav,
.ngmm-nav,
.ngmm-actions,
.ngmm-action-row,
.ngmm-cards {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ngmm-top nav {
  justify-content: flex-end;
  gap: 6px;
}

.ngmm-top nav a,
.ngmm-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 7px 11px;
  border: 1px solid transparent;
  color: var(--ng-muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s, transform 0.12s;
  cursor: pointer;
}

.ngmm-top nav a:hover,
.ngmm-nav a:hover {
  color: var(--ng-ink);
  border-color: var(--ng-stroke);
  background: rgba(255, 255, 255, 0.04);
}

.ngmm-top nav a.ngmm-top-primary,
.ngmm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(45, 224, 197, 0.38);
  background: rgba(45, 224, 197, 0.10);
  color: rgba(45, 224, 197, 0.95);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, transform 0.12s;
}

.ngmm-top nav a.ngmm-top-primary:hover,
.ngmm-button:hover {
  border-color: rgba(45, 224, 197, 0.60);
  background: rgba(45, 224, 197, 0.18);
  transform: translateY(-1px);
  color: rgba(45, 224, 197, 0.98);
}

.ngmm-button-ghost {
  border-color: var(--ng-stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-muted);
  box-shadow: none;
}

.ngmm-button-ghost:hover {
  border-color: var(--ng-stroke-2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ng-ink);
}

main.ngmm-wrap {
  padding: 48px 0 100px;
}

.ngmm-hero,
.ngmm-panel,
.ngmm-card,
.ngmm-mini-card,
.ngmm-upload-form {
  border: 1px solid var(--ng-stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  position: relative;
  overflow: hidden;
}

.ngmm-hero::before,
.ngmm-panel::before,
.ngmm-card::before,
.ngmm-mini-card::before,
.ngmm-upload-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 131, 255, 0.45), rgba(45, 224, 197, 0.35), transparent);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ngmm-hero,
  .ngmm-panel,
  .ngmm-card,
  .ngmm-mini-card,
  .ngmm-upload-form {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.ngmm-hero,
.ngmm-panel {
  border-radius: 20px;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.ngmm-hero {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.ngmm-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ngmm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  border: 1px solid var(--ng-stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-soft);
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ngmm-hero h1,
.ngmm-panel h1,
.ngmm-panel h2 {
  margin: 0;
  color: var(--ng-ink);
  font-family: var(--deco);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--ng-ink) 40%, rgba(245, 248, 255, 0.50));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ngmm-hero h1 {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.06;
}

.ngmm-panel h1,
.ngmm-panel h2 {
  font-size: clamp(19px, 2.8vw, 28px);
  line-height: 1.12;
}

.ngmm-panel h3 {
  margin: 0 0 10px;
  color: var(--ng-ink);
  font-family: var(--serif);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ngmm-muted,
.ngmm-hero p {
  color: var(--ng-muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.ngmm-hero p,
.ngmm-panel p {
  max-width: 62ch;
  margin: 12px auto 0;
}

.ngmm-panel p {
  margin-left: 0;
  margin-right: 0;
}

.ngmm-nav,
.ngmm-cards {
  margin: 0 0 24px;
}

.ngmm-card,
.ngmm-mini-card,
.ngmm-upload-form {
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.ngmm-card {
  min-width: 150px;
  flex: 1;
}

.ngmm-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
  color: var(--ng-ink);
}

.ngmm-card span,
.ngmm-mini-card span {
  color: var(--ng-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.ngmm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.ngmm-table th,
.ngmm-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.ngmm-table tr:last-child td {
  border-bottom: 0;
}

.ngmm-table th {
  color: rgba(124, 131, 255, 0.80);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ngmm-table td {
  color: var(--ng-muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.ngmm-table a,
.ngmm-mini-card a {
  color: var(--ng-b);
  font-weight: 700;
}

.ngmm-login {
  max-width: 520px;
  margin: 8vh auto;
}

.ngmm-login form,
.ngmm-form,
.ngmm-upload-form {
  display: grid;
  gap: 14px;
}

.ngmm-login label,
.ngmm-form label,
.ngmm-upload-form label {
  display: grid;
  gap: 6px;
  color: var(--ng-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.ngmm-login input,
.ngmm-form input,
.ngmm-form textarea,
.ngmm-form select,
.ngmm-upload-form input,
.ngmm-upload-form select {
  width: 100%;
  border: 1px solid var(--ng-stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  outline: none;
}

.ngmm-login input:focus,
.ngmm-form input:focus,
.ngmm-form textarea:focus,
.ngmm-form select:focus,
.ngmm-upload-form input:focus,
.ngmm-upload-form select:focus {
  border-color: rgba(45, 224, 197, 0.38);
  box-shadow: 0 0 0 3px rgba(45, 224, 197, 0.12);
}

.ngmm-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.ngmm-check input {
  width: auto;
}

.ngmm-alert,
.ngmm-status {
  border: 1px solid rgba(255, 200, 80, 0.24);
  background: rgba(255, 200, 80, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  color: var(--ng-muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.ngmm-status {
  display: none;
  border-color: rgba(45, 224, 197, 0.32);
  background: rgba(45, 224, 197, 0.08);
  margin: 0;
}

.ngmm-status.is-visible {
  display: block;
}

.ngmm-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.ngmm-side,
.ngmm-side-section {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ngmm-mini-card {
  display: grid;
  gap: 6px;
}

@media (max-width: 860px) {
  .ngmm-nav-shell,
  .ngmm-workspace-head {
    display: grid;
  }

  .ngmm-top nav {
    justify-content: flex-start;
  }

  .ngmm-app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ngmm-wrap {
    width: min(100% - 22px, 900px);
  }

  .ngmm-top nav a,
  .ngmm-nav a,
  .ngmm-button {
    width: 100%;
  }

  .ngmm-top nav,
  .ngmm-nav,
  .ngmm-action-row {
    align-items: stretch;
  }

  .ngmm-panel,
  .ngmm-hero {
    border-radius: 18px;
    padding: 18px;
  }
}
