/* Base Styles */
html, body { height: 100%; margin: 0; padding: 0; }
*, *:before, *:after { box-sizing: border-box; }
body { font-family: sans-serif; }
.main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1em;
}
/* Layout for two‐column main content with fixed sidebar */
.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}
 .sidebar {
  width: 270px;
  padding: 1em;
  border-right: 1px solid #ccc;
  overflow: visible;
}
/* Sidebar Logo */
.sidebar-logo h1 {
  margin: 0 0 1em 0;
  font-size: 1.5em;
}
.pane-resizer {
  width: 5px;
  cursor: ew-resize;
  background-color: #ccc;
}
.main-content {
  flex: 1;
  padding-left: 1em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Sidebar header buttons – stacked vertically and fill width */
.sidebar-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3em;
  margin-bottom: 0.5em;
}
.sidebar-buttons button {
  width: 100%;
  padding: 0.5em;
  box-sizing: border-box;
}

/* File input row */
.file-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.left-part {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.right-part {
  display: flex;
  align-items: center;
}
/* Navigation Controls – a single row combining Go to Handle and navigation history */
#navControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}
/* Row add/remove controls */
.row-controls {
  display: flex;
  margin-bottom: 1em;
}
.row-controls button { margin-right: 4px; }
/* Left part: Handle Navigation */
#handleNavBar {
  display: flex;
  align-items: center;
}
#handleNavBar input {
  margin-right: 0.5em;
}
/* Right part: Navigation History */
#navHistoryContainer {
  display: flex;
  align-items: center;
}
#navHistoryControls button {
  margin-right: 4px;
}
#navHistoryList {
  margin-left: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
#parseBtn { padding: 0.3em 0.6em; white-space: nowrap; }
/* Tabs */
#tabContainer {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  margin: 0.5em 0;
}
.tab {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  margin-right: 2px;
  margin-bottom: 2px;
  background: #eee;
  position: relative;
}
.tab.active { background: #fff; font-weight: bold; }
.tab .close-tab {
  position: absolute;
  top: 0;
  right: 2px;
  cursor: pointer;
  padding: 0 4px;
}
/* Tree Grid Header */
#treeGridHeader {
  display: flex;
  align-items: center;
  height: 24px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  background: #eee;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 2;
  will-change: transform;
}
.header-cell {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 0 4px;
  border-right: 1px solid #ccc;
  cursor: pointer;
}
.header-cell.flex-fixed { flex: none; }
.header-cell.flex-grow { flex: 1; }
.header-cell:last-child { border-right: none; }
.header-cell .resizer {
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
}
.header-cell .sort-indicator {
  margin-left: 4px;
  font-size: 0.8em;
}
.tree-line,
.tree-code,
.tree-object-count,
.tree-data-size {
  flex: none;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  border-right: 1px solid #ccc;
  height: 100%;
}
.tree-data {
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #ccc;
  height: 100%;
}
.tree-line:last-child,
.tree-code:last-child,
.tree-data:last-child,
.tree-object-count:last-child,
.tree-data-size:last-child { border-right: none; }
/* Tree View Container */
#treeViewContainer {
  position: relative;
  flex: 1;
  overflow: auto;
  border: 1px solid #ccc;
  clip-path: inset(0);
}
#treeViewContent { position: relative; overflow: hidden; }
/* Tree row styling – with row selection support */
.tree-row {
  display: flex;
  align-items: center;
  height: 24px;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  cursor: pointer;
}
.tree-row.selected {
  background-color: #bde4ff;
}
.toggle {
  display: inline-block;
  width: 16px;
  text-align: center;
  user-select: none;
  cursor: pointer;
}
.copy-button, .open-button, .hex-button {
  margin-left: 8px;
  font-size: 0.8em;
  display: none;
}
.tree-row:hover .copy-button,
.tree-row:hover .open-button,
.tree-row:hover .hex-button { display: inline; }
/* Use monospace font for the tree grid display */
.tree-row,
.tree-line,
.tree-code,
.tree-object-count,
.tree-data-size,
.tree-data {
  font-family: monospace;
}
.tree-line,
.tree-code,
.tree-data,
.tree-object-count,
.tree-data-size {
  display: flex;
  align-items: center;
  height: 100%;
}
/* Filter Panel – controls now stacked vertically */
.tree-row,
.tree-row * {
  user-select: text;
}
.filter-panel {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1em;
  padding: 0.5em;
}
.filter-panel h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
}
.filter-content .filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 0.5em;
}
.filter-row label,
.filter-row input,
.filter-row button { margin-right: 0; }
.tag-container {
  display: block;
  border: 1px solid #ccc;
  padding: 2px;
  margin-bottom: 0.5em;
  border-radius: 4px;
}
.tag-container input {
  border: none;
  outline: none;
  font-family: inherit;
  width: 100%;
}
.tag {
  display: inline-block;
  background: #ddd;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.9em;
}
.tag .remove {
  margin-left: 4px;
  cursor: pointer;
  font-weight: bold;
}
/* Overlays – all dialogs are hidden by default and appear above the tree view */ 
#batchProcessingOverlay,
#cloudOverlay,
#statsOverlay,
#depsOverlay,
#binaryObjectsOverlay,
#handleMapOverlay,
#hexViewerOverlay,
#proxyObjectsOverlay,
#fontsOverlay,
#classesOverlay,
#objectSizeOverlay,
#blocksOverlay,
#lineTypesOverlay,
#textsOverlay,
#diffOverlay,
#ruleConfigOverlay,
#diagnosticsOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
/* Z-index layering for overlays */
#ruleConfigOverlay { z-index: 1200; }
#hexViewerOverlay { z-index: 1100; }
#diffOverlay { z-index: 1100; }
/* All other overlays get z-index: 1000 */
#batchProcessingOverlay,
#cloudOverlay,
#statsOverlay,
#depsOverlay,
#binaryObjectsOverlay,
#handleMapOverlay,
#proxyObjectsOverlay,
#fontsOverlay,
#classesOverlay,
#objectSizeOverlay,
#blocksOverlay,
#lineTypesOverlay,
#textsOverlay,
#diagnosticsOverlay { z-index: 1000; }
.overlay-content {
  background: #fff;
  margin: 20px;
  padding: 1em;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
}
/* Remove scrollbar from diagnostics overlay content to avoid double scrollbars */
#diagnosticsOverlay .overlay-content {
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
/* Ensure the tab content area expands to fill available space */
#diagnosticsTabContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Diagnostics header layout */
.diagnostics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #dee2e6;
}
.diagnostics-header-left {
  display: flex;
  align-items: center;
  gap: 1em;
}
.diagnostics-header-left h2 {
  margin: 0;
  font-size: 1.5em;
}
.diagnostics-header-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.diagnostics-header-right button,
.diagnostics-header-left button {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}
.diagnostics-header-right button:hover,
.diagnostics-header-left button:hover {
  background: #e9ecef;
}
#closeCloudOverlay,
#closeStatsOverlay,
#closeDepsOverlay,
#closeHexViewerOverlay,
#closeBinaryObjectsOverlay,
#closeHandleMapOverlay,
#closeProxyObjectsOverlay,
#closeFontsOverlay,
#closeClassesOverlay,
#closeObjectSizeOverlay,
#closeBlocksOverlay,
#closeLineTypesOverlay,
#closeTextsOverlay,
#closeDiffOverlay,
#closeBatchOverlay,
#closeRuleConfigBtn,
#saveBinaryBtn,
#previewImageBtn {
  position: absolute;
  top: 10px;
  cursor: pointer;
}
#closeCloudOverlay,
#closeStatsOverlay,
#closeDepsOverlay,
#closeHexViewerOverlay,
#closeBinaryObjectsOverlay,
#closeHandleMapOverlay,
#closeProxyObjectsOverlay,
#closeFontsOverlay,
#closeClassesOverlay,
#closeObjectSizeOverlay,
#closeBlocksOverlay,
#closeLineTypesOverlay,
#closeTextsOverlay,
#closeDiffOverlay,
#closeBatchOverlay,
#closeRuleConfigBtn { right: 10px; }
#saveBinaryBtn { right: 80px; }
#previewImageBtn { right: 170px; }
.cloud-tag {
  display: inline-block;
  margin: 4px;
  padding: 2px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
}
#overlayStatsContent ul,
#overlayDepsContent ul {
  list-style: none;
  padding: 0;
}
#overlayStatsContent li,
#overlayDepsContent li {
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
}
/* Additional containers for previews */
#imagePreviewContainer, #zipContentsContainer {
  margin-top: 10px;
}
/* Dropdown with checkboxes styling */
.dropdown {
  position: relative;
  overflow: visible;
  display: inline-block;
  width: 100%;
}

#objectTypeDropdownButton {
  width: 100%;
  text-align: left;
  padding: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  top: 100%;  /* Position immediately below the button */left: 0;
  z-index: 1000;  /* Bring it above other elements */
}

.dropdown-content label {
  display: block;
  padding: 5px;
  cursor: pointer;
}

.dropdown-content label:hover {
  background-color: #f1f1f1;
}

/* Diagnostics Overlay Specific Styles */
.diagnostics-tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1em;
}
.diagnostics-tab {
  padding: 0.8em 1.2em;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f5f5f5;
  margin-right: 2px;
  font-weight: bold;
}
.diagnostics-tab.active {
  background: #fff;
  border-bottom: 2px solid #fff;
  margin-bottom: -2px;
  color: #0066cc;
}
.diagnostics-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 400px);
  padding: 1em;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 0.5em;
}
.diagnostics-content.active {
  display: block;
}
.diagnostics-summary {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em;
  margin-bottom: 1em;
}
.diagnostics-category {
  margin-bottom: 1.5em;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.diagnostics-category-header {
  background: #f0f0f0;
  padding: 0.8em 1em;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.diagnostics-category-header:hover {
  background: #e8e8e8;
}
.diagnostics-category-content {
  display: none;
  padding: 0;
}
.diagnostics-category-content.expanded {
  display: block;
}
.diagnostic-item {
  padding: 0.8em 1em;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 1em;
}
.diagnostic-item:last-child {
  border-bottom: none;
}
.diagnostic-severity {
  flex-shrink: 0;
  width: 80px;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
}
.diagnostic-severity.critical {
  background: #dc3545;
  color: white;
}
.diagnostic-severity.error {
  background: #fd7e14;
  color: white;
}
.diagnostic-severity.warning {
  background: #ffc107;
  color: #333;
}
.diagnostic-severity.info {
  background: #17a2b8;
  color: white;
}
.diagnostic-severity.suggestion {
  background: #28a745;
  color: white;
}
.diagnostic-details {
  flex: 1;
}
.diagnostic-title {
  font-weight: bold;
  margin-bottom: 0.3em;
  color: #333;
}
.diagnostic-description {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 0.5em;
}
.diagnostic-location {
  font-size: 0.8em;
  color: #888;
  font-family: monospace;
}
.diagnostic-actions {
  margin-top: 0.5em;
}
.diagnostic-action-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8em;
  margin-right: 0.5em;
}
.diagnostic-action-btn:hover {
  background: #0056b3;
}
.diagnostics-progress {
  margin: 1em 0;
}
.diagnostics-progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.diagnostics-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transition: width 0.3s ease;
}
.diagnostics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1em;
  margin-bottom: 1em;
}
.diagnostics-stat {
  text-align: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.8em;
}
.diagnostics-stat-number {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.2em;
}
.diagnostics-stat-label {
  font-size: 0.8em;
  color: #666;
  text-transform: uppercase;
}
.diagnostics-stat {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diagnostics-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.diagnostics-stat.active {
  background: #007bff;
  color: white;
}
.diagnostics-filters {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1em;
  margin-top: 1em;
}
.diagnostics-filter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1em;
  align-items: center;
}
.diagnostics-search-container {
  display: flex;
  gap: 0.5em;
}
.diagnostics-search-container input {
  flex: 1;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.diagnostics-search-container button {
  padding: 0.5em 1em;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.diagnostics-search-container button:hover {
  background: #5a6268;
}
.diagnostics-severity-filters {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}
.diagnostics-severity-filters label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.9em;
  cursor: pointer;
}
.diagnostics-category-filters select {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}
.diagnostic-item.hidden {
  display: none;
}
.diagnostics-no-results {
  text-align: center;
  padding: 2em;
  color: #666;
  font-style: italic;
}

/* Rule Configuration Dialog Styles */
.rule-config-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.rule-config-actions {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.rule-config-actions button {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}
.rule-config-actions button:hover {
  background: #e9ecef;
}
.rule-profiles {
  display: flex;
  gap: 0.5em;
  align-items: center;
  flex-wrap: wrap;
}
.rule-profiles select, .rule-profiles button {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.rule-profiles button {
  background: white;
  cursor: pointer;
}
.rule-profiles button:hover {
  background: #e9ecef;
}
.rule-search input {
  width: 200px;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.rule-config-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1em;
}
.rule-category {
  margin-bottom: 1.5em;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}
.rule-category-header {
  background: #007bff;
  color: white;
  padding: 0.75em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rule-category-header:hover {
  background: #0056b3;
}
.rule-category-body {
  display: none;
  padding: 1em;
  background: white;
}
.rule-category-body.expanded {
  display: block;
}
.rule-category-controls {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
}
.rule-category-controls button {
  font-size: 0.8em;
  padding: 0.3em 0.6em;
  border: 1px solid #ccc;
  background: white;
  border-radius: 3px;
  cursor: pointer;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  padding: 0.75em;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}
.rule-item:hover {
  background: #f8f9fa;
}
.rule-item:last-child {
  border-bottom: none;
}
.rule-checkbox {
  margin-top: 0.2em;
}
.rule-info {
  flex: 1;
}
.rule-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25em;
}
.rule-description {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}
.rule-severity {
  font-size: 0.8em;
  padding: 0.2em 0.5em;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 0.5em;
  display: inline-block;
}
.rule-severity.critical { background: #ffebee; color: #c62828; }
.rule-severity.error { background: #ffebee; color: #d32f2f; }
.rule-severity.warning { background: #fff3e0; color: #ef6c00; }
.rule-severity.info { background: #e3f2fd; color: #1976d2; }
.rule-severity.suggestion { background: #f3e5f5; color: #7b1fa2; }
.rule-item.disabled {
  opacity: 0.5;
}
.rule-item.hidden {
  display: none;
}

/* Overlay header and footer styles */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1em;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1em;
}
.overlay-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  padding-top: 1em;
  border-top: 1px solid #dee2e6;
  margin-top: 1em;
}
.overlay-footer button.primary {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
}
.overlay-footer button.primary:hover {
  background: #0056b3;
}

/* Responsive design for diagnostics */
@media (max-width: 768px) {
  .diagnostics-filter-row {
    grid-template-columns: 1fr;
    gap: 0.5em;
  }
  .diagnostics-severity-filters {
    flex-direction: column;
    gap: 0.5em;
  }
  .diagnostics-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagnostics-tab {
    padding: 0.5em 0.8em;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .diagnostics-stats {
    grid-template-columns: 1fr;
  }
  .diagnostic-item {
    flex-direction: column;
    gap: 0.5em;
  }
  .diagnostic-severity {
    width: auto;
    align-self: flex-start;
  }
}

/* Context Menu Styles */
.context-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0;
  z-index: 10000;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.context-menu-item:hover {
  background: #f0f0f0;
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-separator {
  height: 1px;
  background: #ccc;
  margin: 4px 0;
}

.context-menu-submenu {
  position: relative;
}

.context-menu-submenu::after {
  content: "▶";
  float: right;
  font-size: 12px;
}

.context-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.context-menu-submenu:hover .context-submenu {
  display: block;
}
/* Responsive adjustments for mobile */
@media (max-width: 600px) {
  .filter-content .filter-row {
    flex-direction: column;
  }
  .tag-container { width: 100%; }
  #treeGridHeader .header-cell { padding: 0 2px; }
  .tree-row { height: 32px; }
  .tree-row .toggle { width: 20px; }
  .sidebar-logo h1 { font-size: 1.3em; }
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1em;
    margin-bottom: 1em;
  }
  .pane-resizer { display: none; }
  .main-content { padding-left: 0; }
  #navControls { flex-direction: column; align-items: flex-start; }
  #handleNavBar, #navHistoryContainer { margin-bottom: 0.5em; }
} 