/* Geofile — explorer.css
   The window chrome (title bar, controls, borders, body background) comes
   from XP.css. This file only styles what XP.css doesn't:
     • menu bar (File / Edit / View / Favorites / Tools / Help + win flag)
     • Standard Buttons toolbar (Back, Forward, Up, Search, Folders, Views)
     • Address bar (Address label + combobox + Go button + inline search)
     • sidebar with location/topic shortcuts
     • content area with folder/file icons + grid/list layouts
   .explorer-pane positioning + window-body padding override live in desktop.css. */

/* ── 1. Menu bar ───────────────────────────────────────────────────────── */
.ex-menu {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 2px 0 4px;
  background: linear-gradient(180deg, #F8F6EC 0%, #ECE9D8 100%);
  border-bottom: 1px solid #D6D2C2;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
}
.ex-menu-items { display: flex; gap: 0; }
.ex-menu-item {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 1px 5px;       /* tighter — was 1px 7px */
  margin: 0;
  min-width: 0;            /* override XP.css's 75px global button width */
  min-height: 0;
  height: 18px;
  box-shadow: none;        /* override XP.css's chiseled button bevel */
  font: inherit;
  color: inherit;
  cursor: default;
  line-height: 1;
  pointer-events: none;    /* decorative — match real XP without wiring submenus */
}
.ex-menu-flag {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.ex-menu-flag svg { width: 22px; height: 22px; }

/* ── 2. Standard Buttons toolbar ───────────────────────────────────────── */
.ex-toolbar {
  display: flex;
  align-items: center;
  gap: 0;                /* buttons touch each other — like real XP */
  padding: 3px 4px;
  background: linear-gradient(180deg, #F4F2E4 0%, #ECE9D8 100%);
  border-bottom: 1px solid #ACA899;
  flex-shrink: 0;
}
.ex-tb-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 4px;        /* tighter — was 0 6px */
  min-width: 0;           /* override XP.css's 75px button width */
  min-height: 0;
  box-shadow: none;       /* override XP.css's button bevel */
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: default;
  color: #000;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.ex-tb-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFF9E0 0%, #FCDF89 50%, #F9C03A 100%);
  border-color: #C68500;
}
.ex-tb-btn:active:not(:disabled),
.ex-tb-btn.is-active {
  background: linear-gradient(180deg, #E7C97A 0%, #F2D88A 50%, #F8E0A0 100%);
  border-color: #C68500;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.15);
}
.ex-tb-btn:disabled { opacity: 0.4; }
.ex-tb-btn:disabled .ex-tb-icon { filter: grayscale(0.85); }
.ex-tb-icon { display: inline-flex; align-items: center; justify-content: center; }
.ex-tb-icon svg { width: 22px; height: 22px; display: block; }
.ex-tb-back .ex-tb-icon svg,
.ex-tb-fwd  .ex-tb-icon svg { width: 24px; height: 24px; }
.ex-tb-label { padding-right: 2px; }
.ex-tb-chevron {
  font-size: 9px;
  line-height: 1;
  padding: 0 1px 0 2px;
  border-left: 1px solid transparent;
  color: #303030;
}
.ex-tb-btn:hover .ex-tb-chevron { border-left-color: #C68500; }
.ex-tb-divider {
  width: 1px;
  height: 24px;
  background: #C9C7BA;
  margin: 0 3px;          /* tighter — was 0 4px */
  align-self: center;
  flex-shrink: 0;
}

/* ── 3. Address bar ────────────────────────────────────────────────────── */
.ex-address {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 4px 6px;
  background: linear-gradient(180deg, #F4F2E4 0%, #ECE9D8 100%);
  border-bottom: 1px solid #ACA899;
  flex-shrink: 0;
  font-size: 11px;
  color: #000;
}
.ex-address-label {
  padding: 0 4px 0 2px;
  color: #555;
  flex-shrink: 0;
}
.ex-address-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 22px;
  background: #FFFFFF;
  border: 1px solid #7F9DB9;
  border-top-color: #5C7A95;
  border-left-color: #5C7A95;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.08);
}
.ex-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 2px 0 2px;
  flex-shrink: 0;
}
.ex-address-icon svg { width: 16px; height: 14px; display: block; }
.ex-address-icon .ex-address-emoji { font-size: 13px; line-height: 1; }
.ex-address-path {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  height: 100%;
  padding-right: 4px;
}
.ex-address-path::-webkit-scrollbar { display: none; }
.ex-address-text {
  font-size: 11px;
  color: #000;
  line-height: 1;
  padding: 1px 1px;
  white-space: nowrap;
}
.ex-address-crumb {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 1px 1px;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  color: #000;
  cursor: default;
  white-space: nowrap;
  font: inherit;
  font-size: 11px;
  line-height: 1;
}
.ex-address-crumb:hover {
  background: #C2D7F2;
  color: #000;
  text-decoration: underline;
}
.ex-address-crumb.is-current { font-weight: 700; }
.ex-address-sep {
  color: #707070;
  padding: 0;
  font-size: 11px;
  flex-shrink: 0;
}
.ex-address-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 100%;
  border-left: 1px solid #C9C7BA;
  background: linear-gradient(180deg, #FAFAFA 0%, #E4E2D5 100%);
  font-size: 8px;
  color: #444;
  flex-shrink: 0;
  cursor: default;
}
.ex-address-go {
  appearance: none; -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px 0 2px;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: default;
  color: #000;
  font: inherit;
  font-size: 11px;
  flex-shrink: 0;
}
.ex-address-go:hover {
  background: linear-gradient(180deg, #FFF9E0 0%, #FCDF89 100%);
  border-color: #C68500;
}
.ex-address-go svg { width: 18px; height: 18px; display: block; }

.ex-search {
  position: relative;
  width: 140px;
  flex-shrink: 0;
}
.ex-search input {
  width: 100%;
  height: 20px;
  padding: 0 6px;
  background: #FFFFFF;
  border: 1px solid #7F9DB9;
  border-top-color: #5C7A95;
  border-left-color: #5C7A95;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.08);
  font: inherit;
  font-size: 11px;
  color: #000;
}
.ex-search input::placeholder { color: #999; }

/* ── Body: sidebar + content ───────────────────────────────────────────── */
.ex-body {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #ECE9D8;
  gap: 0;
}
/* Authentic XP "task pane" sidebar — blue gradient column with rounded
   white panels stacked inside. Each panel has a gradient-blue header
   (rounded top) showing the section title, then a list of items styled
   as small icon + blue text link with hover underline. */
.ex-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #7DA2CE 0%, #5A88BD 50%, #4F7AB0 100%);
  padding: 10px 8px;
  overflow-y: auto;
  font-size: 11px;
  color: #ffffff;
  border-right: 1px solid #294D80;
}
.ex-sidebar-section {
  margin-bottom: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 5px 5px 4px 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
/* Each section's header bar — gradient-blue strip with a chevron + title.
   Faked via ::before on the first .ex-sidebar-item, so we don't have to
   restructure the rendered HTML. */
.ex-sidebar-section::before {
  content: attr(data-title);
  display: block;
  padding: 4px 8px 4px 22px;
  background: linear-gradient(180deg, #DFEAFA 0%, #C5D9F4 100%);
  border-bottom: 1px solid #B3CBE4;
  color: #1B4A8F;
  font-weight: 700;
  font-size: 11px;
  position: relative;
}
/* Chevron caret in the header — removed (sections aren't actually
   collapsible, and the absolutely-positioned caret was landing on the
   wrong rows because there's no positioned ancestor). */
.ex-sidebar-section::after {
  content: '';
  display: none;
  margin-top: -18px;
  margin-left: 6px;
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #D5E4F5 100%);
  border: 1px solid #7E9FCB;
  border-radius: 2px;
  font-size: 7px;
  color: #1B4A8F;
  text-align: center;
  line-height: 11px;
}
.ex-sidebar-item {
  appearance: none; -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 3px 10px;
  background: transparent;
  border: none;
  cursor: default;
  font: inherit;
  font-size: 11px;
  color: #1B4A8F;
  text-align: left;
}
.ex-sidebar-item:hover {
  text-decoration: underline;
  background: transparent;
}
.ex-sidebar-item.is-active {
  color: #000;
  font-weight: 700;
  background: rgba(49,106,197,0.10);
}
.ex-sidebar-icon {
  font-size: 13px;
  line-height: 1;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: inherit;
}
.ex-sidebar-count {
  margin-left: auto;
  font-size: 10px;
  color: #5A7AAA;
  font-variant-numeric: tabular-nums;
}

/* ── Content area ──────────────────────────────────────────────────────── */
.ex-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-left: 1px solid #ACA899;
  overflow: hidden;
}
.ex-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 16px;
  min-height: 240px;
  background: #FFFFFF;
}

/* Grid view. */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px 10px;
}
.ex-item {
  appearance: none; -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: transparent;
  border: 1px dotted transparent;
  border-radius: 3px;
  cursor: default;
  font: inherit;
  font-size: 11px;
  text-align: center;
  position: relative;
  transition: background 80ms;
}
.ex-item:hover { background: rgba(49,106,197,0.10); }
.ex-item.is-selected {
  background: rgba(49,106,197,0.18);
  border-color: rgba(49,106,197,0.5);
}
.ex-item-name {
  font-size: 11px;
  line-height: 1.25;
  color: #000;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  padding: 1px 4px;
  border-radius: 2px;
}
.ex-item.is-selected .ex-item-name {
  background: #316AC5;
  color: #fff;
}

/* ── Folder icon — authentic XP yellow folder (SVG sprite) ───────────── */
/* The actual shape comes from the inline <symbol id="ico-folder"> in
   index.html. Every folder is identical; only the text label below
   distinguishes them, matching real-XP behaviour. */
.ex-folder-icon {
  width: 38px;
  height: 32px;
  margin-bottom: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.20));
}

/* ── File icon ─────────────────────────────────────────────────────────── */
.ex-file-icon {
  position: relative;
  width: 30px;
  height: 38px;
  margin-bottom: 2px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F0F0 100%);
  border: 1px solid #B0B0B0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
.ex-file-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 9px; height: 9px;
  background: linear-gradient(135deg, #F0F0F0 0%, #D0D0D0 100%);
  border-left: 1px solid #B0B0B0;
  border-bottom: 1px solid #B0B0B0;
  border-radius: 0 2px 0 2px;
}
.ex-file-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 9px 9px;
  border-color: transparent transparent rgba(0,0,0,0.06) transparent;
}
.ex-file-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding-top: 6px;
}

/* ── List view (compact: small icon + name only) ──────────────────────── */
.ex-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ex-list .ex-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  text-align: left;
}
.ex-list .ex-item .ex-folder-icon,
.ex-list .ex-item .ex-file-icon {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.ex-list .ex-item .ex-file-icon::before { width: 5px; height: 5px; }
.ex-list .ex-item .ex-file-icon::after  { border-width: 0 0 5px 5px; }
.ex-list .ex-item .ex-file-glyph { font-size: 9px; padding-top: 2px; }
.ex-list .ex-item-name {
  font-size: 11px;
  text-align: left;
  -webkit-line-clamp: 1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Media (Commons) tiles — wider, with thumbnail images ──────────────── */
.ex-grid-media {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px 12px;
}
.mv-tile .mv-tile-thumbwrap {
  width: 110px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #B0B0B0;
  padding: 3px;
  margin-bottom: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  overflow: hidden;
}
.mv-tile-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.mv-tile-placeholder {
  font-size: 36px;
  color: #888;
}

/* ── Media Viewer body ─────────────────────────────────────────────────── */
.mv-body { background: #202020 !important; padding: 0 !important; }
.mv-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 20px;
  background: #202020;
}
.mv-image, .mv-video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border: 1px solid #000;
}
.mv-audio-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px;
  color: #eee;
}
.mv-audio-glyph { font-size: 80px; opacity: 0.7; }
.mv-audio { width: min(380px, 80%); }
.mv-desc {
  background: #2C2C2C;
  color: #DDD;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid #000;
}

/* ── Empty + loading ──────────────────────────────────────────────────── */
.ex-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #5A5A5A;
  text-align: center;
  font-size: 11px;
  gap: 8px;
}
.ex-empty-glyph { font-size: 36px; }
.ex-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #5A5A5A;
  font-size: 11px;
}

/* ── Contributions: upload modal + pending tile treatment ──────────────── */
.upload-body { padding: 12px 14px; }
.upload-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #ACA899;
  margin-bottom: 10px;
}
.upload-tab {
  appearance: none; -webkit-appearance: none;
  background: linear-gradient(180deg, #FAFAFA, #E8E5D7);
  border: 1px solid #ACA899;
  border-bottom: none;
  padding: 4px 12px;
  font: inherit; font-size: 11px;
  cursor: default;
  color: #333;
}
.upload-tab.is-active {
  background: #FFFFFF;
  color: #000;
  border-bottom: 1px solid #FFFFFF;
  margin-bottom: -1px;
  font-weight: 700;
}
.upload-field {
  display: block;
  margin: 8px 0;
  font-size: 11px;
}
.upload-field > span {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.upload-field em { color: #888; font-style: normal; }
.upload-field input,
.upload-field textarea {
  width: 100%;
  font: inherit; font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #7F9DB9;
  border-top-color: #5C7A95;
  border-left-color: #5C7A95;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.08);
  background: #FFFFFF;
  resize: vertical;
}
/* Dropzone with both a "Choose image" button + drag-and-drop affordance. */
.upload-dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1.5px dashed #88a;
  border-radius: 4px;
  background: #F8F9FF;
  margin-bottom: 8px;
  transition: border-color 100ms, background 100ms;
}
.upload-dropzone.is-dragover {
  border-color: #245EDB;
  background: #E6EDFF;
}
.upload-dropzone input[type="file"] {
  /* Visually hidden but still focusable + clickable via the label. */
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-file-cta {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(180deg, #FAFAFA 0%, #E8E5D7 100%);
  border: 1px solid #888;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}
.upload-file-cta:hover { background: linear-gradient(180deg, #FFF9E0, #FCDF89); }
.upload-dropzone-hint {
  color: #777;
  font-size: 11px;
}
.upload-filename {
  flex-basis: 100%;
  font-size: 11px;
  color: #245EDB;
  font-weight: 700;
}
#uploadPreview {
  display: none;
  max-width: 100%;
  max-height: 180px;
  margin: 8px auto;
  border: 1px solid #aaa;
}
.upload-status {
  font-size: 11px;
  color: #444;
  margin: 8px 0 0;
  min-height: 14px;
}
.upload-status.is-error { color: #B00020; }
.upload-status.is-ok    { color: #0A6A1A; }
.upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #D8D8D8;
}
.upload-cancel,
.upload-submit {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 11px;
  padding: 4px 14px;
  background: linear-gradient(180deg, #FAFAFA 0%, #E8E5D7 100%);
  border: 1px solid #888;
  border-radius: 3px;
  cursor: default;
}
.upload-submit { font-weight: 700; }
.upload-submit:disabled { opacity: 0.55; }
.upload-cancel:hover,
.upload-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFF9E0, #FCDF89);
  border-color: #C68500;
}

/* Drop an image onto the explorer content area to upload. */
.ex-content-dropactive {
  outline: 3px dashed #245EDB;
  outline-offset: -8px;
  background: linear-gradient(180deg, rgba(36,94,219,0.06), rgba(36,94,219,0.10));
}

/* Pending / rejected own-contributions look ghosted with a dotted border. */
.ex-item.is-pending {
  outline: 1px dashed #888;
  outline-offset: -3px;
  opacity: 0.85;
}
.ex-item.is-rejected {
  outline: 1px dashed #B00020;
  outline-offset: -3px;
  opacity: 0.5;
}
.ex-item-status {
  display: block;
  font-size: 9px;
  color: #888;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ex-item.is-rejected .ex-item-status { color: #B00020; }

/* Contribution thumbnail wrap reuses the media-tile style. */
.ex-item.is-contrib .mv-tile-thumbwrap {
  width: 86px;
  height: 86px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8d8d8;
}
.ex-item.is-contrib .mv-tile-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.ex-item.is-contrib .ex-file-glyph { font-size: 28px; }

/* ── XP-style right-click context menu ─────────────────────────────────── */
.context-menu {
  position: fixed;
  z-index: 3000;
  min-width: 178px;
  background: #FFFFFF;
  border: 1px solid #ACA899;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.30);
  padding: 2px;
  font-size: 11px;
  color: #000;
  user-select: none;
  -webkit-user-select: none;
}
.context-menu-item {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 22px 3px 26px;
  font: inherit;
  font-size: 11px;
  color: inherit;
  cursor: default;
  text-align: left;
  position: relative;
  min-height: 18px;
  white-space: nowrap;
}
.context-menu-item:hover:not(:disabled),
.context-menu-item.is-open {
  background: #316AC5;
  color: #FFFFFF;
}
.context-menu-item:disabled {
  color: #ACA899;
  cursor: default;
}
.context-menu-item.has-submenu::after {
  content: '▶';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  line-height: 1;
}
.context-menu-bullet {
  position: absolute;
  left: 10px;
  font-size: 11px;
  line-height: 1;
}
.context-menu-sep {
  height: 1px;
  background: #D8D8D8;
  margin: 3px 22px 3px 26px;
}

/* ── Floating Views dropdown ───────────────────────────────────────────── */
.ex-views-menu {
  position: fixed;
  z-index: 2000;
  min-width: 140px;
  background: #FFFFFF;
  border: 1px solid #ACA899;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
  padding: 2px 0;
  font-size: 11px;
}
.ex-views-menu-item {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 16px 4px 8px;
  font: inherit;
  font-size: 11px;
  color: #000;
  cursor: default;
  text-align: left;
}
.ex-views-menu-item:hover { background: #316AC5; color: #fff; }
.ex-views-menu-bullet {
  display: inline-block;
  width: 10px;
  text-align: center;
  font-weight: 700;
  color: inherit;
}

/* Folders-button toggled state: hide sidebar. */
.ex-sidebar-collapsed .ex-sidebar { display: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .ex-sidebar { display: none; }
  .ex-search { display: none; }
  .ex-menu { display: none; }
  .ex-toolbar { gap: 1px; padding: 2px 3px; }
  .ex-tb-btn .ex-tb-label { display: none; }
  .ex-tb-divider { display: none; }
  .ex-content-scroll { padding: 10px 12px 12px; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px 8px; }
}
