/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark space theme */
  --bg-deep: #0a0b10;
  --bg-primary: #12131c;
  --bg-secondary: #1a1c28;
  --bg-elevated: #22263a;
  --bg-hover: #2a2f47;
  
  /* Borders & lines */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  
  /* Text */
  --text-primary: #e8eaf0;
  --text-secondary: #9399b8;
  --text-muted: #5c6280;
  
  /* Accent — stellar blue-violet */
  --accent: #7c6ff7;
  --accent-hover: #9589ff;
  --accent-dim: rgba(124,111,247,0.15);
  
  /* Semantic */
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  
  /* Item rarity colors */
  --rarity-common: #b8bcc8;
  --rarity-uncommon: #34d399;
  --rarity-rare: #60a5fa;
  --rarity-epic: #a78bfa;
  --rarity-legendary: #fbbf24;
  
  /* Spacing */
  --sidebar-width: 220px;
  --detail-width: 380px;
  --header-height: 64px;
  --grid-gap: 12px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.title-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.pack-version {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 44px 0 40px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

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

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: inherit;
}

.header-right {
  min-width: 120px;
  display: flex;
  justify-content: flex-end;
}

.recipe-count {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ===== MAIN LAYOUT ===== */
.app-main {
  display: flex;
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.categories-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 16px 6px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 16px;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 8px;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}

.category-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.category-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.category-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 10px;
}

.category-btn.active .category-count {
  background: rgba(124,111,247,0.2);
  color: var(--accent);
}

.popular-items {
  padding: 4px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.popular-item:hover {
  background: var(--bg-hover);
}

.popular-item-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.popular-item-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== RECIPE GRID ===== */
.recipe-grid-section {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px 20px 20px 24px;
  min-height: calc(100vh - var(--header-height));
}

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

.grid-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--grid-gap);
}

/* ===== RECIPE CARD ===== */
.recipe-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.recipe-card:hover .recipe-card-output img {
  transform: scale(1.05);
}

.recipe-card-bookmark {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10,11,16,0.6);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  padding: 0;
}

.recipe-card:hover .recipe-card-bookmark {
  opacity: 1;
}

.recipe-card-bookmark.bookmarked {
  opacity: 1;
  color: var(--accent);
}

.recipe-card-bookmark:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.recipe-card-bookmark svg {
  width: 13px;
  height: 13px;
}

.recipe-card {
  position: relative;
}

.recipe-card-output {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.recipe-card-output img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  transition: transform 0.15s;
}

.recipe-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.recipe-card-category {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 7px;
  border-radius: 10px;
}

.recipe-card-ingredients {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== DETAIL PANEL ===== */
.detail-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: var(--detail-width);
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 20px;
  z-index: 50;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
}

.detail-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.detail-close svg {
  width: 16px;
  height: 16px;
}

.detail-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.detail-output img {
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
}

.detail-output-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}

.ingredient-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.ingredient-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ingredient-item-name {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ingredient-item-count {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== ITEM TOOLTIP ===== */
.item-tooltip {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-primary);
  max-width: 240px;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  line-height: 1.5;
}

/* ===== EMPTY / LOADING STATES ===== */
.empty-state, .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 12px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.loading-state p {
  font-size: 14px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-primary);
  z-index: 300;
  animation: toastIn 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(10px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .detail-panel {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  
  .app-main {
    flex-direction: column;
  }
  
  .categories-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px;
    gap: 4px;
  }
  
  .sidebar-header {
    width: 100%;
    padding: 8px 8px 4px;
  }
  
  .sidebar-divider {
    width: 100%;
    margin: 4px 8px;
  }
  
  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 4px;
    gap: 4px;
  }
  
  .popular-items {
    display: none;
  }
  
  .recipe-grid-section {
    margin-left: 0;
    padding: 16px;
  }
  
  .header-left {
    min-width: auto;
  }
  
  .header-right {
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .app-header {
    padding: 0 12px;
    gap: 10px;
  }
  
  .pack-version {
    display: none;
  }
  
  .header-center {
    display: none;
  }
}

/* ===== BOOKMARKS SIDEBAR ===== */
.bookmarks-sidebar {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.bookmarks-sidebar.open {
  transform: translateX(0);
}

.bookmarks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bookmarks-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.bookmark-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.bookmark-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.bookmark-item-info {
  flex: 1;
  min-width: 0;
}

.bookmark-item-name {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.bookmark-item-type {
  font-size: 10px;
  color: var(--accent);
}

.bookmark-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.12s;
}

.bookmark-item:hover .bookmark-actions {
  opacity: 1;
}

.bookmark-tree-btn {
  background: var(--accent-dim);
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 12px;
}

.bookmark-tree-btn:hover {
  background: var(--accent);
  color: white;
}

.bookmark-remove {
  background: transparent;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
}

.bookmark-remove:hover {
  color: var(--error);
}

.bookmarks-empty {
  padding: 20px 16px;
  text-align: center;
}

.bookmarks-empty-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== BILL OF MATERIALS PANEL ===== */
.bom-panel {
  position: fixed;
  top: var(--header-height);
  left: var(--sidebar-width);
  right: 0;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
  z-index: 45;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.bom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bom-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.bom-header-actions {
  display: flex;
  gap: 6px;
}

.bom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.bom-qty-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bom-qty-input {
  width: 72px;
  height: 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  text-align: center;
}

.bom-qty-input:focus {
  border-color: var(--accent);
}

.bom-tree {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* BOM tree node */
.bom-node {
  margin-bottom: 6px;
}

.bom-node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.bom-node-row:hover {
  background: var(--bg-hover);
}

.bom-node-row.is-leaf {
  cursor: default;
}

.bom-node-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.bom-node-arrow.expanded {
  transform: rotate(90deg);
}

.bom-node-arrow.hidden {
  visibility: hidden;
}

.bom-node-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.bom-node-name {
  flex: 1;
  font-size: 12px;
  color: var(--text-primary);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bom-node-qty {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 36px;
  text-align: center;
}

.bom-node-children {
  margin-left: 20px;
  margin-top: 4px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bom-node-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.12s;
}

.bom-node-row:hover .bom-node-actions {
  opacity: 1;
}

.bom-node-qty-edit {
  width: 52px;
  height: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0 6px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-primary);
  outline: none;
  text-align: center;
}

/* ===== BUTTON UTILITIES ===== */
.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-icon svg {
  width: 14px;
  height: 14px;
}

.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  height: 34px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* ===== TOGGLE BOOKMARKS BUTTON ===== */
#bookmarksToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,111,247,0.4);
  transition: transform 0.15s, background 0.15s;
  color: white;
}

#bookmarksToggle:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}

#bookmarksToggle svg {
  width: 22px;
  height: 22px;
}

/* ===== RESPONSIVE — hide bookmarks on small screens ===== */
@media (max-width: 900px) {
  .bom-panel {
    left: 0;
  }
}

@media (max-width: 600px) {
  #bookmarksToggle {
    bottom: 16px;
    right: 16px;
  }
}
