/* =============================================================
   NEXIS UX Enhancements — Companion CSS
   Covers: skip link, live regions, command palette, mobile bottom
   nav, form validation, char counters, offline banner, session
   modals, progress bar, context menus, batch select, help panel,
   accessibility, reduced motion, drag-reorder, hover previews,
   swipe, steppers, step progress, toast undo.
   ============================================================= */

/* ── Screen-reader only utility ────────────────────────────── */
.wf-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Skip to main content link (#45) ───────────────────────── */
.wf-skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 100000;
  background: #0066ff;
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.wf-skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ── Offline banner (#17) ───────────────────────────────────── */
.wf-offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #f59e0b;
  color: #1c1917;
  text-align: center;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Loading progress bar (#66) ────────────────────────────── */
.wf-nprogress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066ff, #6b94ff);
  z-index: 99999;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(0,102,255,0.5);
}

/* ── Command palette (#19) ──────────────────────────────────── */
.wf-command-palette-wrap {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(10,15,26,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.wf-cmd-inner {
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(10,15,26,0.24), 0 4px 16px rgba(10,15,26,0.12);
  width: min(600px, 92vw);
  max-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wf-cmd-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.wf-cmd-icon { font-size: 18px; }
.wf-cmd-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #0a0f1a;
  background: transparent;
}
.wf-cmd-input::placeholder { color: #9ca3af; }
.wf-cmd-esc-hint {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: #6b7280;
  font-family: monospace;
  flex-shrink: 0;
}
.wf-cmd-results {
  overflow-y: auto;
  padding: 8px 0;
  max-height: 380px;
}
.wf-cmd-group-label {
  padding: 6px 18px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
}
.wf-cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #374151;
  transition: background 0.1s;
}
.wf-cmd-item:hover, .wf-cmd-item.wf-cmd-active {
  background: #eff6ff;
  color: #1e40af;
}
.wf-cmd-item-icon { font-size: 18px; width: 24px; text-align: center; }
.wf-cmd-item-label { flex: 1; }
.wf-cmd-empty {
  padding: 32px;
  text-align: center;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

/* ── Mobile bottom nav (#4) ─────────────────────────────────── */
.wf-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #0a0f1a;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .wf-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
  }
}
.wf-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  flex: 1;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.wf-bottom-nav-item:hover,
.wf-bottom-nav-item.active {
  color: #6b94ff;
}
.wf-bottom-nav-item.active {
  color: #0066ff;
}
.wf-bottom-nav-item svg {
  transition: transform 0.15s;
}
.wf-bottom-nav-item:active svg {
  transform: scale(0.9);
}

/* ── Keyboard shortcut hint (#6) ───────────────────────────── */
.wf-kbd-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.wf-kbd-hint kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  color: rgba(255,255,255,0.6);
}

/* ── Form validation (#7) ───────────────────────────────────── */
.wf-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.15) !important;
}
.wf-field-error-msg {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
  font-family: 'DM Sans', sans-serif;
}

/* ── Character counter (#11) ────────────────────────────────── */
.wf-char-counter {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin-top: 3px;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}
.wf-char-counter.wf-char-counter-warn { color: #f59e0b; }
.wf-char-counter.wf-char-counter-danger { color: #dc2626; font-weight: 600; }

/* ── Number stepper (#32) ───────────────────────────────────── */
.wf-stepper-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.wf-stepper-btn {
  background: #f9fafb;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 18px;
  color: #374151;
  line-height: 1;
  transition: background 0.15s;
  min-width: 44px;
  min-height: 44px;
}
.wf-stepper-btn:hover { background: #e5e7eb; }
.wf-stepper-btn:active { background: #d1d5db; transform: scale(0.95); }
.wf-stepper-wrap input[type="number"] {
  border: none;
  text-align: center;
  width: 60px;
  font-size: 15px;
  font-weight: 600;
  color: #0a0f1a;
  padding: 8px 4px;
  -moz-appearance: textfield;
  outline: none;
}
.wf-stepper-wrap input::-webkit-outer-spin-button,
.wf-stepper-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Loading button state (#41) ─────────────────────────────── */
.wf-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: wf-spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes wf-spin { to { transform: rotate(360deg); } }

/* ── Draft banner (#8) ──────────────────────────────────────── */
.wf-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #92400e;
}
.wf-draft-discard {
  background: none;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  color: #92400e;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

/* ── Modal overlay (#26) ────────────────────────────────────── */
.wf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(10,15,26,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wf-fade-in 0.15s ease;
}
@keyframes wf-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wf-modal-box {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(10,15,26,0.24);
  animation: wf-slide-up 0.2s ease;
}
@keyframes wf-slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.wf-modal-box h3 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0a0f1a;
}
.wf-modal-box p {
  color: #4b5563;
  font-size: 14px;
  margin: 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}
.wf-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.wf-confirm-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.wf-confirm-input:focus { border-color: #0066ff; box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }

/* ── Confirm box variant */
.wf-confirm-box { border-top: 4px solid #f59e0b; }

/* ── Button styles (shared) ─────────────────────────────────── */
.wf-btn-primary {
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.wf-btn-primary:hover { background: #0052cc; }
.wf-btn-primary:active { transform: scale(0.97); }
.wf-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.wf-btn-secondary:hover { background: #e5e7eb; }
.wf-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.wf-btn-danger:hover { background: #fee2e2; }
.wf-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Context menu (#75) ─────────────────────────────────────── */
.wf-context-menu {
  position: absolute;
  z-index: 99985;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(10,15,26,0.18), 0 2px 8px rgba(10,15,26,0.08);
  padding: 6px 0;
  min-width: 180px;
  font-family: 'DM Sans', sans-serif;
  animation: wf-fade-in 0.12s ease;
}
.wf-context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.wf-context-menu-item:hover, .wf-context-menu-item:focus {
  background: #f3f4f6;
  outline: none;
}
.wf-context-menu-item.wf-context-menu-danger { color: #dc2626; }
.wf-context-menu-item.wf-context-menu-danger:hover { background: #fef2f2; }
.wf-context-menu-sep {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 8px;
}

/* ── Batch select (#73) ─────────────────────────────────────── */
.wf-batch-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0066ff;
}
.wf-batch-selected {
  outline: 2px solid #0066ff;
  outline-offset: 2px;
}
.wf-batch-toolbar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  background: #0a0f1a;
  color: white;
  border-radius: 48px;
  padding: 12px 20px;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  white-space: nowrap;
  animation: wf-slide-up 0.2s ease;
}
.wf-batch-count { font-weight: 600; color: rgba(255,255,255,0.9); }
.wf-batch-clear { background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; padding: 4px 10px; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 12px; font-family: 'DM Sans', sans-serif; }
.wf-batch-action { font-size: 12px !important; padding: 6px 14px !important; }

/* ── Help panel (#71) ───────────────────────────────────────── */
.wf-help-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 8000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0066ff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(0,102,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wf-help-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,102,255,0.45); }
.wf-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9500;
  width: min(380px, 92vw);
  background: white;
  box-shadow: -8px 0 40px rgba(10,15,26,0.15);
  display: flex;
  flex-direction: column;
  animation: wf-slide-from-right 0.25s ease;
  overflow: hidden;
}
.wf-help-panel[hidden] { display: none !important; }
@keyframes wf-slide-from-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
.wf-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.wf-help-header h3 { margin: 0; font-size: 18px; color: #0a0f1a; font-family: 'Space Grotesk', 'DM Sans', sans-serif; }
.wf-help-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  min-width: 36px;
  min-height: 36px;
}
.wf-help-body { flex: 1; overflow-y: auto; padding: 20px 24px; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.7; color: #374151; }

/* ── Hover preview (#65) ────────────────────────────────────── */
.wf-hover-preview {
  position: absolute;
  z-index: 8500;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(10,15,26,0.18);
  padding: 14px;
  max-width: 280px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  pointer-events: none;
  animation: wf-fade-in 0.15s ease;
}

/* ── Pull-to-refresh indicator (#60) ───────────────────────── */
.wf-ptr-indicator {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  background: #0a0f1a;
  color: white;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Drag ghost (#64) ───────────────────────────────────────── */
.wf-drag-ghost { opacity: 0.4; }
.wf-drag-over { border-top: 2px solid #0066ff !important; }

/* ── Step progress (#9) ─────────────────────────────────────── */
.wf-step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding: 4px 0;
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wf-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.wf-step-done .wf-step-dot {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}
.wf-step-current .wf-step-dot {
  background: #0066ff;
  border-color: #0066ff;
  color: white;
  box-shadow: 0 0 0 4px rgba(0,102,255,0.2);
}
.wf-step-label {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-step-current .wf-step-label { color: #0066ff; font-weight: 600; }
.wf-step-done .wf-step-label { color: #16a34a; }
.wf-step-connector {
  height: 2px;
  flex: 1;
  min-width: 24px;
  background: #e5e7eb;
  margin-bottom: 22px;
  transition: background 0.2s;
}
.wf-step-connector-done { background: #16a34a; }

/* ── Table accessibility wrapper (#59) ──────────────────────── */
.wf-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  outline: none;
}
.wf-table-wrap:focus { box-shadow: 0 0 0 2px #0066ff; }

/* ── Error recovery (#43) ───────────────────────────────────── */
.wf-error-recovery {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #991b1b;
  margin: 8px 0;
}
.wf-error-icon { flex-shrink: 0; }
.wf-error-msg { flex: 1; }
.wf-retry-btn { margin-left: auto; flex-shrink: 0; }

/* ── Empty search (#44) ─────────────────────────────────────── */
.wf-empty-search {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.wf-empty-search strong { color: #0a0f1a; }
.wf-empty-search button { margin-top: 12px; }

/* ── Inline edit input (#63) ────────────────────────────────── */
.wf-inline-edit-input {
  border: 1.5px solid #0066ff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  background: white;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
  outline: none;
}

/* ── Dropzone (#35) ─────────────────────────────────────────── */
[data-dropzone] {
  transition: border-color 0.2s, background 0.2s;
}
.wf-dropzone-active {
  border-color: #0066ff !important;
  background: #eff6ff !important;
}

/* ── Sidebar collapse (#22) ─────────────────────────────────── */
.wf-sidebar { transition: width 0.25s ease; position: relative; }
.wf-sidebar-collapsed { width: 60px !important; overflow: hidden; }
.wf-sidebar-collapsed .wf-sidebar-label { display: none; }
.wf-sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.wf-sidebar-toggle:hover { background: #f3f4f6; }

/* ── Status indicators (#52) ────────────────────────────────── */
.wf-status-icon { font-style: normal; }

/* ── Reduced motion (#55) ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wf-btn-spinner { animation: none; border: 2px solid white; border-radius: 0; }
}
.wf-reduced-motion *,
.wf-reduced-motion *::before,
.wf-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ── High contrast mode (#56) ───────────────────────────────── */
@media (forced-colors: active) {
  .wf-bottom-nav,
  .wf-offline-banner,
  .wf-batch-toolbar {
    border: 1px solid ButtonBorder;
    background: ButtonFace;
    color: ButtonText;
  }
  .wf-nprogress { background: Highlight; }
  .wf-skip-link { background: Highlight; color: HighlightText; }
}

/* ── Focus visible ring (global) ────────────────────────────── */
:focus-visible {
  outline: 2px solid #0066ff !important;
  outline-offset: 2px !important;
}

/* ── Touch target minimum (#54) ────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  button, a, [role="button"],
  input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
  }
}

/* ── Zoom support (#57) ─────────────────────────────────────── */
@media (min-resolution: 1.5dppx) {
  .wf-bottom-nav-item { font-size: 9px; }
}

/* ── 200% zoom – ensure no fixed narrow widths clip content ─── */
@media (max-width: 480px) {
  .wf-cmd-inner { width: 100%; border-radius: 0 0 14px 14px; }
  .wf-command-palette-wrap { padding-top: 0; align-items: flex-start; }
}

/* ── URL state sync — filter row ────────────────────────────── */
[data-url-state] {
  /* Placeholder for filter/sort components that sync to URL */
}
