@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
}

:root {
  --nq-bg: #1f2937;
  --nq-card: #ffffff;
  --nq-text: #334155;
  --nq-muted: #64748b;
  --nq-blue: #2563eb;
  --nq-blue-dark: #1e40af;
  --nq-blue-light: #60a5fa;
  --nq-border: #e2e8f0;
  --nq-radius: 1.5rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nq-body {
  background: var(--nq-bg);
  color: var(--nq-text);
  min-height: 100vh;
}

/* Header */
.nq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.nq-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.nq-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.nq-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nq-lab-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.nq-link {
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.nq-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Main */
.nq-main {
  padding: 1.5rem 1rem 7rem;
  max-width: 48rem;
  margin: 0 auto;
}

.nq-step { width: 100%; }

.nq-card {
  background: var(--nq-card);
  border-radius: var(--nq-radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  padding: 1.75rem 1.5rem;
}

.nq-card.nq-card-expanded {
  border-radius: var(--nq-radius) var(--nq-radius) 0 0;
}

@media (min-width: 640px) {
  .nq-card { padding: 2.5rem 3rem; }
}

/* Step badge with ripple */
.nq-step-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.nq-step-badge > span {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1e40af, #60a5fa);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.nq-step-badge::before,
.nq-step-badge::after {
  content: '';
  position: absolute;
  width: 4rem;
  height: 4rem;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  animation: nq-ripple 2s ease-out infinite;
}

.nq-step-badge {
  position: relative;
  height: 4rem;
}

.nq-step-badge::after { animation-delay: 1s; }

@keyframes nq-ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.nq-grad-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nq-subtitle {
  text-align: center;
  color: var(--nq-muted);
  margin: -1rem 0 1.75rem;
}

.nq-muted { color: var(--nq-muted); font-size: 0.875rem; }

/* Dropzone */
.nq-dropzone {
  border: 2px dashed #93c5fd;
  background: rgba(239, 246, 255, 0.7);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nq-dropzone:hover,
.nq-dropzone.drag-over {
  border-color: #3b82f6;
  background: #eff6ff;
}

.nq-dropzone-sm { padding: 1.25rem; margin-bottom: 1.5rem; background: #f8fafc; border-color: #cbd5e1; }
.nq-dropzone-sm:hover { border-color: #60a5fa; background: #eff6ff; }

.nq-cloud { margin: 0 auto 0.75rem; display: block; }
.nq-drop-title { font-weight: 600; color: #334155; margin: 0 0 0.25rem; }
.nq-add-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-weight: 600;
}

/* File list step 2 */
.nq-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.nq-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--nq-border);
  border-radius: 0.75rem;
}

.nq-file-row-main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1; }
.nq-file-row-main .nq-ftype { flex-shrink: 0; }
.nq-file-name { font-size: 0.875rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nq-file-size { font-size: 0.75rem; color: #64748b; }
.nq-file-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nq-file-remove:hover { background: #fef2f2; }
.nq-step2-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.5rem 0 0.75rem;
}

/* File type badges */
.nq-ftype {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nq-ftype-video { background: #eff6ff; color: #2563eb; }
.nq-ftype-audio { background: #faf5ff; color: #7c3aed; }
.nq-ftype-image { background: #ecfdf5; color: #059669; }
.nq-ftype-text { background: #f1f5f9; color: #475569; }
.nq-ftype-pdf { background: #fef2f2; color: #dc2626; }
.nq-ftype-archive { background: #fff7ed; color: #ea580c; }
.nq-ftype-other { background: #f8fafc; color: #64748b; }

/* Buttons */
.nq-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nq-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(37, 99, 235, 0.4); }
.nq-btn-block { width: 100%; padding: 0.9rem 1.25rem; }

.nq-btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  background: #0f766e;
}
.nq-btn-teal:hover { background: #0d9488; }

.nq-btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem auto 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #fca5a5;
  background: #fff;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
}
.nq-btn-outline-danger:hover { background: #fef2f2; }
.nq-error-card { text-align: center; }
.nq-error-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nq-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  background: #fff !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: pointer;
}
.nq-toggle-btn:hover {
  background: #f8fafc !important;
  color: #334155 !important;
}
.nq-share-tip {
  margin: 0 0 0.35rem;
  text-align: left;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

/* Room / transfer */
.nq-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  min-height: 1.25rem;
}
.nq-status-wait { color: #334155; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.nq-status-ok { color: #059669; font-weight: 700; }

.nq-files-head-left {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}
.nq-files-users-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font: inherit;
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.35rem;
}
.nq-files-users-btn:hover {
  color: #2563eb;
  text-decoration: underline;
}
.nq-files-users-sep {
  color: #cbd5e1;
  font-weight: 600;
}

.nq-xfer-edit-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 0.2rem;
  padding: 0.1rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0.3rem;
  vertical-align: middle;
  line-height: 1;
}
.nq-xfer-edit-name:hover {
  color: #2563eb;
  background: #eff6ff;
}

.nq-users-popover {
  max-width: 18rem;
  margin: -0.65rem auto 1rem;
  padding: 0.45rem 0.55rem 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  text-align: left;
}
#users-modal .nq-users-alias {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}
#users-modal .nq-users-popover-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nq-users-alias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.15rem 0.45rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.nq-users-alias-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nq-users-alias-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nq-users-alias-name {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-users-alias-name:hover { text-decoration: underline; }
.nq-users-alias-edit {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nq-users-alias-edit:hover { background: #f1f5f9; color: #1e293b; }
.nq-users-popover-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nq-users-popover-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.15rem;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
}
.nq-users-popover-item:first-child { border-top: none; }
.nq-users-popover-host { color: #94a3b8; font-size: 0.7rem; }

/* Optional random alias — removed from main step; lives in users popover */
.nq-identity { display: none !important; }
.nq-identity-main { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.nq-identity-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nq-identity-name {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-identity-name:hover { text-decoration: underline; }
.nq-identity-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}
.nq-identity-edit {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.nq-identity-edit:hover { background: #f1f5f9; color: #1e293b; }

.nq-share-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .nq-share-row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.nq-share-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nq-share-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
@media (min-width: 640px) {
  .nq-share-link { flex-direction: row; align-items: stretch; }
}

.nq-url-box {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--nq-border);
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: #2563eb;
  word-break: break-all;
  text-align: left;
}

.nq-qr-wrap { text-align: center; flex-shrink: 0; }
.nq-share-row.nq-share-receiver {
  justify-content: center;
}
.nq-share-row.nq-share-receiver .nq-qr-wrap {
  margin-inline: auto;
}
.nq-qr-wrap canvas {
  background: #fff;
  border: 1px solid var(--nq-border);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nq-qr-caption { margin: 0.25rem 0 0; font-size: 0.7rem; }

.nq-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Apple-style once-mode switch (host only) */
.nq-once-mode {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--nq-border, #e2e8f0);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.nq-once-label { cursor: pointer; user-select: none; margin: 0; }
.nq-once-help {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nq-once-help:hover { color: #1e40af; border-color: #93c5fd; }
.nq-once-help-pop {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(16.5rem, 78vw);
  padding: 0.55rem 0.65rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  text-align: left;
}
.nq-once-help-pop[hidden] { display: none !important; }
.nq-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 0;
}
.nq-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.nq-switch-track {
  width: 2.55rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
  display: block;
  position: relative;
}
.nq-switch-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.18s ease;
}
.nq-switch input:checked + .nq-switch-track { background: #34c759; }
.nq-switch input:checked + .nq-switch-track .nq-switch-thumb { transform: translateX(1.1rem); }
.nq-switch input:focus-visible + .nq-switch-track {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.nq-panel {
  border: 1px solid var(--nq-border);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 0.85rem;
  text-align: left;
}
.nq-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--nq-border);
  font-weight: 700;
  font-size: 0.875rem;
  color: #334155;
}
.nq-panel-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  padding: 0.3rem 0.7rem;
  transition: background 0.15s, border-color 0.15s;
}
.nq-panel-action:hover { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.nq-panel-action-danger { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.nq-panel-action-danger:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.nq-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.nq-panel-list { list-style: none; margin: 0; padding: 0; }
.nq-panel-item {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--nq-border);
  font-size: 0.875rem;
  color: #334155;
}
.nq-panel-item:first-child { border-top: none; }

/* Transfer file rows */
.nq-files-list .list-group-item {
  border: none;
  border-top: 1px solid var(--nq-border);
  padding: 0.85rem 1rem;
  background: #fff;
}
.nq-files-list .list-group-item:first-child { border-top: none; }
.nq-xfer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.nq-xfer-status {
  width: 1.4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.nq-xfer-body { flex: 1; min-width: 0; }
.nq-xfer-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
  margin-bottom: 0.2rem;
}
.nq-xfer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 0;
}
.nq-xfer-meta #file-progress-spacer,
.nq-xfer-meta [id$="-info"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.nq-xfer-error {
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
  display: none;
}
.nq-xfer-details {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.nq-xfer-details:hover { text-decoration: underline; }
.nq-xfer-details-panel {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.nq-xfer-details-empty {
  font-size: 0.8rem;
  color: #64748b;
  padding: 0.35rem 0.15rem;
}
.nq-xfer-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.nq-xfer-details-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
}
.nq-xfer-details-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-xfer-details-prog {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.nq-xfer-details-bar {
  flex: 1;
  height: 6px;
  min-width: 40px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.nq-xfer-details-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.25s ease;
}
.nq-xfer-details-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  min-width: 2.2rem;
  text-align: right;
}
.nq-xfer-details-speed {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}
.nq-xfer-details-status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.nq-xfer-details-online {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  justify-self: center;
}
@media (max-width: 640px) {
  .nq-xfer-details-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name online"
      "prog prog"
      "status status";
  }
  .nq-xfer-details-name { grid-area: name; }
  .nq-xfer-details-prog { grid-area: prog; }
  .nq-xfer-details-status { grid-area: status; justify-self: start; }
  .nq-xfer-details-online { grid-area: online; }
}
.nq-xfer-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.nq-xfer-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  overflow: visible;
  flex-shrink: 0;
}
.nq-xfer-btn svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
  /* Circle icons (download/abort) sit flush on the 16 viewBox — pad so strokes aren't clipped */
  padding: 1px;
  box-sizing: content-box;
}
.nq-xfer-btn:hover { background: #f1f5f9; }
.nq-xfer-btn-danger { color: #dc2626; }
.nq-xfer-btn-danger:hover { background: #fef2f2; }
.nq-xfer-btn-download {
  color: #2563eb;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 50%;
}
.nq-xfer-btn-download:hover { background: #dbeafe; border-color: #93c5fd; }

/* Connect / error */
.nq-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}
.nq-spinner-sm { width: 1rem; height: 1rem; margin: 0; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nq-connect-text { text-align: center; font-weight: 600; margin: 0; color: #334155; }

.nq-error-icon {
  width: 5rem; height: 5rem; margin: 0 auto 1rem;
  border-radius: 999px; background: #fef2f2; border: 2px solid #fecaca;
  display: flex; align-items: center; justify-content: center; color: #ef4444;
}
.nq-error-title { text-align: center; color: #dc2626; font-size: 1.75rem; font-weight: 800; margin: 0 0 0.5rem; }
.nq-error-msg { text-align: center; color: #b91c1c; margin: 0 0 1.5rem; }

.nq-modal { border-radius: 1.25rem !important; border: 1px solid var(--nq-border) !important; }

/* FileSync list items keep working */
.card, .box { background: transparent; border: none; box-shadow: none; }
.list-group-item { background: transparent; }

input.form-control {
  border-radius: 0.75rem !important;
  border: 1.5px solid var(--nq-border) !important;
  padding: 0.7rem 0.9rem !important;
}
input.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}

.progress { border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, #1e40af, #3b82f6) !important; }

/* Inline download-all progress (replaces modal) */
.nq-dl-inline {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.nq-dl-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #334155;
}
.nq-dl-inline-row strong { color: #1d4ed8; font-variant-numeric: tabular-nums; }
.nq-dl-cancel {
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.nq-dl-cancel:disabled { opacity: 0.6; cursor: default; }
.nq-dl-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.nq-dl-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  transition: width 0.25s ease;
}
.nq-dl-fill-ok { background: #16a34a; }
.nq-dl-fill-err { background: #dc2626; }
.nq-dl-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #dc2626;
}
.nq-dl-done .nq-dl-inline-row { color: #166534; }
.nq-dl-done .nq-dl-inline-row strong { color: #166534; }


#transfer-div.drag-over .nq-card {
  outline: 3px dashed #3b82f6;
  outline-offset: 4px;
}

/* ===== Production NotesQR chrome ===== */
.nq-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  overflow: visible;
}
@media (min-width: 768px) {
  .nq-topbar { padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
}
.nq-topbar-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}
.nq-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.nq-brand-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.nq-brand-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 768px) { .nq-brand-title { font-size: 1.5rem; } }
.nq-brand-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  display: none;
}
@media (min-width: 640px) { .nq-brand-tagline { display: block; } }
.nq-brand-stats {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.nq-topbar-right { display: flex; align-items: center; gap: 0.35rem; overflow: visible; }
.nq-lang { position: relative; overflow: visible; z-index: 210; }
.nq-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nq-lang-btn:hover { background: #fff; }
.nq-lang-btn svg:first-child {
  width: 1rem;
  height: 1rem;
  color: #475569;
  flex-shrink: 0;
}
.nq-lang-label { display: none; }
@media (min-width: 640px) {
  .nq-lang-label { display: inline; }
}
.nq-lang-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.nq-lang-btn[aria-expanded="true"] .nq-lang-chevron { transform: rotate(180deg); }
.nq-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 12rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 300;
  overflow: hidden;
}
.nq-lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nq-lang-option:hover { background: #f8fafc; }
.nq-lang-option.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}
.nq-lang-option-name { flex: 1; }
.nq-lang-option-check {
  width: 1rem;
  height: 1rem;
  color: #2563eb;
  flex-shrink: 0;
  display: none;
}
.nq-lang-option.is-active .nq-lang-option-check { display: block; }
.nq-menu-wrap { position: relative; }
.nq-menu-btn {
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
}
.nq-menu-btn:hover { background: #f1f5f9; color: #334155; }
.nq-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 12rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15,23,42,0.12);
  padding: 0.5rem 0;
  z-index: 100;
}
.nq-menu-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
}
.nq-menu-dropdown a:hover { background: #f8fafc; }

.nq-downloads-desktop { display: none; }
@media (min-width: 768px) { .nq-downloads-desktop { display: block; } }
.nq-downloads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
}
.nq-downloads-grid a {
  width: 80%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.nq-downloads-grid a:hover { box-shadow: 0 6px 12px rgba(0,0,0,0.12); }
.nq-downloads-grid img { width: 100%; height: auto; display: block; }

.nq-downloads-mobile { display: block; }
@media (min-width: 768px) { .nq-downloads-mobile { display: none !important; } }
.nq-downloads-mobile-panel { padding: 0.75rem 0 0.25rem; }
.nq-downloads-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.nq-downloads-mobile-grid a {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 0.5rem;
  overflow: hidden;
}
.nq-downloads-mobile-grid img { width: 100%; height: auto; display: block; }
.nq-mobile-dl-edge {
  display: flex;
  justify-content: center;
  margin: -1rem 0 0.5rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) { .nq-mobile-dl-edge { display: none; } }
.nq-mobile-edge-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  box-shadow: 0 4px 6px rgba(15,23,42,0.12);
  cursor: pointer;
}
.nq-mobile-edge-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nq-mobile-edge-btn svg { transition: transform 0.2s; }

/* Mutafile promo (from NotesQR globals.css) */
.nq-api-promo {
  width: 100%;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.nq-api-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
}
.nq-api-promo__badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.nq-api-promo__title {
  flex: 1 1 12rem;
  margin: 0;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
}
.nq-api-promo__cta {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
  white-space: nowrap;
}
.nq-api-promo__cta:hover { color: #1d4ed8; text-decoration: underline; }
@media (max-width: 560px) {
  .nq-api-promo__cta { margin-left: 0; }
}

.mutafile-promo {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 14px;
  border-radius: clamp(16px, 2vw, 22px);
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,0.06), 0 18px 40px -14px rgba(15,23,42,0.14);
  isolation: isolate;
}
.mutafile-promo::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -15%;
  right: -12%;
  width: min(52%, 260px);
  height: 130%;
  transform: skewX(-11deg);
  transform-origin: 100% 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, transparent 38%, #22d3ee 38%, #22d3ee 46%, #0f172a 46%, #0f172a 48.5%, #4f46e5 48.5%, #4f46e5 68%, #0f172a 68%, #0f172a 70.5%, #22d3ee 70.5%, #22d3ee 79%, transparent 79%, transparent 100%);
  opacity: 0.88;
}
.mutafile-promo__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px) clamp(16px, 2.8vw, 20px);
}
.mutafile-promo__logo-link {
  flex-shrink: 0;
  display: flex;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(79,70,229,0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.mutafile-promo__logo-link:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,70,229,0.35); }
.mutafile-promo__logo { width: clamp(56px, 12vw, 72px); height: auto; display: block; border-radius: 12px; }
.mutafile-promo__copy { flex: 1 1 min(200px, 100%); min-width: 0; }
.mutafile-promo__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.mutafile-promo__title { margin: 0 0 4px; font-size: 1.04rem; font-weight: 700; line-height: 1.28; color: #0f172a; }
.mutafile-promo__body { margin: 0; font-size: 0.84rem; line-height: 1.45; color: #64748b; }
.mutafile-promo__cta {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #4f46e5);
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.mutafile-promo__cta:hover { background: linear-gradient(145deg, #1d4ed8, #6366f1); }
@media (max-width: 560px) {
  .mutafile-promo__cta { margin-left: 0; width: 100%; }
}

/* Cookie consent banner (above FABs) */
.nq-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 1rem;
  pointer-events: none;
}
.nq-consent-card {
  max-width: 56rem;
  margin: 0 auto;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .nq-consent { padding: 1.5rem; }
  .nq-consent-card {
    flex-direction: row;
    align-items: center;
    padding: 1.25rem 1.5rem;
  }
}
.nq-consent-copy { flex: 1; min-width: 0; }
.nq-consent-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.nq-consent-copy p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}
.nq-consent-meta {
  font-size: 0.75rem !important;
  color: #64748b !important;
}
.nq-consent-meta a {
  color: #2563eb;
  text-decoration: underline;
  margin-left: 0.25rem;
}
.nq-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .nq-consent-actions {
    flex-direction: row;
    width: auto;
    flex-shrink: 0;
  }
}
.nq-consent-reject,
.nq-consent-accept {
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.nq-consent-reject {
  background: #f1f5f9;
  color: #334155;
}
.nq-consent-reject:hover { background: #e2e8f0; }
.nq-consent-accept {
  background: #2563eb;
  color: #fff;
}
.nq-consent-accept:hover { background: #1d4ed8; }

/* FAB */
.nq-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .nq-fab { flex-direction: column; gap: 1rem; }
}
.nq-fab-heart, .nq-fab-li, .nq-fab-x {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15,23,42,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.nq-fab-heart:hover, .nq-fab-li:hover, .nq-fab-x:hover { transform: scale(1.08); }
.nq-fab-heart { background: #fff; color: #ef4444; }
.nq-fab-heart svg { animation: nq-heartbeat 1.5s ease-in-out infinite; }
.nq-fab-li { background: #0077b5; color: #fff; }
.nq-fab-x { background: #000; color: #fff; }
@keyframes nq-heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* Donation modal */
.nq-donation {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nq-donation-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.nq-donation-card {
  position: relative;
  z-index: 1;
  margin: 1rem;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(15,23,42,0.25);
  padding: 1rem;
}
.nq-donation-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: #64748b;
  cursor: pointer;
}
.nq-donation-close:hover { background: #f1f5f9; }
.nq-donation-head { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
.nq-donation-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #1e293b; }
.nq-donation-head p { margin: 0; font-size: 0.75rem; color: #64748b; }
.nq-donation-raised {
  text-align: center;
  margin: 0.75rem 0 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #047857;
}
.nq-donation-raised-label {
  display: block;
  max-width: 18rem;
  margin: 0 auto;
  font-size: clamp(0.58rem, 2.7vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(5, 150, 105, 0.8);
  text-wrap: balance;
}
@media (min-width: 640px) {
  .nq-donation-raised-label {
    max-width: none;
    letter-spacing: 0.12em;
  }
}
.nq-donation-raised-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  color: #047857;
}
.nq-donation-raised-whole {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.nq-donation-raised-frac {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.nq-donation-raised-currency {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nq-donation-btc {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.nq-donation-btc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}
.nq-donation-btc-row button {
  border: none;
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  cursor: pointer;
}
.nq-donation-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.35rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-donation-qr {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.5rem;
}
.nq-donation-or {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.nq-donation-or span { flex: 1; border-top: 1px solid #e2e8f0; }
.nq-donation-or em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #94a3b8;
}
.nq-donation-paypal {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nq-donation-paypal a {
  display: inline-block;
  width: 180px;
  max-width: 180px;
  line-height: 0;
  flex: 0 0 auto;
}
.nq-donation-paypal img {
  display: block;
  width: 180px !important;
  max-width: 180px !important;
  height: 54px !important;
  object-fit: contain;
  transition: transform 0.15s;
}
.nq-donation-paypal a:hover img { transform: scale(1.05); }
.nq-donation-thanks { text-align: center; font-size: 0.75rem; color: #64748b; margin: 0.75rem 0 0; }

/* Room password strength (advisory only) */
.nq-pwd-meter { margin-top: 0.35rem; }
.nq-pwd-meter-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.nq-pwd-meter-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.15s ease, background 0.15s ease;
  background: #94a3b8;
}
.nq-pwd-meter[data-level="weak"] .nq-pwd-meter-bar { background: #ef4444; }
.nq-pwd-meter[data-level="medium"] .nq-pwd-meter-bar { background: #f59e0b; }
.nq-pwd-meter[data-level="strong"] .nq-pwd-meter-bar { background: #22c55e; }
.nq-pwd-meter-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.nq-pwd-meter[data-level="weak"] .nq-pwd-meter-label { color: #dc2626; }
.nq-pwd-meter[data-level="medium"] .nq-pwd-meter-label { color: #d97706; }
.nq-pwd-meter[data-level="strong"] .nq-pwd-meter-label { color: #16a34a; }
.nq-pwd-meter-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Hide old header remnants */
.nq-header { display: none !important; }
