/* Moksha desktop preview
   Theme: MokshaGreen (Bodhi ISO default) — dark greys, green accent
   Layout: bottom shelf (ISO profile), cascading Main menu, Thunar FM, Everything */

:root {
  /* Matched to Bodhi ISO e.src + MokshaGreen theme (Numix-green) */
  --shelf-height: 40px;
  --shelf-bg: #242b2f;
  --shelf-fg: #e8e8e8;
  --shelf-fg-dim: rgba(232, 232, 232, 0.72);
  --accent: #98cc57;
  --accent-soft: rgba(152, 204, 87, 0.35);
  --accent-bar: #81ac4f;

  --menu-bg: #242b2f;
  --menu-hover: #2d3539;
  --menu-active: #98cc57;
  --menu-fg: #e6e6e6;
  --menu-fg-dim: #a8a8a8;
  --menu-border: #1b2124;
  --menu-title: #b8b8b8;
  --menu-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);

  /* E windows are flat #404040 gray like official EFM */
  --win-bg: #2a3236;
  --win-header: #242b2f;
  --win-sidebar: #22292d;
  --win-content: #2a3236;
  --win-fg: #e4e4e4;
  --win-fg-dim: #a8a8a8;
  --win-border: #1b2124;
  --win-hover: rgba(255, 255, 255, 0.07);
  --win-selected: rgba(0, 0, 0, 0.28);
  --win-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  --win-radius: 3px;

  --label-chip: rgba(18, 24, 32, 0.88);
  --popup-bg: #242b2f;
  --popup-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);

  --font: "Noto Sans", "DejaVu Sans", "Cantarell", system-ui, sans-serif;
  --transition-fast: 90ms ease;
  --transition: 150ms ease;

  --sym-filter: invert(1) brightness(1.12);
  --wallpaper: url("assets/wallpapers/bodhi-bl6.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  color: var(--shelf-fg);
  background: #12181a;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.sym {
  filter: var(--sym-filter);
}

/* ---------- Desktop shell ---------- */

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background:
    var(--wallpaper) center / cover no-repeat,
    #1a2e1a;
  z-index: 0;
}

/* ---------- Desktop icons (official: large glyph + dark label chip) ---------- */

.desktop-icons {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100% - var(--shelf-height) - 28px);
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  padding: 4px 2px 2px;
  border-radius: 4px;
  gap: 2px;
  color: #d8d8d8;
  background: transparent;
}

.desk-icon:hover,
.desk-icon:focus-visible {
  background: rgba(0, 0, 0, 0.22);
}

.desk-icon:active,
.desk-icon.selected {
  background: rgba(0, 0, 0, 0.4);
}

.desk-icon-img {
  width: 56px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

/* Dark rounded label chip under each icon — matches website screenshots */
.desk-label {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 10px 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: #d8d8d8;
  background: var(--label-chip);
  border-radius: 4px;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ---------- Shelf (MokshaGreen: solid #242b2f, full-width, ~40px / ISO size 32) ---------- */

.shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--shelf-height);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: var(--shelf-bg);
  border-top: 1px solid #1b2124;
  box-shadow: 0 -1px 0 rgba(152, 204, 87, 0.12);
}

.shelf-left,
.shelf-right {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 100%;
}

.shelf-spacer {
  flex: 1;
}

.shelf-btn,
.shelf-gadget {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 2px;
  color: var(--shelf-fg);
  transition: background var(--transition-fast);
}

.shelf-btn:hover,
.shelf-gadget:hover,
.shelf-btn.active,
.shelf-gadget.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Start: Moksha/Bodhi start-here glyph */
.start-btn {
  width: 36px;
  min-width: 36px;
  height: 34px;
  margin-right: 2px;
  background: #2d3539;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.start-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.start-btn:hover,
.start-btn.active {
  background: #3a454a;
  box-shadow: inset 0 0 0 1px rgba(152, 204, 87, 0.35);
}

/* Pager: mini desktop previews with blue task bar */
.pager {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 6px 0 4px;
  height: 100%;
}

.pager-desk {
  width: 40px;
  height: 28px;
  border-radius: 1px;
  background: #2a2a2a;
  border: 1px solid #1e1e1e;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.pager-desk.active {
  outline: 1px solid rgba(152, 204, 87, 0.85);
  outline-offset: 0;
}

.pager-desk:hover {
  background: #333;
}

.pager-preview {
  display: block;
  position: absolute;
  inset: 1px;
  background:
    linear-gradient(160deg, #1a2e1a 0%, #163548 100%);
  background-image:
    url("assets/wallpapers/bodhi-bl6.jpg");
  background-size: cover;
  background-position: center;
}

.pager-win {
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 14px;
  height: 9px;
  background: var(--accent-bar);
  border-radius: 1px;
}

/* IBar launchers */
.ibar {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 8px;
  height: 100%;
}

.ibar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 2px;
  transition: background var(--transition-fast);
}

.ibar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ibar-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Thick blue underline under open apps (official IBar) */
.ibar-indicator {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 1px;
  height: 3px;
  border-radius: 0;
  background: var(--accent-bar);
}

.ibar-btn.open .ibar-indicator {
  display: block !important;
}

/* Clock: large tabular text like "05:47 PM" */
.clock-gadget {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  min-width: 74px;
  padding: 0 8px;
  color: #eee;
}

.shelf-gadget img {
  width: 18px;
  height: 18px;
}

/* ---------- Cascading main menu ---------- */

.main-menu {
  position: absolute;
  z-index: 60;
  left: 6px;
  bottom: calc(var(--shelf-height) + 4px);
  pointer-events: none;
}

.main-menu:not([hidden]) {
  pointer-events: auto;
}

.menu-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 4px 0 6px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: 3px;
  box-shadow: var(--menu-shadow);
  color: var(--menu-fg);
  z-index: 1;
}

.menu-panel.submenu {
  bottom: auto;
  z-index: 65;
}

.menu-title {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--menu-title);
  padding: 6px 12px 8px;
  letter-spacing: 0.02em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 12px 6px 10px;
  text-align: left;
  color: var(--menu-fg);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.menu-item:hover,
.menu-item.open {
  background: var(--menu-hover);
}

.menu-item.dim {
  color: var(--menu-fg-dim);
  cursor: default;
}

.menu-item.dim:hover {
  background: transparent;
}

.menu-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-item span:not(.menu-arrow) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-arrow {
  flex: 0 0 auto;
  color: var(--menu-fg-dim);
  font-size: 16px;
  line-height: 1;
  margin-left: 8px;
}

.menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Everything launcher ---------- */

.everything {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(0, 0, 0, 0.35);
}

.everything[hidden] {
  display: none;
}

.everything-card {
  width: min(520px, 92vw);
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--popup-bg);
  border: 1px solid var(--menu-border);
  border-radius: 6px;
  box-shadow: var(--popup-shadow);
  overflow: hidden;
}

.everything-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.everything-search-wrap img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.everything-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--menu-fg);
  font: inherit;
  font-size: 15px;
}

.everything-search::placeholder {
  color: var(--menu-fg-dim);
}

.everything-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ev-tab {
  padding: 5px 12px;
  border-radius: 3px;
  color: var(--menu-fg-dim);
  font-size: 12px;
  font-weight: 500;
}

.ev-tab:hover {
  background: var(--win-hover);
  color: var(--menu-fg);
}

.ev-tab.active {
  background: var(--accent-soft);
  color: #fff;
}

.everything-results {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  min-height: 160px;
}

.ev-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: left;
}

.ev-item:hover,
.ev-item.selected {
  background: var(--menu-hover);
}

.ev-item.selected {
  background: var(--accent-soft);
}

.ev-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ev-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ev-item-name {
  font-weight: 500;
}

.ev-item-sub {
  font-size: 11px;
  color: var(--menu-fg-dim);
}

.everything-empty {
  text-align: center;
  color: var(--menu-fg-dim);
  padding: 24px;
  margin: 0;
}

/* ---------- System controls ---------- */

.syscon {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.syscon[hidden] {
  display: none;
}

.syscon-card {
  background: var(--popup-bg);
  border: 1px solid var(--menu-border);
  border-radius: 6px;
  box-shadow: var(--popup-shadow);
  padding: 22px 28px 16px;
  min-width: 340px;
}

.syscon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  margin-bottom: 16px;
}

.syscon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 4px;
  color: var(--menu-fg);
}

.syscon-item:hover:not(:disabled) {
  background: var(--menu-hover);
}

.syscon-item.dim,
.syscon-item:disabled {
  opacity: 0.4;
  cursor: default;
}

.syscon-item img {
  width: 32px;
  height: 32px;
}

.syscon-item span {
  font-size: 12px;
}

.syscon-cancel {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  color: var(--menu-fg-dim);
  border-radius: 3px;
}

.syscon-cancel:hover {
  background: var(--win-hover);
  color: var(--menu-fg);
}

/* ---------- About dialog ---------- */

.about-dialog {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.about-dialog[hidden] {
  display: none;
}

.about-win {
  width: min(420px, 92vw);
}

.about-body {
  padding: 28px 24px 20px;
  text-align: center;
  background: var(--win-bg);
}

.about-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.about-body h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.about-ver {
  color: var(--win-fg-dim);
  font-size: 13px;
  margin-bottom: 16px;
}

.about-copy,
.about-note,
.about-link {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--win-fg);
}

.about-note,
.about-link {
  color: var(--win-fg-dim);
}

.about-link {
  margin-bottom: 18px;
}

.e-btn {
  padding: 6px 28px;
  background: #4a4a4a;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  color: var(--win-fg);
}

.e-btn:hover {
  background: #555;
}

/* ---------- Generic E window chrome (flat Dark theme) ---------- */

.e-window {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  border-radius: var(--win-radius);
  box-shadow: var(--win-shadow);
  color: var(--win-fg);
  overflow: hidden;
}

.e-window[hidden] {
  display: none;
}

.e-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 2px 0 8px;
  background: var(--win-header);
  border-bottom: 1px solid #303030;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.e-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.e-title-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.e-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ddd;
}

.e-window-controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.e-wc {
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  line-height: 1;
  opacity: 0.9;
}

.e-wc img {
  width: 11px;
  height: 11px;
}

.e-wc:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.e-close:hover {
  background: #a33;
}

/* ---------- EFM file manager (official layout) ---------- */

.efm-window {
  top: 6%;
  left: 8%;
  width: min(720px, 78vw);
  height: min(480px, 68vh);
}

.efm-window.maximized {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--shelf-height));
  border-radius: 0;
}

.efm-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background: #22292d;
  border-bottom: 1px solid #1b2124;
  flex-shrink: 0;
}

.efm-tb-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.efm-tb-btn {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.efm-tb-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.efm-tb-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.efm-tb-btn img {
  width: 14px;
  height: 14px;
}

/* Path: plain text crumbs; current segment has blue underline bar */
.efm-pathbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 1px 4px;
  background: transparent;
  border: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.efm-pathbar::-webkit-scrollbar {
  display: none;
}

.efm-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px 3px;
  border-radius: 0;
  color: #c8c8c8;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.efm-crumb:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
}

.efm-crumb.current {
  background: transparent;
  color: #fff;
  border-bottom-color: var(--accent-bar);
}

.efm-crumb-sep {
  color: #888;
  font-size: 12px;
  padding: 0 1px;
  opacity: 0.8;
}

.efm-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.efm-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: #22292d;
  border-right: 1px solid #1b2124;
  padding: 4px 0;
  overflow-y: auto;
}

/* Full-width dark selection bars like official EFM */
.efm-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 10px;
  text-align: left;
  color: #ddd;
  font-size: 12px;
  border-radius: 0;
}

.efm-side-item:hover {
  background: rgba(0, 0, 0, 0.18);
}

.efm-side-item.active {
  background: rgba(152, 204, 87, 0.28);
}

.efm-side-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.efm-content {
  flex: 1;
  overflow: auto;
  background: #2a3236;
  padding: 14px 12px;
}

.efm-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px 8px;
  align-content: start;
}

.efm-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 2px;
  color: #ddd;
  min-width: 0;
}

.efm-icon:hover {
  background: rgba(255, 255, 255, 0.06);
}

.efm-icon.selected {
  background: rgba(152, 204, 87, 0.28);
}

.efm-icon img {
  width: 56px;
  height: 48px;
  object-fit: contain;
}

.efm-icon span {
  font-size: 11.5px;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  color: #ccc;
}

.efm-empty {
  color: var(--win-fg-dim);
  text-align: center;
  margin-top: 40px;
}

/* Thunar list view */
.efm-icons.list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  align-content: stretch;
}

.efm-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 72px;
  gap: 8px;
  align-items: center;
  padding: 4px 10px 4px 36px;
  font-size: 11px;
  font-weight: 600;
  color: var(--win-fg-dim);
  border-bottom: 1px solid #1b2124;
  background: #242b2f;
  position: sticky;
  top: 0;
  z-index: 1;
  user-select: none;
}

.efm-icons.list-view .efm-list-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 88px 72px;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 4px 10px;
  border-radius: 0;
  text-align: left;
  min-height: 28px;
}

.efm-icons.list-view .efm-list-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.efm-icons.list-view .efm-list-row .efm-list-col.name {
  font-size: 12.5px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  -webkit-line-clamp: unset;
  color: var(--win-fg);
  max-width: none;
}

.efm-icons.list-view .efm-list-row .efm-list-col.type,
.efm-icons.list-view .efm-list-row .efm-list-col.size,
.efm-list-header .efm-list-col {
  font-size: 12px;
  color: var(--win-fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.efm-icons.list-view .efm-list-row .efm-list-col.size,
.efm-list-header .efm-list-col.size {
  text-align: right;
}

.efm-content:has(.efm-icons.list-view) {
  padding: 0;
}

/* ---------- Terminology ---------- */

.term-window {
  top: 18%;
  left: 22%;
  width: min(640px, 70vw);
  height: min(380px, 50vh);
}

.term-body {
  flex: 1;
  background: #0d0d0d;
  color: #c8c8c8;
  font-family: "DejaVu Sans Mono", "Noto Sans Mono", ui-monospace, monospace;
  font-size: 13px;
  padding: 10px 12px;
  overflow: auto;
  line-height: 1.45;
}

.term-prompt {
  color: #6f6;
}

.term-cmd {
  color: #eee;
}

.term-out {
  color: #aaa;
}

.term-cursor {
  color: #6f6;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Tray popovers ---------- */

.tray-popover {
  position: absolute;
  z-index: 55;
  bottom: calc(var(--shelf-height) + 6px);
  right: 8px;
  min-width: 240px;
  padding: 10px 12px;
  background: var(--popup-bg);
  border: 1px solid var(--menu-border);
  border-radius: 4px;
  box-shadow: var(--popup-shadow);
  color: var(--menu-fg);
}

.tray-popover[hidden] {
  display: none;
}

.mixer-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--menu-fg-dim);
  margin-bottom: 10px;
}

.mixer-row,
.net-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mixer-row img,
.net-row img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mixer-slider {
  flex: 1;
  accent-color: var(--accent);
}

.mixer-pct {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 36px;
  text-align: right;
  color: var(--menu-fg-dim);
}

.mixer-vu {
  height: 4px;
  margin: 10px 0 8px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}

.mixer-vu-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #2ecc71, #f1c40f 70%, #e74c3c);
  border-radius: 2px;
  transition: width var(--transition);
}

.mixer-streams {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mixer-stream {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--menu-fg-dim);
}

.mixer-stream img {
  width: 16px;
  height: 16px;
}

.net-name {
  font-weight: 500;
  font-size: 13px;
}

.net-sub {
  font-size: 11.5px;
  color: var(--menu-fg-dim);
  margin-top: 2px;
}

.popover-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 4px;
  color: var(--menu-fg);
  border-radius: 3px;
  font-size: 12.5px;
}

.popover-btn:hover {
  background: var(--win-hover);
}

/* Calendar */
.calendar-popover {
  min-width: 260px;
  right: 100px;
}

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

.cal-month {
  font-weight: 600;
  font-size: 13px;
}

.cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  font-size: 18px;
  color: var(--menu-fg-dim);
}

.cal-nav:hover {
  background: var(--win-hover);
  color: var(--menu-fg);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--menu-fg-dim);
  margin-bottom: 4px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 3px;
  color: var(--menu-fg);
}

.cal-day.muted {
  color: #666;
}

.cal-day.today {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cal-day:hover:not(.muted) {
  background: var(--win-hover);
}

.cal-day.today:hover {
  background: var(--accent);
}

/* ---------- Toast ---------- */

.toast {
  position: absolute;
  bottom: calc(var(--shelf-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 8px 18px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: var(--popup-shadow);
  font-size: 13px;
  color: var(--menu-fg);
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .pager,
  .float-pager {
    display: none;
  }

  .ibar-btn:nth-child(n + 4) {
    display: none;
  }

  .efm-window {
    left: 2%;
    width: 96vw;
    top: 4%;
    height: 70vh;
  }

  .efm-sidebar {
    width: 120px;
  }

  .desk-icon {
    width: 68px;
  }
}

/* ---------- MokshaGreen extras: floating pager, tasks, Thunar ---------- */

.float-pager {
  position: absolute;
  right: 18px;
  top: 18%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: rgba(36, 43, 47, 0.88);
  border: 1px solid #1b2124;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-pager .pager-desk {
  width: 52px;
  height: 36px;
}

.tasks {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.task-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  max-width: 160px;
  padding: 0 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--shelf-fg);
  font-size: 12px;
  white-space: nowrap;
}

.task-btn:hover {
  background: rgba(152, 204, 87, 0.22);
}

.task-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.task-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thunar chrome (GTK content under Moksha window borders) */
.thunar-menubar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 4px;
  height: 24px;
  background: #262d31;
  border-bottom: 1px solid #1b2124;
  flex-shrink: 0;
}

.thunar-menu-btn {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 2px;
  color: var(--win-fg);
}

.thunar-menu-btn:hover {
  background: rgba(152, 204, 87, 0.25);
}

.thunar-location {
  background: #1b2124 !important;
  border: 1px solid #12171a !important;
  border-radius: 3px;
  padding: 2px 6px !important;
  min-height: 24px;
}

.path-crumb {
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--win-fg);
}

.path-crumb:hover {
  background: rgba(152, 204, 87, 0.22);
}

.path-sep {
  opacity: 0.45;
  padding: 0 2px;
  font-size: 11px;
}

.thunar-view-btns {
  margin-left: 4px;
}

.efm-tb-btn.active {
  background: rgba(152, 204, 87, 0.28);
}

.thunar-sidebar .side-section {
  padding: 8px 10px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--win-fg-dim);
}

.thunar-statusbar {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--win-fg-dim);
  background: #22292d;
  border-top: 1px solid #1b2124;
  flex-shrink: 0;
}

.menu-item.open,
.menu-item:hover {
  background: var(--menu-hover);
}

.menu-item.open {
  background: rgba(152, 204, 87, 0.28);
}

.side-item.active {
  background: rgba(152, 204, 87, 0.28) !important;
}

.cal-day.today {
  background: var(--accent);
  color: #1b2124;
  font-weight: 600;
}

.shelf-gadget img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.efm-window {
  width: min(780px, 82vw);
  height: min(520px, 72vh);
}

.term-window {
  top: 18%;
  left: 22%;
  width: min(560px, 70vw);
  height: min(340px, 48vh);
}

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

.about-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* Ensure hidden always wins */
[hidden] {
  display: none !important;
}

