/* ============================================================
   Nextwave Events – Playlist Builder  |  nwpl-style.css v1.0.0
   ============================================================ */

/* ── Theme isolation reset ──────────────────────────────────
   Resets all WordPress theme button overrides inside our app.
   ──────────────────────────────────────────────────────────── */
#nwpl-app button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: inherit !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  outline: none !important;
}

/* ── Base container ─────────────────────────────────────── */

#nwpl-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Progress bar ───────────────────────────────────────── */

#nwpl-app .nwpl-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 36px;
}

#nwpl-app .nwpl-step-dot {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  background: #e2e8f0 !important;
  border: 2px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

#nwpl-app .nwpl-step-dot span {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

#nwpl-app .nwpl-step-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  display: block;
}

#nwpl-app .nwpl-step-dot.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
}

#nwpl-app .nwpl-step-dot.active::before {
  background: #fff;
}

#nwpl-app .nwpl-step-dot.active span {
  color: #0f172a;
  font-weight: 700;
}

#nwpl-app .nwpl-step-dot.done {
  background: #0f172a !important;
  border-color: #0f172a !important;
}

#nwpl-app .nwpl-step-dot.done::before {
  content: '✓';
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: auto;
  height: auto;
  border-radius: 0;
}

#nwpl-app .nwpl-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  max-width: 80px;
  margin-bottom: 20px;
}

#nwpl-app .nwpl-step-line.done {
  background: #0f172a;
}

/* ── Card ───────────────────────────────────────────────── */

#nwpl-app .nwpl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

#nwpl-app .nwpl-card-header {
  background: #0f172a;
  padding: 20px 24px;
  color: #fff;
}

#nwpl-app .nwpl-card-header h2 {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
}

#nwpl-app .nwpl-card-header p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

#nwpl-app .nwpl-card-body {
  padding: 20px 24px;
}

/* ── Count badge ────────────────────────────────────────── */

#nwpl-app .nwpl-count {
  display: inline-block;
  background: #1e40af;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 2px 9px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Event type grid ────────────────────────────────────── */

#nwpl-app .nwpl-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#nwpl-app .nwpl-type-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 18px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: border-color .15s, background .15s !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#nwpl-app .nwpl-type-btn:hover {
  border-color: #0f172a !important;
  background: #fff !important;
}

#nwpl-app .nwpl-type-emoji {
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

#nwpl-app .nwpl-type-label {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

#nwpl-app .nwpl-type-desc {
  font-size: 12px;
  color: #64748b;
  display: block;
  line-height: 1.4;
}

/* ── Search ─────────────────────────────────────────────── */

#nwpl-app .nwpl-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

#nwpl-app .nwpl-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

#nwpl-app .nwpl-search-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px 12px 40px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color .15s !important;
  -webkit-appearance: none !important;
}

#nwpl-app .nwpl-search-input:focus {
  border-color: #0f172a !important;
}

/* ── Search results ─────────────────────────────────────── */

#nwpl-app .nwpl-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#nwpl-app .nwpl-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: background .1s;
  flex-wrap: wrap;
}

#nwpl-app .nwpl-track-row:hover {
  background: #f8fafc;
}

#nwpl-app .nwpl-track-row.added {
  opacity: .55;
}

#nwpl-app .nwpl-track-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

#nwpl-app .nwpl-track-info {
  flex: 1;
  min-width: 0;
}

#nwpl-app .nwpl-track-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nwpl-app .nwpl-track-meta {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

#nwpl-app .nwpl-track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Preview button ─────────────────────────────────────── */

#nwpl-app .nwpl-preview-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background .15s !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

#nwpl-app .nwpl-preview-btn:hover {
  background: #e2e8f0 !important;
}

#nwpl-app .nwpl-preview-btn.playing {
  background: #0f172a !important;
  color: #fff !important;
}

/* ── Add button ─────────────────────────────────────────── */

#nwpl-app .nwpl-add-btn {
  padding: 6px 14px !important;
  background: #0f172a !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .15s !important;
}

#nwpl-app .nwpl-add-btn:hover {
  background: #1e293b !important;
}

#nwpl-app .nwpl-added-tag {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 9px;
  background: #f0fdf4;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

/* ── Moment picker ──────────────────────────────────────── */

#nwpl-app .nwpl-moment-picker {
  margin-top: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  flex-basis: 100%;
  width: 100%;
  box-sizing: border-box;
}

#nwpl-app .nwpl-picker-label {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

#nwpl-app .nwpl-moment-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

#nwpl-app .nwpl-moment-btn {
  padding: 7px 12px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: border-color .1s, background .1s !important;
  white-space: nowrap !important;
}

#nwpl-app .nwpl-moment-btn:hover {
  border-color: #0f172a !important;
  background: #f0f4ff !important;
}

#nwpl-app .nwpl-picker-cancel {
  font-size: 12px !important;
  color: #94a3b8 !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
  text-decoration: underline !important;
}

#nwpl-app .nwpl-picker-cancel:hover {
  color: #64748b !important;
}

/* ── Playlist sections ──────────────────────────────────── */

#nwpl-app .nwpl-pl-empty {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

#nwpl-app .nwpl-pl-section {
  margin-bottom: 16px;
}

#nwpl-app .nwpl-pl-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 0 6px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 8px;
}

#nwpl-app .nwpl-pl-count {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
}

#nwpl-app .nwpl-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #f1f5f9;
}

#nwpl-app .nwpl-pl-art {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

#nwpl-app .nwpl-pl-info {
  flex: 1;
  min-width: 0;
}

#nwpl-app .nwpl-pl-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nwpl-app .nwpl-pl-meta {
  font-size: 12px;
  color: #64748b;
  margin: 1px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nwpl-app .nwpl-pl-notes {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 5px 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  font-family: inherit !important;
  color: #475569 !important;
  background: #f8fafc !important;
  outline: none !important;
  -webkit-appearance: none !important;
  font-size: 16px !important;
}

#nwpl-app .nwpl-pl-notes:focus {
  border-color: #94a3b8 !important;
  background: #fff !important;
}

#nwpl-app .nwpl-remove-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #fee2e2 !important;
  color: #dc2626 !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: background .1s !important;
}

#nwpl-app .nwpl-remove-btn:hover {
  background: #fecaca !important;
}

/* ── Contact form ───────────────────────────────────────── */

#nwpl-app .nwpl-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#nwpl-app .nwpl-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

#nwpl-app .nwpl-form-group input,
#nwpl-app .nwpl-form-group textarea {
  padding: 10px 12px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  background: #fff !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  transition: border-color .15s !important;
}

#nwpl-app .nwpl-form-group input:focus,
#nwpl-app .nwpl-form-group textarea:focus {
  border-color: #0f172a !important;
}

#nwpl-app .nwpl-form-group textarea {
  min-height: 90px;
  resize: vertical;
}

#nwpl-app .nwpl-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

#nwpl-app .nwpl-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Nav buttons ────────────────────────────────────────── */

#nwpl-app .nwpl-btn-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 32px;
}

#nwpl-app .nwpl-btn {
  padding: 13px 28px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .15s, opacity .15s !important;
  line-height: 1 !important;
  border: 2px solid transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

#nwpl-app .nwpl-btn.primary {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
}

#nwpl-app .nwpl-btn.primary:hover:not(:disabled) {
  background: #1e293b !important;
}

#nwpl-app .nwpl-btn.secondary {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

#nwpl-app .nwpl-btn.secondary:hover {
  border-color: #0f172a !important;
}

#nwpl-app .nwpl-btn:disabled {
  opacity: .4 !important;
  cursor: not-allowed !important;
}

/* ── Error / loading / empty ────────────────────────────── */

#nwpl-app .nwpl-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  margin-bottom: 12px;
}

#nwpl-app .nwpl-empty {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

#nwpl-app .nwpl-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #64748b;
  font-size: 14px;
}

#nwpl-app .nwpl-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: nwpl-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes nwpl-spin { to { transform: rotate(360deg); } }

/* ── Review screen ──────────────────────────────────────── */

#nwpl-app .nwpl-contact-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

#nwpl-app .nwpl-etype-tag {
  display: inline-block;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

#nwpl-app .nwpl-review-section {
  margin-bottom: 20px;
}

#nwpl-app .nwpl-review-section-head {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 0 6px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 10px;
}

#nwpl-app .nwpl-review-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f8fafc;
}

#nwpl-app .nwpl-review-art {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

#nwpl-app .nwpl-review-info {
  flex: 1;
  font-size: 13px;
  color: #475569;
  min-width: 0;
}

#nwpl-app .nwpl-review-info strong {
  color: #0f172a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nwpl-app .nwpl-review-note {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
  font-style: italic;
}

/* ── Success ────────────────────────────────────────────── */

#nwpl-app .nwpl-success .nwpl-card-body {
  padding: 40px 32px;
  text-align: center;
}

#nwpl-app .nwpl-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
  animation: nwpl-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes nwpl-pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

#nwpl-app .nwpl-success h2 {
  font-size: 22px !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
}

#nwpl-app .nwpl-success p {
  color: #475569;
  font-size: 15px;
  margin: 0 0 10px !important;
}

/* ── Energy badges ──────────────────────────────────────── */

#nwpl-app .nwpl-energy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 3px;
  letter-spacing: .2px;
}

#nwpl-app .nwpl-energy-badge.ambient  { background: #ede9fe; color: #6d28d9; }
#nwpl-app .nwpl-energy-badge.low      { background: #dbeafe; color: #1d4ed8; }
#nwpl-app .nwpl-energy-badge.mid      { background: #d1fae5; color: #065f46; }
#nwpl-app .nwpl-energy-badge.building { background: #fef3c7; color: #92400e; }
#nwpl-app .nwpl-energy-badge.high     { background: #fee2e2; color: #991b1b; }
#nwpl-app .nwpl-energy-badge.peak     { background: #fce7f3; color: #9d174d; }
#nwpl-app .nwpl-energy-badge.detecting { background: #f1f5f9; color: #94a3b8; }

#nwpl-app .nwpl-energy-bpm {
  opacity: .7;
  font-weight: 400;
}

/* ── Auto-arrange bar ───────────────────────────────────── */

#nwpl-app .nwpl-arrange-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

#nwpl-app .nwpl-arrange-bar p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #475569 !important;
}

#nwpl-app .nwpl-arrange-btn {
  padding: 7px 14px !important;
  background: #0f172a !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .15s !important;
  flex-shrink: 0 !important;
}

#nwpl-app .nwpl-arrange-btn:hover {
  background: #1e293b !important;
}

/* ── Energy arc legend ──────────────────────────────────── */

#nwpl-app .nwpl-arc-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#nwpl-app .nwpl-arc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  #nwpl-app .nwpl-step-dot span { display: none; }
  #nwpl-app .nwpl-step-dot.active span {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
  }

  #nwpl-app .nwpl-type-grid { gap: 8px; }
  #nwpl-app .nwpl-type-btn  { padding: 14px 12px !important; }
  #nwpl-app .nwpl-type-emoji { font-size: 22px; }
  #nwpl-app .nwpl-type-label { font-size: 14px; }
  #nwpl-app .nwpl-type-desc  { display: none; }

  #nwpl-app .nwpl-card-header { padding: 16px; }
  #nwpl-app .nwpl-card-body   { padding: 14px 16px; }

  #nwpl-app .nwpl-form-grid.two { grid-template-columns: minmax(0, 1fr); }

  #nwpl-app .nwpl-track-art  { width: 40px; height: 40px; }
  #nwpl-app .nwpl-track-meta { display: none; }

  #nwpl-app .nwpl-btn-row {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  #nwpl-app .nwpl-btn { width: 100% !important; }

  #nwpl-app .nwpl-moment-btns { gap: 6px; }
  #nwpl-app .nwpl-moment-btn  { font-size: 12px !important; padding: 6px 9px !important; }

  #nwpl-app .nwpl-success .nwpl-card-body { padding: 28px 16px; }
}


/* ============================================================
   v2.0 ADDITIONS — Welcome, Load, Save, Toast
   ============================================================ */

/* ── Welcome screen ─────────────────────────────────────────── */
#nwpl-app .nwpl-welcome-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 16px !important;
  margin-top: 8px !important;
}
#nwpl-app .nwpl-welcome-btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 28px 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
  font-family: inherit !important;
}
#nwpl-app .nwpl-welcome-btn:hover,
#nwpl-app .nwpl-welcome-btn:focus-visible {
  border-color: #7c3aed !important;
  background: #faf5ff !important;
  box-shadow: 0 4px 16px rgba(124,58,237,0.12) !important;
  outline: none !important;
}
#nwpl-app .nwpl-welcome-icon {
  font-size: 36px !important;
  line-height: 1 !important;
}
#nwpl-app .nwpl-welcome-label {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.2 !important;
}
#nwpl-app .nwpl-welcome-desc {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

/* ── Load screen ─────────────────────────────────────────────── */
#nwpl-app .nwpl-load-tip {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 16px !important;
  display: block !important;
}

/* ── Save bar ────────────────────────────────────────────────── */
#nwpl-app .nwpl-save-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin: 0 0 12px !important;
}
#nwpl-app .nwpl-save-status {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-style: italic !important;
}
#nwpl-app .nwpl-save-status.saved {
  color: #059669 !important;
  font-style: normal !important;
  font-weight: 600 !important;
}
#nwpl-app .nwpl-save-btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  background: #7c3aed !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: background 0.18s !important;
  white-space: nowrap !important;
}
#nwpl-app .nwpl-save-btn:hover  { background: #6d28d9 !important; }
#nwpl-app .nwpl-save-btn:disabled { opacity: 0.55 !important; cursor: not-allowed !important; }

/* ── Save name prompt (inline) ───────────────────────────────── */
#nwpl-app .nwpl-save-prompt {
  background: #faf5ff !important;
  border: 1.5px solid #c4b5fd !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
}
#nwpl-app .nwpl-save-prompt p {
  font-size: 14px !important;
  color: #4c1d95 !important;
  margin: 0 0 12px !important;
}
#nwpl-app .nwpl-prompt-btns {
  display: flex !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  margin-top: 12px !important;
}

/* ── Toast notification ──────────────────────────────────────── */
#nwpl-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(16px) !important;
  background: #1e293b !important;
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 100px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
  opacity: 0 !important;
  transition: opacity 0.28s, transform 0.28s !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
#nwpl-toast.nwpl-toast-show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}
#nwpl-toast.nwpl-toast-err {
  background: #dc2626 !important;
}

/* ── Mobile — welcome grid stacks ────────────────────────────── */
@media (max-width: 540px) {
  #nwpl-app .nwpl-welcome-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  #nwpl-app .nwpl-welcome-btn { padding: 22px 14px !important; }
  #nwpl-app .nwpl-save-bar { flex-wrap: wrap !important; }
  #nwpl-app .nwpl-save-btn { width: 100% !important; justify-content: center !important; }
  #nwpl-toast { max-width: 90vw !important; white-space: normal !important; text-align: center !important; }
}
