:root {
  --menv-text: #1a202c;
  --menv-text-muted: #8895a7;
  --menv-surface: #f7f9fa;
}
:root[data-menv-theme="dark"] {
  --menv-text: #f1f5f9;
  --menv-text-muted: #9ca3af;
  --menv-surface: #232a38;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
}

.menv-aio { padding: 12px; }

.menv-aio-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--menv-text);
  margin-bottom: 10px;
}

.menv-aio-empty {
  color: var(--menv-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.menv-aio-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menv-aio-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--menv-surface);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.menv-aio-channel:hover { opacity: 0.9; transform: translateX(2px); }

.menv-aio-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.menv-aio-icon svg { width: 18px; height: 18px; }

.menv-aio-name { font-weight: 600; font-size: 0.9rem; color: var(--menv-text); }

/* Horizontal: channels side by side, wrapping on narrow screens */
.menv-aio[data-layout="horizontal"] .menv-aio-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.menv-aio[data-layout="horizontal"] .menv-aio-channel {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}
.menv-aio[data-layout="horizontal"] .menv-aio-channel:hover { transform: translateY(-2px); }
.menv-aio[data-layout="horizontal"] .menv-aio-icon { width: 28px; height: 28px; }
.menv-aio[data-layout="horizontal"] .menv-aio-icon svg { width: 16px; height: 16px; }

/* A long word with no spaces breaks instead of spilling out of its box */
.menv-aio-label { overflow-wrap: anywhere; }
