/* ═══════════════════════════════════════════════════════
   NUI BRAND BRIEF & MOODBOARD — Glass UI Theme
   Matches NUI dark luxury aesthetic (Syne + Montserrat)
   v20260224v1
   ═══════════════════════════════════════════════════════ */

/* ─── BRIEF QUESTIONNAIRE (Client-facing) ─── */
.nui-brief-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.nui-brief-hero {
  position: relative;
  padding: 60px 40px;
  margin-bottom: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, rgba(0,0,0,0.4) 50%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  text-align: center;
}
.nui-brief-hero-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.nui-brief-hero-content { position: relative; z-index: 2; }
.nui-brief-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.2);
  margin-bottom: 16px;
}
.nui-brief-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.nui-brief-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.6;
}
.nui-brief-done-msg {
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
  color: #4ade80;
  font-size: 14px;
}

/* ─── Sections ─── */
.nui-brief-section {
  margin-bottom: 40px;
}
.nui-brief-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nui-brief-section-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(220,38,38,0.4);
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}
.nui-brief-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.nui-brief-section-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ─── Questions ─── */
.nui-brief-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nui-brief-q {
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}
.nui-brief-q:focus-within {
  background: rgba(255,255,255,0.05);
  border-color: rgba(220,38,38,0.3);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.nui-brief-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  line-height: 1.5;
}
.nui-brief-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.nui-brief-textarea:focus {
  outline: none;
  border-color: rgba(220,38,38,0.4);
  background: rgba(0,0,0,0.4);
}
.nui-brief-textarea::placeholder,
.nui-brief-input::placeholder {
  color: rgba(255,255,255,0.2);
}
.nui-brief-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.nui-brief-input:focus {
  outline: none;
  border-color: rgba(220,38,38,0.4);
}

/* ─── Checkboxes ─── */
.nui-brief-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nui-brief-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.nui-brief-check-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.nui-brief-check-item input[type="checkbox"] { display: none; }
.nui-brief-check-box {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.nui-brief-check-item input:checked + .nui-brief-check-box {
  background: #dc2626;
  border-color: #dc2626;
}
.nui-brief-check-item input:checked + .nui-brief-check-box::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.nui-brief-check-item input:checked ~ span:last-child {
  color: #fff;
}

/* ─── List of 3 ─── */
.nui-brief-list3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nui-brief-list3-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nui-brief-list3-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px;
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.nui-brief-list3-item .nui-brief-input { flex: 1; }

/* ─── Submit ─── */
.nui-brief-submit-wrap {
  text-align: center;
  padding: 40px 0;
}
.nui-brief-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(220,38,38,0.3);
}
.nui-brief-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220,38,38,0.4);
}
.nui-brief-save-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════
   MOODBOARD EDITOR — Glass Dark Redesign
   ═══════════════════════════════════════════════════════ */

/* Override the old white moodboard UI */
.ml-wrap {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
  background: #0a0a0a !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  font-family: 'Montserrat', -apple-system, sans-serif !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4) !important;
}

/* Header bar — glass */
.ml-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 24px !important;
  background: rgba(255,255,255,0.03) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.ml-head-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.3px !important;
}
.ml-head-sub {
  font-size: 12px !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 2px !important;
}

/* Buttons — glass style */
.ml-hbtn {
  padding: 9px 20px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: none !important;
}
.ml-hbtn:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
.ml-hbtn-red {
  background: linear-gradient(135deg, rgba(220,38,38,0.8), rgba(185,28,28,0.8)) !important;
  border-color: rgba(220,38,38,0.4) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(220,38,38,0.25) !important;
}
.ml-hbtn-red:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4) !important;
}

/* Body layout */
.ml-body {
  display: flex !important;
  flex: 1 !important;
  overflow: hidden !important;
}

/* ─── Sidebar — Glass dark ─── */
.ml-sidebar {
  width: 240px !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  overflow-y: auto !important;
}
.ml-sidebar::-webkit-scrollbar { width: 4px; }
.ml-sidebar::-webkit-scrollbar-track { background: transparent; }
.ml-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ml-sb-section {
  padding: 20px 18px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
}
.ml-sb-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  margin: 2px 10px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  border: 1px solid transparent !important;
  user-select: none !important;
}
.ml-sb-item:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  transform: translateX(3px) !important;
}
.ml-sb-item:active {
  transform: scale(0.97) !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.3) !important;
  background: rgba(220,38,38,0.08) !important;
}
.ml-sb-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
  background: rgba(255,255,255,0.05) !important;
}
.ml-sb-sep {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent) !important;
  margin: 12px 18px !important;
}
.fw-600 { color: rgba(255,255,255,0.85) !important; }
.text-muted-xs { color: rgba(255,255,255,0.35) !important; font-size: 11px !important; }

/* ─── Canvas ─── */
.ml-canvas-area {
  flex: 1 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #111111 !important;
  cursor: default !important;
}
.ml-canvas-area.panning { cursor: grab !important; }
.ml-canvas {
  transform-origin: 0 0 !important;
  position: absolute !important;
  width: 5000px !important;
  height: 4000px !important;
}
.ml-grid {
  opacity: 0.12 !important;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 0.5px, transparent 0.5px) !important;
  background-size: 20px 20px !important;
}

/* ─── Cards — Glass dark ─── */
.ml-card {
  position: absolute !important;
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  cursor: move !important;
  user-select: none !important;
  transition: box-shadow 0.2s, border-color 0.2s !important;
}
.ml-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.ml-card.sel {
  box-shadow: 0 0 0 2px #dc2626, 0 8px 32px rgba(220,38,38,0.2) !important;
  border-color: rgba(220,38,38,0.4) !important;
}
.ml-card .ml-rz {
  background: #dc2626 !important;
  border: 2px solid rgba(0,0,0,0.6) !important;
  border-radius: 3px !important;
}

/* Image cards */
.ml-img-wrap {
  border-radius: 12px 12px 0 0 !important;
  overflow: hidden !important;
}
.ml-img-caption {
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.6) !important;
  border: none !important;
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ml-img-caption:focus { background: rgba(255,255,255,0.03) !important; color: #fff !important; }
.ml-img-caption::placeholder { color: rgba(255,255,255,0.2) !important; }

/* Note cards */
.ml-note { overflow: hidden !important; }
.ml-note-handle {
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.ml-note-handle::after {
  background: rgba(255,255,255,0.15) !important;
}
.ml-note-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: transparent !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ml-note-title:focus { background: rgba(255,255,255,0.03) !important; }
.ml-note-title::placeholder { color: rgba(255,255,255,0.2) !important; }
.ml-note-body {
  font-size: 13px !important;
  color: rgba(255,255,255,0.6) !important;
  background: transparent !important;
  line-height: 1.6 !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ml-note-body:focus { background: rgba(255,255,255,0.03) !important; color: rgba(255,255,255,0.8) !important; }
.ml-note-body::placeholder { color: rgba(255,255,255,0.2) !important; }

/* Link cards */
.ml-link-domain {
  color: rgba(255,255,255,0.4) !important;
  padding: 14px 14px 6px !important;
}
.ml-link-title {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ml-link-url {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.ml-link-url a { color: #f87171 !important; }

/* Color swatches */
.ml-swatch-label {
  background: rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.6) !important;
  font-family: 'SF Mono', monospace !important;
}

/* Text cards */
.ml-text-card {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  backdrop-filter: none !important;
}
.ml-text-card:hover { box-shadow: 0 0 0 1.5px rgba(220,38,38,0.5) !important; border-color: transparent !important; }
.ml-text-card.sel { box-shadow: 0 0 0 2px #dc2626 !important; }

/* ─── Footer ─── */
.ml-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.35) !important;
}
.ml-zbtn {
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.6) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.15s !important;
}
.ml-zbtn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* ─── Floating panels — Glass ─── */
.ml-float {
  position: absolute !important;
  background: rgba(20,20,20,0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  z-index: 50 !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) !important;
}
.ml-float h4 {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.35) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 14px !important;
}
.ml-finput {
  width: 100% !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ml-finput:focus {
  outline: none !important;
  border-color: rgba(220,38,38,0.4) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.ml-finput::placeholder { color: rgba(255,255,255,0.25) !important; }
.ml-fbtn {
  width: 100% !important;
  padding: 10px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  transition: all 0.15s !important;
}
.ml-fbtn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* ─── Admin Brief Panel (sidebar in moodboard editor) ─── */
.mb-brief-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
}
.mb-brief-responses {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 100%;
  overflow-y: auto;
  padding: 4px 0;
}
.mb-brief-item {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: background 0.15s;
}
.mb-brief-item:hover {
  background: rgba(255,255,255,0.05);
}
.mb-brief-q-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  line-height: 1.4;
}
.mb-brief-q-answer {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ─── Moodboard List Panel (admin grid) — Dark ─── */
.admin-card-dark-center {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  text-align: center !important;
}

/* ─── Brief Tab Toggle in Moodboard Editor ─── */
.mb-brief-toggle {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.06);
}
.mb-brief-toggle-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.mb-brief-toggle-btn.active {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}
.mb-brief-toggle-btn:hover:not(.active) {
  color: rgba(255,255,255,0.7);
}

/* ─── Brief Panel in Editor (right side) ─── */
.mb-brief-panel {
  width: 320px;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  padding: 20px 16px;
  display: none;
  flex-shrink: 0;
}
.mb-brief-panel.show { display: block; }
.mb-brief-panel::-webkit-scrollbar { width: 4px; }
.mb-brief-panel::-webkit-scrollbar-track { background: transparent; }
.mb-brief-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.mb-brief-panel-header {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mb-brief-panel-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.mb-brief-panel-close:hover {
  background: rgba(220,38,38,0.15);
  color: #f87171;
  border-color: rgba(220,38,38,0.3);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nui-brief-hero { padding: 40px 24px; }
  .nui-brief-title { font-size: 24px; }
  .nui-brief-checks { flex-direction: column; }
  .ml-sidebar { width: 60px !important; }
  .ml-sb-item > div:last-child { display: none !important; }
  .mb-brief-panel { width: 260px; }
}

/* ─── Sidebar — Dark glass ─── */
.ml-sidebar {
  width: 240px !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  overflow-y: auto !important;
}
.ml-sidebar::-webkit-scrollbar { width: 4px; }
.ml-sidebar::-webkit-scrollbar-track { background: transparent; }
.ml-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ml-sb-section {
  padding: 20px 18px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
}
.ml-sb-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  margin: 2px 10px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.18s !important;
  border: 1px solid transparent !important;
}
.ml-sb-item:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  transform: translateX(2px) !important;
}
.ml-sb-item:active {
  transform: scale(0.97) !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.3) !important;
  background: rgba(220,38,38,0.08) !important;
}
.ml-sb-item .fw-600 { color: rgba(255,255,255,0.85) !important; }
.ml-sb-item .text-muted-xs { color: rgba(255,255,255,0.3) !important; font-size: 11px !important; }
.ml-sb-sep {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent) !important;
  margin: 10px 18px !important;
}
.ml-sb-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
}
.ml-ghost {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  opacity: 0.9 !important;
  padding: 10px 16px !important;
  background: rgba(10,10,10,0.9) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  display: none !important;
  backdrop-filter: blur(20px) !important;
}

/* ─── Canvas area ─── */
.ml-canvas-area {
  flex: 1 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #111111 !important;
  cursor: default !important;
}
.ml-canvas-area.panning { cursor: grab !important; }
.ml-canvas {
  transform-origin: 0 0 !important;
  position: absolute !important;
  width: 5000px !important;
  height: 4000px !important;
}
.ml-grid {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  pointer-events: none !important;
  opacity: 0.12 !important;
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 0.5px, transparent 0.5px) !important;
  background-size: 20px 20px !important;
}

/* ─── Cards — Glass dark ─── */
.ml-card {
  position: absolute !important;
  background: rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06) !important;
  cursor: move !important;
  user-select: none !important;
  transition: box-shadow 0.2s, transform 0.1s !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.ml-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) !important;
}
.ml-card.sel {
  box-shadow: 0 0 0 2.5px #dc2626, 0 8px 32px rgba(220,38,38,0.2) !important;
}
.ml-card .ml-rz {
  position: absolute !important;
  width: 10px !important; height: 10px !important;
  background: #dc2626 !important;
  border: 2px solid rgba(0,0,0,0.5) !important;
  border-radius: 3px !important;
  display: none !important;
  z-index: 5 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
}
.ml-card.sel .ml-rz { display: block !important; }
.ml-rz-se { bottom: -5px !important; right: -5px !important; cursor: se-resize !important; }

/* Image card */
.ml-img-wrap {
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  cursor: move !important;
}
.ml-img-wrap img {
  width: 100% !important;
  display: block !important;
  pointer-events: none !important;
}
.ml-img-caption {
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.6) !important;
  border: none !important;
  background: rgba(0,0,0,0.3) !important;
  width: 100% !important;
  outline: none !important;
  box-sizing: border-box !important;
  min-height: 20px !important;
  resize: none !important;
  font-family: inherit !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.ml-img-caption:focus { background: rgba(0,0,0,0.5) !important; }
.ml-img-caption::placeholder { color: rgba(255,255,255,0.2) !important; }

/* Note card */
.ml-note { overflow: hidden !important; }
.ml-note-strip {
  height: 5px !important;
  border-radius: 12px 12px 0 0 !important;
}
.ml-note-handle {
  height: 24px !important;
  cursor: move !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.03) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.ml-note-handle::after {
  content: '' !important;
  width: 28px !important; height: 3px !important;
  border-radius: 3px !important;
  background: rgba(255,255,255,0.15) !important;
}
.ml-note-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  padding: 10px 14px 2px !important;
  border: none !important;
  background: none !important;
  width: 100% !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}
.ml-note-title:focus { background: rgba(255,255,255,0.03) !important; }
.ml-note-title::placeholder { color: rgba(255,255,255,0.2) !important; }
.ml-note-body {
  font-size: 13px !important;
  color: rgba(255,255,255,0.6) !important;
  padding: 4px 14px 14px !important;
  border: none !important;
  background: none !important;
  width: 100% !important;
  outline: none !important;
  resize: none !important;
  min-height: 40px !important;
  line-height: 1.6 !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}
.ml-note-body:focus { background: rgba(255,255,255,0.03) !important; }
.ml-note-body::placeholder { color: rgba(255,255,255,0.2) !important; }

/* Link card */
.ml-link-domain {
  font-size: 10px !important;
  color: rgba(255,255,255,0.4) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 14px 6px !important;
}
.ml-link-domain img { opacity: 0.7 !important; }
.ml-link-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  padding: 0 14px 8px !important;
  line-height: 1.3 !important;
}
.ml-link-url {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 10px 14px !important;
  font-size: 11px !important;
}
.ml-link-url a {
  color: #f87171 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
.ml-link-url a:hover { text-decoration: underline !important; }

/* Color swatch */
.ml-swatch-color {
  width: 100% !important;
  aspect-ratio: 1 !important;
  border-radius: 12px 12px 0 0 !important;
}
.ml-swatch-label {
  padding: 8px 10px !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.5) !important;
  font-family: 'SF Mono', SFMono-Regular, monospace !important;
  text-align: center !important;
  background: rgba(0,0,0,0.3) !important;
  border-radius: 0 0 12px 12px !important;
  font-weight: 500 !important;
}

/* Text card */
.ml-text-card {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.ml-text-card:hover {
  box-shadow: 0 0 0 1.5px rgba(220,38,38,0.5) !important;
}
.ml-text-card.sel {
  box-shadow: 0 0 0 2.5px #dc2626 !important;
}

/* ─── Floating panels — Glass ─── */
.ml-float {
  position: absolute !important;
  top: 14px !important; right: 14px !important;
  width: 260px !important;
  background: rgba(15,15,15,0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  z-index: 50 !important;
  display: none !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) !important;
}
.ml-float.show { display: block !important; animation: mlPanelIn .18s ease-out !important; }
@keyframes mlPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.ml-float h4 {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.35) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 14px !important;
}
.ml-finput {
  width: 100% !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s !important;
}
.ml-finput:focus {
  outline: none !important;
  border-color: rgba(220,38,38,0.4) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08) !important;
}
.ml-finput::placeholder { color: rgba(255,255,255,0.2) !important; }
.ml-fbtn {
  width: 100% !important;
  padding: 10px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  transition: all 0.15s !important;
}
.ml-fbtn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* ─── Footer ─── */
.ml-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.35) !important;
}
.ml-zbtn {
  width: 30px !important; height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.6) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.12s !important;
}
.ml-zbtn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* ─── Admin Brief Panel (inside moodboard editor sidebar) ─── */
.mb-brief-panel {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mb-brief-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 2px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s;
  border: 1px solid transparent;
  background: rgba(220,38,38,0.06);
}
.mb-brief-toggle:hover {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.15);
  color: #fff;
}
.mb-brief-panel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mb-brief-panel-content.open {
  max-height: 600px;
  overflow-y: auto;
}
.mb-brief-panel-content::-webkit-scrollbar { width: 3px; }
.mb-brief-panel-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.mb-brief-empty {
  text-align: center;
  padding: 30px 16px;
  color: rgba(255,255,255,0.3);
}
.mb-brief-responses {
  padding: 12px 0;
}
.mb-brief-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(220,38,38,0.3);
}
.mb-brief-q-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.mb-brief-q-answer {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ─── Moodboard List Panel (Admin overview) — Dark theme ─── */
.admin-card-dark-center {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  text-align: center !important;
}

/* ─── Brief Tab in Moodboard Sidebar ─── */
.ml-brief-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 2px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
  border: 1px solid transparent;
  background: rgba(220,38,38,0.05);
}
.ml-brief-tab:hover {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.15);
  color: #fff;
}
.ml-brief-tab .ml-sb-icon {
  background: rgba(220,38,38,0.1);
  color: #f87171;
}
.ml-brief-badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nui-brief-wrap { padding: 0 8px 40px; }
  .nui-brief-hero { padding: 40px 20px; }
  .nui-brief-title { font-size: 24px; }
  .nui-brief-checks { flex-direction: column; }
  .ml-sidebar { width: 180px !important; }
}


/* ─── Color filter dots ─── */
.mb-color-dot {
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s !important;
  position: relative;
  z-index: 10;
}
.mb-color-dot:hover {
  transform: scale(1.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.mb-color-dot.mb-color-active {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 0 12px rgba(255,255,255,0.2) !important;
  transform: scale(1.15) !important;
}


/* ═══════════════════════════════════════════════════════
   Design Tools — Font Browser, Pairings, Color Combos
   ═══════════════════════════════════════════════════════ */

/* Tabs */
.dt-tabs { display:flex; gap:4px; margin-bottom:8px; }
.dt-tab {
  flex:1; padding:7px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03); color:rgba(255,255,255,0.4); font-size:11px;
  font-weight:600; cursor:pointer; transition:all .15s; text-align:center;
}
.dt-tab:hover { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.6); }
.dt-tab-active { background:rgba(255,255,255,0.1); color:#fff; border-color:rgba(255,255,255,0.15); }

/* Font grid */
.dt-font-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:6px;
  max-height:320px; overflow-y:auto;
}
.dt-font-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06);
  border-radius:8px; padding:14px 10px 8px; text-align:center; cursor:pointer;
  transition:all .15s;
}
.dt-font-card:hover {
  background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.15);
  transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
.dt-font-preview { font-size:28px; color:#fff; margin-bottom:6px; line-height:1.2; font-weight:600; }
.dt-font-name { font-size:9px; color:rgba(255,255,255,0.35); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dt-empty { grid-column:1/-1; text-align:center; padding:20px; color:rgba(255,255,255,0.3); font-size:12px; }

/* Font Pairing */
.dt-pair-panel { }
.dt-pair-preview {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; padding:16px; margin-bottom:10px;
}
.dt-pair-list { max-height:220px; overflow-y:auto; }
.dt-pair-item {
  padding:10px 12px; border-radius:8px; cursor:pointer;
  border:1px solid rgba(255,255,255,0.04); margin-bottom:4px;
  transition:all .15s;
}
.dt-pair-item:hover { background:rgba(255,255,255,0.05); border-color:rgba(255,255,255,0.1); }
.dt-pair-active { background:rgba(255,255,255,0.08) !important; border-color:rgba(255,255,255,0.15) !important; }

/* Color Combos */
.dt-color-panel { }
.dt-harmony-btns { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px; }
.dt-harm-btn {
  padding:5px 10px; border-radius:6px; border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03); color:rgba(255,255,255,0.4); font-size:10px;
  cursor:pointer; transition:all .15s;
}
.dt-harm-btn:hover { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.7); }
.dt-harm-active { background:rgba(255,255,255,0.1); color:#fff; border-color:rgba(255,255,255,0.2); }

.dt-curated-list { max-height:200px; overflow-y:auto; }
.dt-curated-item {
  padding:8px 10px; border-radius:8px; cursor:pointer;
  border:1px solid rgba(255,255,255,0.04); margin-bottom:4px; transition:all .15s;
}
.dt-curated-item:hover { background:rgba(255,255,255,0.05); border-color:rgba(255,255,255,0.1); }

/* Eagle panel */
.dt-eagle-panel { }
