:root {
  /* Surface & Background */
  --bg-base: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-subtle: #162032;
  --bg-input: #0b1120;
  
  /* Semantic Text Colors (Strict 4-Tier Palette - Issue 2) */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-brand: #eab308;
  
  /* Brand & Accents */
  --brand-primary: #eab308;
  --brand-hover: #facc15;
  --brand-light: rgba(234, 179, 8, 0.12);
  --brand-glow: rgba(234, 179, 8, 0.25);
  
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-blue: #38bdf8;
  --accent-rose: #f43f5e;
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #eab308;
  
  /* Typography Scale (Strict 8-Step Scale - Issue 1) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */
  --text-3xl: 2.5rem;    /* 40px */
  
  /* Border Radii (Strict 4-Step Scale - Issue 3) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Layout Dimensions (Issue 5-9: Wider sidebar so titles never truncate) */
  --sidebar-w: 296px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(234, 179, 8, 0.15);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-brand: #ca8a04;
  
  --border: #d5dbe5;
  --border-strong: #94a3b8;
  --border-focus: #ca8a04;
  
  --brand-primary: #ca8a04;
  --brand-hover: #a16207;
  --brand-light: rgba(202, 138, 4, 0.1);
  --brand-glow: rgba(202, 138, 4, 0.18);
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 0 0 1px #d5dbe5;
  --shadow-card-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px #ca8a04;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-brand img {
  height: 44px;
  width: auto;
  max-width: 100%;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 10px 12px 4px 12px;
}
.nav-links { list-style: none; margin-bottom: 14px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.nav-link:hover { background: var(--bg-subtle); color: var(--text-main); }
.nav-link.active {
  background: var(--brand-light);
  color: var(--brand-primary);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Main Viewport */
.main-viewport {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 62px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle-btn:hover { border-color: var(--brand-primary); }

.page-container {
  padding: 28px;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}

/* Tool Header Block */
.tool-header-block {
  margin-bottom: 24px;
}
.tool-header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.tool-header-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 850px;
  line-height: 1.6;
}

/* Two-Column Tool Layout */
.tool-page-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.tool-form-card, .tool-results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Dashboard Hero */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.hero-heading { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.02em; }
.hero-subheading { font-size: 1rem; color: var(--text-muted); max-width: 850px; line-height: 1.6; }

/* Dashboard Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.12);
}
.card-icon-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.tool-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.tool-category-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 2px 7px; border-radius: 4px;
  display: inline-block; margin-top: 4px;
}
.tool-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.tool-card-footer {
  font-size: 0.8rem; font-weight: 700; color: var(--brand-primary);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 12px;
}

/* Related Tools Link */
.related-tool-link:hover {
  border-color: var(--brand-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90; }
  .main-viewport { margin-left: 0; }
  .hamburger-btn { display: inline-flex; }
  .tool-page-layout { grid-template-columns: 1fr; }
}

/* ========================================================
   Universal Luxury Code Output & Emerald Copy Button (v5)
   ======================================================== */
.code-output-box {
  background: #020617 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  color: #f8fafc !important;
  position: relative !important;
  min-height: 52px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.copy-code-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 5px 12px !important;
  height: 28px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.76rem !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
  user-select: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  z-index: 30 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.btn-copy,
.cw-calc-copy-btn,
button.copy-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 8px 16px !important;
  height: 36px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.copy-code-btn:hover,
.btn-copy:hover,
.cw-calc-copy-btn:hover,
button.copy-btn:hover {
  filter: brightness(1.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
  transform: none !important;
}

.copy-code-btn:active,
.btn-copy:active,
.cw-calc-copy-btn:active,
button.copy-btn:active {
  transform: none !important;
  filter: brightness(0.95) !important;
}

/* Header-placed and inline copy buttons */
.header-copy-btn,
.tool-action-header .copy-code-btn {
  position: static !important;
  margin: 0 !important;
}

/* Pinned in-box buttons (when inside a code-output-box) */
.code-output-box > .copy-code-btn:not(.header-copy-btn) {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
}

/* Copied Emerald Green Active State - FIXED SIZE, NO ENLARGEMENT */
.copy-code-btn.copied,
.copy-code-btn.success,
.btn-copy.copied,
.btn-copy.success,
.cw-calc-copy-btn.copied,
button.copy-btn.copied,
button[id*="copy" i]:not(.nav-item):not(.tab-btn).copied,
button[id*="copy" i]:not(.nav-item):not(.tab-btn).success {
  background: #047857 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
  transform: none !important;
  scale: 1 !important;
}

.code-output-box > pre {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  padding-right: 95px !important;
  word-break: break-all !important;
}

/* Universal Luxury Share Button */
.share-tool-btn {
  background: rgba(234, 179, 8, 0.12) !important;
  color: var(--brand-primary, #eab308) !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  line-height: 1.2 !important;
  margin-right: 4px !important;
}
.share-tool-btn:hover {
  background: var(--brand-primary, #eab308) !important;
  color: #000000 !important;
  border-color: var(--brand-primary, #eab308) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35) !important;
}
.share-tool-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5) !important;
}

/* (flash-sweep removed 2026-09-25: the ambient 10s light sweep across buttons
   read as a glitch, not premium — buttons now use interaction-only feedback) */

/* Click ripple — the JS appends .ww-ripple spans on pointerdown; this makes them visible */
.ww-ripple-host { position: relative; overflow: hidden; }
.ww-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0); opacity: 1; pointer-events: none;
  animation: ww-ripple-anim 0.6s ease-out forwards;
}
@keyframes ww-ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-ripple { display: none; }
}

/* ========================================================
   Universal Multi-Platform Share Modal Styling
   ======================================================== */
.wdw-share-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  animation: wdwFadeIn 0.2s ease-out !important;
}

@keyframes wdwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wdw-share-modal {
  background: var(--bg-surface, #0f172a) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15)) !important;
  border-radius: 16px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 179, 8, 0.15) !important;
  position: relative !important;
  color: var(--text-main, #f8fafc) !important;
}

.wdw-share-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.wdw-share-header h3 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wdw-share-close {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted, #94a3b8) !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
}

.wdw-share-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.wdw-share-platforms {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.wdw-platform-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px 8px !important;
  background: var(--bg-subtle, #1e293b) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 10px !important;
  color: var(--text-main, #f8fafc) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.wdw-platform-btn:hover {
  transform: translateY(-2px) !important;
  border-color: var(--brand-primary, #eab308) !important;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25) !important;
}

.wdw-platform-icon {
  font-size: 1.4rem !important;
  line-height: 1 !important;
}

.wdw-share-copy-box {
  display: flex !important;
  gap: 8px !important;
  background: var(--bg-subtle, #1e293b) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  align-items: center !important;
}

.wdw-share-copy-box input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted, #94a3b8) !important;
  font-size: 0.8rem !important;
  font-family: monospace !important;
  outline: none !important;
}

.wdw-share-copy-btn {
  background: linear-gradient(135deg, #ca8a04, #eab308) !important;
  color: #000000 !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.wdw-share-copy-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
}




.code-output-box {
  background: #020617 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  color: #f8fafc !important;
  position: relative !important;
  min-height: 52px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}


/* ==========================================================================
   Standardized UI Component Library (Issues 1, 2, 3, 4, 11, 14, 17)
   ========================================================================== */

/* Buttons */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.25;
}

.btn-primary {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #0f172a !important;
  border: none;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Category Filter Chips (Issue 17) */
.category-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px auto 28px;
  max-width: 960px;
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-filter-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.cat-filter-btn.active {
  background: var(--brand-primary);
  color: #0f172a;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 10px var(--brand-glow);
}
.cat-filter-count {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
}

/* Card Badge in Sentence/Title Case (Issue 11) */
.tool-category-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--brand-primary);
}

/* Section Titles with Consistent Visual Alignment (Issue 13 & 15) */
.section-header {
  margin-bottom: 20px;
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Featured vs All Utilities Grids (Issue 14) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 1100px) {
  .featured-grid, .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .featured-grid, .tools-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   ULTRA-PREMIUM FORM & WORKSTATION INPUT ARCHITECTURE (Global & Scoped)
   ========================================================================== */
.form-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-label {
  display: block !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: var(--text-main, #f8fafc) !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 4px !important;
}

[data-theme="light"] .form-label {
  color: #1e293b !important;
}

.form-input,
.form-select,
textarea.form-input,
input[type="text"].form-input,
input[type="email"].form-input,
input[type="number"].form-input,
input[type="url"].form-input,
input[type="password"].form-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-input, #070a13) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Courier New', monospace) !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: var(--text-main, #f8fafc) !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] textarea.form-input,
[data-theme="light"] input[type="text"].form-input,
[data-theme="light"] input[type="email"].form-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus,
input[type="text"].form-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  background: #090e1c !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
  background: #ffffff !important;
}

.form-select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

textarea.form-input {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Custom Webkit scrollbar for sleek luxury developer feel */
textarea.form-input::-webkit-scrollbar,
pre::-webkit-scrollbar,
.code-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
textarea.form-input::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
textarea.form-input::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
textarea.form-input::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}


/* ==========================================================================
   Key-Value Result Rows & Diagnostic Cards
   ========================================================================== */
.results-table {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.result-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.result-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="light"] .result-row {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.result-row-label {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}

[data-theme="light"] .result-row-label {
  color: #64748b !important;
}

.result-row-val {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
  font-size: 0.9rem !important;
}

[data-theme="light"] .result-row-val {
  color: #0f172a !important;
}


/* ==========================================================================
   Active Tool Highlighting in Sidebar & Tool Header Gradient (Issue Fix)
   ========================================================================== */
.sidebar-nav .nav-item.active {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 100%) !important;
  color: #eab308 !important;
  border-left: 3.5px solid #eab308 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 14px rgba(234, 179, 8, 0.1) !important;
}

.sidebar-nav .nav-item.active .nav-item-title {
  color: #eab308 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .sidebar-nav .nav-item.active {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #b45309 !important;
  border-left: 3.5px solid #d97706 !important;
}

[data-theme="light"] .sidebar-nav .nav-item.active .nav-item-title {
  color: #b45309 !important;
}

/* Tool Title Gradient across ALL tools */
.tool-header-title,
.tool-hero h1,
.page-container > div > h1,
.tool-form-card h1 {
  background: linear-gradient(135deg, #eab308 0%, #facc15 35%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

[data-theme="light"] .tool-header-title,
[data-theme="light"] .tool-hero h1 {
  background: linear-gradient(135deg, #b45309 0%, #d97706 40%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Secondary Action Button Styling */
button[class*="btn-secondary"],
.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button[class*="btn-secondary"]:hover,
.btn-secondary:hover {
  background: #334155 !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] button[class*="btn-secondary"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] button[class*="btn-secondary"]:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* ==========================================================================
   $100K Silicon Valley Spotlight & Interaction Engine
   ========================================================================== */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(234, 179, 8, 0.14),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(202, 138, 4, 0.1),
    transparent 40%
  );
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .spotlight-card::before {
    display: none !important;
  }
}

/* ==========================================================================
   $100K Precision Developer Hero & Interactive Workbench
   ========================================================================== */
.hero-wrapper {
  position: relative;
  padding: 36px 0 16px;
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: 100vw;
  height: 440px;
  background: radial-gradient(ellipse 60% 50% at 50% 25%, rgba(234, 179, 8, 0.13) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero-aurora {
  background: radial-gradient(ellipse 60% 50% at 50% 25%, rgba(202, 138, 4, 0.09) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 75%);
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.12);
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-headline-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #facc15 50%, #38bdf8 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

[data-theme="light"] .hero-headline-gradient {
  background: linear-gradient(135deg, #0f172a 15%, #ca8a04 55%, #0284c7 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 28px;
}

/* Command Bar Hero Search */
.hero-search-container {
  max-width: 620px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 6px 12px 6px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(234, 179, 8, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .hero-search-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.hero-search-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  padding: 8px 0;
}

.hero-search-input::placeholder {
  color: var(--text-dim);
}

.hero-search-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Interactive Workbench Showcase Widget */
.workbench-card {
  margin: 0 auto 36px;
  max-width: 980px;
  background: #080d18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: left;
}

[data-theme="light"] .workbench-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.workbench-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workbench-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.workbench-dot.red { background: #ef4444; }
.workbench-dot.yellow { background: #f59e0b; }
.workbench-dot.green { background: #10b981; }

.workbench-title-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

.workbench-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wb-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.wb-tab-btn.active {
  background: rgba(234, 179, 8, 0.14);
  color: var(--brand-primary);
  border-color: rgba(234, 179, 8, 0.35);
}

.workbench-body {
  padding: 24px;
}

.workbench-panel {
  display: none;
}
.workbench-panel.active {
  display: block;
}

/* KPI Status Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateY(-2px);
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  line-height: 1.2;
}

.kpi-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Enterprise Multi-Column Footer */
.enterprise-footer {
  margin-top: 60px;
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-col p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.footer-col-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Universal Live Search Dropdown & Palette System (58+ Developer Tools)
   ========================================================================== */
.wdw-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 340px;
  max-width: 620px;
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-strong, rgba(234, 179, 8, 0.35));
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(234, 179, 8, 0.15);
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  animation: wdwSearchPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wdwSearchPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar-right .wdw-search-dropdown {
  left: auto;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
}

.wdw-search-results-list {
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
  padding: 6px;
  margin: 0;
}

.wdw-search-results-list::-webkit-scrollbar {
  width: 6px;
}
.wdw-search-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.wdw-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main, #f8fafc);
  transition: all 0.12s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.wdw-search-item:hover,
.wdw-search-item.active {
  background: rgba(234, 179, 8, 0.12) !important;
  border-color: rgba(234, 179, 8, 0.35) !important;
  transform: translateX(2px);
}

[data-theme="light"] .wdw-search-item:hover,
[data-theme="light"] .wdw-search-item.active {
  background: rgba(202, 138, 4, 0.1) !important;
  border-color: rgba(202, 138, 4, 0.3) !important;
}

.wdw-search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.wdw-search-item-icon {
  font-size: 1.25rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wdw-search-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wdw-search-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wdw-search-item.active .wdw-search-item-title,
.wdw-search-item:hover .wdw-search-item-title {
  color: var(--brand-primary, #eab308);
}

.wdw-search-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.wdw-search-cat-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.wdw-search-cat-badge.cat-css {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.wdw-search-cat-badge.cat-code {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.wdw-search-cat-badge.cat-security {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.wdw-search-cat-badge.cat-devops {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.wdw-search-cat-badge.cat-media {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.wdw-search-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wdw-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.wdw-search-footer-kbd {
  display: inline-flex;
  gap: 4px;
}

.wdw-search-footer-kbd kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.wdw-highlight {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
  font-weight: 800;
  border-radius: 2px;
  padding: 0 2px;
}

@media (max-width: 640px) {
  .topbar-right .topbar-search-wrap input {
    width: 130px !important;
  }
}

